lib-ignore: relax license to LGPLv2+
[gnulib.git] / ChangeLog
1 2010-02-23  Jim Meyering  <meyering@redhat.com>
2
3         lib-ignore: relax license to LGPLv2+
4         * modules/lib-ignore (License): Relax to LGPLv2+.
5
6 2010-02-22  Eric Blake  <eblake@redhat.com>
7
8         lseek: avoid bash 3.2 broken pipe bug
9         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
10         warning from bash 3.2.
11         Reported by Ben Pfaff, with analysis from Bruno Haible.
12
13         bootstrap: support non-FSF copyright holder
14         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15         bootstrap.conf override of COPYRIGHT_HOLDER.
16         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17
18         bootstrap: interoperate with gettext 0.14.1
19         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
20
21         bootstrap: allow for alternate submodule location
22         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23         hardcoding submodule location.
24         (gnulib_mk): Allow direct use of Makefile.am.
25
26         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28         rather than reconfiguring where the submodule points.
29
30         gettimeofday: restore support for platforms that lack function
31         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32         replacement if function is missing.
33         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
34         * modules/sys_time (Makefile.am): Substitute it.
35         * lib/sys_time.in.h (gettimeofday): Check it.
36         Reported by Michael Goffioul.
37
38 2010-02-21  Bruno Haible  <bruno@clisp.org>
39
40         * lib/stdio.in.h (obstack_printf): Fix typo.
41
42 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
43
44         vc-list-files: use bzr ls's -R option
45         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
46         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
47
48 2010-02-21  Jim Meyering  <meyering@redhat.com>
49
50         init.sh: fix EXEEXT shims to work also for names like test-prog
51         * tests/init.sh: Re-exec a better shell, when needed.
52         If the current shell lacks support for posix $(...), an init.sh-using
53         test will now try to find a shell that supports that.  If EXEEXT is
54         nonempty, we also require support for hyphen-in-alias-name and shell
55         substitutions like ${var#glob}.  Failure to find such a shell results
56         in a skipped test.
57
58 2010-02-21  Bruno Haible  <bruno@clisp.org>
59
60         Really work around around "broken pipe" error message from bash 3.2.
61         * gnulib-tool (func_reset_sigpipe): Remove function.
62         (echo): In bash 3.2, define to a function that uses printf.
63         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
64
65 2010-02-20  Bruno Haible  <bruno@clisp.org>
66
67         Restore support for automake 1.9.6 with autoconf 2.61.
68         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
69         Reported by James Youngman <jay@gnu.org>.
70
71 2010-02-20  Bruno Haible  <bruno@clisp.org>
72
73         Improve *printf warning condition.
74         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
75         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
76         and the function is overridden due to SIGPIPE emulation.
77
78 2010-02-20  Bruno Haible  <bruno@clisp.org>
79
80         * lib/stdio.in.h: Tweak comments.
81
82 2010-02-19  Bruno Haible  <bruno@clisp.org>
83
84         Make it easier to find modules. New gnulib-tool option '--find'.
85         * gnulib-tool: New option --find.
86         (func_usage): Document it.
87         (func_sanitize_modulelist): New function, extracted from
88         func_all_modules.
89         (func_all_modules): Invoke it.
90         * doc/gnulib-tool.texi (Which modules?): New node.
91
92 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
93
94         * lib/sys_select.in.h: Provide select replacement even if
95         sys/select.h exists on a system, for Interix.
96
97 2010-02-18  Jim Meyering  <meyering@redhat.com>
98
99         init.sh: don't use $(...) just yet
100         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
101         to accommodate e.g., Solaris' /bin/sh.
102
103 2010-02-17  Bruno Haible  <bruno@clisp.org>
104
105         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
106         Reported by Ludovic Courtès <ludo@gnu.org>.
107
108 2010-02-16  Simon Josefsson  <simon@josefsson.org>
109
110         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
111         linking with -lintl.
112
113 2010-02-17  Simon Josefsson  <simon@josefsson.org>
114
115         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
116         if not provided by the system's netdb.h.  Reported by
117         ludo@gnu.org (Ludovic Courtès).
118
119 2010-02-15  Jim Meyering  <meyering@redhat.com>
120
121         init.sh: improve portability and efficiency
122         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
123         "dummy" in a for loop.
124         Use '!', not '^' to select the complement of a character set used
125         in a "case" statement.
126         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
127         Suggestions from Eric Blake.
128
129         init.sh: automatically accommodate programs with the .exe suffix
130         Automatically arrange for an invocation of "prog" to execute the
131         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
132         may use the simpler "prog", yet still work when built on a system
133         that requires specifying the added suffix.
134         Do this by constructing a function named "prog" that invokes
135         "prog.exe" for each .exe file in selected directories.
136         * tests/init.sh (find_exe_basenames_): New function.
137         (create_exe_shim_functions_): New function.
138         (path_prepend_): Use it.
139
140         maint.mk: mark syntax-check sc_*.m rules as .PHONY
141         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
142         "make -t syntax-check" doesn't create a ton of sc_*.m files.
143
144 2010-02-14  Jim Meyering  <meyering@redhat.com>
145
146         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
147         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
148         (sc_prohibit_hash_pjw_without_use): New rule.
149
150         maint.mk: allow the default upload destination dir to be overridden
151         * top/maint.mk (upload_dest_dir_): Define with a default that
152         preserves the status quo.
153         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
154         Reported by Peter Simons.
155
156         maint.mk: prohibit inclusion of "hash.h" without_use
157         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
158
159 2010-02-10  Jim Meyering  <meyering@redhat.com>
160
161         maint.mk: prohibit inclusion of "ignore-value.h" without_use
162         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
163
164 2010-02-09  Eric Blake  <ebb9@byu.net>
165         and Bruno Haible  <bruno@clisp.org>
166
167         obstack-printf-posix: ensure declaration
168         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
169         extracted from gl_FUNC_OBSTACK_PRINTF.
170         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
171         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
172         Likewise.
173         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
174         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
175         0.
176
177 2010-02-08  Bruno Haible  <bruno@clisp.org>
178
179         gnulib-tool: Fix typo in 2010-02-07 commit.
180         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
181         Reported by Eric Blake.
182
183 2010-02-07  Bruno Haible  <bruno@clisp.org>
184
185         gnulib-tool: Fix up caching patches.
186         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
187         option --no-cache. Use associative arrays when supported by the shell.
188         (sed_comments): New variable.
189         (modcache): Renamed from do_cache.
190         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
191         abbreviate unnecessarily.
192         (have_associative): New variable.
193         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
194         way also for ksh and zsh.
195         (func_init_sed_convert_to_cache_statements): New function, extracted
196         from func_cache_lookup_module. Add support for associative arrays.
197         Don't set the c_MODULE_cached variable here. Ignore all lines before
198         the first field header. Remove only the final newline, not all trailing
199         newlines. Support empty fields correctly. Limit the use of 'eval' to
200         assignments.
201         (func_get_description, func_get_status, func_get_notice,
202         func_get_applicability, func_get_filelist, func_get_dependencies,
203         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
204         func_get_automake_snippet, func_get_include_directive,
205         func_get_link_directive, func_get_license, func_get_maintainer):
206         Update documentation. List the unoptimized code first. Add support for
207         associative arrays. Limit the use of 'eval' to assignments.
208         (func_get_applicability): Undo stylistic pessimisations.
209         (func_get_automake_snippet, func_get_include_directive): Reduce code
210         duplication.
211         (func_modules_transitive_closure, func_modules_add_dummy,
212         func_modules_notice, func_modules_to_filelist, func_add_file,
213         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
214         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
215         func_create_testdir, func_create_megatestdir): Update documentation.
216
217 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
218
219         * gnulib-tool (func_cache_lookup_module): Store the module name
220         belonging to the cache variable; error out if two different
221         module names map to the same cache variable name.
222
223 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
224
225         gnulib-tool: Make caching optional.
226         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
227         Update matching short versions of --no-changelog.
228         (func_usage): Update.
229         (sed_extract_cache_prog): Renamed from ...
230         (sed_extract_prog): ... this; revert to old extraction script.
231         (func_get_description, func_get_status)
232         (func_get_notice, func_get_applicability, func_get_filelist)
233         (func_get_dependencies, func_get_autoconf_early_snippet)
234         (func_get_autoconf_snippet, func_get_automake_snippet)
235         (func_get_include_directive, func_get_link_directive)
236         (func_get_license, func_get_maintainer): If $do_cache is false,
237         use old, non-caching extraction scripts.
238         Suggestion by Bruno Haible.
239
240 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
241
242         gnulib-tool: cache module metainformation.
243         * gnulib-tool (sed_extract_prog): Match newline before each
244         header, and rewrite header to a shell variable suffix.
245         (func_cache_var, func_cache_lookup_module): New functions,
246         to turn a module name into a cache variable prefix, and to
247         look up and cache module metainformation.
248         (func_get_description, func_get_status)
249         (func_get_notice, func_get_applicability, func_get_filelist)
250         (func_get_dependencies, func_get_autoconf_early_snippet)
251         (func_get_autoconf_snippet, func_get_automake_snippet)
252         (func_get_include_directive, func_get_link_directive)
253         (func_get_license, func_get_maintainer): Use
254         func_cache_lookup_module.
255
256 2010-02-07  Bruno Haible  <bruno@clisp.org>
257
258         fnctl: Fix missing dependency.
259         * modules/fcntl (Depends-on): Add getdtablesize.
260         Reported by John W. Eaton <jwe@gnu.org>.
261
262 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
263
264         Argp: fix recognition of short alias options.
265
266         * lib/argp-parse.c (convert_options): Fix improper use of
267         `|' between character values.
268         * tests/test-argp.c (group1_option): New alias option
269         --read (-r).
270         (group1_parser): Special handling for 'r'.
271         (test15): New test case.
272         (test_fun): Add test15.
273         * tests/test-argp-2.sh: Update expected --help and --usage
274         outputs.
275
276 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
277
278         * tests/test-argp.c: Fix indentation.
279
280 2010-02-04  Eric Blake  <ebb9@byu.net>
281
282         gettimeofday: expose type of second argument
283         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
284         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
285         * tests/test-gettimeofday.c: Use it to silence warning.
286         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
287         the issue.
288
289 2010-02-03  Jim Meyering  <meyering@redhat.com>
290
291         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
292         * lib/regcomp.c (TYPE_SIGNED): Define.
293         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
294
295         regcomp.c: avoid a new -Wshadow warning
296         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
297
298 2010-02-01  Jim Meyering  <meyering@redhat.com>
299
300         removing useless parentheses in cpp #define directives
301         For motivation, see commit c0221df4, "define STREQ(a,b)
302         consistently, removing useless parentheses"
303         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
304         * lib/mountlist.c (MNT_IGNORE): Likewise.
305         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
306
307 2010-02-01  Eric Blake  <ebb9@byu.net>
308
309         sys_time: use link-warning
310         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
311         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
312         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
313         * modules/sys_time (Depends-on): Add warn-on-use.
314         (Makefile.am): Always build replacement.
315         (configure.ac): Update substitutions.
316         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
317         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
318         bother with SYS_TIME_H.
319         * modules/gettimeofday (configure.ac): Declare indicator.
320         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
321         in use.
322
323         closein-tests: silence compiler warning
324         * tests/test-closein.c (main): Ignore fread result.
325         * modules/closein-tests (Depends-on): Add ignore-value.
326
327         tests: silence warning about system return
328         * tests/test-areadlink-with-size.c (main): Ignore system result.
329         * tests/test-areadlink.c (main): Likewise.
330         * tests/test-areadlinkat-with-size.c (main): Likewise.
331         * tests/test-areadlinkat.c (main): Likewise.
332         * tests/test-canonicalize-lgpl.c (main): Likewise.
333         * tests/test-canonicalize.c (main): Likewise.
334         * tests/test-chown.c (main): Likewise.
335         * tests/test-fchownat.c (main): Likewise.
336         * tests/test-fdutimensat.c (main): Likewise.
337         * tests/test-fstatat.c (main): Likewise.
338         * tests/test-futimens.c (main): Likewise.
339         * tests/test-lchown.c (main): Likewise.
340         * tests/test-link.c (main): Likewise.
341         * tests/test-linkat.c (main): Likewise.
342         * tests/test-lstat.c (main): Likewise.
343         * tests/test-mkdir.c (main): Likewise.
344         * tests/test-mkdirat.c (main): Likewise.
345         * tests/test-mkfifo.c (main): Likewise.
346         * tests/test-mkfifoat.c (main): Likewise.
347         * tests/test-mknod.c (main): Likewise.
348         * tests/test-readlink.c (main): Likewise.
349         * tests/test-remove.c (main): Likewise.
350         * tests/test-rename.c (main): Likewise.
351         * tests/test-renameat.c (main): Likewise.
352         * tests/test-rmdir.c (main): Likewise.
353         * tests/test-symlink.c (main): Likewise.
354         * tests/test-symlinkat.c (main): Likewise.
355         * tests/test-unlink.c (main): Likewise.
356         * tests/test-unlinkat.c (main): Likewise.
357         * tests/test-utimens.c (main): Likewise.
358         * tests/test-utimensat.c (main): Likewise.
359         * modules/areadlink-tests (Depends-on): Add ignore-value.
360         * modules/areadlink-with-size-tests (Depends-on): Likewise.
361         * modules/areadlinkat-tests (Depends-on): Likewise.
362         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
363         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
364         * modules/canonicalize-tests (Depends-on): Likewise.
365         * modules/chown-tests (Depends-on): Likewise.
366         * modules/fdutimensat-tests (Depends-on): Likewise.
367         * modules/futimens-tests (Depends-on): Likewise.
368         * modules/lchown-tests (Depends-on): Likewise.
369         * modules/link-tests (Depends-on): Likewise.
370         * modules/linkat-tests (Depends-on): Likewise.
371         * modules/lstat-tests (Depends-on): Likewise.
372         * modules/mkdir-tests (Depends-on): Likewise.
373         * modules/mkfifo-tests (Depends-on): Likewise.
374         * modules/mkfifoat-tests (Depends-on): Likewise.
375         * modules/mknod-tests (Depends-on): Likewise.
376         * modules/openat-tests (Depends-on): Likewise.
377         * modules/readlink-tests (Depends-on): Likewise.
378         * modules/remove-tests (Depends-on): Likewise.
379         * modules/rename-tests (Depends-on): Likewise.
380         * modules/renameat-tests (Depends-on): Likewise.
381         * modules/rmdir-tests (Depends-on): Likewise.
382         * modules/symlink-tests (Depends-on): Likewise.
383         * modules/symlinkat-tests (Depends-on): Likewise.
384         * modules/unlink-tests (Depends-on): Likewise.
385         * modules/utimens-tests (Depends-on): Likewise.
386         * modules/utimensat-tests (Depends-on): Likewise.
387
388 2010-01-31  Bruno Haible  <bruno@clisp.org>
389
390         Perform the same test for many <math.h> functions.
391         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
392         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
393         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
394         of gl_MATHFUNC.
395         * modules/acos (configure.ac): Likewise.
396         * modules/asin (configure.ac): Likewise.
397         * modules/atan (configure.ac): Likewise.
398         * modules/atan2 (configure.ac): Likewise.
399         * modules/cbrt (configure.ac): Likewise.
400         * modules/copysign (configure.ac): Likewise.
401         * modules/cos (configure.ac): Likewise.
402         * modules/cosh (configure.ac): Likewise.
403         * modules/erf (configure.ac): Likewise.
404         * modules/erfc (configure.ac): Likewise.
405         * modules/exp (configure.ac): Likewise.
406         * modules/fmod (configure.ac): Likewise.
407         * modules/hypot (configure.ac): Likewise.
408         * modules/j0 (configure.ac): Likewise.
409         * modules/j1 (configure.ac): Likewise.
410         * modules/jn (configure.ac): Likewise.
411         * modules/lgamma (configure.ac): Likewise.
412         * modules/log (configure.ac): Likewise.
413         * modules/log10 (configure.ac): Likewise.
414         * modules/log1p (configure.ac): Likewise.
415         * modules/pow (configure.ac): Likewise.
416         * modules/remainder (configure.ac): Likewise.
417         * modules/sin (configure.ac): Likewise.
418         * modules/sinh (configure.ac): Likewise.
419         * modules/tan (configure.ac): Likewise.
420         * modules/tanh (configure.ac): Likewise.
421         * modules/y0 (configure.ac): Likewise.
422         * modules/y1 (configure.ac): Likewise.
423         * modules/yn (configure.ac): Likewise.
424         Suggested by Paolo Bonzini.
425
426 2010-01-31  Bruno Haible  <bruno@clisp.org>
427
428         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
429
430 2010-01-31  Bruno Haible  <bruno@clisp.org>
431
432         Work around getdelim() bug on FreeBSD 8.0.
433         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
434         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
435         not work.
436         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
437         is 1.
438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
439         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
440         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
441         a non-zero size.
442         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
443
444 2010-01-31  Bruno Haible  <bruno@clisp.org>
445
446         Work around getline() bug on FreeBSD 8.0.
447         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
448         and a non-zero size.
449         * tests/test-getline.c (main): Likewise.
450         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
451         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
452
453 2010-01-28  Eric Blake  <ebb9@byu.net>
454
455         regex: fix build failure
456         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
457         platforms.
458
459 2010-01-28  Jim Meyering  <meyering@redhat.com>
460
461         regex: do not ignore memory allocation failure
462         * lib/regex_internal.c (create_cd_newstate): Detect
463         re_node_set_init_copy failure.   Extracted from glibc commit
464         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
465
466         regex: sync more white-space changes from libc
467         * lib/regex_internal.c: White-space only changes.
468         * lib/regexec.c: Likewise.
469
470         regex: add many uses of __attribute_warn_unused_result__
471         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
472         * lib/regexec.c: Likewise.
473         Extracted from a messy glibc commit.
474
475         regcomp.c: spelling and merge-artifact from glibc
476         * lib/regcomp.c: Merge remainder of glibc's
477         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
478
479         regcomp.c: sync white-space changes from glibc
480         * lib/regcomp.c: Merge to accommodate white space
481         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
482
483         regcomp.c: do not ignore internal return values
484         * lib/regcomp.c: Do not ignore internal return values.
485         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
486         but without its white-space changes and spelling fixes.
487
488         regex_internal.h: define __attribute_warn_unused_result__
489         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
490
491         maint: add a syntax-check rule to check for vulnerable Makefile.in
492         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
493
494 2010-01-27  Jim Meyering  <meyering@redhat.com>
495
496         ncftpput-ftp: clean up spaces
497         * build-aux/ncftpput-ftp: Make Copyright line consistent.
498         Remove trailing blanks.
499
500 2010-01-27  Simon Josefsson  <simon@josefsson.org>
501
502         * build-aux/git-version-gen: Fix copyright statement.
503         * build-aux/gnupload: Likewise.
504         * tests/test-arcfour.c: Likewise.
505         * tests/test-arctwo.c: Likewise.
506         * tests/test-count-one-bits.c: Likewise.
507         * tests/test-crc.c: Likewise.
508         * tests/test-des.c: Likewise.
509         * tests/test-gc-arcfour.c: Likewise.
510         * tests/test-gc-arctwo.c: Likewise.
511         * tests/test-gc-des.c: Likewise.
512         * tests/test-gc-hmac-md5.c: Likewise.
513         * tests/test-gc-hmac-sha1.c: Likewise.
514         * tests/test-gc-md2.c: Likewise.
515         * tests/test-gc-md4.c: Likewise.
516         * tests/test-gc-md5.c: Likewise.
517         * tests/test-gc-pbkdf2-sha1.c: Likewise.
518         * tests/test-gc-rijndael.c: Likewise.
519         * tests/test-gc-sha1.c: Likewise.
520         * tests/test-gc.c: Likewise.
521         * tests/test-gethostname.c: Likewise.
522         * tests/test-gettimeofday.c: Likewise.
523         * tests/test-hash.c: Likewise.
524         * tests/test-hmac-md5.c: Likewise.
525         * tests/test-hmac-sha1.c: Likewise.
526         * tests/test-md2.c: Likewise.
527         * tests/test-md4.c: Likewise.
528         * tests/test-md5.c: Likewise.
529         * tests/test-memchr.c: Likewise.
530         * tests/test-memchr2.c: Likewise.
531         * tests/test-memcmp.c: Likewise.
532         * tests/test-memmem.c: Likewise.
533         * tests/test-memrchr.c: Likewise.
534         * tests/test-rawmemchr.c: Likewise.
535         * tests/test-read-file.c: Likewise.
536         * tests/test-rijndael.c: Likewise.
537         * tests/test-sockets.c: Likewise.
538         * tests/test-strchrnul.c: Likewise.
539         * tests/test-strstr.c: Likewise.
540         * tests/test-strtod.c: Likewise.
541         * build-aux/ncftpput-ftp: Likewise.
542
543 2010-01-26  Eric Blake  <ebb9@byu.net>
544
545         ignore-value: update recommended header name
546         * modules/ignore-value (Include): Only use <> for headers that
547         exist in glibc.
548
549 2010-01-26  Jim Meyering  <meyering@redhat.com>
550
551         test-userspec.c: avoid compiler warnings
552         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
553         and "initialization discards qualifiers..." warnings.
554         Put the first "uid" in its own scope, and make char* members "const".
555
556 2010-01-25  Bruno Haible  <bruno@clisp.org>
557
558         gnulib-tool: Make warning diagnostics consistent.
559         * gnulib-tool (func_warning): New function.
560         Use it everywhere where gnulib-tool produces output to stderr and it is
561         not a fatal error.
562
563 2010-01-25  Bruno Haible  <bruno@clisp.org>
564
565         Fix test dependencies.
566         * modules/xstrtol-tests (Depends-on): Add inttypes.
567         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
568
569 2010-01-25 Pádraig Brady <P@draigBrady.com>
570
571         syntax-check: detect incorrect boolean macro values in config.h
572         * modules/maintainer-makefile (configure.ac): Parameterize the location
573         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
574         The logic is from Eric Blake and the location indicated by Jim Meyering.
575         Note the more natural CONFIG_HEADER name is prohibited by automake
576         for backwards compatibility reasons.
577         * top/maint.mk (sc_Wundef_boolean): New rule.
578
579 2010-01-25  Jim Meyering  <meyering@redhat.com>
580
581         bootstrap: detect MacOS 10.6's shasum, too
582         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
583         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
584
585 2010-01-23  Jim Meyering  <meyering@redhat.com>
586
587         xstrtoll: new module
588         * modules/xstrtoll: New file.
589         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
590         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
591         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
592         ./configure fails if you use this module and lack "long long".
593         * modules/xstrtoll-tests: New module.
594         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
595         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
596         new init.sh-based test framework.
597
598 2010-01-24  Bruno Haible  <bruno@clisp.org>
599
600         Tests for module 'yn'.
601         * modules/yn-tests: New file.
602         * tests/test-yn.c: New file.
603
604         Tests for module 'y1'.
605         * modules/y1-tests: New file.
606         * tests/test-y1.c: New file.
607
608         Tests for module 'y0'.
609         * modules/y0-tests: New file.
610         * tests/test-y0.c: New file.
611
612         Tests for module 'tanh'.
613         * modules/tanh-tests: New file.
614         * tests/test-tanh.c: New file.
615
616         Tests for module 'tan'.
617         * modules/tan-tests: New file.
618         * tests/test-tan.c: New file.
619
620         Tests for module 'sqrt'.
621         * modules/sqrt-tests: New file.
622         * tests/test-sqrt.c: New file.
623
624         Tests for module 'sinh'.
625         * modules/sinh-tests: New file.
626         * tests/test-sinh.c: New file.
627
628         Tests for module 'sin'.
629         * modules/sin-tests: New file.
630         * tests/test-sin.c: New file.
631
632         Tests for module 'rint'.
633         * modules/rint-tests: New file.
634         * tests/test-rint.c: New file.
635
636         Tests for module 'remainder'.
637         * modules/remainder-tests: New file.
638         * tests/test-remainder.c: New file.
639
640         Tests for module 'pow'.
641         * modules/pow-tests: New file.
642         * tests/test-pow.c: New file.
643
644         Tests for module 'nextafter'.
645         * modules/nextafter-tests: New file.
646         * tests/test-nextafter.c: New file.
647
648         Tests for module 'modf'.
649         * modules/modf-tests: New file.
650         * tests/test-modf.c: New file.
651
652         Tests for module 'logb'.
653         * modules/logb-tests: New file.
654         * tests/test-logb.c: New file.
655
656         Tests for module 'log1p'.
657         * modules/log1p-tests: New file.
658         * tests/test-log1p.c: New file.
659
660         Tests for module 'log10'.
661         * modules/log10-tests: New file.
662         * tests/test-log10.c: New file.
663
664         Tests for module 'log'.
665         * modules/log-tests: New file.
666         * tests/test-log.c: New file.
667
668         Tests for module 'lgamma'.
669         * modules/lgamma-tests: New file.
670         * tests/test-lgamma.c: New file.
671
672         Tests for module 'ldexp'.
673         * modules/ldexp-tests: New file.
674         * tests/test-ldexp.c: New file.
675
676         Tests for module 'jn'.
677         * modules/jn-tests: New file.
678         * tests/test-jn.c: New file.
679
680         Tests for module 'j1'.
681         * modules/j1-tests: New file.
682         * tests/test-j1.c: New file.
683
684         Tests for module 'j0'.
685         * modules/j0-tests: New file.
686         * tests/test-j0.c: New file.
687
688         Tests for module 'hypot'.
689         * modules/hypot-tests: New file.
690         * tests/test-hypot.c: New file.
691
692         Tests for module 'fmod'.
693         * modules/fmod-tests: New file.
694         * tests/test-fmod.c: New file.
695
696         Tests for module 'fabs'.
697         * modules/fabs-tests: New file.
698         * tests/test-fabs.c: New file.
699
700         Tests for module 'exp'.
701         * modules/exp-tests: New file.
702         * tests/test-exp.c: New file.
703
704         Tests for module 'erfc'.
705         * modules/erfc-tests: New file.
706         * tests/test-erfc.c: New file.
707
708         Tests for module 'erf'.
709         * modules/erf-tests: New file.
710         * tests/test-erf.c: New file.
711
712         Tests for module 'cosh'.
713         * modules/cosh-tests: New file.
714         * tests/test-cosh.c: New file.
715
716         Tests for module 'cos'.
717         * modules/cos-tests: New file.
718         * tests/test-cos.c: New file.
719
720         Tests for module 'copysign'.
721         * modules/copysign-tests: New file.
722         * tests/test-copysign.c: New file.
723
724         Tests for module 'cbrt'.
725         * modules/cbrt-tests: New file.
726         * tests/test-cbrt.c: New file.
727
728         Tests for module 'atan2'.
729         * modules/atan2-tests: New file.
730         * tests/test-atan2.c: New file.
731
732         Tests for module 'atan'.
733         * modules/atan-tests: New file.
734         * tests/test-atan.c: New file.
735
736         Tests for module 'asin'.
737         * modules/asin-tests: New file.
738         * tests/test-asin.c: New file.
739
740         Tests for module 'acos'.
741         * modules/acos-tests: New file.
742         * tests/test-acos.c: New file.
743
744 2010-01-24  Bruno Haible  <bruno@clisp.org>
745
746         Fix tests for common <math.h> functions.
747         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
748         code snippet that references the function pointer, rather than merely
749         calling the function. Substitute the FUNC_LIBM variable.
750         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
751         * modules/acos (configure.ac): Likewise.
752         * modules/asin (configure.ac): Likewise.
753         * modules/atan (configure.ac): Likewise.
754         * modules/atan2 (configure.ac): Likewise.
755         * modules/cbrt (configure.ac): Likewise.
756         * modules/copysign (configure.ac): Likewise.
757         * modules/cos (configure.ac): Likewise.
758         * modules/cosh (configure.ac): Likewise.
759         * modules/erf (configure.ac): Likewise.
760         * modules/erfc (configure.ac): Likewise.
761         * modules/exp (configure.ac): Likewise.
762         * modules/fabs (configure.ac): Likewise.
763         * modules/fmod (configure.ac): Likewise.
764         * modules/hypot (configure.ac): Likewise.
765         * modules/j0 (configure.ac): Likewise.
766         * modules/j1 (configure.ac): Likewise.
767         * modules/jn (configure.ac): Likewise.
768         * modules/ldexp (configure.ac): Likewise.
769         * modules/lgamma (configure.ac): Likewise.
770         * modules/log (configure.ac): Likewise.
771         * modules/log10 (configure.ac): Likewise.
772         * modules/log1p (configure.ac): Likewise.
773         * modules/logb (configure.ac): Likewise.
774         * modules/modf (configure.ac): Likewise.
775         * modules/nextafter (configure.ac): Likewise.
776         * modules/pow (configure.ac): Likewise.
777         * modules/remainder (configure.ac): Likewise.
778         * modules/rint (configure.ac): Likewise.
779         * modules/sin (configure.ac): Likewise.
780         * modules/sinh (configure.ac): Likewise.
781         * modules/tan (configure.ac): Likewise.
782         * modules/tanh (configure.ac): Likewise.
783         * modules/y0 (configure.ac): Likewise.
784         * modules/y1 (configure.ac): Likewise.
785         * modules/yn (configure.ac): Likewise.
786
787 2010-01-24  Bruno Haible  <bruno@clisp.org>
788
789         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
790         * tests/test-acosl.c (x): New variable.
791         (main): Store argument in x and fetch it from x.
792         * tests/test-asinl.c (x): New variable.
793         (main): Store argument in x and fetch it from x.
794         * tests/test-atanl.c (x): New variable.
795         (main): Store argument in x and fetch it from x.
796         * tests/test-cosl.c (x): New variable.
797         (main): Store argument in x and fetch it from x.
798         * tests/test-expl.c (x): New variable.
799         (main): Store argument in x and fetch it from x.
800         * tests/test-logl.c (x): New variable.
801         (main): Store argument in x and fetch it from x.
802         * tests/test-sinl.c (x): New variable.
803         (main): Store argument in x and fetch it from x.
804         * tests/test-sqrtl.c (x): New variable.
805         (main): Store argument in x and fetch it from x.
806         * tests/test-tanl.c (x): New variable.
807         (main): Store argument in x and fetch it from x.
808
809 2010-01-24  Bruno Haible  <bruno@clisp.org>
810
811         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
812         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
813         assignments to the initial TESTS_ENVIRONMENT.
814         * doc/gnulib.texi (Unit test modules): Document it.
815         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
816         TESTS_ENVIRONMENT.
817         * modules/btowc-tests (Makefile.am): Likewise.
818         * modules/c-stack-tests (Makefile.am): Likewise.
819         * modules/c-strcase-tests (Makefile.am): Likewise.
820         * modules/copy-file-tests (Makefile.am): Likewise.
821         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
822         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
823         * modules/mbrtowc-tests (Makefile.am): Likewise.
824         * modules/mbscasecmp-tests (Makefile.am): Likewise.
825         * modules/mbscasestr-tests (Makefile.am): Likewise.
826         * modules/mbschr-tests (Makefile.am): Likewise.
827         * modules/mbscspn-tests (Makefile.am): Likewise.
828         * modules/mbsinit-tests (Makefile.am): Likewise.
829         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
830         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
831         * modules/mbspbrk-tests (Makefile.am): Likewise.
832         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
833         * modules/mbsrchr-tests (Makefile.am): Likewise.
834         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
835         * modules/mbsspn-tests (Makefile.am): Likewise.
836         * modules/mbsstr-tests (Makefile.am): Likewise.
837         * modules/nl_langinfo-tests (Makefile.am): Likewise.
838         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
839         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
840         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
841         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
842         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
843         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
844         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
845         * modules/wcrtomb-tests (Makefile.am): Likewise.
846         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
847         * modules/wcsrtombs-tests (Makefile.am): Likewise.
848         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
849         assignments from TESTS_ENVIRONMENT.
850         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
851         augmentation.
852         * modules/argp-version-etc-tests (Makefile.am): Likewise.
853         * modules/atexit-tests (Makefile.am): Likewise.
854         * modules/binary-io-tests (Makefile.am): Likewise.
855         * modules/closein-tests (Makefile.am): Likewise.
856         * modules/dprintf-posix-tests (Makefile.am): Likewise.
857         * modules/exclude-tests (Makefile.am): Likewise.
858         * modules/fflush-tests (Makefile.am): Likewise.
859         * modules/fpending-tests (Makefile.am): Likewise.
860         * modules/fprintf-posix-tests (Makefile.am): Likewise.
861         * modules/freadahead-tests (Makefile.am): Likewise.
862         * modules/freadptr-tests (Makefile.am): Likewise.
863         * modules/freadseek-tests (Makefile.am): Likewise.
864         * modules/fseek-tests (Makefile.am): Likewise.
865         * modules/fseeko-tests (Makefile.am): Likewise.
866         * modules/ftell-tests (Makefile.am): Likewise.
867         * modules/ftello-tests (Makefile.am): Likewise.
868         * modules/idpriv-drop-tests (Makefile.am): Likewise.
869         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
870         * modules/lseek-tests (Makefile.am): Likewise.
871         * modules/parse-duration-tests (Makefile.am): Likewise.
872         * modules/perror-tests (Makefile.am): Likewise.
873         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
874         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
875         * modules/pipe-tests (Makefile.am): Likewise.
876         * modules/pread-tests (Makefile.am): Likewise.
877         * modules/printf-posix-tests (Makefile.am): Likewise.
878         * modules/select-tests (Makefile.am): Likewise.
879         * modules/sigpipe-tests (Makefile.am): Likewise.
880         * modules/tsearch-tests (Makefile.am): Likewise.
881         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
882         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
883         * modules/uniname/uniname-tests (Makefile.am): Likewise.
884         * modules/uniwidth/width-tests (Makefile.am): Likewise.
885         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
886         * modules/version-etc-tests (Makefile.am): Likewise.
887         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
888         * modules/vprintf-posix-tests (Makefile.am): Likewise.
889         * modules/xalloc-die-tests (Makefile.am): Likewise.
890         * modules/xprintf-posix-tests (Makefile.am): Likewise.
891         * modules/xstrtoimax-tests (Makefile.am): Likewise.
892         * modules/xstrtol-tests (Makefile.am): Likewise.
893         * modules/xstrtoumax-tests (Makefile.am): Likewise.
894         * modules/yesno-tests (Makefile.am): Likewise.
895         Suggested by Jim Meyering.
896
897 2010-01-24  Bruno Haible  <bruno@clisp.org>
898
899         More documentation.
900         * doc/gnulib.texi (Writing modules): New chapter.
901         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
902         the new chapter.
903
904 2010-01-24  Jim Meyering  <meyering@redhat.com>
905
906         maint.mk: do not prepend "./" after filtering
907         * top/maint.mk (_prepend_srcdir_prefix): New variable
908         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
909         "./" when $(srcdir) is ".".
910
911         define STREQ(a,b) consistently, removing useless parentheses
912         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
913         since the only risk is that "a" or "b" contains an unparenthesized
914         comma, but if either did that, STREQ would have 3 or more arguments.
915         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
916         * lib/fts.c (STREQ): Remove unnecessary parentheses.
917         * lib/hash-triple.c (STREQ): Likewise.
918         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
919         * lib/getugroups.c (STREQ): Likewise.
920
921 2010-01-23  Jim Meyering  <meyering@redhat.com>
922
923         maint.mk: fix syntax-check in a non-srcdir build directory
924         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
925         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
926
927 2010-01-22  Jim Meyering  <meyering@redhat.com>
928
929         userspec: add unit tests
930         * tests/test-userspec.c: New file.
931         * modules/userspec-tests: Likewise.
932
933 2010-01-21  Jim Meyering  <meyering@redhat.com>
934
935         maint.mk: handle source file names containing "." robustly
936         * top/maint.mk (_dot_escaped_srcdir): Define.
937         (VC_LIST): Use it in LHS of sed substitution.
938
939 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
940
941         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
942         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
943         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
944         from a non-srcdir build.
945
946 2010-01-20  Eric Blake  <ebb9@byu.net>
947
948         warn-on-use: use instead of link-warning
949         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
950         * modules/unistd (Depends-on, Makefile.am): Likewise.
951         * modules/arpa_inet (Depends-on): Replace link-warning with
952         warn-on-use.
953         (Makefile.am): Update rules accordingly.
954         * modules/ctype (Depends-on, Makefile.am): Likewise.
955         * modules/dirent (Depends-on, Makefile.am): Likewise.
956         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
957         * modules/inttypes (Depends-on, Makefile.am): Likewise.
958         * modules/langinfo (Depends-on, Makefile.am): Likewise.
959         * modules/locale (Depends-on, Makefile.am): Likewise.
960         * modules/math (Depends-on, Makefile.am): Likewise.
961         * modules/search (Depends-on, Makefile.am): Likewise.
962         * modules/signal (Depends-on, Makefile.am): Likewise.
963         * modules/spawn (Depends-on, Makefile.am): Likewise.
964         * modules/stdlib (Depends-on, Makefile.am): Likewise.
965         * modules/string (Depends-on, Makefile.am): Likewise.
966         * modules/strings (Depends-on, Makefile.am): Likewise.
967         * modules/sys_file (Depends-on, Makefile.am): Likewise.
968         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
969         * modules/sys_select (Depends-on, Makefile.am): Likewise.
970         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
971         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
972         * modules/sys_times (Depends-on, Makefile.am): Likewise.
973         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
974         * modules/wchar (Depends-on, Makefile.am): Likewise.
975         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
976         should be poisoned.
977         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
978         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
979         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
980         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
981         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
982         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
983         * m4/math_h.m4 (gl_MATH_H): Likewise.
984         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
985         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
986         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
987         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
988         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
989         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
990         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
991         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
992         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
993         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
994         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
995         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
996         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
997         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
998         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
999         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1000         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1001         GL_LINK_WARNING.
1002         * lib/ctype.in.h: Likewise.
1003         * lib/dirent.in.h: Likewise.
1004         * lib/fcntl.in.h: Likewise.
1005         * lib/inttypes.in.h: Likewise.
1006         * lib/langinfo.in.h: Likewise.
1007         * lib/locale.in.h: Likewise.
1008         * lib/math.in.h: Likewise.
1009         * lib/search.in.h: Likewise.
1010         * lib/signal.in.h: Likewise.
1011         * lib/spawn.in.h: Likewise.
1012         * lib/stdio.in.h: Likewise.
1013         * lib/stdlib.in.h: Likewise.
1014         * lib/string.in.h: Likewise.
1015         * lib/strings.in.h: Likewise.
1016         * lib/sys_file.in.h: Likewise.
1017         * lib/sys_ioctl.in.h: Likewise.
1018         * lib/sys_select.in.h: Likewise.
1019         * lib/sys_socket.in.h: Likewise.
1020         * lib/sys_stat.in.h: Likewise.
1021         * lib/sys_times.in.h: Likewise.
1022         * lib/sys_utsname.in.h: Likewise.
1023         * lib/unistd.in.h: Likewise.
1024         * lib/wchar.in.h: Likewise.
1025
1026 2010-01-20  Bruno Haible  <bruno@clisp.org>
1027
1028         Avoid duplicate -lm.
1029         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1030         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1031         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1032         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1033         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1034         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1035         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1036         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1037         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1038         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1039         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1040         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1041         Reported by Paolo Bonzini.
1042
1043 2010-01-19  Bruno Haible  <bruno@clisp.org>
1044
1045         langinfo, nl_langinfo: Relicense under LGPLv2+.
1046         * modules/langinfo (License): Change to LGPLv2+.
1047         * modules/nl_langinfo (License): Likewise.
1048         Patch by David Lutterkort <lutter@redhat.com>.
1049
1050 2010-01-19  Bruno Haible  <bruno@clisp.org>
1051
1052         Avoid compilation error with cc on OSF/1 5.1.
1053         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1054         statement, not before.
1055         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1056
1057 2010-01-18  Bruno Haible  <bruno@clisp.org>
1058
1059         Avoid a link error due to the __printf__ symbol.
1060         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1061         and 2.6.x.
1062         (__format__, __printf__): Remove definitions.
1063         * lib/argp-fmtstream.h: Likewise.
1064         * lib/argp.h: Likewise.
1065         * lib/error.h: Likewise.
1066         * lib/vasnprintf.h: Likewise.
1067         * lib/xprintf.h: Likewise.
1068         * lib/xvasprintf.h: Likewise.
1069         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1070
1071 2010-01-18  Bruno Haible  <bruno@clisp.org>
1072
1073         Tests for module 'tanl'.
1074         * modules/tanl-tests: New file.
1075         * tests/test-tanl.c: New file.
1076
1077         Tests for module 'sqrtl'.
1078         * modules/sqrtl-tests: New file.
1079         * tests/test-sqrtl.c: New file.
1080
1081         Tests for module 'sinl'.
1082         * modules/sinl-tests: New file.
1083         * tests/test-sinl.c: New file.
1084
1085         Tests for module 'logl'.
1086         * modules/logl-tests: New file.
1087         * tests/test-logl.c: New file.
1088
1089         Tests for module 'expl'.
1090         * modules/expl-tests: New file.
1091         * tests/test-expl.c: New file.
1092
1093         Tests for module 'cosl'.
1094         * modules/cosl-tests: New file.
1095         * tests/test-cosl.c: New file.
1096
1097         Tests for module 'atanl'.
1098         * modules/atanl-tests: New file.
1099         * tests/test-atanl.c: New file.
1100
1101         Tests for module 'asinl'.
1102         * modules/asinl-tests: New file.
1103         * tests/test-asinl.c: New file.
1104
1105         Tests for module 'acosl'.
1106         * modules/acosl-tests: New file.
1107         * tests/test-acosl.c: New file.
1108
1109         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1110         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1111         tanl): Use the standard gnulib idiom.
1112         * lib/cosl.c: Don't include trigl.c and sincosl.c.
1113         * lib/sinl.c: Likewise.
1114         * lib/tanl.c: Don't include trigl.c.
1115         (kernel_tanl): Make static.
1116         * lib/sincosl.c: Include trigl.h first.
1117         * lib/trigl.c: Likewise.
1118         * m4/acosl.m4: New file.
1119         * m4/asinl.m4: New file.
1120         * m4/atanl.m4: New file.
1121         * m4/cosl.m4: New file.
1122         * m4/expl.m4: New file.
1123         * m4/logl.m4: New file.
1124         * m4/sinl.m4: New file.
1125         * m4/sqrtl.m4: New file.
1126         * m4/tanl.m4: New file.
1127         * m4/mathl.m4: Remove file.
1128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1129         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1130         Don't initialize GNULIB_MATHL.
1131         * modules/acosl: New file.
1132         * modules/asinl: New file.
1133         * modules/atanl: New file.
1134         * modules/cosl: New file.
1135         * modules/expl: New file.
1136         * modules/logl: New file.
1137         * modules/sinl: New file.
1138         * modules/sqrtl: New file.
1139         * modules/tanl: New file.
1140         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1141         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1142         substitute GNULIB_MATHL.
1143         * modules/mathl: Rewritten.
1144         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1145         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1146         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1147         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1148         * doc/posix-functions/expl.texi: Mention the 'expl' module.
1149         * doc/posix-functions/logl.texi: Mention the 'logl' module.
1150         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1151         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1152         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1153
1154 2010-01-18  Bruno Haible  <bruno@clisp.org>
1155
1156         sqrt: Make gl_FUNC_SQRT requirable.
1157         * m4/sqrt.m4: New file.
1158         * modules/sqrt (Files): Add it.
1159         (configure.ac): Invoke gl_FUNC_SQRT.
1160
1161 2010-01-18  Bruno Haible  <bruno@clisp.org>
1162
1163         New modules for common <math.h> functions.
1164         * m4/mathfunc.m4: New file.
1165         * modules/acos: New file.
1166         * modules/asin: New file.
1167         * modules/atan: New file.
1168         * modules/atan2: New file.
1169         * modules/cbrt: New file.
1170         * modules/copysign: New file.
1171         * modules/cos: New file.
1172         * modules/cosh: New file.
1173         * modules/erf: New file.
1174         * modules/erfc: New file.
1175         * modules/exp: New file.
1176         * modules/fabs: New file.
1177         * modules/fmod: New file.
1178         * modules/hypot: New file.
1179         * modules/j0: New file.
1180         * modules/j1: New file.
1181         * modules/jn: New file.
1182         * modules/ldexp: New file.
1183         * modules/lgamma: New file.
1184         * modules/log: New file.
1185         * modules/log10: New file.
1186         * modules/log1p: New file.
1187         * modules/logb: New file.
1188         * modules/modf: New file.
1189         * modules/nextafter: New file.
1190         * modules/pow: New file.
1191         * modules/remainder: New file.
1192         * modules/rint: New file.
1193         * modules/sin: New file.
1194         * modules/sinh: New file.
1195         * modules/sqrt: New file.
1196         * modules/tan: New file.
1197         * modules/tanh: New file.
1198         * modules/y0: New file.
1199         * modules/y1: New file.
1200         * modules/yn: New file.
1201         * doc/posix-functions/acos.texi: Mention the 'acos' module.
1202         * doc/posix-functions/asin.texi: Mention the 'asin' module.
1203         * doc/posix-functions/atan.texi: Mention the 'atan' module.
1204         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1205         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1206         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1207         * doc/posix-functions/cos.texi: Mention the 'cos' module.
1208         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1209         * doc/posix-functions/erf.texi: Mention the 'erf' module.
1210         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1211         * doc/posix-functions/exp.texi: Mention the 'exp' module.
1212         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1213         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1214         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1215         * doc/posix-functions/j0.texi: Mention the 'j0' module.
1216         * doc/posix-functions/j1.texi: Mention the 'j1' module.
1217         * doc/posix-functions/jn.texi: Mention the 'jn' module.
1218         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1219         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1220         * doc/posix-functions/log.texi: Mention the 'log' module.
1221         * doc/posix-functions/log10.texi: Mention the 'log10' module.
1222         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1223         * doc/posix-functions/logb.texi: Mention the 'logb' module.
1224         * doc/posix-functions/modf.texi: Mention the 'modf' module.
1225         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1226         * doc/posix-functions/pow.texi: Mention the 'pow' module.
1227         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1228         * doc/posix-functions/rint.texi: Mention the 'rint' module.
1229         * doc/posix-functions/sin.texi: Mention the 'sin' module.
1230         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1231         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1232         * doc/posix-functions/tan.texi: Mention the 'tan' module.
1233         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1234         * doc/posix-functions/y0.texi: Mention the 'y0' module.
1235         * doc/posix-functions/y1.texi: Mention the 'y1' module.
1236         * doc/posix-functions/yn.texi: Mention the 'yn' module.
1237
1238 2010-01-18  Jim Meyering  <meyering@redhat.com>
1239
1240         ignore-value: relax license to LGPLv2+
1241         * modules/ignore-value (License): Relax to LGPLv2+.
1242
1243         getdate: don't leak when TZ contains two or more '"'s
1244         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1245         double quote in TZ after the first one.
1246
1247         readtokens: do not leak internal token_lengths buffer
1248         * lib/readtokens.c (readtokens): Free the local, lengths,
1249         when the supplied "token_lengths" parameter is NULL.
1250
1251 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1252
1253         Fix a couple of missing LIBTHREAD link failures on AIX.
1254         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1255         $(LIBTHREAD).
1256         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1257
1258         Link test-poll against INET_PTON_LIB.
1259         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1260         for inet_pton on Solaris 10.
1261
1262 2010-01-17  Bruno Haible  <bruno@clisp.org>
1263
1264         unistdio/*-sprintf: Fix typo in module description.
1265         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1266         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1267         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1268         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1269         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1270         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1271         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1272         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1273
1274 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1275
1276         gnulib-tool: fix filelist for AIX, HP-UX ksh.
1277         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1278         variables in shell case patterns, for AIX and HP-UX ksh.
1279
1280         Split large sed scripts, for HP-UX sed.
1281         * modules/stdio: Split sed scripts around 50 sed commands,
1282         to avoid HP-UX limit of 99 commands, in the near future.
1283         * modules/string: Likewise.
1284         * modules/unistd: Likewise.
1285
1286         gnulib-tool: avoid writing in the current directory.
1287         * gnulib-tool (func_emit_lib_Makefile_am)
1288         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1289         not in the current directory, so concurrent gnulib-tool
1290         instances do not interfere.
1291
1292 2010-01-16  Jim Meyering  <meyering@redhat.com>
1293
1294         doc: update users.txt
1295         * users.txt: Add grep.
1296         (diffutils, gzip): Update URLs.
1297
1298 2010-01-12  Bruno Haible  <bruno@clisp.org>
1299
1300         posix_spawn: Avoid test failure on Cygwin.
1301         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
1302         characters.
1303         Reported by Simon Josefsson.
1304
1305 2010-01-12  Bruno Haible  <bruno@clisp.org>
1306
1307         * tests/test-cond.c (main): When skipping the test, show the reason.
1308
1309 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1310
1311         * lib/striconv.c (str_cd_iconv): Avoid if before free.
1312
1313 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1314
1315         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
1316         VC_LIST_ALWAYS_EXCLUDE_REGEX.
1317
1318 2010-01-12  Eric Blake  <ebb9@byu.net>
1319
1320         build: guarantee AS_VAR_IF
1321         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
1322         (gl_AS_VAR_IF): Move...
1323         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
1324         Reported by Simon Josefsson.
1325
1326 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1327
1328         * lib/stdio.in.h: Fix typo.
1329
1330 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1331
1332         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
1333         libgpg-error.
1334
1335 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1336
1337         * tests/test-xalloc-die.sh: Use $EXEEXT.
1338
1339 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1340             Bruno Haible  <bruno@clisp.org>
1341
1342         getlogin, getlogin_r: Avoid test failure.
1343         * tests/test-getlogin.c: Include <stdio.h>.
1344         (main): Skip the test when the function fails because stdin is not a
1345         tty.
1346         * tests/test-getlogin_r.c: Include <stdio.h>.
1347         (main): Skip the test when the function fails because stdin is not a
1348         tty.
1349
1350 2010-01-11  Eric Blake  <ebb9@byu.net>
1351
1352         tests: avoid more large file warnings
1353         * tests/test-fflush.c: Avoid warning about ftell use.
1354         * tests/test-fseek.c: Avoid warning about fseek use.
1355
1356 2010-01-10  Bruno Haible  <bruno@clisp.org>
1357
1358         nproc: Work better on Linux when /proc and /sys are not mounted.
1359         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
1360         as lower bound when, on glibc/Linux systems,
1361         sysconf (_SC_NPROCESSORS_CONF) returns 1.
1362         Suggested by Pádraig Brady <P@draigbrady.com>.
1363         Reported by Dmitry V. Levin <ldv@altlinux.org>.
1364
1365         nproc: Refactor.
1366         * lib/nproc.c (num_processors_via_affinity_mask): New function,
1367         extracted from num_processors.
1368         (num_processors): Call it.
1369
1370 2010-01-11  Jim Meyering  <meyering@redhat.com>
1371
1372         utimecmp: avoid new warning from upcoming gcc-4.5.0
1373         * lib/utimecmp.c (BILLION): Define using #define rather than an
1374         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
1375
1376 2010-01-11  Eric Blake  <ebb9@byu.net>
1377
1378         math: add portability warnings for classification macros
1379         * modules/math (Depends-on): Add warn-on-use.
1380         (Makefile.am): Provide new substitutions.
1381         * m4/math_h.m4 (gl_MATH_H): Require inline.
1382         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
1383         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
1384         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
1385         implement warnings.
1386
1387         unistd: warn on use of environ without module
1388         * modules/unistd (Depends-on): Add warn-on-use.
1389         (Makefile.am): Provide new substitutions.
1390         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
1391         * lib/unistd.in.h (environ): Wrap with a warning helper function.
1392
1393         stdio: warn on suspicious uses
1394         * modules/stdio (Depends-on): Add warn-on-use.
1395         (Makefile.am): Provide new substitutions.
1396         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
1397         fseeko.
1398         * lib/stdio.in.h (gets): Always warn on use.
1399         (fseek, ftell): Adjust when warnings are issued, and honor
1400         _GL_NO_LARGE_FILES as a way to silence the warning.
1401         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
1402         any warning about large file offsets.
1403         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
1404         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
1405         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
1406         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
1407         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
1408         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
1409         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
1410         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
1411
1412         warn-on-use: new module
1413         * modules/warn-on-use: New file.
1414         * build-aux/warn-on-use.h: Likewise.
1415         * m4/warn-on-use.m4: Likewise.
1416         * MODULES.html.sh (Support for building): Mention it.
1417
1418 2010-01-10  Bruno Haible  <bruno@clisp.org>
1419
1420         Tests for module 'unistr/u32-strdup'.
1421         * modules/unistr/u32-strdup-tests: New file.
1422         * tests/unistr/test-u32-strdup.c: New file.
1423
1424         Tests for module 'unistr/u16-strdup'.
1425         * modules/unistr/u16-strdup-tests: New file.
1426         * tests/unistr/test-u16-strdup.c: New file.
1427
1428         Tests for module 'unistr/u8-strdup'.
1429         * modules/unistr/u8-strdup-tests: New file.
1430         * tests/unistr/test-u8-strdup.c: New file.
1431         * tests/unistr/test-strdup.h: New file.
1432
1433         Tests for module 'unistr/u32-strncmp'.
1434         * modules/unistr/u32-strncmp-tests: New file.
1435         * tests/unistr/test-u32-strncmp.c: New file.
1436
1437         Tests for module 'unistr/u16-strncmp'.
1438         * modules/unistr/u16-strncmp-tests: New file.
1439         * tests/unistr/test-u16-strncmp.c: New file.
1440
1441         Tests for module 'unistr/u8-strncmp'.
1442         * modules/unistr/u8-strncmp-tests: New file.
1443         * tests/unistr/test-u8-strncmp.c: New file.
1444         * tests/unistr/test-strncmp.h: New file.
1445
1446         Tests for module 'unistr/u32-strcoll'.
1447         * modules/unistr/u32-strcoll-tests: New file.
1448         * tests/unistr/test-u32-strcoll.c: New file.
1449
1450         Tests for module 'unistr/u16-strcoll'.
1451         * modules/unistr/u16-strcoll-tests: New file.
1452         * tests/unistr/test-u16-strcoll.c: New file.
1453
1454         Tests for module 'unistr/u8-strcoll'.
1455         * modules/unistr/u8-strcoll-tests: New file.
1456         * tests/unistr/test-u8-strcoll.c: New file.
1457
1458         Tests for module 'unistr/u32-strcmp'.
1459         * modules/unistr/u32-strcmp-tests: New file.
1460         * tests/unistr/test-u32-strcmp.c: New file.
1461         * tests/unistr/test-u32-strcmp.h: New file.
1462
1463         Tests for module 'unistr/u16-strcmp'.
1464         * modules/unistr/u16-strcmp-tests: New file.
1465         * tests/unistr/test-u16-strcmp.c: New file.
1466         * tests/unistr/test-u16-strcmp.h: New file.
1467
1468         Tests for module 'unistr/u8-strcmp'.
1469         * modules/unistr/u8-strcmp-tests: New file.
1470         * tests/unistr/test-u8-strcmp.c: New file.
1471         * tests/unistr/test-u8-strcmp.h: New file.
1472         * tests/unistr/test-strcmp.h: New file.
1473
1474         Tests for module 'unistr/u32-strncat'.
1475         * modules/unistr/u32-strncat-tests: New file.
1476         * tests/unistr/test-u32-strncat.c: New file.
1477
1478         Tests for module 'unistr/u16-strncat'.
1479         * modules/unistr/u16-strncat-tests: New file.
1480         * tests/unistr/test-u16-strncat.c: New file.
1481
1482         Tests for module 'unistr/u8-strncat'.
1483         * modules/unistr/u8-strncat-tests: New file.
1484         * tests/unistr/test-u8-strncat.c: New file.
1485         * tests/unistr/test-strncat.h: New file.
1486
1487         Tests for module 'unistr/u32-strcat'.
1488         * modules/unistr/u32-strcat-tests: New file.
1489         * tests/unistr/test-u32-strcat.c: New file.
1490
1491         Tests for module 'unistr/u16-strcat'.
1492         * modules/unistr/u16-strcat-tests: New file.
1493         * tests/unistr/test-u16-strcat.c: New file.
1494
1495         Tests for module 'unistr/u8-strcat'.
1496         * modules/unistr/u8-strcat-tests: New file.
1497         * tests/unistr/test-u8-strcat.c: New file.
1498         * tests/unistr/test-strcat.h: New file.
1499
1500         Tests for module 'unistr/u32-stpncpy'.
1501         * modules/unistr/u32-stpncpy-tests: New file.
1502         * tests/unistr/test-u32-stpncpy.c: New file.
1503
1504         Tests for module 'unistr/u16-stpncpy'.
1505         * modules/unistr/u16-stpncpy-tests: New file.
1506         * tests/unistr/test-u16-stpncpy.c: New file.
1507
1508         Tests for module 'unistr/u8-stpncpy'.
1509         * modules/unistr/u8-stpncpy-tests: New file.
1510         * tests/unistr/test-u8-stpncpy.c: New file.
1511         * tests/unistr/test-stpncpy.h: New file.
1512
1513         Tests for module 'unistr/u32-strncpy'.
1514         * modules/unistr/u32-strncpy-tests: New file.
1515         * tests/unistr/test-u32-strncpy.c: New file.
1516
1517         Tests for module 'unistr/u16-strncpy'.
1518         * modules/unistr/u16-strncpy-tests: New file.
1519         * tests/unistr/test-u16-strncpy.c: New file.
1520
1521         Tests for module 'unistr/u8-strncpy'.
1522         * modules/unistr/u8-strncpy-tests: New file.
1523         * tests/unistr/test-u8-strncpy.c: New file.
1524         * tests/unistr/test-strncpy.h: New file.
1525
1526         Tests for module 'unistr/u32-stpcpy'.
1527         * modules/unistr/u32-stpcpy-tests: New file.
1528         * tests/unistr/test-u32-stpcpy.c: New file.
1529
1530         Tests for module 'unistr/u16-stpcpy'.
1531         * modules/unistr/u16-stpcpy-tests: New file.
1532         * tests/unistr/test-u16-stpcpy.c: New file.
1533
1534         Tests for module 'unistr/u8-stpcpy'.
1535         * modules/unistr/u8-stpcpy-tests: New file.
1536         * tests/unistr/test-u8-stpcpy.c: New file.
1537         * tests/unistr/test-stpcpy.h: New file.
1538
1539         Tests for module 'unistr/u32-strcpy'.
1540         * modules/unistr/u32-strcpy-tests: New file.
1541         * tests/unistr/test-u32-strcpy.c: New file.
1542
1543         Tests for module 'unistr/u16-strcpy'.
1544         * modules/unistr/u16-strcpy-tests: New file.
1545         * tests/unistr/test-u16-strcpy.c: New file.
1546
1547         Tests for module 'unistr/u8-strcpy'.
1548         * modules/unistr/u8-strcpy-tests: New file.
1549         * tests/unistr/test-u8-strcpy.c: New file.
1550         * tests/unistr/test-strcpy.h: New file.
1551
1552         Tests for module 'unistr/u32-strnlen'.
1553         * modules/unistr/u32-strnlen-tests: New file.
1554         * tests/unistr/test-u32-strnlen.c: New file.
1555
1556         Tests for module 'unistr/u16-strnlen'.
1557         * modules/unistr/u16-strnlen-tests: New file.
1558         * tests/unistr/test-u16-strnlen.c: New file.
1559
1560         Tests for module 'unistr/u8-strnlen'.
1561         * modules/unistr/u8-strnlen-tests: New file.
1562         * tests/unistr/test-u8-strnlen.c: New file.
1563         * tests/unistr/test-strnlen.h: New file.
1564
1565         Tests for module 'unistr/u32-strlen'.
1566         * modules/unistr/u32-strlen-tests: New file.
1567         * tests/unistr/test-u32-strlen.c: New file.
1568
1569         Tests for module 'unistr/u16-strlen'.
1570         * modules/unistr/u16-strlen-tests: New file.
1571         * tests/unistr/test-u16-strlen.c: New file.
1572
1573         Tests for module 'unistr/u8-strlen'.
1574         * modules/unistr/u8-strlen-tests: New file.
1575         * tests/unistr/test-u8-strlen.c: New file.
1576
1577         Tests for module 'unistr/u32-prev'.
1578         * modules/unistr/u32-prev-tests: New file.
1579         * tests/unistr/test-u32-prev.c: New file.
1580
1581         Tests for module 'unistr/u16-prev'.
1582         * modules/unistr/u16-prev-tests: New file.
1583         * tests/unistr/test-u16-prev.c: New file.
1584
1585         Tests for module 'unistr/u8-prev'.
1586         * modules/unistr/u8-prev-tests: New file.
1587         * tests/unistr/test-u8-prev.c: New file.
1588
1589         Tests for module 'unistr/u32-next'.
1590         * modules/unistr/u32-next-tests: New file.
1591         * tests/unistr/test-u32-next.c: New file.
1592
1593         Tests for module 'unistr/u16-next'.
1594         * modules/unistr/u16-next-tests: New file.
1595         * tests/unistr/test-u16-next.c: New file.
1596
1597         Tests for module 'unistr/u8-next'.
1598         * modules/unistr/u8-next-tests: New file.
1599         * tests/unistr/test-u8-next.c: New file.
1600
1601         Tests for module 'unistr/u32-strmbtouc'.
1602         * modules/unistr/u32-strmbtouc-tests: New file.
1603         * tests/unistr/test-u32-strmbtouc.c: New file.
1604
1605         Tests for module 'unistr/u16-strmbtouc'.
1606         * modules/unistr/u16-strmbtouc-tests: New file.
1607         * tests/unistr/test-u16-strmbtouc.c: New file.
1608
1609         Tests for module 'unistr/u8-strmbtouc'.
1610         * modules/unistr/u8-strmbtouc-tests: New file.
1611         * tests/unistr/test-u8-strmbtouc.c: New file.
1612
1613         Tests for module 'unistr/u32-strmblen'.
1614         * modules/unistr/u32-strmblen-tests: New file.
1615         * tests/unistr/test-u32-strmblen.c: New file.
1616
1617         Tests for module 'unistr/u16-strmblen'.
1618         * modules/unistr/u16-strmblen-tests: New file.
1619         * tests/unistr/test-u16-strmblen.c: New file.
1620
1621         Tests for module 'unistr/u8-strmblen'.
1622         * modules/unistr/u8-strmblen-tests: New file.
1623         * tests/unistr/test-u8-strmblen.c: New file.
1624
1625         Tests for module 'unistr/u32-cpy-alloc'.
1626         * modules/unistr/u32-cpy-alloc-tests: New file.
1627         * tests/unistr/test-u32-cpy-alloc.c: New file.
1628
1629         Tests for module 'unistr/u16-cpy-alloc'.
1630         * modules/unistr/u16-cpy-alloc-tests: New file.
1631         * tests/unistr/test-u16-cpy-alloc.c: New file.
1632
1633         Tests for module 'unistr/u8-cpy-alloc'.
1634         * modules/unistr/u8-cpy-alloc-tests: New file.
1635         * tests/unistr/test-u8-cpy-alloc.c: New file.
1636         * tests/unistr/test-cpy-alloc.h: New file.
1637
1638         Tests for module 'unistr/u32-mbsnlen'.
1639         * modules/unistr/u32-mbsnlen-tests: New file.
1640         * tests/unistr/test-u32-mbsnlen.c: New file.
1641
1642         Tests for module 'unistr/u16-mbsnlen'.
1643         * modules/unistr/u16-mbsnlen-tests: New file.
1644         * tests/unistr/test-u16-mbsnlen.c: New file.
1645
1646         Tests for module 'unistr/u8-mbsnlen'.
1647         * modules/unistr/u8-mbsnlen-tests: New file.
1648         * tests/unistr/test-u8-mbsnlen.c: New file.
1649
1650         Tests for module 'unistr/u32-chr'.
1651         * modules/unistr/u32-chr-tests: New file.
1652         * tests/unistr/test-u32-chr.c: New file.
1653
1654         Tests for module 'unistr/u16-chr'.
1655         * modules/unistr/u16-chr-tests: New file.
1656         * tests/unistr/test-u16-chr.c: New file.
1657
1658         Tests for module 'unistr/u8-chr'.
1659         * modules/unistr/u8-chr-tests: New file.
1660         * tests/unistr/test-u8-chr.c: New file.
1661         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
1662
1663         Tests for module 'unistr/u32-cmp2'.
1664         * modules/unistr/u32-cmp2-tests: New file.
1665         * tests/unistr/test-u32-cmp2.c: New file.
1666
1667         Tests for module 'unistr/u16-cmp2'.
1668         * modules/unistr/u16-cmp2-tests: New file.
1669         * tests/unistr/test-u16-cmp2.c: New file.
1670
1671         Tests for module 'unistr/u8-cmp2'.
1672         * modules/unistr/u8-cmp2-tests: New file.
1673         * tests/unistr/test-u8-cmp2.c: New file.
1674         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
1675
1676         Tests for module 'unistr/u32-cmp'.
1677         * modules/unistr/u32-cmp-tests: New file.
1678         * tests/unistr/test-u32-cmp.c: New file.
1679
1680         Tests for module 'unistr/u16-cmp'.
1681         * modules/unistr/u16-cmp-tests: New file.
1682         * tests/unistr/test-u16-cmp.c: New file.
1683
1684         Tests for module 'unistr/u8-cmp'.
1685         * modules/unistr/u8-cmp-tests: New file.
1686         * tests/unistr/test-u8-cmp.c: New file.
1687         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
1688
1689         Tests for module 'unistr/u32-set'.
1690         * modules/unistr/u32-set-tests: New file.
1691         * tests/unistr/test-u32-set.c: New file.
1692
1693         Tests for module 'unistr/u16-set'.
1694         * modules/unistr/u16-set-tests: New file.
1695         * tests/unistr/test-u16-set.c: New file.
1696
1697         Tests for module 'unistr/u8-set'.
1698         * modules/unistr/u8-set-tests: New file.
1699         * tests/unistr/test-u8-set.c: New file.
1700         * tests/unistr/test-set.h: New file.
1701
1702         Tests for module 'unistr/u32-move'.
1703         * modules/unistr/u32-move-tests: New file.
1704         * tests/unistr/test-u32-move.c: New file.
1705
1706         Tests for module 'unistr/u16-move'.
1707         * modules/unistr/u16-move-tests: New file.
1708         * tests/unistr/test-u16-move.c: New file.
1709
1710         Tests for module 'unistr/u8-move'.
1711         * modules/unistr/u8-move-tests: New file.
1712         * tests/unistr/test-u8-move.c: New file.
1713         * tests/unistr/test-move.h: New file.
1714
1715         Tests for module 'unistr/u32-cpy'.
1716         * modules/unistr/u32-cpy-tests: New file.
1717         * tests/unistr/test-u32-cpy.c: New file.
1718
1719         Tests for module 'unistr/u16-cpy'.
1720         * modules/unistr/u16-cpy-tests: New file.
1721         * tests/unistr/test-u16-cpy.c: New file.
1722
1723         Tests for module 'unistr/u8-cpy'.
1724         * modules/unistr/u8-cpy-tests: New file.
1725         * tests/unistr/test-u8-cpy.c: New file.
1726         * tests/unistr/test-cpy.h: New file.
1727
1728 2010-01-09  Bruno Haible  <bruno@clisp.org>
1729
1730         Tests for module 'unistr/u32-uctomb'.
1731         * modules/unistr/u32-uctomb-tests: New file.
1732         * tests/unistr/test-u32-uctomb.c: New file.
1733
1734         Tests for module 'unistr/u16-uctomb'.
1735         * modules/unistr/u16-uctomb-tests: New file.
1736         * tests/unistr/test-u16-uctomb.c: New file.
1737
1738         Tests for module 'unistr/u8-uctomb'.
1739         * modules/unistr/u8-uctomb-tests: New file.
1740         * tests/unistr/test-u8-uctomb.c: New file.
1741
1742         Tests for module 'unistr/u32-mbtoucr'.
1743         * modules/unistr/u32-mbtoucr-tests: New file.
1744         * tests/unistr/test-u32-mbtoucr.c: New file.
1745
1746         Tests for module 'unistr/u16-mbtoucr'.
1747         * modules/unistr/u16-mbtoucr-tests: New file.
1748         * tests/unistr/test-u16-mbtoucr.c: New file.
1749
1750         Tests for module 'unistr/u8-mbtoucr'.
1751         * modules/unistr/u8-mbtoucr-tests: New file.
1752         * tests/unistr/test-u8-mbtoucr.c: New file.
1753
1754         Tests for module 'unistr/u32-mbtouc'.
1755         * modules/unistr/u32-mbtouc-tests: New file.
1756         * tests/unistr/test-u32-mbtouc.c: New file.
1757
1758         Tests for module 'unistr/u16-mbtouc'.
1759         * modules/unistr/u16-mbtouc-tests: New file.
1760         * tests/unistr/test-u16-mbtouc.c: New file.
1761
1762         Tests for module 'unistr/u8-mbtouc'.
1763         * modules/unistr/u8-mbtouc-tests: New file.
1764         * tests/unistr/test-u8-mbtouc.c: New file.
1765
1766         Tests for module 'unistr/u32-mbtouc-unsafe'.
1767         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
1768         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
1769         * tests/unistr/test-u32-mbtouc.h: New file.
1770
1771         Tests for module 'unistr/u16-mbtouc-unsafe'.
1772         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
1773         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
1774         * tests/unistr/test-u16-mbtouc.h: New file.
1775
1776         Tests for module 'unistr/u8-mbtouc-unsafe'.
1777         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
1778         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
1779         * tests/unistr/test-u8-mbtouc.h: New file.
1780
1781         Tests for module 'unistr/u32-mblen'.
1782         * modules/unistr/u32-mblen-tests: New file.
1783         * tests/unistr/test-u32-mblen.c: New file.
1784
1785         Tests for module 'unistr/u16-mblen'.
1786         * modules/unistr/u16-mblen-tests: New file.
1787         * tests/unistr/test-u16-mblen.c: New file.
1788
1789         Tests for module 'unistr/u8-mblen'.
1790         * modules/unistr/u8-mblen-tests: New file.
1791         * tests/unistr/test-u8-mblen.c: New file.
1792
1793         Tests for module 'unistr/u32-to-u16'.
1794         * modules/unistr/u32-to-u16-tests: New file.
1795         * tests/unistr/test-u32-to-u16.c: New file.
1796
1797         Tests for module 'unistr/u32-to-u8'.
1798         * modules/unistr/u32-to-u8-tests: New file.
1799         * tests/unistr/test-u32-to-u8.c: New file.
1800
1801         Tests for module 'unistr/u16-to-u32'.
1802         * modules/unistr/u16-to-u32-tests: New file.
1803         * tests/unistr/test-u16-to-u32.c: New file.
1804
1805         Tests for module 'unistr/u16-to-u8'.
1806         * modules/unistr/u16-to-u8-tests: New file.
1807         * tests/unistr/test-u16-to-u8.c: New file.
1808
1809         Tests for module 'unistr/u8-to-u32'.
1810         * modules/unistr/u8-to-u32-tests: New file.
1811         * tests/unistr/test-u8-to-u32.c: New file.
1812
1813         Tests for module 'unistr/u8-to-u16'.
1814         * modules/unistr/u8-to-u16-tests: New file.
1815         * tests/unistr/test-u8-to-u16.c: New file.
1816
1817         Tests for module 'unistr/u32-check'.
1818         * modules/unistr/u32-check-tests: New file.
1819         * tests/unistr/test-u32-check.c: New file.
1820
1821         Tests for module 'unistr/u16-check'.
1822         * modules/unistr/u16-check-tests: New file.
1823         * tests/unistr/test-u16-check.c: New file.
1824
1825         Tests for module 'unistr/u8-check'.
1826         * modules/unistr/u8-check-tests: New file.
1827         * tests/unistr/test-u8-check.c: New file.
1828
1829         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
1830         (category_equals): New function.
1831         (main): Add more tests.
1832         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
1833
1834         * tests/unictype/test-bidi_byname.c (main): Add more tests.
1835
1836 2010-01-10  Bruno Haible  <bruno@clisp.org>
1837
1838         unistr/u*-strcoll: Try harder to distinguish different strings.
1839         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
1840         compare s1 and s2 to see if they are different.
1841
1842 2010-01-10  Bruno Haible  <bruno@clisp.org>
1843
1844         unistr/u*-stpncpy: Fix the return value.
1845         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
1846         description of the return value consistent with stpncpy in glibc.
1847         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
1848         written non-NUL unit.
1849
1850 2010-01-10  Bruno Haible  <bruno@clisp.org>
1851
1852         unistr/u*-next: Add missing dependencies.
1853         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
1854         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
1855         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
1856
1857 2010-01-10  Bruno Haible  <bruno@clisp.org>
1858
1859         unistr/u8-mbsnlen: Fix return value for incomplete character.
1860         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
1861         u8_mblen.
1862         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
1863         Remove unistr/u8-mblen.
1864         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
1865         u16_mblen.
1866         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
1867         Remove unistr/u16-mblen.
1868
1869 2010-01-10  Bruno Haible  <bruno@clisp.org>
1870
1871         wchar: Fix compilation error when <wchar.h> is used from coreutils.
1872         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
1873         Reported by Brian Gough <bjg@gnu.org> and
1874         Chris Clayton <chris2553@googlemail.com> via
1875         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
1876
1877 2010-01-09  Bruno Haible  <bruno@clisp.org>
1878
1879         unistr/u16-to-u32: Reject invalid input.
1880         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
1881         u16_mbtouc.
1882         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
1883         Remove unistr/u16-mbtouc.
1884
1885         unistr/u16-to-u8: Reject invalid input.
1886         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
1887         u16_mbtouc.
1888         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
1889         Remove unistr/u16-mbtouc.
1890
1891         unistr/u8-to-u32: Reject invalid input.
1892         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
1893         u8_mbtouc.
1894         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
1895         Remove unistr/u8-mbtouc.
1896
1897         unistr/u8-to-u16: Reject invalid input.
1898         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
1899         u8_mbtouc.
1900         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
1901         Remove unistr/u8-mbtouc.
1902
1903 2010-01-09  Bruno Haible  <bruno@clisp.org>
1904
1905         Tests for module 'getlogin'.
1906         * modules/getlogin-tests: New file.
1907         * tests/test-getlogin.c: New file.
1908
1909         New module 'getlogin'.
1910         * lib/unistd.in.h (getlogin): New declaration.
1911         * lib/getlogin.c: New file.
1912         * m4/getlogin.m4: New file.
1913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
1914         HAVE_GETLOGIN.
1915         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
1916         HAVE_GETLOGIN.
1917         * modules/getlogin: New file.
1918         * doc/posix-functions/getlogin.texi: Mention the new module.
1919         Reported by John W. Eaton <jwe@gnu.org>.
1920
1921 2010-01-09  Bruno Haible  <bruno@clisp.org>
1922
1923         getlogin_r: Support for native Windows.
1924         * lib/getlogin_r.c: Include <windows.h>
1925         (getlogin_r): Implement for native Windows.
1926         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
1927         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
1928         via John W. Eaton <jwe@gnu.org>.
1929
1930 2010-01-09  Bruno Haible  <bruno@clisp.org>
1931
1932         getlogin_r: Small fixes.
1933         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
1934         succeeds.
1935         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
1936         before testing whether getlogin_r is declared. No need to set
1937         HAVE_DECL_GETLOGIN_R to 1.
1938         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
1939
1940 2010-01-09  Bruno Haible  <bruno@clisp.org>
1941
1942         * lib/unistd.in.h (getlogin_r): Add comment.
1943
1944 2010-01-09  Bruno Haible  <bruno@clisp.org>
1945
1946         Tests for module 'getlogin_r'.
1947         * modules/getlogin_r-tests: New file.
1948         * tests/test-getlogin_r.c: New file.
1949
1950 2010-01-09  Jim Meyering  <meyering@redhat.com>
1951
1952         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
1953         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
1954         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
1955
1956 2010-01-08  Simon Josefsson  <simon@josefsson.org>
1957
1958         * lib/dup2.c (rpl_dup2): Improve comment.
1959
1960 2010-01-08  Eric Blake  <ebb9@byu.net>
1961
1962         maint.mk: allow packages to add makefile @@ exceptions
1963         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
1964         (sc_makefile_check): Rename...
1965         (sc_makefile_at_at_check): ...to this, and use hook.
1966
1967         dup2: work around mingw bug
1968         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
1969         Reported by Simon Josefsson.
1970
1971 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
1972
1973         glob: Fix C++ compilation.
1974         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
1975         C++.
1976
1977 2010-01-07  Bruno Haible  <bruno@clisp.org>
1978
1979         Fix indentation of wctype.in.h, broken since 2007-01-06.
1980         * lib/wctype.in.h: Fix indentation of preprocessor directives.
1981
1982 2010-01-07  Bruno Haible  <bruno@clisp.org>
1983
1984         mbslen: Avoid collision with system function.
1985         * lib/string.in.h [MirBSD]: Include <wchar.h>.
1986         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
1987         * m4/mbslen.m4: New file.
1988         * modules/mbslen (Files): Add it.
1989         (configure.ac): Invoke gl_MBSLEN.
1990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
1991         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
1992         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
1993         via Ian Beckwith <ianb@erislabs.net>.
1994
1995 2010-01-07  Bruno Haible  <bruno@clisp.org>
1996
1997         dirent: Document the last fix.
1998         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
1999
2000 2010-01-07  Bruno Haible  <bruno@clisp.org>
2001
2002         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2003         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2004         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2005         va_list are defined.
2006         * doc/posix-headers/stdio.texi: Document the bug of missing types.
2007         Reported by Eric Blake.
2008
2009 2010-01-07  Bruno Haible  <bruno@clisp.org>
2010
2011         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2012         * modules/xlist (Depends-on): Add 'list',
2013         * modules/xoset (Depends-on): Add 'oset'.
2014         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2015
2016 2010-01-07  Bruno Haible  <bruno@clisp.org>
2017
2018         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2019         * doc/posix-functions/strncasecmp.texi: Likewise.
2020
2021 2010-01-07  Bruno Haible  <bruno@clisp.org>
2022
2023         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2024
2025 2010-01-07  John W. Eaton  <jwe@octave.org>
2026
2027         wctype: allow C++ use
2028         * lib/wctype.in.h: Add extern "C" block for C++.
2029
2030 2010-01-06  Eric Blake  <ebb9@byu.net>
2031
2032         maint.mk: detect incorrect GFDL usage
2033         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2034
2035 2010-01-06  Jim Meyering  <meyering@redhat.com>
2036         and Eric Blake  <ebb9@byu.net>
2037
2038         maint.mk: ignore multi-line copyright in NEWS
2039         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2040
2041 2010-01-06  Eric Blake  <ebb9@byu.net>
2042
2043         select: add missing dependency
2044         * modules/select-tests (Depends-on): Move sockets dependency...
2045         * modules/select (Depends-on): ...here.
2046         Reported by Ian Beckwith.
2047
2048         doc: regenerate INSTALL
2049         * doc/INSTALL: Reflect recent autoconf update.
2050         * doc/INSTALL.ISO: Likewise.
2051         * doc/INSTALL.UTF-8: Likewise.
2052
2053         pread: fix compilation on glibc
2054         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2055         Reported by Ralf Wildenhues.
2056
2057         dirent: fix test failure
2058         * lib/dirent.in.h (includes): Guarantee ino_t.
2059         Reported by Ralf Wildenhues.
2060
2061 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
2062
2063         linkat, renameat: avoid bad free
2064         * lib/at-func2.c (at_func2): Fix typo.
2065         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2066
2067 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2068
2069         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2070         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2071         to avoid failure of symlink test later.
2072
2073 2010-01-06  Eric Blake  <ebb9@byu.net>
2074
2075         stdio, unistd: guarantee ssize_t
2076         * lib/unistd.in.h (includes): Ensure that types required by POSIX
2077         2008 are exposed when needed.
2078         * lib/stdio.in.h (includes): Likewise.
2079         Reported by Ralf Wildenhues.
2080
2081 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
2082
2083         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2084         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2085         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2086
2087 2010-01-06  Jim Meyering  <meyering@redhat.com>
2088
2089         readtokens: this module *does* require xalloc.h
2090         It uses only functions that were omitted by the old syntax-check rule.
2091         * lib/readtokens.c: Include "xalloc.h" once again.
2092         * modules/readtokens (Depends-on): Add xalloc.
2093         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2094
2095 2010-01-05  Eric Blake  <ebb9@byu.net>
2096
2097         maint: support 'make announcement' from a VPATH build
2098         * top/maint.mk (announcement): Look for correct NEWS file.
2099
2100 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
2101
2102         utimens (fdutimens): ignore a negative FD, per contract
2103         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2104         when we have a valid file descriptor.  Otherwise, using a brand
2105         new glibc (with just-patched futimens that now fails with EBADF)
2106         would cause this function to fail with ENOSYS.
2107         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2108         See also http://bugzilla.redhat.com/552320.
2109
2110 2010-01-05  Eric Blake  <ebb9@byu.net>
2111
2112         strcase: document what it provides
2113         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2114         gnulib module.
2115         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2116         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2117
2118 2010-01-05  Jim Meyering  <meyering@redhat.com>
2119
2120         maint: remove useless inclusions of "xalloc.h"
2121         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2122         * lib/readtokens.c: Likewise.
2123         * lib/same.c: Likewise.
2124         * modules/getloadavg (Depends-on): Remove xalloc.
2125         * modules/readtokens: Likewise.
2126         * modules/same: Likewise.
2127
2128         maint.mk: include 4 more function names in alloca.h-checking regexp
2129         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2130         regexp.  Before, we would give a false-positive (saying alloca.h
2131         is included unnecessarily) when the only uses involved omitted symbols.
2132
2133         xalloc.h: use consistent formatting
2134         * lib/xalloc.h: Move declarations to start in the first column.
2135
2136 2010-01-05  Eric Blake  <ebb9@byu.net>
2137
2138         mkdir: avoid xalloc
2139         * lib/mkdir.c (includes): Drop unused header.
2140         Reported by John W. Eaton.
2141
2142 2010-01-04  Jim Meyering  <meyering@redhat.com>
2143
2144         nl_langinfo: avoid configure-time syntax error
2145         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2146         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2147         the empty string.  Don't let that provoke a shell syntax error.
2148
2149         regcomp, regexec, fnmatch: avoid array bounds read error
2150         * lib/regcomp.c (build_equiv_class): From glibc:
2151         Use only the low 24 bits of a findidx return value as an index
2152         into the weights array.  Patch by Ulrich Drepper:
2153         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2154         * lib/regexec.c (check_node_accept_bytes): Likewise.
2155         * lib/fnmatch_loop.c (FCT): Likewise.
2156
2157         regcomp: skip collseq lookup when there are no rules
2158         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2159         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2160
2161         regcomp: recognize ill-formed { } expressions
2162         * lib/regcomp.c (parse_dup_op): From glibc:
2163         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2164
2165         regcomp: fix typo in comment
2166         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2167         s/satisfy/satisfies/.
2168
2169         regcomp: sync from glibc: remove dead store
2170         * lib/regcomp.c (duplicate_node_closure): Remove useless
2171         search_duplicated_node call and dead store.
2172
2173         regcomp: sync from glibc; always use nl_langinfo
2174         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2175         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
2176         * modules/regex (Depends-on): Add nl_langinfo.
2177
2178 2010-01-04  Eric Blake  <ebb9@byu.net>
2179
2180         fdopendir: fix configure test
2181         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2182
2183 2010-01-01  Bruno Haible  <bruno@clisp.org>
2184
2185         wchar: Remove unused configure check.
2186         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2187
2188 2010-01-01  Eric Blake  <ebb9@byu.net>
2189
2190         headers: make check of system header explicit
2191         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2192         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2193         ourselves.
2194         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2195         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2196         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2197         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2198         internals.
2199         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2200         missing.
2201         Suggested by Bruno Haible.
2202
2203 2010-01-01  Jim Meyering  <meyering@redhat.com>
2204
2205         ChangeLog: tweak to eliminate unnecessary copyright line
2206         * ChangeLog: Remove a copyright line that was mistakenly updated
2207         by today's update-copyright run.  Reported by Eric Blake.
2208
2209         test-update-copyright: don't let envvar setting cause test failure
2210         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2211
2212 2010-01-01  Bruno Haible  <bruno@clisp.org>
2213
2214         localename: Avoid gcc warning.
2215         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2216         function if it is not used.
2217
2218 2010-01-01  Jim Meyering  <meyering@redhat.com>
2219
2220         update nearly all FSF copyright year lists to include 2010
2221         Use the same procedure as for 2009, outlined in
2222         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2223
2224         version-etc: set COPYRIGHT_YEAR to 2010
2225         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2226
2227 2009-12-31  Eric Blake  <ebb9@byu.net>
2228
2229         doc: correct availability of cygwin 1.5.x getopt
2230         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2231         variables.
2232         * doc/posix-functions/opterr.texi (opterr): Likewise.
2233         * doc/posix-functions/optind.texi (optind): Likewise.
2234         * doc/posix-functions/optopt.texi (optopt): Likewise.
2235         * doc/posix-functions/tzname.texi (tzname): Likewise.
2236
2237         openat: update maintainer
2238         * modules/openat (Maintainer): Add myself.
2239
2240         utimens: avoid shadowing warning
2241         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2242         buffers into one, to avoid shadowing, as well as avoiding a
2243         redundant stat.
2244         Reported by Jim Meyering.
2245
2246         test-dup2: avoid compiler warning
2247         * tests/test-dup2.c (is_inheritable): Only define if used.
2248
2249 2010-01-01  Bruno Haible  <bruno@clisp.org>
2250
2251         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2252         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2253         defined, use wctomb instead of wcrtomb.
2254
2255 2010-01-01  Bruno Haible  <bruno@clisp.org>
2256
2257         iconv: Reject native Solaris iconv.
2258         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2259         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2260
2261 2009-12-31  Bruno Haible  <bruno@clisp.org>
2262
2263         * tests/test-signal.c (main): Remove test of 'SIG'.
2264
2265 2009-12-31  Bruno Haible  <bruno@clisp.org>
2266
2267         spawn: Fix incomplete fix.
2268         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2269         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2270         warnings for GNULIB_POSIXCHECK again.
2271         Reported by Eric Blake.
2272
2273 2009-12-31  Bruno Haible  <bruno@clisp.org>
2274
2275         Avoid namespace pollution on glibc systems.
2276         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2277         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2278         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2279         glibc systems.
2280
2281 2009-12-31  Bruno Haible  <bruno@clisp.org>
2282
2283         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2284         (gl_REPLACE_WCHAR_H): Turn into a no-op.
2285         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2286         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2287         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2288         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2289         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2290
2291 2009-12-31  Bruno Haible  <bruno@clisp.org>
2292
2293         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2294         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
2295         afterwards.
2296
2297 2009-12-31  Bruno Haible  <bruno@clisp.org>
2298
2299         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
2300         SYS_UTSNAME_H.
2301
2302 2009-12-31  Bruno Haible  <bruno@clisp.org>
2303
2304         spawn: Fix misapplied patch.
2305         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2306         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2307         warnings for GNULIB_POSIXCHECK.
2308
2309 2009-12-31  Bruno Haible  <bruno@clisp.org>
2310
2311         times: Update after sys_times changed.
2312         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
2313         * modules/times (Files): Add it.
2314         (configure.ac): Invoke gl_FUNC_TIMES.
2315
2316 2009-12-31  Bruno Haible  <bruno@clisp.org>
2317
2318         Use AC_C_INLINE where necessary.
2319         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
2320         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2321         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
2322         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2323         * m4/mbfile.m4 (gl_MBFILE): Likewise.
2324         * m4/mbiter.m4 (gl_MBITER): Likewise.
2325         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2326         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2327         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
2328         * modules/u64 (configure.ac): Likewise.
2329
2330 2009-12-31  Bruno Haible  <bruno@clisp.org>
2331
2332         Use AC_C_INLINE instead of module 'inline' where possible.
2333         * modules/inline (Description): Clarify purpose.
2334         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
2335         * modules/count-one-bits (Depends-on): Remove inline.
2336         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
2337         * modules/openat (Depends-on): Remove inline.
2338         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
2339         instead of depending on module 'inline'.
2340         * modules/filevercmp (Depends-on, configure.ac): Likewise.
2341         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
2342         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
2343         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
2344         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
2345         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
2346         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
2347         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
2348         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
2349         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
2350         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
2351         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
2352         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
2353         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
2354         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
2355         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
2356         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
2357         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
2358         Likewise.
2359         * modules/unictype/property-ascii-hex-digit (Depends-on,
2360         configure.ac): Likewise.
2361         * modules/unictype/property-bidi-arabic-digit (Depends-on,
2362         configure.ac): Likewise.
2363         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
2364         configure.ac): Likewise.
2365         * modules/unictype/property-bidi-block-separator (Depends-on,
2366         configure.ac): Likewise.
2367         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
2368         configure.ac): Likewise.
2369         * modules/unictype/property-bidi-common-separator (Depends-on,
2370         configure.ac): Likewise.
2371         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
2372         Likewise.
2373         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
2374         configure.ac): Likewise.
2375         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
2376         configure.ac): Likewise.
2377         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
2378         configure.ac): Likewise.
2379         * modules/unictype/property-bidi-european-digit (Depends-on,
2380         configure.ac): Likewise.
2381         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
2382         configure.ac): Likewise.
2383         * modules/unictype/property-bidi-left-to-right (Depends-on,
2384         configure.ac): Likewise.
2385         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
2386         configure.ac): Likewise.
2387         * modules/unictype/property-bidi-other-neutral (Depends-on,
2388         configure.ac): Likewise.
2389         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
2390         Likewise.
2391         * modules/unictype/property-bidi-segment-separator (Depends-on,
2392         configure.ac): Likewise.
2393         * modules/unictype/property-bidi-whitespace (Depends-on,
2394         configure.ac): Likewise.
2395         * modules/unictype/property-combining (Depends-on, configure.ac):
2396         Likewise.
2397         * modules/unictype/property-composite (Depends-on, configure.ac):
2398         Likewise.
2399         * modules/unictype/property-currency-symbol (Depends-on,
2400         configure.ac): Likewise.
2401         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
2402         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
2403         Likewise.
2404         * modules/unictype/property-default-ignorable-code-point (Depends-on,
2405         configure.ac): Likewise.
2406         * modules/unictype/property-deprecated (Depends-on, configure.ac):
2407         Likewise.
2408         * modules/unictype/property-diacritic (Depends-on, configure.ac):
2409         Likewise.
2410         * modules/unictype/property-extender (Depends-on, configure.ac):
2411         Likewise.
2412         * modules/unictype/property-format-control (Depends-on, configure.ac):
2413         Likewise.
2414         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
2415         Likewise.
2416         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
2417         Likewise.
2418         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
2419         Likewise.
2420         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
2421         Likewise.
2422         * modules/unictype/property-hyphen (Depends-on, configure.ac):
2423         Likewise.
2424         * modules/unictype/property-id-continue (Depends-on, configure.ac):
2425         Likewise.
2426         * modules/unictype/property-id-start (Depends-on, configure.ac):
2427         Likewise.
2428         * modules/unictype/property-ideographic (Depends-on, configure.ac):
2429         Likewise.
2430         * modules/unictype/property-ids-binary-operator (Depends-on,
2431         configure.ac): Likewise.
2432         * modules/unictype/property-ids-trinary-operator (Depends-on,
2433         configure.ac): Likewise.
2434         * modules/unictype/property-ignorable-control (Depends-on,
2435         configure.ac): Likewise.
2436         * modules/unictype/property-iso-control (Depends-on, configure.ac):
2437         Likewise.
2438         * modules/unictype/property-join-control (Depends-on, configure.ac):
2439         Likewise.
2440         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
2441         Likewise.
2442         * modules/unictype/property-line-separator (Depends-on, configure.ac):
2443         Likewise.
2444         * modules/unictype/property-logical-order-exception (Depends-on,
2445         configure.ac): Likewise.
2446         * modules/unictype/property-lowercase (Depends-on, configure.ac):
2447         Likewise.
2448         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
2449         * modules/unictype/property-non-break (Depends-on, configure.ac):
2450         Likewise.
2451         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
2452         Likewise.
2453         * modules/unictype/property-numeric (Depends-on, configure.ac):
2454         Likewise.
2455         * modules/unictype/property-other-alphabetic (Depends-on,
2456         configure.ac): Likewise.
2457         * modules/unictype/property-other-default-ignorable-code-point
2458         (Depends-on, configure.ac): Likewise.
2459         * modules/unictype/property-other-grapheme-extend (Depends-on,
2460         configure.ac): Likewise.
2461         * modules/unictype/property-other-id-continue (Depends-on,
2462         configure.ac): Likewise.
2463         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
2464         Likewise.
2465         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
2466         Likewise.
2467         * modules/unictype/property-other-math (Depends-on, configure.ac):
2468         Likewise.
2469         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
2470         Likewise.
2471         * modules/unictype/property-paired-punctuation (Depends-on,
2472         configure.ac): Likewise.
2473         * modules/unictype/property-paragraph-separator (Depends-on,
2474         configure.ac): Likewise.
2475         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
2476         Likewise.
2477         * modules/unictype/property-pattern-white-space (Depends-on,
2478         configure.ac): Likewise.
2479         * modules/unictype/property-private-use (Depends-on, configure.ac):
2480         Likewise.
2481         * modules/unictype/property-punctuation (Depends-on, configure.ac):
2482         Likewise.
2483         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
2484         Likewise.
2485         * modules/unictype/property-radical (Depends-on, configure.ac):
2486         Likewise.
2487         * modules/unictype/property-sentence-terminal (Depends-on,
2488         configure.ac): Likewise.
2489         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
2490         Likewise.
2491         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
2492         * modules/unictype/property-terminal-punctuation (Depends-on,
2493         configure.ac): Likewise.
2494         * modules/unictype/property-titlecase (Depends-on, configure.ac):
2495         Likewise.
2496         * modules/unictype/property-unassigned-code-value (Depends-on,
2497         configure.ac): Likewise.
2498         * modules/unictype/property-unified-ideograph (Depends-on,
2499         configure.ac): Likewise.
2500         * modules/unictype/property-uppercase (Depends-on, configure.ac):
2501         Likewise.
2502         * modules/unictype/property-variation-selector (Depends-on,
2503         configure.ac): Likewise.
2504         * modules/unictype/property-white-space (Depends-on, configure.ac):
2505         Likewise.
2506         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
2507         Likewise.
2508         * modules/unictype/property-xid-start (Depends-on, configure.ac):
2509         Likewise.
2510         * modules/unictype/property-zero-width (Depends-on, configure.ac):
2511         Likewise.
2512         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
2513         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
2514         Likewise.
2515
2516 2009-12-31  Bruno Haible  <bruno@clisp.org>
2517
2518         Remove unnecessary AC_C_INLINE invocation.
2519         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
2520         since 2009-08-21.
2521
2522 2009-12-31  Jim Meyering  <meyering@redhat.com>
2523
2524         maint.mk: don't require explicit gpg_key_ID in cfg.mk
2525         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
2526         With this change, we can all remove the gpg_key_ID = ... definition
2527         from our respective cfg.mk files.
2528
2529         maint.mk: create announcement template in ~/, not in /tmp
2530         * top/maint.mk (emit_upload_commands): Adjust.
2531         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
2532         Remove temporary file, .ci-msg.
2533
2534 2009-12-31  Eric Blake  <ebb9@byu.net>
2535
2536         link-warning: always build headers with link warnings
2537         * modules/arpa_inet (Makefile.am): Always build replacement
2538         header.
2539         * modules/ctype (Makefile.am): Likewise.
2540         * modules/dirent (Makefile.am): Likewise.
2541         * modules/inttypes (Makefile.am): Likewise.
2542         * modules/langinfo (Makefile.am): Likewise.
2543         * modules/locale (Makefile.am): Likewise.
2544         * modules/spawn (Makefile.am): Likewise.
2545         * modules/sys_file (Makefile.am): Likewise.
2546         * modules/sys_ioctl (Makefile.am): Likewise.
2547         * modules/sys_select (Makefile.am): Likewise.
2548         * modules/sys_socket (Makefile.am): Likewise.
2549         * modules/sys_times (Makefile.am): Likewise.
2550         * modules/sys_utsname (Makefile.am): Likewise.
2551         * modules/sys_wait (Makefile.am): Likewise.
2552         * modules/wchar (Makefile.am): Likewise.
2553         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
2554         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
2555         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
2556         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
2557         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
2558         Likewise.
2559         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2560         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2561         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
2562         Likewise.
2563         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
2564         Likewise.
2565         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2566         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
2567         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
2568         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2569         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2570         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2571         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2572         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
2573         (gl_WCHAR_H_DEFAULTS): Likewise.
2574
2575 2009-12-31  Eric Blake  <ebb9@byu.net>
2576
2577         signal, spawn: use link warnings
2578         * lib/signal.in.h (sigset_t): Make unconditional.
2579         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
2580         (sigpending, sigprocmask, sigaction): Add link warnings.
2581         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
2582         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
2583         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
2584         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
2585         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
2586         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
2587         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
2588         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
2589         (posix_spawn_file_actions_destroy)
2590         (posix_spawn_file_actions_addopen)
2591         (posix_spawn_file_actions_addclose)
2592         (posix_spawwn_file_actions_adddup2): Likewise.
2593         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
2594         * tests/test-signal.c (main): Enhance test.
2595
2596         spawn: improve wrapper support
2597         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
2598         (gl_SPAWN_H_DEFAULTS): New defaults.
2599         * modules/spawn (Makefile.am): Substitute them.
2600         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
2601         Only declare if missing or broken.
2602
2603         sys_times, sys_utsname: use include_next
2604         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
2605         header.
2606         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
2607         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2608         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2609         * modules/sys_times (Depends-on): Add include_next.
2610         (Makefile.am): Substitute additional values.
2611         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2612         * lib/sys_times.in.h (includes): Include native header, if
2613         available.
2614         * lib/sys_utsname.in.h (includes): Likewise.
2615         * tests/test-sys_times.c (main): Enhance test.
2616
2617         fdutimensat: revert prior patch
2618         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
2619         utimens.h.
2620         Reported by Bruno Haible.
2621
2622 2009-12-30  Eric Blake  <ebb9@byu.net>
2623
2624         sys_wait: drop link-warning dependency
2625         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
2626         link-warning efforts.
2627         * lib/sys_wait.in.h: Likewise.
2628
2629         fdutimensat: remove bogus dependency
2630         * modules/fdutimensat (Depends-on): Drop inline.
2631
2632         unistd: fix typo
2633         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
2634
2635 2009-12-30  Bruno Haible  <bruno@clisp.org>
2636
2637         Fix compilation error with Solaris cc.
2638         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
2639         * lib/unicase/u16-is-invariant.c: Likewise.
2640         * lib/unicase/u32-is-invariant.c: Likewise.
2641         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2642
2643 2009-12-30  Bruno Haible  <bruno@clisp.org>
2644
2645         Fix test crash.
2646         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
2647         locales.
2648         Reported by Simon Josefsson <simon@josefsson.org>.
2649
2650 2009-12-30  Bruno Haible  <bruno@clisp.org>
2651
2652         Fix compilation error on most platforms.
2653         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
2654         Reported by Simon Josefsson <simon@josefsson.org>
2655         and Nelson H. F. Beebe <beebe@math.utah.edu>.
2656
2657 2009-12-30  Eric Blake  <ebb9@byu.net>
2658
2659         futimens, utimensat: work around ntfs-3g bug
2660         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
2661         a ctime bug is present, and expand workaround to cover ntfs-3g.
2662         * lib/utimens.c (fdutimens, lutimens): Likewise.
2663         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
2664         (validate_timespec): Adjust return value.
2665         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
2666         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2667         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
2668
2669 2009-12-29  Eric Blake  <ebb9@byu.net>
2670
2671         link-warning: make usage consistent
2672         * modules/ctype (Depends-on): Add link-warning.
2673         (Makefile.am): Update rules accordingly.
2674         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2675         * modules/locale (Depends-on, Makefile.am): Likewise.
2676         * modules/sys_file (Makefile.am): Likewise.
2677         * modules/getopt-posix (Makefile.am): Delete unused link warning
2678         efforts.
2679         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
2680         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
2681         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
2682         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
2683
2684         stdio: remove unused variables
2685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
2686         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2687         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2688
2689         tests: test more substitute headers
2690         * modules/ctype-tests: New file.
2691         * modules/dirent-tests: Likewise.
2692         * modules/spawn-tests: Likewise.
2693         * modules/sys_file-tests: Likewise.
2694         * modules/sys_ioctl-tests: Likewise.
2695         * modules/sys_wait-tests: Likewise.
2696         * tests/test-ctype.c: Likewise.
2697         * tests/test-dirent.c: Likewise.
2698         * tests/test-spawn.c: Likewise.
2699         * tests/test-sys_file.c: Likewise.
2700         * tests/test-sys_ioctl.c: Likewise.
2701         * tests/test-sys_wait.c: Likewise.
2702         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
2703         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
2704         whether or not flock is in use.
2705
2706         tests: remove License section from module
2707         * modules/arpa_inet-tests: Remove unneeded section.
2708         * modules/byteswap-tests: Likewise.
2709         * modules/ceilf-tests: Likewise.
2710         * modules/ceill-tests: Likewise.
2711         * modules/crypto/des-tests: Likewise.
2712         * modules/crypto/gc-arcfour-tests: Likewise.
2713         * modules/crypto/gc-arctwo-tests: Likewise.
2714         * modules/crypto/gc-des-tests: Likewise.
2715         * modules/crypto/gc-hmac-md5-tests: Likewise.
2716         * modules/crypto/gc-hmac-sha1-tests: Likewise.
2717         * modules/crypto/gc-md2-tests: Likewise.
2718         * modules/crypto/gc-md4-tests: Likewise.
2719         * modules/crypto/gc-md5-tests: Likewise.
2720         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
2721         * modules/crypto/gc-rijndael-tests: Likewise.
2722         * modules/crypto/gc-sha1-tests: Likewise.
2723         * modules/crypto/gc-tests: Likewise.
2724         * modules/crypto/md2-tests: Likewise.
2725         * modules/crypto/md4-tests: Likewise.
2726         * modules/fcntl-h-tests: Likewise.
2727         * modules/floorf-tests: Likewise.
2728         * modules/floorl-tests: Likewise.
2729         * modules/frexp-nolibm-tests: Likewise.
2730         * modules/frexp-tests: Likewise.
2731         * modules/frexpl-nolibm-tests: Likewise.
2732         * modules/frexpl-tests: Likewise.
2733         * modules/getaddrinfo-tests: Likewise.
2734         * modules/inttypes-tests: Likewise.
2735         * modules/isfinite-tests: Likewise.
2736         * modules/isinf-tests: Likewise.
2737         * modules/ldexpl-tests: Likewise.
2738         * modules/locale-tests: Likewise.
2739         * modules/math-tests: Likewise.
2740         * modules/netdb-tests: Likewise.
2741         * modules/netinet_in-tests: Likewise.
2742         * modules/printf-frexp-tests: Likewise.
2743         * modules/printf-frexpl-tests: Likewise.
2744         * modules/priv-set-tests: Likewise.
2745         * modules/random_r-tests: Likewise.
2746         * modules/round-tests: Likewise.
2747         * modules/roundf-tests: Likewise.
2748         * modules/roundl-tests: Likewise.
2749         * modules/search-tests: Likewise.
2750         * modules/select-tests: Likewise.
2751         * modules/signal-tests: Likewise.
2752         * modules/stdbool-tests: Likewise.
2753         * modules/stddef-tests: Likewise.
2754         * modules/stdint-tests: Likewise.
2755         * modules/stdio-tests: Likewise.
2756         * modules/stdlib-tests: Likewise.
2757         * modules/string-tests: Likewise.
2758         * modules/strings-tests: Likewise.
2759         * modules/sys_select-tests: Likewise.
2760         * modules/sys_socket-tests: Likewise.
2761         * modules/sys_stat-tests: Likewise.
2762         * modules/sys_time-tests: Likewise.
2763         * modules/sys_utsname-tests: Likewise.
2764         * modules/sysexits-tests: Likewise.
2765         * modules/time-tests: Likewise.
2766         * modules/trunc-tests: Likewise.
2767         * modules/truncf-tests: Likewise.
2768         * modules/truncl-tests: Likewise.
2769         * modules/tsearch-tests: Likewise.
2770         * modules/unistd-tests: Likewise.
2771         * modules/wchar-tests: Likewise.
2772         * modules/wctype-tests: Likewise.
2773
2774         tests: fix license on several tests
2775         * tests/test-des.c: Update to GPLv3+.
2776         * tests/test-flock.c: Likewise.
2777         * tests/test-fsync.c: Likewise.
2778         * tests/test-futimens.h: Likewise.
2779         * tests/test-gc-arcfour.c: Likewise.
2780         * tests/test-gc-arctwo.c: Likewise.
2781         * tests/test-gc-des.c: Likewise.
2782         * tests/test-gc-hmac-md5.c: Likewise.
2783         * tests/test-gc-hmac-sha1.c: Likewise.
2784         * tests/test-gc-md2.c: Likewise.
2785         * tests/test-gc-md4.c: Likewise.
2786         * tests/test-gc-md5.c: Likewise.
2787         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2788         * tests/test-gc-rijndael.c: Likewise.
2789         * tests/test-gc-sha1.c: Likewise.
2790         * tests/test-gc.c: Likewise.
2791         * tests/test-getcwd.c: Likewise.
2792         * tests/test-link.c: Likewise.
2793         * tests/test-link.h: Likewise.
2794         * tests/test-lutimens.h: Likewise.
2795         * tests/test-md2.c: Likewise.
2796         * tests/test-md4.c: Likewise.
2797         * tests/test-mkdir.h: Likewise.
2798         * tests/test-rename.c: Likewise.
2799         * tests/test-rename.h: Likewise.
2800         * tests/test-safe-alloc.c: Likewise.
2801         * tests/test-utimens-common.h: Likewise.
2802         * tests/test-utimens.h: Likewise.
2803
2804         maint: sync license texts
2805         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
2806         * doc/gpl-3.0.texi: Revert copyright year update.
2807         * doc/lgpl-3.0.texi: Likewise.
2808
2809 2009-12-29  Jim Meyering  <meyering@redhat.com>
2810
2811         update nearly all FSF copyright year lists to include 2009
2812         The files named by the following are exempted:
2813             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
2814               test -f "$dst" && { echo "$dst"; continue; }
2815               test -d "$dst" || continue
2816               echo "$dst"/$(basename "$src")
2817             done > exempt
2818             git ls-files tests/unictype >> exempt
2819         In the remaining files, convert to all-interval notation if
2820         - there is already at least one year interval like 2000-2003
2821         - the file is maintained by me
2822         - the file is in lib/uni*/, where that style already prevails
2823         Otherwise, use update-copyright's default.
2824
2825 2009-12-29  Simon Josefsson  <simon@josefsson.org>
2826         and Eric Blake  <ebb9@byu.net>
2827
2828         tests: don't require debug system() to pass
2829         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
2830         * tests/test-rmdir.h (test_rmdir_func): Likewise.
2831         * tests/test-unlink.h (test_unlink_func): Likewise.
2832         * tests/test-fstatat.c (main): ...into callers.
2833         * tests/test-lstat.c (main): Likewise.
2834         * tests/test-rmdir.c (main): Likewise.
2835         * tests/test-unlink.c (main): Likewise.
2836         * tests/test-unlinkat.c (main): Likewise.
2837         * tests/test-areadlink-with-size.c (main): Don't require a
2838         debug-only system call to pass, aiding cross-testing to mingw.
2839         * tests/test-areadlink.c (main): Likewise.
2840         * tests/test-areadlinkat-with-size.c (main): Likewise.
2841         * tests/test-areadlinkat.c (main): Likewise.
2842         * tests/test-canonicalize-lgpl.c (main): Likewise.
2843         * tests/test-canonicalize.c (main): Likewise.
2844         * tests/test-chown.c (main): Likewise.
2845         * tests/test-fchownat.c (main): Likewise.
2846         * tests/test-lchown.c (main): Likewise.
2847         * tests/test-fdutimensat.c (main): Likewise.
2848         * tests/test-futimens.c (main): Likewise.
2849         * tests/test-link.c (main): Likewise.
2850         * tests/test-linkat.c (main): Likewise.
2851         * tests/test-mkdir.c (main): Likewise.
2852         * tests/test-mkdirat.c (main): Likewise.
2853         * tests/test-mkfifo.c (main): Likewise.
2854         * tests/test-mkfifoat.c (main): Likewise.
2855         * tests/test-mknod.c (main): Likewise.
2856         * tests/test-readlink.c (main): Likewise.
2857         * tests/test-remove.c (main): Likewise.
2858         * tests/test-rename.c (main): Likewise.
2859         * tests/test-renameat.c (main): Likewise.
2860         * tests/test-symlink.c (main): Likewise.
2861         * tests/test-symlinkat.c (main): Likewise.
2862         * tests/test-utimens.c (main): Likewise.
2863         * tests/test-utimensat.c (main): Likewise.
2864
2865 2009-12-29  Simon Josefsson  <simon@josefsson.org>
2866
2867         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
2868         on $(UNUSED_PARAMETER_H) to avoid build failure.
2869
2870 2009-12-28  Jim Meyering  <meyering@redhat.com>
2871
2872         update-copyright: you may specify a max. line length other than 72
2873         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2874
2875         maint: use consistent FSF copyright line syntax
2876         * lib/posixtm.c: Add missing comma in FSF copyright line.
2877         * lib/posixtm.h: Likewise.
2878         * lib/getugroups.c: Add missing ", Inc.".
2879
2880         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
2881         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
2882         FSF copyright line.  Remove trailing blanks.
2883
2884 2009-12-28  Eric Blake  <ebb9@byu.net>
2885
2886         test-dup2: reduce dependencies
2887         * modules/cloexec (Configure.ac): Set witness.
2888         * modules/dup2-tests (Depends-on): Drop cloexec.
2889         * tests/test-dup2.c (main): Skip portion of test if cloexec module
2890         not present.
2891         Suggested by Bruno Haible.
2892
2893 2009-12-26  Bruno Haible  <bruno@clisp.org>
2894
2895         Remove an unneeded dependency.
2896         * modules/fseterr (Depends-on): Remove dup2.
2897
2898 2009-12-26  Eric Blake  <ebb9@byu.net>
2899
2900         tests: use macros.h in more places
2901         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
2902         (ASSERT_STREAM): Provide default of stderr.
2903         * tests/test-dirent-safer.c: Include macros.h, using alternate
2904         stream for assertions.
2905         * tests/test-dup-safer.c: Likewise.
2906         * tests/test-freopen-safer.c: Likewise.
2907         * tests/test-getopt.c: Likewise.
2908         * tests/test-openat-safer.c: Likewise.
2909         * tests/test-pipe.c: Likewise.
2910         * tests/test-popen-safer.c: Likewise.
2911         * modules/dirent-safer-tests (Files): Include macros.h.
2912         * modules/unistd-safer-tests (Files): Likewise.
2913         * modules/freopen-safer-tests (Files): Likewise.
2914         * modules/getopt-posix-tests (Files): Likewise.
2915         * modules/openat-safer-tests (Files): Likewise.
2916         * modules/pipe-tests (Files): Likewise.
2917
2918 2009-12-26  Bruno Haible  <bruno@clisp.org>
2919
2920         javacomp: Portability fix.
2921         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
2922         that it also works on Solaris.
2923
2924 2009-12-26  Bruno Haible  <bruno@clisp.org>
2925
2926         localename: Fix storage allocation of gl_locale_name_thread's result.
2927         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
2928         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
2929         all platforms that have 'uselocale'.
2930         (gl_locale_name_thread_unsafe): New function, extracted from
2931         gl_locale_name_thread.
2932         (gl_locale_name_thread): Call struniq on all platforms that have
2933         'uselocale'.
2934         * tests/test-localename.c (test_locale_name_thread): Check that the
2935         resulting strings are permanently allocated.
2936         * modules/localename-tests (Depends-on): Add strdup.
2937
2938 2009-12-26  Bruno Haible  <bruno@clisp.org>
2939
2940         * tests/test-localename.c (categories): Fill in the strings.
2941
2942 2009-12-26  Jim Meyering  <meyering@redhat.com>
2943
2944         isdir: complete the removal of m4/isdir.m4
2945         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
2946
2947         isdir: clean up, since at least grep still uses it
2948         * lib/isdir.c: Include "isdir.h".
2949         (S_ISDIR): Remove now-unneeded definition.
2950         * modules/isdir (Files): Add lib/isdir.h.
2951         * lib/isdir.h: New file, with declaration.
2952         * m4/isdir.m4: Remove file -- unneeded.
2953
2954 2009-12-25  Bruno Haible  <bruno@clisp.org>
2955
2956         selinux-h: Make generated .h files standalone.
2957         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
2958         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
2959         * lib/se-selinux.in.h: Likewise.
2960         * modules/selinux-h (Depends-on): Add unused-parameter.
2961         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
2962         selinux/selinux.h and selinux/context.h.
2963         Suggested by Eric Blake.
2964
2965 2009-12-25  Bruno Haible  <bruno@clisp.org>
2966
2967         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
2968         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
2969         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
2970         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
2971         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
2972
2973 2009-12-24  Bruno Haible  <bruno@clisp.org>
2974
2975         openat: Fix warning.
2976         * lib/openat-proc.c: Include <unistd.h>.
2977
2978 2009-12-24  Bruno Haible  <bruno@clisp.org>
2979
2980         New module 'unused-parameter'.
2981         * build-aux/unused-parameter.h: New file, extracted from earlier
2982         gnulib-common.m4.
2983         * modules/unused-parameter: New file.
2984         * lib/unistr.h: Include unused-parameter.h.
2985         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
2986         _GL_UNUSED.
2987         * modules/unistr/base (Depends-on): Add unused-parameter.
2988
2989 2009-12-24  Bruno Haible  <bruno@clisp.org>
2990
2991         Add missing dependencies to 'extensions' module.
2992         * m4/extensions.m4: Add comment.
2993         * modules/accept4 (Depends-on): Add extensions.
2994         * modules/dup3 (Depends-on): Likewise.
2995         * modules/fcntl (Depends-on): Likewise.
2996         * modules/futimens (Depends-on): Likewise.
2997         * modules/mknod (Depends-on): Likewise.
2998         * modules/pipe2 (Depends-on): Likewise.
2999         * modules/stat-time (Depends-on): Likewise.
3000         * modules/strcasestr-simple (Depends-on): Likewise.
3001         * modules/strsignal (Depends-on): Likewise.
3002         * modules/utimensat (Depends-on): Likewise.
3003         * modules/localcharset (Depends-on): Likewise. Needed because of
3004         gl_FCNTL_O_FLAGS.
3005         * modules/wcrtomb (Depends-on): Likewise. Needed because of
3006         AC_TYPE_MBSTATE_T.
3007         * modules/wcsnrtombs (Depends-on): Likewise.
3008         * modules/wcsrtombs (Depends-on): Likewise.
3009
3010 2009-12-24  Bruno Haible  <bruno@clisp.org>
3011
3012         binary-io: Avoid gcc warning due to SET_BINARY.
3013         * lib/binary-io.h (SET_BINARY): Cast the result to void.
3014         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3015
3016 2009-12-24  Bruno Haible  <bruno@clisp.org>
3017
3018         Avoid future namespace pollution on glibc systems.
3019         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3020         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3021         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3022         glibc systems.
3023
3024 2009-12-24  Bruno Haible  <bruno@clisp.org>
3025
3026         Refactor common macros used in tests.
3027         * tests/macros.h: New file.
3028         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3029         and/or <stdlib.h>, if appropriate.
3030         (ASSERT, SIZEOF): Remove macros.
3031         * tests/test-areadlink-with-size.c: Likewise.
3032         * tests/test-areadlinkat.c: Likewise.
3033         * tests/test-areadlinkat-with-size.c: Likewise.
3034         * tests/test-argmatch.c: Likewise.
3035         * tests/test-argv-iter.c: Likewise.
3036         * tests/test-array-mergesort.c: Likewise.
3037         * tests/test-array_list.c: Likewise.
3038         * tests/test-array_oset.c: Likewise.
3039         * tests/test-avltree_list.c: Likewise.
3040         * tests/test-avltree_oset.c: Likewise.
3041         * tests/test-avltreehash_list.c: Likewise.
3042         * tests/test-base64.c: Likewise.
3043         * tests/test-binary-io.c: Likewise.
3044         * tests/test-bitrotate.c: Likewise.
3045         * tests/test-btowc.c: Likewise.
3046         * tests/test-byteswap.c: Likewise.
3047         * tests/test-c-ctype.c: Likewise.
3048         * tests/test-c-stack.c: Likewise.
3049         * tests/test-c-strcasecmp.c: Likewise.
3050         * tests/test-c-strcasestr.c: Likewise.
3051         * tests/test-c-strncasecmp.c: Likewise.
3052         * tests/test-c-strstr.c: Likewise.
3053         * tests/test-canonicalize-lgpl.c: Likewise.
3054         * tests/test-canonicalize.c: Likewise.
3055         * tests/test-carray_list.c: Likewise.
3056         * tests/test-ceilf1.c: Likewise.
3057         * tests/test-ceilf2.c: Likewise.
3058         * tests/test-ceill.c: Likewise.
3059         * tests/test-chown.c: Likewise.
3060         * tests/test-cloexec.c: Likewise.
3061         * tests/test-copy-acl.c: Likewise.
3062         * tests/test-copy-file.c: Likewise.
3063         * tests/test-count-one-bits.c: Likewise.
3064         * tests/test-dprintf-posix.c: Likewise.
3065         * tests/test-dup2.c: Likewise.
3066         * tests/test-dup3.c: Likewise.
3067         * tests/test-duplocale.c: Likewise.
3068         * tests/test-fbufmode.c: Likewise.
3069         * tests/test-fchdir.c: Likewise.
3070         * tests/test-fchownat.c: Likewise.
3071         * tests/test-fcntl-safer.c: Likewise.
3072         * tests/test-fcntl.c: Likewise.
3073         * tests/test-fdopendir.c: Likewise.
3074         * tests/test-fdutimensat.c: Likewise.
3075         * tests/test-fflush2.c: Likewise.
3076         * tests/test-file-has-acl.c: Likewise.
3077         * tests/test-filevercmp.c: Likewise.
3078         * tests/test-flock.c: Likewise.
3079         * tests/test-floorf1.c: Likewise.
3080         * tests/test-floorf2.c: Likewise.
3081         * tests/test-floorl.c: Likewise.
3082         * tests/test-fnmatch.c: Likewise.
3083         * tests/test-fopen.h: Likewise.
3084         * tests/test-fpending.c: Likewise.
3085         * tests/test-fprintf-posix.c: Likewise.
3086         * tests/test-fpurge.c: Likewise.
3087         * tests/test-freadable.c: Likewise.
3088         * tests/test-freadahead.c: Likewise.
3089         * tests/test-freading.c: Likewise.
3090         * tests/test-freadptr.c: Likewise.
3091         * tests/test-freadptr2.c: Likewise.
3092         * tests/test-freadseek.c: Likewise.
3093         * tests/test-freopen.c: Likewise.
3094         * tests/test-frexp.c: Likewise.
3095         * tests/test-frexpl.c: Likewise.
3096         * tests/test-fseek.c: Likewise.
3097         * tests/test-fseeko.c: Likewise.
3098         * tests/test-fstatat.c: Likewise.
3099         * tests/test-fstrcmp.c: Likewise.
3100         * tests/test-fsync.c: Likewise.
3101         * tests/test-ftell.c: Likewise.
3102         * tests/test-ftello.c: Likewise.
3103         * tests/test-func.c: Likewise.
3104         * tests/test-futimens.c: Likewise.
3105         * tests/test-fwritable.c: Likewise.
3106         * tests/test-fwriting.c: Likewise.
3107         * tests/test-getcwd.c: Likewise.
3108         * tests/test-getdate.c: Likewise.
3109         * tests/test-getdelim.c: Likewise.
3110         * tests/test-getdtablesize.c: Likewise.
3111         * tests/test-getgroups.c: Likewise.
3112         * tests/test-getline.c: Likewise.
3113         * tests/test-getndelim2.c: Likewise.
3114         * tests/test-glob.c: Likewise.
3115         * tests/test-hash.c: Likewise.
3116         * tests/test-i-ring.c: Likewise.
3117         * tests/test-iconv-utf.c: Likewise.
3118         * tests/test-iconv.c: Likewise.
3119         * tests/test-idpriv-drop.c: Likewise.
3120         * tests/test-idpriv-droptemp.c: Likewise.
3121         * tests/test-inet_ntop.c: Likewise.
3122         * tests/test-inet_pton.c: Likewise.
3123         * tests/test-isblank.c: Likewise.
3124         * tests/test-isfinite.c: Likewise.
3125         * tests/test-isinf.c: Likewise.
3126         * tests/test-isnan.c: Likewise.
3127         * tests/test-isnand.h: Likewise.
3128         * tests/test-isnanf.h: Likewise.
3129         * tests/test-isnanl.h: Likewise.
3130         * tests/test-lchown.c: Likewise.
3131         * tests/test-ldexpl.c: Likewise.
3132         * tests/test-link.c: Likewise.
3133         * tests/test-linkat.c: Likewise.
3134         * tests/test-linked_list.c: Likewise.
3135         * tests/test-linkedhash_list.c: Likewise.
3136         * tests/test-localename.c: Likewise.
3137         * tests/test-lseek.c: Likewise.
3138         * tests/test-lstat.c: Likewise.
3139         * tests/test-mbmemcasecmp.c: Likewise.
3140         * tests/test-mbmemcasecoll.c: Likewise.
3141         * tests/test-mbrtowc.c: Likewise.
3142         * tests/test-mbscasecmp.c: Likewise.
3143         * tests/test-mbscasestr1.c: Likewise.
3144         * tests/test-mbscasestr2.c: Likewise.
3145         * tests/test-mbscasestr3.c: Likewise.
3146         * tests/test-mbscasestr4.c: Likewise.
3147         * tests/test-mbschr.c: Likewise.
3148         * tests/test-mbscspn.c: Likewise.
3149         * tests/test-mbsinit.c: Likewise.
3150         * tests/test-mbsncasecmp.c: Likewise.
3151         * tests/test-mbsnrtowcs.c: Likewise.
3152         * tests/test-mbspbrk.c: Likewise.
3153         * tests/test-mbspcasecmp.c: Likewise.
3154         * tests/test-mbsrchr.c: Likewise.
3155         * tests/test-mbsrtowcs.c: Likewise.
3156         * tests/test-mbsspn.c: Likewise.
3157         * tests/test-mbsstr1.c: Likewise.
3158         * tests/test-mbsstr2.c: Likewise.
3159         * tests/test-mbsstr3.c: Likewise.
3160         * tests/test-memchr.c: Likewise.
3161         * tests/test-memchr2.c: Likewise.
3162         * tests/test-memcmp.c: Likewise.
3163         * tests/test-memmem.c: Likewise.
3164         * tests/test-memrchr.c: Likewise.
3165         * tests/test-mkdir.c: Likewise.
3166         * tests/test-mkdirat.c: Likewise.
3167         * tests/test-mkfifo.c: Likewise.
3168         * tests/test-mkfifoat.c: Likewise.
3169         * tests/test-mknod.c: Likewise.
3170         * tests/test-nanosleep.c: Likewise.
3171         * tests/test-nl_langinfo.c: Likewise.
3172         * tests/test-obstack-printf.c: Likewise.
3173         * tests/test-open.c: Likewise.
3174         * tests/test-openat.c: Likewise.
3175         * tests/test-pipe-filter-gi1.c: Likewise.
3176         * tests/test-pipe-filter-gi2-main.c: Likewise.
3177         * tests/test-pipe-filter-ii1.c: Likewise.
3178         * tests/test-pipe-filter-ii2-main.c: Likewise.
3179         * tests/test-pipe2.c: Likewise.
3180         * tests/test-popen.h: Likewise.
3181         * tests/test-posixtm.c: Likewise.
3182         * tests/test-pread.c: Likewise.
3183         * tests/test-printf-frexp.c: Likewise.
3184         * tests/test-printf-frexpl.c: Likewise.
3185         * tests/test-printf-posix.c: Likewise.
3186         * tests/test-priv-set.c: Likewise.
3187         * tests/test-quotearg.c: Likewise.
3188         * tests/test-random_r.c: Likewise.
3189         * tests/test-rawmemchr.c: Likewise.
3190         * tests/test-rbtree_list.c: Likewise.
3191         * tests/test-rbtree_oset.c: Likewise.
3192         * tests/test-rbtreehash_list.c: Likewise.
3193         * tests/test-readlink.c: Likewise.
3194         * tests/test-remove.c: Likewise.
3195         * tests/test-rename.c: Likewise.
3196         * tests/test-renameat.c: Likewise.
3197         * tests/test-rmdir.c: Likewise.
3198         * tests/test-round1.c: Likewise.
3199         * tests/test-roundf1.c: Likewise.
3200         * tests/test-roundl.c: Likewise.
3201         * tests/test-safe-alloc.c: Likewise.
3202         * tests/test-sameacls.c: Likewise.
3203         * tests/test-set-mode-acl.c: Likewise.
3204         * tests/test-setenv.c: Likewise.
3205         * tests/test-sigaction.c: Likewise.
3206         * tests/test-signbit.c: Likewise.
3207         * tests/test-sleep.c: Likewise.
3208         * tests/test-snprintf-posix.c: Likewise.
3209         * tests/test-snprintf.c: Likewise.
3210         * tests/test-sprintf-posix.c: Likewise.
3211         * tests/test-stat-time.c: Likewise.
3212         * tests/test-stat.c: Likewise.
3213         * tests/test-strcasestr.c: Likewise.
3214         * tests/test-strchrnul.c: Likewise.
3215         * tests/test-strerror.c: Likewise.
3216         * tests/test-striconv.c: Likewise.
3217         * tests/test-striconveh.c: Likewise.
3218         * tests/test-striconveha.c: Likewise.
3219         * tests/test-strsignal.c: Likewise.
3220         * tests/test-strstr.c: Likewise.
3221         * tests/test-strtod.c: Likewise.
3222         * tests/test-strverscmp.c: Likewise.
3223         * tests/test-symlink.c: Likewise.
3224         * tests/test-symlinkat.c: Likewise.
3225         * tests/test-trunc1.c: Likewise.
3226         * tests/test-trunc2.c: Likewise.
3227         * tests/test-truncf1.c: Likewise.
3228         * tests/test-truncf2.c: Likewise.
3229         * tests/test-truncl.c: Likewise.
3230         * tests/test-uname.c: Likewise.
3231         * tests/test-unlink.c: Likewise.
3232         * tests/test-unlinkat.c: Likewise.
3233         * tests/test-unsetenv.c: Likewise.
3234         * tests/test-usleep.c: Likewise.
3235         * tests/test-utimens.c: Likewise.
3236         * tests/test-utimensat.c: Likewise.
3237         * tests/test-vasnprintf-posix.c: Likewise.
3238         * tests/test-vasnprintf-posix2.c: Likewise.
3239         * tests/test-vasnprintf.c: Likewise.
3240         * tests/test-vasprintf-posix.c: Likewise.
3241         * tests/test-vasprintf.c: Likewise.
3242         * tests/test-vdprintf-posix.c: Likewise.
3243         * tests/test-vfprintf-posix.c: Likewise.
3244         * tests/test-vprintf-posix.c: Likewise.
3245         * tests/test-vsnprintf-posix.c: Likewise.
3246         * tests/test-vsnprintf.c: Likewise.
3247         * tests/test-vsprintf-posix.c: Likewise.
3248         * tests/test-wcrtomb.c: Likewise.
3249         * tests/test-wcsnrtombs.c: Likewise.
3250         * tests/test-wcsrtombs.c: Likewise.
3251         * tests/test-wctype.c: Likewise.
3252         * tests/test-wcwidth.c: Likewise.
3253         * tests/test-xfprintf-posix.c: Likewise.
3254         * tests/test-xmemdup0.c: Likewise.
3255         * tests/test-xprintf-posix.c: Likewise.
3256         * tests/test-xvasprintf.c: Likewise.
3257         * tests/unicase/test-locale-language.c: Likewise.
3258         * tests/unicase/test-mapping-part1.h: Likewise.
3259         * tests/unicase/test-predicate-part1.h: Likewise.
3260         * tests/unicase/test-u8-casecmp.c: Likewise.
3261         * tests/unicase/test-u8-casecoll.c: Likewise.
3262         * tests/unicase/test-u8-casefold.c: Likewise.
3263         * tests/unicase/test-u8-is-cased.c: Likewise.
3264         * tests/unicase/test-u8-is-casefolded.c: Likewise.
3265         * tests/unicase/test-u8-is-lowercase.c: Likewise.
3266         * tests/unicase/test-u8-is-titlecase.c: Likewise.
3267         * tests/unicase/test-u8-is-uppercase.c: Likewise.
3268         * tests/unicase/test-u8-tolower.c: Likewise.
3269         * tests/unicase/test-u8-totitle.c: Likewise.
3270         * tests/unicase/test-u8-toupper.c: Likewise.
3271         * tests/unicase/test-u16-casecmp.c: Likewise.
3272         * tests/unicase/test-u16-casecoll.c: Likewise.
3273         * tests/unicase/test-u16-casefold.c: Likewise.
3274         * tests/unicase/test-u16-is-cased.c: Likewise.
3275         * tests/unicase/test-u16-is-casefolded.c: Likewise.
3276         * tests/unicase/test-u16-is-lowercase.c: Likewise.
3277         * tests/unicase/test-u16-is-titlecase.c: Likewise.
3278         * tests/unicase/test-u16-is-uppercase.c: Likewise.
3279         * tests/unicase/test-u16-tolower.c: Likewise.
3280         * tests/unicase/test-u16-totitle.c: Likewise.
3281         * tests/unicase/test-u16-toupper.c: Likewise.
3282         * tests/unicase/test-u32-casecmp.c: Likewise.
3283         * tests/unicase/test-u32-casecoll.c: Likewise.
3284         * tests/unicase/test-u32-casefold.c: Likewise.
3285         * tests/unicase/test-u32-is-cased.c: Likewise.
3286         * tests/unicase/test-u32-is-casefolded.c: Likewise.
3287         * tests/unicase/test-u32-is-lowercase.c: Likewise.
3288         * tests/unicase/test-u32-is-titlecase.c: Likewise.
3289         * tests/unicase/test-u32-is-uppercase.c: Likewise.
3290         * tests/unicase/test-u32-tolower.c: Likewise.
3291         * tests/unicase/test-u32-totitle.c: Likewise.
3292         * tests/unicase/test-u32-toupper.c: Likewise.
3293         * tests/unicase/test-ulc-casecmp.c: Likewise.
3294         * tests/unicase/test-ulc-casecoll.c: Likewise.
3295         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3296         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3297         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3298         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3299         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3300         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3301         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3302         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3303         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3304         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3305         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3306         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3307         * tests/unictype/test-bidi_byname.c: Likewise.
3308         * tests/unictype/test-bidi_name.c: Likewise.
3309         * tests/unictype/test-bidi_of.c: Likewise.
3310         * tests/unictype/test-bidi_test.c: Likewise.
3311         * tests/unictype/test-block_list.c: Likewise.
3312         * tests/unictype/test-block_of.c: Likewise.
3313         * tests/unictype/test-block_test.c: Likewise.
3314         * tests/unictype/test-categ_and.c: Likewise.
3315         * tests/unictype/test-categ_and_not.c: Likewise.
3316         * tests/unictype/test-categ_byname.c: Likewise.
3317         * tests/unictype/test-categ_name.c: Likewise.
3318         * tests/unictype/test-categ_none.c: Likewise.
3319         * tests/unictype/test-categ_of.c: Likewise.
3320         * tests/unictype/test-categ_or.c: Likewise.
3321         * tests/unictype/test-categ_test_withtable.c: Likewise.
3322         * tests/unictype/test-combining.c: Likewise.
3323         * tests/unictype/test-decdigit.c: Likewise.
3324         * tests/unictype/test-digit.c: Likewise.
3325         * tests/unictype/test-mirror.c: Likewise.
3326         * tests/unictype/test-numeric.c: Likewise.
3327         * tests/unictype/test-pr_byname.c: Likewise.
3328         * tests/unictype/test-pr_test.c: Likewise.
3329         * tests/unictype/test-predicate-part1.h: Likewise.
3330         * tests/unictype/test-scripts.c: Likewise.
3331         * tests/unictype/test-sy_c_ident.c: Likewise.
3332         * tests/unictype/test-sy_java_ident.c: Likewise.
3333         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
3334         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
3335         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
3336         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
3337         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
3338         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
3339         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
3340         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
3341         * tests/uninorm/test-canonical-decomposition.c: Likewise.
3342         * tests/uninorm/test-compat-decomposition.c: Likewise.
3343         * tests/uninorm/test-composition.c: Likewise.
3344         * tests/uninorm/test-decomposing-form.c: Likewise.
3345         * tests/uninorm/test-decomposition.c: Likewise.
3346         * tests/uninorm/test-u8-nfc.c: Likewise.
3347         * tests/uninorm/test-u8-nfd.c: Likewise.
3348         * tests/uninorm/test-u8-nfkc.c: Likewise.
3349         * tests/uninorm/test-u8-nfkd.c: Likewise.
3350         * tests/uninorm/test-u8-normcmp.c: Likewise.
3351         * tests/uninorm/test-u8-normcoll.c: Likewise.
3352         * tests/uninorm/test-u16-nfc.c: Likewise.
3353         * tests/uninorm/test-u16-nfd.c: Likewise.
3354         * tests/uninorm/test-u16-nfkc.c: Likewise.
3355         * tests/uninorm/test-u16-nfkd.c: Likewise.
3356         * tests/uninorm/test-u16-normcmp.c: Likewise.
3357         * tests/uninorm/test-u16-normcoll.c: Likewise.
3358         * tests/uninorm/test-u32-nfc.c: Likewise.
3359         * tests/uninorm/test-u32-nfd.c: Likewise.
3360         * tests/uninorm/test-u32-nfkc.c: Likewise.
3361         * tests/uninorm/test-u32-nfkd.c: Likewise.
3362         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3363         * tests/uninorm/test-u32-normcmp.c: Likewise.
3364         * tests/uninorm/test-u32-normcoll.c: Likewise.
3365         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
3366         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3367         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3368         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3369         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3370         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3371         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3372         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3373         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3374         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3375         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3376         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3377         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3378         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3379         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3380         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3381         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3382         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3383         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3384         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3385         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3386         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3387         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
3388         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
3389         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
3390         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
3391         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
3392         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3393         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3394         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
3395         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
3396         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
3397         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
3398         * tests/uniwidth/test-u8-strwidth.c: Likewise.
3399         * tests/uniwidth/test-u8-width.c: Likewise.
3400         * tests/uniwidth/test-u16-strwidth.c: Likewise.
3401         * tests/uniwidth/test-u16-width.c: Likewise.
3402         * tests/uniwidth/test-u32-strwidth.c: Likewise.
3403         * tests/uniwidth/test-u32-width.c: Likewise.
3404         * tests/uniwidth/test-uc_width.c: Likewise.
3405         * tests/uniwidth/test-uc_width2.c: Likewise.
3406         * modules/acl-tests (Files): Add tests/macros.h.
3407         * modules/areadlink-tests (Files): Likewise.
3408         * modules/areadlink-with-size-tests (Files): Likewise.
3409         * modules/areadlinkat-tests (Files): Likewise.
3410         * modules/areadlinkat-with-size-tests (Files): Likewise.
3411         * modules/argmatch-tests (Files): Likewise.
3412         * modules/argv-iter-tests (Files): Likewise.
3413         * modules/array-list-tests (Files): Likewise.
3414         * modules/array-mergesort-tests (Files): Likewise.
3415         * modules/array-oset-tests (Files): Likewise.
3416         * modules/avltree-list-tests (Files): Likewise.
3417         * modules/avltree-oset-tests (Files): Likewise.
3418         * modules/avltreehash-list-tests (Files): Likewise.
3419         * modules/base64-tests (Files): Likewise.
3420         * modules/binary-io-tests (Files): Likewise.
3421         * modules/bitrotate-tests (Files): Likewise.
3422         * modules/btowc-tests (Files): Likewise.
3423         * modules/byteswap-tests (Files): Likewise.
3424         * modules/c-ctype-tests (Files): Likewise.
3425         * modules/c-stack-tests (Files): Likewise.
3426         * modules/c-strcase-tests (Files): Likewise.
3427         * modules/c-strcasestr-tests (Files): Likewise.
3428         * modules/c-strstr-tests (Files): Likewise.
3429         * modules/canonicalize-lgpl-tests (Files): Likewise.
3430         * modules/canonicalize-tests (Files): Likewise.
3431         * modules/carray-list-tests (Files): Likewise.
3432         * modules/ceilf-tests (Files): Likewise.
3433         * modules/ceill-tests (Files): Likewise.
3434         * modules/chown-tests (Files): Likewise.
3435         * modules/cloexec-tests (Files): Likewise.
3436         * modules/copy-file-tests (Files): Likewise.
3437         * modules/count-one-bits-tests (Files): Likewise.
3438         * modules/dprintf-posix-tests (Files): Likewise.
3439         * modules/dup2-tests (Files): Likewise.
3440         * modules/dup3-tests (Files): Likewise.
3441         * modules/duplocale-tests (Files): Likewise.
3442         * modules/fbufmode-tests (Files): Likewise.
3443         * modules/fchdir-tests (Files): Likewise.
3444         * modules/fcntl-safer-tests (Files): Likewise.
3445         * modules/fcntl-tests (Files): Likewise.
3446         * modules/fdopendir-tests (Files): Likewise.
3447         * modules/fdutimensat-tests (Files): Likewise.
3448         * modules/fflush-tests (Files): Likewise.
3449         * modules/filevercmp-tests (Files): Likewise.
3450         * modules/flock-tests (Files): Likewise.
3451         * modules/floorf-tests (Files): Likewise.
3452         * modules/floorl-tests (Files): Likewise.
3453         * modules/fnmatch-tests (Files): Likewise.
3454         * modules/fopen-safer-tests (Files): Likewise.
3455         * modules/fopen-tests (Files): Likewise.
3456         * modules/fpending-tests (Files): Likewise.
3457         * modules/fprintf-posix-tests (Files): Likewise.
3458         * modules/fpurge-tests (Files): Likewise.
3459         * modules/freadable-tests (Files): Likewise.
3460         * modules/freadahead-tests (Files): Likewise.
3461         * modules/freading-tests (Files): Likewise.
3462         * modules/freadptr-tests (Files): Likewise.
3463         * modules/freadseek-tests (Files): Likewise.
3464         * modules/freopen-tests (Files): Likewise.
3465         * modules/frexp-nolibm-tests (Files): Likewise.
3466         * modules/frexp-tests (Files): Likewise.
3467         * modules/frexpl-nolibm-tests (Files): Likewise.
3468         * modules/frexpl-tests (Files): Likewise.
3469         * modules/fseek-tests (Files): Likewise.
3470         * modules/fseeko-tests (Files): Likewise.
3471         * modules/fstrcmp-tests (Files): Likewise.
3472         * modules/fsync-tests (Files): Likewise.
3473         * modules/ftell-tests (Files): Likewise.
3474         * modules/ftello-tests (Files): Likewise.
3475         * modules/func-tests (Files): Likewise.
3476         * modules/futimens-tests (Files): Likewise.
3477         * modules/fwritable-tests (Files): Likewise.
3478         * modules/fwriting-tests (Files): Likewise.
3479         * modules/getcwd-tests (Files): Likewise.
3480         * modules/getdate-tests (Files): Likewise.
3481         * modules/getdelim-tests (Files): Likewise.
3482         * modules/getdtablesize-tests (Files): Likewise.
3483         * modules/getgroups-tests (Files): Likewise.
3484         * modules/getline-tests (Files): Likewise.
3485         * modules/getndelim2-tests (Files): Likewise.
3486         * modules/glob-tests (Files): Likewise.
3487         * modules/hash-tests (Files): Likewise.
3488         * modules/i-ring-tests (Files): Likewise.
3489         * modules/iconv-tests (Files): Likewise.
3490         * modules/iconv_open-utf-tests (Files): Likewise.
3491         * modules/idpriv-drop-tests (Files): Likewise.
3492         * modules/idpriv-droptemp-tests (Files): Likewise.
3493         * modules/inet_ntop-tests (Files): Likewise.
3494         * modules/inet_pton-tests (Files): Likewise.
3495         * modules/isblank-tests (Files): Likewise.
3496         * modules/isfinite-tests (Files): Likewise.
3497         * modules/isinf-tests (Files): Likewise.
3498         * modules/isnan-tests (Files): Likewise.
3499         * modules/isnand-nolibm-tests (Files): Likewise.
3500         * modules/isnand-tests (Files): Likewise.
3501         * modules/isnanf-nolibm-tests (Files): Likewise.
3502         * modules/isnanf-tests (Files): Likewise.
3503         * modules/isnanl-nolibm-tests (Files): Likewise.
3504         * modules/isnanl-tests (Files): Likewise.
3505         * modules/lchown-tests (Files): Likewise.
3506         * modules/ldexpl-tests (Files): Likewise.
3507         * modules/link-tests (Files): Likewise.
3508         * modules/linkat-tests (Files): Likewise.
3509         * modules/linked-list-tests (Files): Likewise.
3510         * modules/linkedhash-list-tests (Files): Likewise.
3511         * modules/localename-tests (Files): Likewise.
3512         * modules/lseek-tests (Files): Likewise.
3513         * modules/lstat-tests (Files): Likewise.
3514         * modules/mbmemcasecmp-tests (Files): Likewise.
3515         * modules/mbmemcasecoll-tests (Files): Likewise.
3516         * modules/mbrtowc-tests (Files): Likewise.
3517         * modules/mbscasecmp-tests (Files): Likewise.
3518         * modules/mbscasestr-tests (Files): Likewise.
3519         * modules/mbschr-tests (Files): Likewise.
3520         * modules/mbscspn-tests (Files): Likewise.
3521         * modules/mbsinit-tests (Files): Likewise.
3522         * modules/mbsncasecmp-tests (Files): Likewise.
3523         * modules/mbsnrtowcs-tests (Files): Likewise.
3524         * modules/mbspbrk-tests (Files): Likewise.
3525         * modules/mbspcasecmp-tests (Files): Likewise.
3526         * modules/mbsrchr-tests (Files): Likewise.
3527         * modules/mbsrtowcs-tests (Files): Likewise.
3528         * modules/mbsspn-tests (Files): Likewise.
3529         * modules/mbsstr-tests (Files): Likewise.
3530         * modules/memchr-tests (Files): Likewise.
3531         * modules/memchr2-tests (Files): Likewise.
3532         * modules/memcmp-tests (Files): Likewise.
3533         * modules/memmem-tests (Files): Likewise.
3534         * modules/memrchr-tests (Files): Likewise.
3535         * modules/mkdir-tests (Files): Likewise.
3536         * modules/mkfifo-tests (Files): Likewise.
3537         * modules/mkfifoat-tests (Files): Likewise.
3538         * modules/mknod-tests (Files): Likewise.
3539         * modules/nanosleep-tests (Files): Likewise.
3540         * modules/nl_langinfo-tests (Files): Likewise.
3541         * modules/obstack-printf-tests (Files): Likewise.
3542         * modules/open-tests (Files): Likewise.
3543         * modules/openat-tests (Files): Likewise.
3544         * modules/pipe-filter-gi-tests (Files): Likewise.
3545         * modules/pipe-filter-ii-tests (Files): Likewise.
3546         * modules/pipe2-tests (Files): Likewise.
3547         * modules/popen-safer-tests (Files): Likewise.
3548         * modules/popen-tests (Files): Likewise.
3549         * modules/posixtm-tests (Files): Likewise.
3550         * modules/pread-tests (Files): Likewise.
3551         * modules/printf-frexp-tests (Files): Likewise.
3552         * modules/printf-frexpl-tests (Files): Likewise.
3553         * modules/printf-posix-tests (Files): Likewise.
3554         * modules/priv-set-tests (Files): Likewise.
3555         * modules/quotearg-tests (Files): Likewise.
3556         * modules/random_r-tests (Files): Likewise.
3557         * modules/rawmemchr-tests (Files): Likewise.
3558         * modules/rbtree-list-tests (Files): Likewise.
3559         * modules/rbtree-oset-tests (Files): Likewise.
3560         * modules/rbtreehash-list-tests (Files): Likewise.
3561         * modules/readlink-tests (Files): Likewise.
3562         * modules/remove-tests (Files): Likewise.
3563         * modules/rename-tests (Files): Likewise.
3564         * modules/renameat-tests (Files): Likewise.
3565         * modules/rmdir-tests (Files): Likewise.
3566         * modules/round-tests (Files): Likewise.
3567         * modules/roundf-tests (Files): Likewise.
3568         * modules/roundl-tests (Files): Likewise.
3569         * modules/safe-alloc-tests (Files): Likewise.
3570         * modules/setenv-tests (Files): Likewise.
3571         * modules/sigaction-tests (Files): Likewise.
3572         * modules/signbit-tests (Files): Likewise.
3573         * modules/sleep-tests (Files): Likewise.
3574         * modules/snprintf-posix-tests (Files): Likewise.
3575         * modules/snprintf-tests (Files): Likewise.
3576         * modules/sprintf-posix-tests (Files): Likewise.
3577         * modules/stat-tests (Files): Likewise.
3578         * modules/stat-time-tests (Files): Likewise.
3579         * modules/strcasestr-tests (Files): Likewise.
3580         * modules/strchrnul-tests (Files): Likewise.
3581         * modules/strerror-tests (Files): Likewise.
3582         * modules/striconv-tests (Files): Likewise.
3583         * modules/striconveh-tests (Files): Likewise.
3584         * modules/striconveha-tests (Files): Likewise.
3585         * modules/strsignal-tests (Files): Likewise.
3586         * modules/strstr-tests (Files): Likewise.
3587         * modules/strtod-tests (Files): Likewise.
3588         * modules/strverscmp-tests (Files): Likewise.
3589         * modules/symlink-tests (Files): Likewise.
3590         * modules/symlinkat-tests (Files): Likewise.
3591         * modules/trunc-tests (Files): Likewise.
3592         * modules/truncf-tests (Files): Likewise.
3593         * modules/truncl-tests (Files): Likewise.
3594         * modules/uname-tests (Files): Likewise.
3595         * modules/unicase/cased-tests (Files): Likewise.
3596         * modules/unicase/ignorable-tests (Files): Likewise.
3597         * modules/unicase/locale-language-tests (Files): Likewise.
3598         * modules/unicase/tolower-tests (Files): Likewise.
3599         * modules/unicase/totitle-tests (Files): Likewise.
3600         * modules/unicase/toupper-tests (Files): Likewise.
3601         * modules/unicase/u8-casecmp-tests (Files): Likewise.
3602         * modules/unicase/u8-casecoll-tests (Files): Likewise.
3603         * modules/unicase/u8-casefold-tests (Files): Likewise.
3604         * modules/unicase/u8-is-cased-tests (Files): Likewise.
3605         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
3606         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
3607         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
3608         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
3609         * modules/unicase/u8-tolower-tests (Files): Likewise.
3610         * modules/unicase/u8-totitle-tests (Files): Likewise.
3611         * modules/unicase/u8-toupper-tests (Files): Likewise.
3612         * modules/unicase/u16-casecmp-tests (Files): Likewise.
3613         * modules/unicase/u16-casecoll-tests (Files): Likewise.
3614         * modules/unicase/u16-casefold-tests (Files): Likewise.
3615         * modules/unicase/u16-is-cased-tests (Files): Likewise.
3616         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
3617         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
3618         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
3619         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
3620         * modules/unicase/u16-tolower-tests (Files): Likewise.
3621         * modules/unicase/u16-totitle-tests (Files): Likewise.
3622         * modules/unicase/u16-toupper-tests (Files): Likewise.
3623         * modules/unicase/u32-casecmp-tests (Files): Likewise.
3624         * modules/unicase/u32-casecoll-tests (Files): Likewise.
3625         * modules/unicase/u32-casefold-tests (Files): Likewise.
3626         * modules/unicase/u32-is-cased-tests (Files): Likewise.
3627         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
3628         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
3629         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
3630         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
3631         * modules/unicase/u32-tolower-tests (Files): Likewise.
3632         * modules/unicase/u32-totitle-tests (Files): Likewise.
3633         * modules/unicase/u32-toupper-tests (Files): Likewise.
3634         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
3635         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
3636         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
3637         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
3638         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
3639         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
3640         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
3641         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
3642         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
3643         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
3644         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
3645         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
3646         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
3647         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
3648         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
3649         * modules/unictype/bidicategory-name-tests (Files): Likewise.
3650         * modules/unictype/bidicategory-of-tests (Files): Likewise.
3651         * modules/unictype/bidicategory-test-tests (Files): Likewise.
3652         * modules/unictype/block-list-tests (Files): Likewise.
3653         * modules/unictype/block-of-tests (Files): Likewise.
3654         * modules/unictype/block-test-tests (Files): Likewise.
3655         * modules/unictype/category-C-tests (Files): Likewise.
3656         * modules/unictype/category-Cc-tests (Files): Likewise.
3657         * modules/unictype/category-Cf-tests (Files): Likewise.
3658         * modules/unictype/category-Cn-tests (Files): Likewise.
3659         * modules/unictype/category-Co-tests (Files): Likewise.
3660         * modules/unictype/category-Cs-tests (Files): Likewise.
3661         * modules/unictype/category-L-tests (Files): Likewise.
3662         * modules/unictype/category-Ll-tests (Files): Likewise.
3663         * modules/unictype/category-Lm-tests (Files): Likewise.
3664         * modules/unictype/category-Lo-tests (Files): Likewise.
3665         * modules/unictype/category-Lt-tests (Files): Likewise.
3666         * modules/unictype/category-Lu-tests (Files): Likewise.
3667         * modules/unictype/category-M-tests (Files): Likewise.
3668         * modules/unictype/category-Mc-tests (Files): Likewise.
3669         * modules/unictype/category-Me-tests (Files): Likewise.
3670         * modules/unictype/category-Mn-tests (Files): Likewise.
3671         * modules/unictype/category-N-tests (Files): Likewise.
3672         * modules/unictype/category-Nd-tests (Files): Likewise.
3673         * modules/unictype/category-Nl-tests (Files): Likewise.
3674         * modules/unictype/category-No-tests (Files): Likewise.
3675         * modules/unictype/category-P-tests (Files): Likewise.
3676         * modules/unictype/category-Pc-tests (Files): Likewise.
3677         * modules/unictype/category-Pd-tests (Files): Likewise.
3678         * modules/unictype/category-Pe-tests (Files): Likewise.
3679         * modules/unictype/category-Pf-tests (Files): Likewise.
3680         * modules/unictype/category-Pi-tests (Files): Likewise.
3681         * modules/unictype/category-Po-tests (Files): Likewise.
3682         * modules/unictype/category-Ps-tests (Files): Likewise.
3683         * modules/unictype/category-S-tests (Files): Likewise.
3684         * modules/unictype/category-Sc-tests (Files): Likewise.
3685         * modules/unictype/category-Sk-tests (Files): Likewise.
3686         * modules/unictype/category-Sm-tests (Files): Likewise.
3687         * modules/unictype/category-So-tests (Files): Likewise.
3688         * modules/unictype/category-Z-tests (Files): Likewise.
3689         * modules/unictype/category-Zl-tests (Files): Likewise.
3690         * modules/unictype/category-Zp-tests (Files): Likewise.
3691         * modules/unictype/category-Zs-tests (Files): Likewise.
3692         * modules/unictype/category-and-not-tests (Files): Likewise.
3693         * modules/unictype/category-and-tests (Files): Likewise.
3694         * modules/unictype/category-byname-tests (Files): Likewise.
3695         * modules/unictype/category-name-tests (Files): Likewise.
3696         * modules/unictype/category-none-tests (Files): Likewise.
3697         * modules/unictype/category-of-tests (Files): Likewise.
3698         * modules/unictype/category-or-tests (Files): Likewise.
3699         * modules/unictype/category-test-withtable-tests (Files): Likewise.
3700         * modules/unictype/combining-class-tests (Files): Likewise.
3701         * modules/unictype/ctype-alnum-tests (Files): Likewise.
3702         * modules/unictype/ctype-alpha-tests (Files): Likewise.
3703         * modules/unictype/ctype-blank-tests (Files): Likewise.
3704         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
3705         * modules/unictype/ctype-digit-tests (Files): Likewise.
3706         * modules/unictype/ctype-graph-tests (Files): Likewise.
3707         * modules/unictype/ctype-lower-tests (Files): Likewise.
3708         * modules/unictype/ctype-print-tests (Files): Likewise.
3709         * modules/unictype/ctype-punct-tests (Files): Likewise.
3710         * modules/unictype/ctype-space-tests (Files): Likewise.
3711         * modules/unictype/ctype-upper-tests (Files): Likewise.
3712         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
3713         * modules/unictype/decimal-digit-tests (Files): Likewise.
3714         * modules/unictype/digit-tests (Files): Likewise.
3715         * modules/unictype/mirror-tests (Files): Likewise.
3716         * modules/unictype/numeric-tests (Files): Likewise.
3717         * modules/unictype/property-alphabetic-tests (Files): Likewise.
3718         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
3719         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
3720         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
3721         Likewise.
3722         * modules/unictype/property-bidi-block-separator-tests (Files):
3723         Likewise.
3724         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
3725         Likewise.
3726         * modules/unictype/property-bidi-common-separator-tests (Files):
3727         Likewise.
3728         * modules/unictype/property-bidi-control-tests (Files): Likewise.
3729         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
3730         Likewise.
3731         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
3732         Likewise.
3733         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
3734         Likewise.
3735         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
3736         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
3737         Likewise.
3738         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
3739         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
3740         Likewise.
3741         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
3742         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
3743         * modules/unictype/property-bidi-segment-separator-tests (Files):
3744         Likewise.
3745         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
3746         * modules/unictype/property-byname-tests (Files): Likewise.
3747         * modules/unictype/property-combining-tests (Files): Likewise.
3748         * modules/unictype/property-composite-tests (Files): Likewise.
3749         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
3750         * modules/unictype/property-dash-tests (Files): Likewise.
3751         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
3752         * modules/unictype/property-default-ignorable-code-point-tests (Files):
3753         Likewise.
3754         * modules/unictype/property-deprecated-tests (Files): Likewise.
3755         * modules/unictype/property-diacritic-tests (Files): Likewise.
3756         * modules/unictype/property-extender-tests (Files): Likewise.
3757         * modules/unictype/property-format-control-tests (Files): Likewise.
3758         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
3759         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
3760         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
3761         * modules/unictype/property-hex-digit-tests (Files): Likewise.
3762         * modules/unictype/property-hyphen-tests (Files): Likewise.
3763         * modules/unictype/property-id-continue-tests (Files): Likewise.
3764         * modules/unictype/property-id-start-tests (Files): Likewise.
3765         * modules/unictype/property-ideographic-tests (Files): Likewise.
3766         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
3767         * modules/unictype/property-ids-trinary-operator-tests (Files):
3768         Likewise.
3769         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
3770         * modules/unictype/property-iso-control-tests (Files): Likewise.
3771         * modules/unictype/property-join-control-tests (Files): Likewise.
3772         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
3773         * modules/unictype/property-line-separator-tests (Files): Likewise.
3774         * modules/unictype/property-logical-order-exception-tests (Files):
3775         Likewise.
3776         * modules/unictype/property-lowercase-tests (Files): Likewise.
3777         * modules/unictype/property-math-tests (Files): Likewise.
3778         * modules/unictype/property-non-break-tests (Files): Likewise.
3779         * modules/unictype/property-not-a-character-tests (Files): Likewise.
3780         * modules/unictype/property-numeric-tests (Files): Likewise.
3781         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
3782         * modules/unictype/property-other-default-ignorable-code-point-tests
3783         (Files): Likewise.
3784         * modules/unictype/property-other-grapheme-extend-tests (Files):
3785         Likewise.
3786         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
3787         * modules/unictype/property-other-id-start-tests (Files): Likewise.
3788         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
3789         * modules/unictype/property-other-math-tests (Files): Likewise.
3790         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
3791         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
3792         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
3793         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
3794         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
3795         * modules/unictype/property-private-use-tests (Files): Likewise.
3796         * modules/unictype/property-punctuation-tests (Files): Likewise.
3797         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
3798         * modules/unictype/property-radical-tests (Files): Likewise.
3799         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
3800         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
3801         * modules/unictype/property-space-tests (Files): Likewise.
3802         * modules/unictype/property-terminal-punctuation-tests (Files):
3803         Likewise.
3804         * modules/unictype/property-test-tests (Files): Likewise.
3805         * modules/unictype/property-titlecase-tests (Files): Likewise.
3806         * modules/unictype/property-unassigned-code-value-tests (Files):
3807         Likewise.
3808         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
3809         * modules/unictype/property-uppercase-tests (Files): Likewise.
3810         * modules/unictype/property-variation-selector-tests (Files): Likewise.
3811         * modules/unictype/property-white-space-tests (Files): Likewise.
3812         * modules/unictype/property-xid-continue-tests (Files): Likewise.
3813         * modules/unictype/property-xid-start-tests (Files): Likewise.
3814         * modules/unictype/property-zero-width-tests (Files): Likewise.
3815         * modules/unictype/scripts-tests (Files): Likewise.
3816         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
3817         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
3818         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
3819         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
3820         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
3821         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
3822         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
3823         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
3824         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
3825         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
3826         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
3827         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
3828         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
3829         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
3830         * modules/uninorm/composition-tests (Files): Likewise.
3831         * modules/uninorm/decomposing-form-tests (Files): Likewise.
3832         * modules/uninorm/decomposition-tests (Files): Likewise.
3833         * modules/uninorm/filter-tests (Files): Likewise.
3834         * modules/uninorm/nfc-tests (Files): Likewise.
3835         * modules/uninorm/nfd-tests (Files): Likewise.
3836         * modules/uninorm/nfkc-tests (Files): Likewise.
3837         * modules/uninorm/nfkd-tests (Files): Likewise.
3838         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
3839         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
3840         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
3841         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
3842         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
3843         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
3844         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
3845         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3846         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
3847         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
3848         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
3849         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
3850         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3851         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
3852         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
3853         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
3854         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
3855         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3856         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
3857         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
3858         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
3859         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
3860         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3861         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
3862         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
3863         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
3864         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
3865         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
3866         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
3867         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
3868         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
3869         * modules/uniwidth/u8-width-tests (Files): Likewise.
3870         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
3871         * modules/uniwidth/u16-width-tests (Files): Likewise.
3872         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
3873         * modules/uniwidth/u32-width-tests (Files): Likewise.
3874         * modules/uniwidth/width-tests (Files): Likewise.
3875         * modules/unlink-tests (Files): Likewise.
3876         * modules/unsetenv-tests (Files): Likewise.
3877         * modules/usleep-tests (Files): Likewise.
3878         * modules/utimens-tests (Files): Likewise.
3879         * modules/utimensat-tests (Files): Likewise.
3880         * modules/vasnprintf-posix-tests (Files): Likewise.
3881         * modules/vasnprintf-tests (Files): Likewise.
3882         * modules/vasprintf-posix-tests (Files): Likewise.
3883         * modules/vasprintf-tests (Files): Likewise.
3884         * modules/vdprintf-posix-tests (Files): Likewise.
3885         * modules/vfprintf-posix-tests (Files): Likewise.
3886         * modules/vprintf-posix-tests (Files): Likewise.
3887         * modules/vsnprintf-posix-tests (Files): Likewise.
3888         * modules/vsnprintf-tests (Files): Likewise.
3889         * modules/vsprintf-posix-tests (Files): Likewise.
3890         * modules/wcrtomb-tests (Files): Likewise.
3891         * modules/wcsnrtombs-tests (Files): Likewise.
3892         * modules/wcsrtombs-tests (Files): Likewise.
3893         * modules/wctype-tests (Files): Likewise.
3894         * modules/wcwidth-tests (Files): Likewise.
3895         * modules/xmemdup0-tests (Files): Likewise.
3896         * modules/xprintf-posix-tests (Files): Likewise.
3897         * modules/xvasprintf-tests (Files): Likewise.
3898
3899 2009-12-24  Eric Blake  <ebb9@byu.net>
3900
3901         test-nanosleep: fix typo
3902         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
3903         patch.
3904         Reported by Bruno Haible.
3905
3906 2009-12-24  Bruno Haible  <bruno@clisp.org>
3907
3908         Reduce namespace pollution on glibc systems.
3909         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
3910         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
3911         systems.
3912         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
3913         <getopt.h> on glibc systems.
3914         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
3915         systems.
3916         * lib/fcntl.c: Include <unistd.h> here instead.
3917
3918 2009-12-24  Bruno Haible  <bruno@clisp.org>
3919
3920         * lib/stdlib.in.h (includes): Fix typo in today's commit.
3921
3922 2009-12-24  Eric Blake  <ebb9@byu.net>
3923
3924         tests: add signature checks
3925         * tests/signature.h (SIGNATURE_CHECK): New file.
3926         * modules/atexit-tests (Files): Use it.
3927         * modules/btowc-tests (Files): Likewise.
3928         * modules/canonicalize-lgpl-tests (Files): Likewise.
3929         * modules/ceilf-tests (Files): Likewise.
3930         * modules/ceill-tests (Files): Likewise.
3931         * modules/chown-tests (Files): Likewise.
3932         * modules/dprintf-posix-tests (Files): Likewise.
3933         * modules/dup2-tests (Files): Likewise.
3934         * modules/dup3-tests (Files): Likewise.
3935         * modules/duplocale-tests (Files): Likewise.
3936         * modules/fchdir-tests (Files): Likewise.
3937         * modules/fcntl-tests (Files): Likewise.
3938         * modules/fdopendir-tests (Files): Likewise.
3939         * modules/fflush-tests (Files): Likewise.
3940         * modules/flock-tests (Files): Likewise.
3941         * modules/floorf-tests (Files): Likewise.
3942         * modules/floorl-tests (Files): Likewise.
3943         * modules/fnmatch-tests (Files): Likewise.
3944         * modules/fopen-tests (Files): Likewise.
3945         * modules/fprintf-posix-tests (Files): Likewise.
3946         * modules/freopen-tests (Files): Likewise.
3947         * modules/frexp-nolibm-tests (Files): Likewise.
3948         * modules/frexp-tests (Files): Likewise.
3949         * modules/frexpl-nolibm-tests (Files): Likewise.
3950         * modules/frexpl-tests (Files): Likewise.
3951         * modules/fseek-tests (Files): Likewise.
3952         * modules/fseeko-tests (Files): Likewise.
3953         * modules/fsync-tests (Files): Likewise.
3954         * modules/ftell-tests (Files): Likewise.
3955         * modules/ftello-tests (Files): Likewise.
3956         * modules/futimens-tests (Files): Likewise.
3957         * modules/getaddrinfo-tests (Files): Likewise.
3958         * modules/getcwd-tests (Files): Likewise.
3959         * modules/getdelim-tests (Files): Likewise.
3960         * modules/getdtablesize-tests (Files): Likewise.
3961         * modules/getgroups-tests (Files): Likewise.
3962         * modules/gethostname-tests (Files): Likewise.
3963         * modules/getline-tests (Files): Likewise.
3964         * modules/getopt-posix-tests (Files): Likewise.
3965         * modules/gettimeofday-tests (Files): Likewise.
3966         * modules/glob-tests (Files): Likewise.
3967         * modules/iconv-tests (Files): Likewise.
3968         * modules/inet_ntop-tests (Files): Likewise.
3969         * modules/inet_pton-tests (Files): Likewise.
3970         * modules/isblank-tests (Files): Likewise.
3971         * modules/lchown-tests (Files): Likewise.
3972         * modules/ldexpl-tests (Files): Likewise.
3973         * modules/link-tests (Files): Likewise.
3974         * modules/linkat-tests (Files): Likewise.
3975         * modules/lseek-tests (Files): Likewise.
3976         * modules/lstat-tests (Files): Likewise.
3977         * modules/mbrtowc-tests (Files): Likewise.
3978         * modules/mbsinit-tests (Files): Likewise.
3979         * modules/mbsnrtowcs-tests (Files): Likewise.
3980         * modules/mbsrtowcs-tests (Files): Likewise.
3981         * modules/memchr-tests (Files): Likewise.
3982         * modules/memcmp-tests (Files): Likewise.
3983         * modules/memmem-tests (Files): Likewise.
3984         * modules/memrchr-tests (Files): Likewise.
3985         * modules/mkdir-tests (Files): Likewise.
3986         * modules/mkfifo-tests (Files): Likewise.
3987         * modules/mkfifoat-tests (Files): Likewise.
3988         * modules/mknod-tests (Files): Likewise.
3989         * modules/nanosleep-tests (Files): Likewise.
3990         * modules/nl_langinfo-tests (Files): Likewise.
3991         * modules/obstack-printf-tests (Files): Likewise.
3992         * modules/open-tests (Files): Likewise.
3993         * modules/openat-tests (Files): Likewise.
3994         * modules/perror-tests (Files): Likewise.
3995         * modules/pipe2-tests (Files): Likewise.
3996         * modules/poll-tests (Files): Likewise.
3997         * modules/popen-tests (Files): Likewise.
3998         * modules/posix_spawn-tests (Files): Likewise.
3999         * modules/posix_spawnp-tests (Files): Likewise.
4000         * modules/pread-tests (Files): Likewise.
4001         * modules/printf-posix-tests (Files): Likewise.
4002         * modules/pty-tests (Files): Likewise.
4003         * modules/random_r-tests (Files): Likewise.
4004         * modules/rawmemchr-tests (Files): Likewise.
4005         * modules/readlink-tests (Files): Likewise.
4006         * modules/remove-tests (Files): Likewise.
4007         * modules/rename-tests (Files): Likewise.
4008         * modules/renameat-tests (Files): Likewise.
4009         * modules/rmdir-tests (Files): Likewise.
4010         * modules/round-tests (Files): Likewise.
4011         * modules/roundf-tests (Files): Likewise.
4012         * modules/roundl-tests (Files): Likewise.
4013         * modules/select-tests (Files): Likewise.
4014         * modules/setenv-tests (Files): Likewise.
4015         * modules/sigaction-tests (Files): Likewise.
4016         * modules/sleep-tests (Files): Likewise.
4017         * modules/snprintf-posix-tests (Files): Likewise.
4018         * modules/snprintf-tests (Files): Likewise.
4019         * modules/sprintf-posix-tests (Files): Likewise.
4020         * modules/stat-tests (Files): Likewise.
4021         * modules/strcasestr-tests (Files): Likewise.
4022         * modules/strchrnul-tests (Files): Likewise.
4023         * modules/strerror-tests (Files): Likewise.
4024         * modules/strsignal-tests (Files): Likewise.
4025         * modules/strstr-tests (Files): Likewise.
4026         * modules/strtod-tests (Files): Likewise.
4027         * modules/strverscmp-tests (Files): Likewise.
4028         * modules/symlink-tests (Files): Likewise.
4029         * modules/symlinkat-tests (Files): Likewise.
4030         * modules/times-tests (Files): Likewise.
4031         * modules/trunc-tests (Files): Likewise.
4032         * modules/truncf-tests (Files): Likewise.
4033         * modules/truncl-tests (Files): Likewise.
4034         * modules/tsearch-tests (Files): Likewise.
4035         * modules/uname-tests (Files): Likewise.
4036         * modules/unlink-tests (Files): Likewise.
4037         * modules/unsetenv-tests (Files): Likewise.
4038         * modules/usleep-tests (Files): Likewise.
4039         * modules/utimensat-tests (Files): Likewise.
4040         * modules/vasprintf-tests (Files): Likewise.
4041         * modules/vdprintf-posix-tests (Files): Likewise.
4042         * modules/vfprintf-posix-tests (Files): Likewise.
4043         * modules/vprintf-posix-tests (Files): Likewise.
4044         * modules/vsnprintf-posix-tests (Files): Likewise.
4045         * modules/vsnprintf-tests (Files): Likewise.
4046         * modules/vsprintf-posix-tests (Files): Likewise.
4047         * modules/wcrtomb-tests (Files): Likewise.
4048         * modules/wcsnrtombs-tests (Files): Likewise.
4049         * modules/wcsrtombs-tests (Files): Likewise.
4050         * modules/wcwidth-tests (Files): Likewise.
4051         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4052         * tests/test-isinf.c (isinf): Likewise.
4053         * tests/test-isnan.c (isnan): Likewise.
4054         * tests/test-signbit.c (signbit): Likewise.
4055         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4056         declaration, either as macro or with correct signature.
4057         (select): Ensure function under test is declared with correct
4058         signature in correct header.
4059         * tests/test-atexit.c (atexit): Likewise.
4060         * tests/test-btowc.c (btowc): Likewise.
4061         * tests/test-canonicalize-lgpl.c (realpath)
4062         (canonicalize_file_name): Likewise.
4063         * tests/test-ceilf1.c (ceilf): Likewise.
4064         * tests/test-ceill.c (ceill): Likewise.
4065         * tests/test-chown.c (chown): Likewise.
4066         * tests/test-dprintf-posix.c (dprintf): Likewise.
4067         * tests/test-dup2.c (dup2): Likewise.
4068         * tests/test-dup3.c (dup3): Likewise.
4069         * tests/test-duplocale.c (duplocale): Likewise.
4070         * tests/test-fchdir.c (fchdir): Likewise.
4071         * tests/test-fchownat.c (fchownat): Likewise.
4072         * tests/test-fcntl.c (fcntl): Likewise.
4073         * tests/test-fdopendir.c (fdopendir): Likewise.
4074         * tests/test-fflush.c (fflush): Likewise.
4075         * tests/test-flock.c (flock): Likewise.
4076         * tests/test-floorf1.c (floorf): Likewise.
4077         * tests/test-floorl.c (floorl): Likewise.
4078         * tests/test-fnmatch.c (fnmatch): Likewise.
4079         * tests/test-fopen.c (fopen): Likewise.
4080         * tests/test-fprintf-posix.c (fprintf): Likewise.
4081         * tests/test-freopen.c (freopen): Likewise.
4082         * tests/test-frexp.c (frexp): Likewise.
4083         * tests/test-frexpl.c (frexpl): Likewise.
4084         * tests/test-fseek.c (fseek): Likewise.
4085         * tests/test-fseeko.c (fseeko): Likewise.
4086         * tests/test-fstatat.c (fstatat): Likewise.
4087         * tests/test-fsync.c (fsync): Likewise.
4088         * tests/test-ftell.c (ftell): Likewise.
4089         * tests/test-ftello.c (ftello): Likewise.
4090         * tests/test-futimens.c (futimens): Likewise.
4091         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4092         (gai_strerror): Likewise.
4093         * tests/test-getcwd.c (getcwd): Likewise.
4094         * tests/test-getdelim.c (getdelim): Likewise.
4095         * tests/test-getdtablesize.c (getdtablesize): Likewise.
4096         * tests/test-getgroups.c (getgroups): Likewise.
4097         * tests/test-gethostname.c (gethostname): Likewise.
4098         * tests/test-getline.c (getline): Likewise.
4099         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4100         Likewise.
4101         * tests/test-gettimeofday.c (gettimeofday): Likewise.
4102         * tests/test-glob.c (glob, globfree): Likewise.
4103         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4104         * tests/test-inet_ntop.c (inet_ntop): Likewise.
4105         * tests/test-inet_pton.c (inet_pton): Likewise.
4106         * tests/test-isblank.c (isblank): Likewise.
4107         * tests/test-lchown.c (lchown): Likewise.
4108         * tests/test-ldexpl.c (ldexpl): Likewise.
4109         * tests/test-link.c (link): Likewise.
4110         * tests/test-linkat.c (linkat): Likewise.
4111         * tests/test-lseek.c (lseek): Likewise.
4112         * tests/test-lstat.c (lstat): Likewise.
4113         * tests/test-mbrtowc.c (mbrtowc): Likewise.
4114         * tests/test-mbsinit.c (mbsinit): Likewise.
4115         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4116         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4117         * tests/test-memchr.c (memchr): Likewise.
4118         * tests/test-memcmp.c (memcmp): Likewise.
4119         * tests/test-memmem.c (memmem): Likewise.
4120         * tests/test-memrchr.c (memrchr): Likewise.
4121         * tests/test-mkdir.c (mkdir): Likewise.
4122         * tests/test-mkdirat.c (mkdirat): Likewise.
4123         * tests/test-mkfifo.c (mkfifo): Likewise.
4124         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4125         * tests/test-mknod.c (mknod): Likewise.
4126         * tests/test-nanosleep.c (nanosleep): Likewise.
4127         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4128         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4129         Likewise.
4130         * tests/test-open.c (open): Likewise.
4131         * tests/test-openat.c (openat): Likewise.
4132         * tests/test-perror.c (perror): Likewise.
4133         * tests/test-pipe2.c (pipe2): Likewise.
4134         * tests/test-poll.c (poll): Likewise.
4135         * tests/test-popen.c (popen, pclose): Likewise.
4136         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4137         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4138         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4139         (posix_spawn_file_actions_destroy)
4140         (posix_spawn_file_actions_addclose)
4141         (posix_spawn_file_actions_addopen)
4142         (posix_spawn_file_actions_adddup2): Likewise.
4143         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4144         * tests/test-pread.c (pread): Likewise.
4145         * tests/test-printf-posix.c (printf): Likewise.
4146         * tests/test-pty.c (openpty, forkpty): Likewise.
4147         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4148         (random_r): Likewise.
4149         * tests/test-rawmemchr.c (rawmemchr): Likewise.
4150         * tests/test-readlink.c (readlink): Likewise.
4151         * tests/test-remove.c (remove): Likewise.
4152         * tests/test-rename.c (rename): Likewise.
4153         * tests/test-renameat.c (renameat): Likewise.
4154         * tests/test-rmdir.c (rmdir): Likewise.
4155         * tests/test-round1.c (round): Likewise.
4156         * tests/test-roundf1.c (roundf): Likewise.
4157         * tests/test-roundl.c (roundl): Likewise.
4158         * tests/test-setenv.c (setenv): Likewise.
4159         * tests/test-sigaction.c (sigaction): Likewise.
4160         * tests/test-sleep.c (sleep): Likewise.
4161         * tests/test-snprintf.c (snprintf): Likewise.
4162         * tests/test-sprintf-posix.c (sprintf): Likewise.
4163         * tests/test-stat.c (stat): Likewise.
4164         * tests/test-stpncpy.c (stpncpy): Likewise.
4165         * tests/test-strcasestr.c (strcasestr): Likewise.
4166         * tests/test-strchrnul.c (strchrnul): Likewise.
4167         * tests/test-strerror.c (strerror): Likewise.
4168         * tests/test-strsignal.c (strsignal): Likewise.
4169         * tests/test-strstr.c (strstr): Likewise.
4170         * tests/test-strtod.c (strtod): Likewise.
4171         * tests/test-strverscmp.c (strverscmp): Likewise.
4172         * tests/test-symlink.c (symlink): Likewise.
4173         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4174         * tests/test-times.c (times): Likewise.
4175         * tests/test-trunc1.c (trunc): Likewise.
4176         * tests/test-truncf1.c (truncf): Likewise.
4177         * tests/test-truncl.c (truncl): Likewise.
4178         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4179         Likewise.
4180         * tests/test-uname.c (uname): Likewise.
4181         * tests/test-unlink.c (unlink): Likewise.
4182         * tests/test-unlinkat.c (unlinkat): Likewise.
4183         * tests/test-unsetenv.c (unsetenv): Likewise.
4184         * tests/test-usleep.c (usleep): Likewise.
4185         * tests/test-utimensat.c (utimensat): Likewise.
4186         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4187         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4188         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4189         * tests/test-vprintf-posix.c (vprintf): Likewise.
4190         * tests/test-vsnprintf.c (vsnprintf): Likewise.
4191         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4192         * tests/test-wcrtomb.c (wcrtomb): Likewise.
4193         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4194         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4195         * tests/test-wcwidth.c (wcwidth): Likewise.
4196
4197         build: pull in conditional headers during GNULIB_POSIXCHECK
4198         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4199         definitions from any conditionally-included headers.
4200         * lib/stdlib.in.h (includes): Likewise.
4201         * lib/unistd.in.h (includes): Likewise.
4202
4203 2009-12-24  Bruno Haible  <bruno@clisp.org>
4204
4205         * tests/test-argv-iter.c: Include header file being tested immediately
4206         after config.h.
4207         * tests/test-base64.c: Likewise.
4208         * tests/test-flock.c: Likewise.
4209         * tests/test-fsync.c: Likewise.
4210         * tests/test-getdate.c: Likewise.
4211         * tests/test-getndelim2.c: Likewise.
4212         * tests/test-isfinite.c: Likewise.
4213         * tests/test-isinf.c: Likewise.
4214         * tests/test-strerror.c: Likewise.
4215         * tests/test-strsignal.c: Likewise.
4216
4217 2009-12-23  Eric Blake  <ebb9@byu.net>
4218
4219         unistd: work around cygwin bug
4220         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4221         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4222         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4223
4224 2009-12-23  Bruno Haible  <bruno@clisp.org>
4225
4226         localename: More tests.
4227         * tests/test-localename.c (SIZEOF): New macro.
4228         (categories): New variable.
4229         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4230         test_locale_name_default): Add test w.r.t. thread locale.
4231         (test_locale_name_thread): New function.
4232         (main): Invoke it.
4233
4234         localename: Make aware of thread locale.
4235         * lib/localename.h (gl_locale_name_thread): New declaration.
4236         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4237         behaviour with respect to thread locale.
4238         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4239         <langinfo.h>, glthread/lock.h.
4240         (SIZE_BITS): New macro.
4241         (string_hash): New function.
4242         (struct hash_node): New type.
4243         (HASH_TABLE_SIZE): New macro.
4244         (struniq_hash_table, struniq_lock): New variables.
4245         (struniq): New function.
4246         (gl_locale_name_thread): New function.
4247         (gl_locale_name): Invoke it.
4248         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4249         * modules/localename (Depends-on): Add lock.
4250         Reported by Mike Gran <spk121@yahoo.com>.
4251
4252 2009-12-23  Eric Blake  <ebb9@byu.net>
4253
4254         va-args: new module
4255         * modules/va-args: New file.
4256         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4257         * MODULES.html.sh (Core language properties): Mention it.
4258
4259         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4260         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4261         named alias for __attribute__((__unused__)).
4262         * lib/chown.c: Update client.
4263         * lib/fchmodat.c: Likewise.
4264         * lib/fts.c: Likewise.
4265         * lib/getdate.y: Likewise.
4266         * lib/getgroups.c: Likewise.
4267         * lib/getopt.c: Likewise.
4268         * lib/getugroups.c: Likewise.
4269         * lib/mkdir.c: Likewise.
4270         * lib/mkfifo.c: Likewise.
4271         * lib/mkfifoat.c: Likewise.
4272         * lib/mknod.c: Likewise.
4273         * lib/mknodat.c: Likewise.
4274         * lib/readlink.c: Likewise.
4275         * lib/se-context.in.h: Likewise.
4276         * lib/se-selinux.in.h: Likewise.
4277         * lib/sockets.c: Likewise.
4278         * lib/symlink.c: Likewise.
4279         * lib/symlinkat.c: Likewise.
4280         * lib/unicodeio.c: Likewise.
4281         * lib/unistr.h: Likewise.
4282         * tests/test-areadlink.c: Likewise.
4283         * tests/test-areadlinkat.c: Likewise.
4284         * tests/test-filenamecat.c: Likewise.
4285         * tests/test-fseeko.c: Likewise.
4286         * tests/test-ftello.c: Likewise.
4287         * tests/test-getdate.c: Likewise.
4288         * tests/test-getgroups.c: Likewise.
4289         * tests/test-gethostname.c: Likewise.
4290         * tests/test-quotearg.c: Likewise.
4291         * tests/test-version-etc.c: Likewise.
4292         * tests/test-xalloc-die.c: Likewise.
4293         * tests/test-xfprintf-posix.c: Likewise.
4294         * tests/test-xprintf-posix.c: Likewise.
4295         * tests/test-xvasprintf.c: Likewise.
4296
4297         tests: avoid compiler warnings
4298         * tests/test-fcntl.c (main): Delete unused parameters.
4299         * tests/test-freopen-safer.c (main): Likewise.
4300         * tests/test-xalloc-die.c (main): Mark unused parameters.
4301         * tests/test-fseeko.c (main): Likewise.
4302         * tests/test-ftello.c (main): Likewise.
4303         * tests/test-nanosleep.c (main): Avoid declaration warning.
4304         * tests/test-sleep.c (main): Likewise.
4305         * tests/test-unsetenv.c (main): Silence warning about string
4306         literal.
4307         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4308
4309 2009-12-23  Bruno Haible  <bruno@clisp.org>
4310
4311         * tests/test-localename.c (test_locale_name): New function, extracted
4312         from main. Also test mixed situations.
4313         (test_locale_name_posix, test_locale_name_environ,
4314         test_locale_name_default): New functions.
4315         (main): Invoke them all.
4316         * modules/localename-tests (configure.ac): Test for newlocale.
4317
4318 2009-12-23  Bruno Haible  <bruno@clisp.org>
4319
4320         unistd: Ensure getcwd gets declared before being overridden.
4321         * lib/unistd.in.h: Conditionally include <io.h>.
4322
4323 2009-12-22  Bruno Haible  <bruno@clisp.org>
4324
4325         wchar: Diagnose broken combination of glibc and gcc versions and flags.
4326         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
4327         (gl_WCHAR_H): Invoke it.
4328         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
4329         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
4330         Reported by Karl Berry <karl@freefriends.org>.
4331
4332 2009-12-22  Eric Blake  <ebb9@byu.net>
4333
4334         math, unistd: avoid redundant includes
4335         * lib/math.in.h (isnan): No need to re-include <math.h>.
4336         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
4337
4338         getsubopt: work around cygwin bug
4339         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
4340         avoid conflicting with system getsubopt.
4341         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
4342         bug.
4343
4344         getopt: synchronize from glibc
4345         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
4346         parameter order.  Adjust all callers.
4347         (_getopt_internal_r, main): Adjust quoting in error messages.
4348         Drop considerations for outdated POSIX 1003.2 error message.
4349         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
4350         callers.
4351         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
4352
4353         test-getopt: test stderr behavior
4354         * modules/getopt-posix-tests (Depends-on): Add dup2.
4355         * tests/test-getopt.c (ASSERT): Avoid stderr.
4356         (main): Move stderr to a temporary file.
4357         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
4358         Instead, add parameter to inform caller if output occurred.
4359         (test_getopt): Adjust all existing tests to expect silence, and
4360         add new tests of leading ":".
4361         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4362         glibc shortcomings with leading "-:" or "+:" in optstring.
4363         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4364         Likewise.
4365         * doc/posix-functions/getopt.texi (getopt): Likewise.
4366
4367         test-getopt: enhance test
4368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
4369         supports optind=0.
4370         * tests/test-getopt.c (OPTIND_MIN): Move...
4371         * tests/test-getopt.h (OPTIND_MIN): ...here.
4372         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
4373         Require that optind=0 works, since modern BSD supports it in
4374         addition to optreset, and since coreutils expects it.
4375         (test_getopt_long_only): New test.
4376         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4377         glibc shortcomings with 'W;', and enforcement of optind=0.
4378         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4379         Likewise.
4380
4381 2009-12-21  Bruno Haible  <bruno@clisp.org>
4382
4383         localename: Improvements for MacOS X and Cygwin.
4384         * lib/localename.h (gl_locale_name_environ): New declaration.
4385         * lib/localename.c (gl_locale_name_environ): New function, extracted from
4386         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
4387         (gl_locale_name_posix): Invoke it.
4388         (gl_locale_name_default): Add comments. Use Windows native API also on
4389         Cygwin.
4390
4391 2009-12-21  Bruno Haible  <bruno@clisp.org>
4392
4393         Update list of Win32 locale ids.
4394         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
4395         (LANG_SAMI): Renamed from LANG_SAAMI.
4396         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
4397         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
4398         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
4399         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
4400         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
4401         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
4402         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
4403         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
4404         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
4405         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
4406         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
4407         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
4408         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
4409         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
4410         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
4411         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
4412         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
4413         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
4414         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
4415         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
4416         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
4417         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
4418         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
4419         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
4420         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
4421         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
4422         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
4423         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
4424         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
4425         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
4426         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
4427         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
4428         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
4429         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
4430         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
4431         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
4432         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
4433         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
4434         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
4435         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
4436         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
4437         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
4438         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
4439         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
4440         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
4441         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
4442         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
4443         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
4444         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
4445         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
4446         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
4447         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
4448         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
4449         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
4450         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
4451         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
4452         Add more languages and countries for Sami, Sorbian. Add more countries
4453         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
4454         for Pashto. Change country for Syriac, Tswana.
4455
4456 2009-12-21  Eric Blake  <ebb9@byu.net>
4457
4458         test-utimens: avoid spurious failure
4459         * tests/test-chown.h (nap): Factor...
4460         * tests/nap.h: ...into new file.
4461         * tests/test-lchown.h (nap): Avoid duplication.
4462         * tests/test-utimens-common.h (nap): Use shared implementation,
4463         necessary on file systems with 1-second resolution.
4464         * modules/chown-tests (Files): Include new file.
4465         * modules/fdutimensat-tests (Files): Likewise.
4466         * modules/futimens-tests (Files): Likewise.
4467         * modules/lchown-tests (Files): Likewise.
4468         * modules/openat-tests (Files): Likewise.
4469         * modules/utimens-tests (Files): Likewise.
4470         * modules/utimensat-tests (Files): Likewise.
4471
4472 2009-12-19  Eric Blake  <ebb9@byu.net>
4473
4474         futimens, utimensat: work around Linux bug
4475         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
4476         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4477         * lib/utimensat.c (rpl_utimensat): Work around it.
4478         * lib/futimens.c (rpl_futimens): Adjust comment.
4479
4480         utimens: work around Linux ctime bug
4481         * lib/utimens.c (detect_ctime_bug): New helper function.
4482         (update_timespec): Differentiate between workaround needed for
4483         this bug vs. what is needed for systems that lack utimensat.
4484         (fdutimens, lutimens): Work around bug.
4485
4486         utimens: check for ctime update
4487         * tests/test-utimens-common.h (check_ctime): Define.
4488         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
4489         * tests/test-futimens.h (test_futimens): Likewise.
4490         * tests/test-lutimens.h (test_lutimens): Likewise.
4491         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4492         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4493
4494 2009-12-19  Bruno Haible  <bruno@clisp.org>
4495
4496         dprintf-posix: Check against memory leak fixed on 2009-12-15.
4497         * tests/test-dprintf-posix2.sh: New file.
4498         * tests/test-dprintf-posix2.c: New file.
4499         * modules/dprintf-posix-tests (Files): Add them.
4500         (configure.ac): Check for getrlimit and setrlimit.
4501         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4502
4503 2009-12-19  Bruno Haible  <bruno@clisp.org>
4504
4505         fprintf-posix: Check against memory leak fixed on 2009-12-15.
4506         * tests/test-fprintf-posix3.sh: New file.
4507         * tests/test-fprintf-posix3.c: New file.
4508         * modules/fprintf-posix-tests (Files): Add them.
4509         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4510
4511 2009-12-19  Eric Blake  <ebb9@byu.net>
4512
4513         dirfd: fix prototype
4514         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
4515         * lib/dirfd.c (dirfd): Likewise.
4516
4517         canonicalize: reduce memory usage
4518         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
4519         allocation to size.
4520         Reported by Solar Designer <solar@openwall.com>.
4521
4522 2009-12-19  Bruno Haible  <bruno@clisp.org>
4523
4524         New module attribute 'Applicability'.
4525         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
4526         * gnulib-tool: New option --extract-applicability.
4527         (func_usage): Document it.
4528         (sed_extract_prog): Recognize it.
4529         (func_get_applicability): New function.
4530         (func_import): Generalize handling of 'link-warning' module.
4531         * modules/link-warning (Applicability): New section.
4532         * modules/arg-nonnull (Applicability): New section.
4533         Repoted by Simon Josefsson <simon@josefsson.org>.
4534
4535 2009-12-19  Bruno Haible  <bruno@clisp.org>
4536
4537         fflush: tweak
4538         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
4539         * lib/fseeko.c (rpl_fseeko): Likewise.
4540
4541 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
4542
4543         * lib/gl_list.h: Fix typo in comment.
4544
4545 2009-12-16  Eric Blake  <ebb9@byu.net>
4546
4547         fcntl: use to simplify other modules
4548         * modules/cloexec (Depends-on): Add fcntl.
4549         * modules/fchdir (Depends-on): Likewise.
4550         * modules/fd-safer-flag (Depends-on): Likewise.
4551         * modules/unistd-safer (Depends-on): Likewise.
4552         * modules/dup3 (configure.ac): Set module indicator.
4553         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
4554         missing.
4555         * lib/fchdir.c (_gl_register_dup): Fix comment.
4556         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
4557         * lib/dup-safer.c (dup_safer): Likewise.
4558         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
4559         * lib/dup3.c (dup3): Likewise.
4560         * tests/test-fchdir.c (main): Enhance test.
4561         Fixes a dup_cloexec bug reported by Ondřej Vašík.
4562
4563         fcntl: port portions of fcntl to mingw
4564         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
4565         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
4566         replacement for mingw.
4567         * modules/fcntl (Description): Update.
4568         (Depends-on): Add dup2.
4569         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
4570         * modules/fcntl-h (Makefile.am): Substitute it.
4571         * lib/fcntl.in.h (fcntl): Update declaration.
4572         (F_DUPFD, F_GETFD): New macros, when needed.
4573         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
4574         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
4575         * tests/test-fcntl.c (check_flags, main): Enhance test for items
4576         we now guarantee.
4577
4578         fcntl: work around cygwin bug in F_DUPFD
4579         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
4580         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
4581         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
4582         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
4583         * doc/posix-functions/fcntl.texi (fcntl): Document it.
4584
4585         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
4586         * modules/fcntl (Files): List new files.
4587         (configure.ac): Run a test.
4588         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
4589         * lib/fcntl.c (rpl_fcntl): Likewise.
4590         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
4591         (gl_FCNTL_H): Always replace fcntl.h.
4592         * modules/fcntl-h (Makefile.am): Substitute witnesses.
4593         * lib/fcntl.in.h (fcntl): Declare replacement.
4594         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
4595         needed, plus a witness.
4596         * doc/posix-functions/fcntl.texi (fcntl): Document this.
4597         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
4598         * tests/test-fcntl.c: New file.
4599         * modules/fcntl-tests: Likewise.
4600
4601         binary-io: avoid potential compilation warning
4602         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
4603         directives.
4604
4605         fflush: avoid compilation error on NetBSD
4606         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
4607         between off_t and fpos_t, since the latter is sometimes a struct.
4608         * lib/fseeko.c (rpl_fseeko): Likewise.
4609         Reported by Alexander Nasonov <alnsn@yandex.ru>.
4610
4611 2009-12-15  Eric Blake  <ebb9@byu.net>
4612
4613         fcntl-h, stdio, sys_ioctl: fix declarations
4614         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
4615         function must not take arguments.
4616         * lib/sys_ioctl.in.h (ioctl): Likewise.
4617         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
4618         (open): Add a link warning.
4619
4620 2009-12-15  Jim Meyering  <meyering@redhat.com>
4621
4622         areadlink, areadlink-with-size: relax license to LGPLv2+
4623         * modules/areadlink (License): Relax to LGPLv2+.
4624         * modules/areadlink-with-size (License): Likewise.
4625
4626 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
4627             Bruno Haible  <bruno@clisp.org>
4628
4629         *printf: Fix memory leak.
4630         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
4631         * lib/vfprintf.c (vfprintf): Likewise.
4632         * lib/dprintf.c (dprintf): Likewise.
4633         * lib/vdprintf.c (vdprintf): Likewise.
4634
4635 2009-12-14  Eric Blake  <ebb9@byu.net>
4636
4637         accept4: adjust module dependencies
4638         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
4639
4640         utimens: one more try at avoiding compiler warning
4641         * lib/utimens.c (lutimens): Lower scope of result.
4642
4643 2009-12-13  Bruno Haible  <bruno@clisp.org>
4644
4645         Move the malloc checking from module 'list' to new module 'xlist'.
4646         * modules/xlist: New file.
4647         * lib/gl_xlist.h: New file.
4648         * lib/gl_xlist.c: New file.
4649         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
4650         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
4651         gl_list_add_last, gl_list_add_before, gl_list_add_after,
4652         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
4653         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
4654         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
4655         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
4656         gl_sortedlist_nx_add): New declarations.
4657         (struct gl_list_implementation): Rename and change methods accordingly.
4658         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
4659         (gl_list_nx_create): Renamed from gl_list_create.
4660         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4661         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4662         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4663         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4664         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4665         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4666         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4667         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4668         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
4669         gl_list_create_empty.
4670         (gl_list_nx_create): Renamed from gl_list_create.
4671         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4672         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4673         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4674         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4675         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4676         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4677         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4678         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4679         * lib/gl_array_list.c: Don't include xalloc.h.
4680         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
4681         NULL upon out-of-memory.
4682         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
4683         out-of-memory.
4684         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
4685         Change return type to 'int'.
4686         (gl_array_nx_set_at): Renamed from gl_array_set_at.
4687         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4688         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
4689         upon out-of-memory.
4690         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
4691         upon out-of-memory.
4692         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
4693         upon out-of-memory.
4694         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
4695         upon out-of-memory.
4696         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
4697         out-of-memory.
4698         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
4699         Update.
4700         (gl_array_list_implementation): Update.
4701         * lib/gl_carray_list.c: Don't include xalloc.h.
4702         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
4703         Return NULL upon out-of-memory.
4704         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
4705         out-of-memory.
4706         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
4707         Change return type to 'int'.
4708         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
4709         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4710         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
4711         upon out-of-memory.
4712         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
4713         upon out-of-memory.
4714         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
4715         out-of-memory.
4716         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
4717         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
4718         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
4719         Update.
4720         (gl_carray_list_implementation): Update.
4721         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
4722         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
4723         gl_linked_create_empty. Return NULL upon out-of-memory.
4724         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
4725         out-of-memory.
4726         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
4727         Change return type to 'int'. Return -1 upon out-of-memory.
4728         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
4729         out-of-memory.
4730         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
4731         upon out-of-memory.
4732         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
4733         upon out-of-memory.
4734         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
4735         NULL upon out-of-memory.
4736         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
4737         upon out-of-memory.
4738         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
4739         out-of-memory.
4740         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
4741         Update.
4742         * lib/gl_linked_list.c: Don't include xalloc.h.
4743         (gl_linked_list_implementation): Update.
4744         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
4745         (add_to_bucket): Change return type to 'int'.
4746         (gl_linkedhash_list_implementation): Update.
4747         * lib/gl_anytree_list1.h (free_subtree): New function.
4748         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
4749         gl_tree_create_empty. Return NULL upon out-of-memory.
4750         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
4751         Change return type to 'int'. Return -1 upon out-of-memory.
4752         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
4753         out-of-memory.
4754         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
4755         (gl_tree_remove_node): New function, moved here from
4756         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
4757         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
4758         Update.
4759         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
4760         malloc, not xmalloc. Return NULL upon out-of-memory.
4761         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4762         out-of-memory.
4763         (gl_tree_remove_node_from_tree): New function, extracted from
4764         gl_tree_remove_node.
4765         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4766         upon out-of-memory.
4767         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4768         out-of-memory.
4769         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4770         upon out-of-memory.
4771         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4772         upon out-of-memory.
4773         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4774         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
4775         not xmalloc. Return NULL upon out-of-memory.
4776         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4777         out-of-memory.
4778         (gl_tree_remove_node_from_tree): New function, extracted from
4779         gl_tree_remove_node.
4780         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4781         upon out-of-memory.
4782         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4783         out-of-memory.
4784         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4785         upon out-of-memory.
4786         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4787         upon out-of-memory.
4788         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4789         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
4790         gl_anytree_list1.h before gl_anyavltree_list2.h.
4791         (gl_avltree_list_implementation): Update.
4792         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
4793         gl_anytree_list1.h before gl_anyavltree_list2.h.
4794         (gl_rbtree_list_implementation): Update.
4795         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
4796         Change return type to 'int'. Return -1 upon out-of-memory. Use
4797         __builtin_expect.
4798         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
4799         (gl_avltreehash_list_implementation): Update.
4800         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
4801         (gl_rbtreehash_list_implementation): Update.
4802         * modules/array-list (Depends-on): Remove xalloc.
4803         * modules/carray-list (Depends-on): Likewise.
4804         * modules/linked-list (Depends-on): Likewise.
4805         * modules/linkedhash-list (Depends-on): Likewise.
4806         * modules/avltree-list (Depends-on): Likewise.
4807         * modules/rbtree-list (Depends-on): Likewise.
4808         * modules/avltreehash-list (Depends-on): Likewise.
4809         * modules/rbtreehash-list (Depends-on): Likewise.
4810
4811         * modules/xsublist: New file.
4812         * lib/gl_xsublist.h: New file.
4813         * lib/gl_xsublist.c: New file.
4814         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
4815         (gl_sublist_nx_create): New declaration.
4816         * lib/gl_sublist.c: Don't include xalloc.h.
4817         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
4818         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
4819         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
4820         Change return type to 'int'. Return -1 upon out-of-memory.
4821         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
4822         upon out-of-memory.
4823         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
4824         NULL upon out-of-memory.
4825         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
4826         upon out-of-memory.
4827         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
4828         NULL upon out-of-memory.
4829         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
4830         NULL upon out-of-memory.
4831         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
4832         upon out-of-memory.
4833         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
4834         (gl_sublist_list_implementation): Update.
4835         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
4836         upon out-of-memory.
4837         * modules/sublist (Depends-on): Remove xalloc.
4838
4839         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
4840         * tests/test-carray_list.c: Likewise.
4841         * tests/test-linked_list.c: Likewise.
4842         * tests/test-linkedhash_list.c: Likewise.
4843         * tests/test-avltree_list.c: Likewise.
4844         * tests/test-rbtree_list.c: Likewise.
4845         * tests/test-avltreehash_list.c: Likewise.
4846         * tests/test-rbtreehash_list.c: Likewise.
4847         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
4848         * modules/carray-list-tests (Makefile.am): Likewise.
4849         * modules/linked-list-tests (Makefile.am): Likewise.
4850         * modules/linkedhash-list-tests (Makefile.am): Likewise.
4851         * modules/avltree-list-tests (Makefile.am): Likewise.
4852         * modules/rbtree-list-tests (Makefile.am): Likewise.
4853         * modules/avltreehash-list-tests (Makefile.am): Likewise.
4854         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
4855
4856         * NEWS: Mention the changes.
4857
4858         * lib/clean-temp.c: Include gl_xlist.h.
4859         * modules/clean-temp (Depends-on): Add xlist.
4860
4861         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
4862         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
4863
4864         * tests/test-array_oset.c: Include gl_xlist.h.
4865         * modules/array-oset-tests (Depends-on): Add xlist.
4866
4867         Reported by José E. Marchesi <jemarch@gnu.org>.
4868
4869 2009-12-13  Bruno Haible  <bruno@clisp.org>
4870
4871         Move the malloc checking from module 'oset' to new module 'xoset'.
4872         * modules/xoset: New file.
4873         * lib/gl_xoset.h: New file.
4874         * lib/gl_xoset.c: New file.
4875         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
4876         declarations.
4877         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
4878         (struct gl_oset_implementation): Rename and change methods accordingly.
4879         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
4880         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
4881         'int'. Mark as __warn_unused_result__.
4882         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
4883         gl_oset_create_empty.
4884         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
4885         'int'.
4886         * lib/gl_array_oset.c: Don't include xalloc.h.
4887         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
4888         malloc, not xmalloc.
4889         (grow): Change return type to 'int'. Don't call xalloc_die.
4890         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
4891         to 'int'.
4892         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
4893         'int'.
4894         (gl_array_oset_implementation): Update.
4895         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
4896         gl_tree_create_empty.
4897         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
4898         'int'.
4899         * lib/gl_avltree_oset.c: Don't include xalloc.h.
4900         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
4901         xmalloc.
4902         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
4903         not xmalloc.
4904         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
4905         xmalloc.
4906         (gl_avltree_oset_implementation): Update.
4907         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
4908         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
4909         xmalloc.
4910         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
4911         not xmalloc.
4912         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
4913         xmalloc.
4914         (gl_rbtree_oset_implementation): Update.
4915         * modules/array-oset (Depends-on): Remove xalloc.
4916         * modules/avltree-oset (Depends-on): Likewise.
4917         * modules/rbtree-oset (Depends-on): Likewise.
4918         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
4919         * tests/test-avltree_oset.c: Likewise.
4920         * tests/test-rbtree_oset.c: Likewise.
4921         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
4922         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
4923         * modules/rbtree-oset-tests (Makefile.am): Likewise.
4924         * NEWS: Mention the change.
4925
4926 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
4927
4928         maint.mk: allow a project to override release-prep commands
4929         * top/maint.mk (alpha, beta, stable): Move release-preparatory
4930         commands into a new rule.
4931         (release-prep): New rule.
4932         (release-prep-hook): New overridable variable.
4933
4934 2009-12-13  Bruno Haible  <bruno@clisp.org>
4935
4936         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
4937
4938 2009-12-13  Jim Meyering  <meyering@redhat.com>
4939
4940         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
4941         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
4942
4943 2009-12-12  Bruno Haible  <bruno@clisp.org>
4944
4945         duplocale: Tweak.
4946         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
4947
4948 2009-12-12  Karl Berry  <karl@gnu.org>
4949
4950         * config/srclist.txt (strtoll.c): tab changes, no more sync.
4951
4952 2009-12-12  Bruno Haible  <bruno@clisp.org>
4953
4954         * m4/po.m4: Undo incorrect untabification.
4955
4956 2009-12-12  Bruno Haible  <bruno@clisp.org>
4957
4958         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
4959         * modules/c-strtod (Depends-on): Add locale.
4960         * modules/c-strtold (Depends-on): Likewise.
4961
4962 2009-12-12  Bruno Haible  <bruno@clisp.org>
4963
4964         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
4965
4966 2009-12-11  Eric Blake  <ebb9@byu.net>
4967
4968         setenv: relax requirement in light of POSIX ruling
4969         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
4970         not NULL.
4971         * tests/test-setenv.c (main): Relax test.
4972         * tests/test-unsetenv.c (main): Likewise.
4973         * doc/posix-functions/setenv.texi (setenv): Document this.
4974         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4975
4976 2009-12-11  Bruno Haible  <bruno@clisp.org>
4977
4978         New module 'fd-safer-flag'.
4979         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
4980         * lib/dup-safer.c (dup_safer_flag): Remove function.
4981         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
4982         * lib/fd-safer.c (fd_safer_flag): Remove function.
4983         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
4984         * modules/cloexec (configure.ac): Drop indicator macro.
4985         * modules/fd-safer-flag: New file.
4986         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
4987         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
4988         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
4989
4990 2009-12-11  Bruno Haible  <bruno@clisp.org>
4991
4992         Tests for module 'nl_langinfo'.
4993         * modules/nl_langinfo-tests: New file.
4994         * tests/test-nl_langinfo.sh: New file.
4995         * tests/test-nl_langinfo.c: New file.
4996
4997         New module 'nl_langinfo'.
4998         * lib/nl_langinfo.c: New file.
4999         * m4/nl_langinfo.m4: New file.
5000         * modules/nl_langinfo: New file.
5001         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5002
5003 2009-12-11  Bruno Haible  <bruno@clisp.org>
5004
5005         Tests for module 'langinfo'.
5006         * modules/langinfo-tests: New file.
5007         * tests/test-langinfo.c: New file.
5008
5009         New module 'langinfo'.
5010         * lib/langinfo.in.h: New file.
5011         * m4/langinfo_h.m4: New file.
5012         * modules/langinfo: New file.
5013         * doc/posix-headers/langinfo.texi: Mention the new module.
5014
5015 2009-12-11  Bruno Haible  <bruno@clisp.org>
5016
5017         * lib/config.charset: Untabify.
5018
5019 2009-12-11  Bruno Haible  <bruno@clisp.org>
5020
5021         * modules/unistd-safer (configure.ac): Drop indicator macro.
5022
5023 2009-12-11  Bruno Haible  <bruno@clisp.org>
5024
5025         Move pipe2-safer code to its own file.
5026         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5027         * lib/pipe-safer.c (pipe2_safer): Remove function.
5028         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5029         (Makefile.am): Add it to lib_SOURCES.
5030
5031 2009-12-10  Bruno Haible  <bruno@clisp.org>
5032
5033         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5034
5035 2009-12-10  Bruno Haible  <bruno@clisp.org>
5036
5037         Declare which arguments expect non-NULL values, for GCC and clang.
5038         * build-aux/arg-nonnull.h: New file.
5039         * modules/arg-nonnull: New file.
5040         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5041         (inet_ntop, inet_pton): Use it.
5042         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5043         (closedir, dirfd, opendir, scandir, alphasort): Use it.
5044         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5045         (open, openat): Use it.
5046         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5047         (fnmatch): Use it.
5048         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5049         (getopt, getopt_long, getopt_long_only): Use it.
5050         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5051         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5052         Use it.
5053         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5054         (iconv_open): Use it.
5055         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5056         (strtoimax, strtoumax): Use it.
5057         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5058         (duplocale): Use it.
5059         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5060         (frexp, frexpl): Use it.
5061         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5062         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5063         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5064         (tsearch, tfind, tdelete, twalk): Use it.
5065         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5066         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5067         sigpending): Use it.
5068         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5069         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5070         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5071         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5072         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5073         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5074         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5075         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5076         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5077         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5078         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5079         Use it.
5080         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5081         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5082         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5083         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5084         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5085         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5086         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5087         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5088         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5089         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5090         strtoull, unsetenv): Use it.
5091         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5092         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5093         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5094         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5095         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5096         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5097         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5098         (strcasecmp, strncasecmp): Use it.
5099         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5100         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5101         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5102         rpl_setsockopt): Use it.
5103         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5104         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5105         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5106         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5107         (gettimeofday): Use it.
5108         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5109         (times): Use it.
5110         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5111         (uname): Use it.
5112         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5113         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5114         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5115         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5116         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5117         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5118         unlinkat, write): Use it.
5119         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5120         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5121         * lib/argv-iter.h: Include arg-nonnull.h.
5122         (_ATTRIBUTE_NONNULL_): Remove macro.
5123         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5124         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5125         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5126         optimization.
5127         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5128         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5129         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5130         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5131         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5132         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5133         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5134         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5135         * modules/arpa_inet (Depends-on): Add arg-nonnull.
5136         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5137         * modules/dirent (Depends-on): Add arg-nonnull.
5138         (Makefile.am): Insert arg-nonnull.h into dirent.h.
5139         * modules/fcntl-h (Depends-on): Add arg-nonnull.
5140         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5141         * modules/fnmatch (Depends-on): Add arg-nonnull.
5142         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5143         * modules/getopt-posix (Depends-on): Add arg-nonnull.
5144         (Makefile.am): Insert arg-nonnull.h into getopt.h.
5145         * modules/glob (Depends-on): Add arg-nonnull.
5146         (Makefile.am): Insert arg-nonnull.h into glob.h.
5147         * modules/iconv_open (Depends-on): Add arg-nonnull.
5148         (Makefile.am): Insert arg-nonnull.h into iconv.h.
5149         * modules/inttypes (Depends-on): Add arg-nonnull.
5150         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5151         * modules/locale (Depends-on): Add arg-nonnull.
5152         (Makefile.am): Insert arg-nonnull.h into locale.h.
5153         * modules/math (Depends-on): Add arg-nonnull.
5154         (Makefile.am): Insert arg-nonnull.h into math.h.
5155         * modules/netdb (Depends-on): Add arg-nonnull.
5156         (Makefile.am): Insert arg-nonnull.h into netdb.h.
5157         * modules/search (Depends-on): Add arg-nonnull.
5158         (Makefile.am): Insert arg-nonnull.h into search.h.
5159         * modules/signal (Depends-on): Add arg-nonnull.
5160         (Makefile.am): Insert arg-nonnull.h into signal.h.
5161         * modules/spawn (Depends-on): Add arg-nonnull.
5162         (Makefile.am): Insert arg-nonnull.h into spawn.h.
5163         * modules/stdio (Depends-on): Add arg-nonnull.
5164         (Makefile.am): Insert arg-nonnull.h into stdio.h.
5165         * modules/stdlib (Depends-on): Add arg-nonnull.
5166         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5167         * modules/string (Depends-on): Add arg-nonnull.
5168         (Makefile.am): Insert arg-nonnull.h into string.h.
5169         * modules/strings (Depends-on): Add arg-nonnull.
5170         (Makefile.am): Insert arg-nonnull.h into strings.h.
5171         * modules/sys_socket (Depends-on): Add arg-nonnull.
5172         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5173         * modules/sys_stat (Depends-on): Add arg-nonnull.
5174         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5175         * modules/sys_time (Depends-on): Add arg-nonnull.
5176         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5177         * modules/sys_times (Depends-on): Add arg-nonnull.
5178         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5179         * modules/sys_utsname (Depends-on): Add arg-nonnull.
5180         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5181         * modules/time (Depends-on): Add arg-nonnull.
5182         (Makefile.am): Insert arg-nonnull.h into time.h.
5183         * modules/unistd (Depends-on): Add arg-nonnull.
5184         (Makefile.am): Insert arg-nonnull.h into unistd.h.
5185         * modules/wchar (Depends-on): Add arg-nonnull.
5186         (Makefile.am): Insert arg-nonnull.h into wchar.h.
5187         * modules/argv-iter (Depends-on): Add arg-nonnull.
5188         * tests/test-canonicalize.c (null_ptr): New function.
5189         (main): Use it.
5190         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5191         (main): Use it.
5192         * tests/test-memmem.c (null_ptr): New function.
5193         (main): Use it.
5194         Reported by Jim Meyering.
5195
5196 2009-12-10  Bruno Haible  <bruno@clisp.org>
5197
5198         Use spaces for indentation, not tabs.
5199         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5200         * m4/*.m4: Untabify.
5201         * build-aux/*.h: Untabify.
5202         * tests/**/*.[hc]: Untabify.
5203         * README: New section "Indent with spaces, not TABs", based on
5204         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5205         * NEWS: Mention the change.
5206
5207 2009-12-10  Bruno Haible  <bruno@clisp.org>
5208
5209         pty test: Fix link error.
5210         * modules/pty-tests (Makefile.am): Add the default LDADD value to
5211         test_pty_LDADD.
5212
5213 2009-12-07  Simon Josefsson  <simon@josefsson.org>
5214
5215         * modules/pty: New file.
5216         * modules/pty-tests: New file.
5217         * m4/pty.m4: New file.
5218         * tests/test-pty.c: New file.
5219         * doc/glibc-headers/pty.texi: Modified.
5220         * doc/glibc-functions/forkpty.texi: Modified.
5221         * doc/glibc-functions/openpty.texi: Modified.
5222
5223 2009-12-10  Bruno Haible  <bruno@clisp.org>
5224
5225         Avoid syntax error in C++ mode.
5226         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5227
5228 2009-12-10  Bruno Haible  <bruno@clisp.org>
5229
5230         Use sed with option -e.
5231         * gnulib-tool (func_version, func_emit_copyright_notice,
5232         func_emit_initmacro_end, func_import, func_create_testdir): Pass
5233         option -e to sed.
5234         * modules/link-warning (Makefile.am): Likewise.
5235
5236 2009-12-10  Jim Meyering  <meyering@redhat.com>
5237
5238         mgetgroups: do not write bytes beyond end of malloc'd buffer
5239         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
5240         username, we call getgroups with a one-element-shorter buffer,
5241         but still told it the length was original, max_n_groups.
5242
5243 2009-12-09  Eric Blake  <ebb9@byu.net>
5244
5245         cloexec: relax license
5246         * modules/cloexec (Maintainer): Add myself.
5247         (License): Use LGPL, not GPL.
5248
5249         link-warning: optimize generation
5250         * modules/link-warning (Makefile.am): Reduce process usage.
5251
5252 2009-12-09  Bruno Haible  <bruno@clisp.org>
5253
5254         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5255         workaround was added on 2009-11-17.
5256
5257 2009-12-09  Jim Meyering  <meyering@redhat.com>
5258             Bruno Haible  <bruno@clisp.org>
5259
5260         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5261         * modules/link-warning (Makefile.am): Make the comment-removing sed
5262         command more robust in the face of bootstrap-prepended comment lines.
5263
5264 2009-12-09  Bruno Haible  <bruno@clisp.org>
5265
5266         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5267         most one group.
5268
5269 2009-12-09  Simon Josefsson <simon@josefsson.org>
5270             Bruno Haible  <bruno@clisp.org>
5271
5272         * build-aux/link-warning.h: Add copyright notice.
5273         * modules/link-warning (Makefile.am): Generate link-warning.h from
5274         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5275         * NEWS: Mention change in link-warning module.
5276         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5277         * modules/dirent (Makefile.am): Add dependency to dirent.h.
5278         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5279         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5280         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5281         * modules/math (Makefile.am): Add dependency to math.h.
5282         * modules/search (Makefile.am): Add dependency to search.h.
5283         * modules/signal (Makefile.am): Add dependency to signal.h.
5284         * modules/spawn (Makefile.am): Add dependency to spawn.h.
5285         * modules/stdio (Makefile.am): Add dependency to stdio.h.
5286         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5287         * modules/string (Makefile.am): Add dependency to string.h.
5288         * modules/strings (Makefile.am): Add dependency to strings.h.
5289         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5290         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5291         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5292         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
5293         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
5294         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
5295         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
5296         * modules/unistd (Makefile.am): Add dependency to unistd.h.
5297         * modules/wchar (Makefile.am): Add dependency to wchar.h.
5298
5299 2009-12-09  Bruno Haible  <bruno@clisp.org>
5300
5301         fchdir: Optimize away rpl_fstat when possible.
5302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
5303         REPLACE_OPEN_DIRECTORY.
5304         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
5305
5306 2009-12-09  Bruno Haible  <bruno@clisp.org>
5307
5308         * lib/fchdir.c: Update comment.
5309
5310 2009-12-09  Bruno Haible  <bruno@clisp.org>
5311
5312         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
5313
5314 2009-12-08  Eric Blake  <ebb9@byu.net>
5315
5316         fchdir: avoid memory leak on re-registration.
5317         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
5318
5319 2009-12-08  Jim Meyering  <meyering@redhat.com>
5320
5321         init.sh: avoid Solaris 10 /bin/sh portability problem
5322         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
5323         sourced script:
5324           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
5325           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
5326           bar
5327         tests/init.sh relied on that, accepting a --set-path=DIR argument,
5328         and two tests used that idiom.
5329         * tests/init.sh: Update suggested usage comments.
5330         (path_prepend_): New function, to be used in place
5331         of the --src-path=DIR option.
5332         (setup_): Move PATH-prepending code into path_prepend_.
5333         * tests/test-pread.sh: Adapt to new usage.
5334         * tests/test-xalloc-die.sh: Likewise.
5335
5336 2009-12-08  Simon Josefsson  <simon@josefsson.org>
5337
5338         * doc/gnulib.texi (Glibc pty.h): Add.
5339         * doc/glibc-functions/forkpty.texi: Add.
5340         * doc/glibc-functions/openpty.texi: Add.
5341         Suggested by Bruno Haible.
5342
5343 2009-12-08  Eric Blake  <ebb9@byu.net>
5344
5345         fchdir: fix logic bugs
5346         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
5347         * tests/test-fchdir.c (main): Enhance test.
5348         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
5349         is in use.
5350
5351         dup2: fix logic bugs
5352         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
5353         REPLACE_DUP2 to decide when rpl_dup2 is needed.
5354         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
5355         exists.
5356         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
5357
5358 2009-12-07  Eric Blake  <ebb9@byu.net>
5359
5360         unlink: fix m4 detection
5361         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
5362
5363         unistd-safer: add unit test
5364         * modules/unistd-safer-tests: New file.
5365         * tests/test-dup-safer.c: Likewise.
5366         * tests/test-cloexec.c (setmode): Avoid compiler warning.
5367         * tests/test-dup2.c (setmode): Likewise.
5368         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
5369
5370         cloexec: preserve text vs. binary across dup_cloexec
5371         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
5372         mode.
5373         * modules/dup2-tests (Depends-on): Add binary-io.
5374         * modules/cloexec-tests (Depends-on): Likewise.
5375         * tests/test-dup2.c (setmode, is_mode): New helpers.
5376         (main): Add tests that translation mode is preserved.
5377         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
5378         Reported by Bruno Haible.
5379
5380         mgetgroups: reduce duplicate listings
5381         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
5382         resulting array.
5383         * tests/test-chown.h (test_chown): Simplify client.
5384         * tests/test-lchown.h (test_lchown): Likewise.
5385
5386 2009-12-06  Bruno Haible  <bruno@clisp.org>
5387
5388         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
5389         value.
5390
5391 2009-12-06  Bruno Haible  <bruno@clisp.org>
5392
5393         * lib/progname.c: Include stdio.h, stdlib.h.
5394         (set_program_name): Reject a NULL argument.
5395
5396 2009-12-05  Eric Blake  <ebb9@byu.net>
5397
5398         pipe2-safer: new module
5399         * modules/pipe2-safer: New file.
5400         * lib/unistd-safer.h (pipe2_safer): New prototype.
5401         * lib/unistd--.h (pipe2): New wrapper.
5402         * lib/pipe-safer.c (pipe2_safer): New function.
5403         * modules/pipe (Depends-on): Add pipe2-safer.
5404         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
5405
5406         stdlib-safer: preserve cloexec flag for mkostemp[s]
5407         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
5408         fd_safer_flag.
5409
5410         unistd-safer: allow preservation of cloexec status via flag
5411         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
5412         prototypes.
5413         * lib/dup-safer.c (dup_safer_flag): New function.
5414         * lib/fd-safer.c (fd_safer_flag): Likewise.
5415         * modules/cloexec (configure.ac): Set witness.
5416
5417         test-dup2: enhance test
5418         * modules/dup2-tests (Depends-on): Add cloexec.
5419         * tests/test-dup2.c (main): Enhance test.
5420
5421         cloexec: add dup_cloexec
5422         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
5423         header and comments.
5424         * lib/cloexec.c (set_cloexec_flag): Add comments.
5425         (dup_cloexec): New function, with mingw implementation borrowed
5426         from...
5427         * lib/w32spawn.h (dup_noinherit): ...here.
5428         * modules/execute (Depends-on): Add cloexec.
5429         * modules/pipe (Depends-on): Likewise.
5430         * modules/cloexec (Depends-on): Add dup2.
5431         * modules/cloexec-tests (Files): New file.
5432         * tests/test-cloexec.c: Likewise.
5433
5434         test-xalloc-die: fix test for mingw
5435         * modules/xalloc-die-tests (Files): Add tests/init.sh.
5436         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
5437         directory and .exe suffix off argv[0] output.
5438
5439         test-fseeko: fix test for mingw
5440         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
5441         than undefining fseek, so test will pass on mingw.
5442
5443 2009-12-05  Bruno Haible  <bruno@clisp.org>
5444
5445         * lib/progname.h (set_program_name): Clarify specification.
5446         * lib/progname.c (set_program_name): Likewise.
5447         Reported by Jim Meyering.
5448
5449 2009-12-05  Jim Meyering  <meyering@redhat.com>
5450
5451         maint.mk: backslash-escape parens in default regexp
5452         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
5453         backslash-escape the literal parentheses.
5454
5455         maint.mk: news-date-check: use grep -E
5456         * top/maint.mk (today): Define a Make variable, not a...
5457         (news-date-check): ...shell variable.
5458         (news-date-regexp): Use the Make variable.
5459         Use grep's -E option.  Change the failing diagnostic to mention
5460         the variable, $(news-date-regexp).
5461
5462 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
5463
5464         maintainer-makefile: allow customization of NEWS entry format
5465         * top/maint.mk (news-date-regexp): New overridable variable.
5466         (news-date-check): Use it.
5467
5468 2009-12-04  Eric Blake  <ebb9@byu.net>
5469
5470         mgetgroups: add xgetgroups, and avoid ENOSYS failures
5471         * lib/mgetgroups.h (xgetgroups): New prototype.
5472         * lib/mgetgroups.c (xgetgroups): New wrapper.
5473         (mgetgroups): Handle ENOSYS.
5474         * modules/mgetgroups (Depends-on): Add realloc.
5475         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
5476
5477         mgetgroups: avoid argument promotion issues with -1
5478         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
5479         for invalid gid_t.
5480         * tests/test-chown.h (getegid, test_chown): Likewise.
5481         * tests/test-lchown.h (getegid, test_lchown): Likewise.
5482
5483 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
5484
5485         exclude: Fix header file problems.
5486         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
5487
5488 2009-12-01  Jim Meyering  <meyering@redhat.com>
5489
5490         fts: fts_open: do not let an empty string cause immediate failure
5491         This is required in support of GNU rm, for which the command
5492         "rm A '' B" must process and remove both A and B, in spite of
5493         the empty string argument.
5494         * lib/fts.c (fts_open): Do not let the presence of an empty string
5495         cause fts_open to fail immediately.  Most fts-using tools must be
5496         able to process all arguments, in order, and can be expected to
5497         diagnose such arguments themselves.
5498
5499 2009-11-30  Eric Blake  <ebb9@byu.net>
5500
5501         utimens: fix compilation error
5502         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
5503         Declare variable at right scope.
5504
5505 2009-11-29  Jim Meyering  <meyering@redhat.com>
5506
5507         bootstrap: handle perl-5.11's changed --version output
5508         * build-aux/bootstrap (get_version): Handle perl separately,
5509         since perl-5.11's --version output is different.
5510
5511 2009-11-28  Jim Meyering  <meyering@redhat.com>
5512
5513         userspec: depend on the inttostr module, too
5514         * modules/userspec (Depends-on): Add inttostr.
5515
5516         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
5517         * lib/userspec.c (parse_with_separator): Do not accept a user ID
5518         number of MAXUID when it evaluates to (uid_t) -1.
5519         Likewise for group ID.  Reported by Matt McCutchen in
5520         <http://savannah.gnu.org/bugs/?28113>
5521
5522         userspec: reformat to use spaces, not TABs
5523         * lib/userspec.c: Expand TABs to spaces.
5524         Add Emacs' "indent-tabs-mode: nil" hint.
5525
5526 2009-11-27  Eric Blake  <ebb9@byu.net>
5527
5528         getopt-gnu: flush out another BSD bug
5529         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
5530         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
5531         flush out BSD bug.
5532         * tests/test-getopt.h (test_getopt): End lists with NULL.
5533         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5534         (test_getopt_long_posix): Enhance test.
5535         * modules/getopt-posix-tests (Depends-on): Add stdbool.
5536         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
5537         getopt-gnu.
5538         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5539         Likewise.
5540
5541 2009-11-27  Simon Josefsson  <simon@josefsson.org>
5542
5543         * modules/idpriv-droptemp-tests (Notice): Fix text.
5544
5545 2009-11-27  Jim Meyering  <meyering@redhat.com>
5546
5547         test-xalloc-die: avoid spurious failure due to libtool argv difference
5548         In a libtool-enabled project, this test would fail due to a difference
5549         in the emitted program name, e.g.,
5550         -test-xalloc-die: memory exhausted
5551         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
5552         Use program to avoid that.
5553         * modules/xalloc-die-tests (Depends-on): Add progname.
5554         * tests/test-xalloc-die.c: Include progname.h".
5555         (program_name): Remove decl.
5556         (main): Call set_program_name.
5557         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
5558
5559 2009-11-26  Richard Jones  <rjones@redhat.com>
5560
5561         w32sock: leave win32 error in place.
5562         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
5563
5564 2009-11-26  Eric Blake  <ebb9@byu.net>
5565
5566         init.sh: suggest to use skip_ and fail_ functions in comments
5567         * tests/init.sh: Add a sentence.
5568
5569 2009-11-25  Bruno Haible  <bruno@clisp.org>
5570
5571         init.sh: add documentation in comments
5572         * tests/init.sh: Add some developer and user documentation.
5573
5574 2009-11-26  Jim Meyering  <meyering@redhat.com>
5575
5576         init.sh: accommodate even those who specify bogus srcdir manually
5577         * tests/init.sh: Normally, srcdir is guaranteed by automake and
5578         configure-time tests to be sanitized, so that there is no need to
5579         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
5580         (with no double quotes) suffices.  However, since tests may be
5581         invoked manually, and since you may explicitly set srcdir to the
5582         name of a directory containing spaces, do quote its uses here.
5583         * tests/test-pread.sh: Likewise.
5584         Suggested by Bruno Haible.
5585
5586         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
5587         * tests/test-pread.sh: Write no data into the pipe, because
5588         test-pread actually reads none.  This avoids a diagnostic,
5589         "bash: echo: write error: Broken pipe", that arises in the unusual
5590         event something is ignoring SIGPIPE, and might be interpreted
5591         as some sort of failure.  Reported by Bruno Haible.
5592
5593 2009-11-25  Jim Meyering  <meyering@redhat.com>
5594
5595         test-pread: cover failure with ESPIPE and EINVAL
5596         * tests/test-pread.c (main): Test for failure, too.
5597         * tests/test-pread.sh: Invoke with stdin on a pipe.
5598         Suggested by Eric Blake.
5599
5600         pread: improvement and fix
5601         * modules/pread (Depends-on): Depend on lseek, for portability to
5602         e.g., mingw.  Suggested by Eric Blake.
5603         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
5604
5605         unistd.in.h: correct declaration of pread
5606         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
5607         Reported by Richard W.M. Jones.
5608
5609         test-pread.sh: distribute the test script
5610         * modules/pread-tests (Files): Include test-pread.sh.
5611
5612         test-pread.sh: clean up
5613         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
5614         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
5615         That is unnecessary, since it's always ".".
5616         Suggestion from Eric Blake.
5617
5618         test-pread.sh: make executable
5619         * tests/test-pread.sh: Set executable bit.
5620         Reported by Eric Blake.
5621
5622         correct typo in test-pread.sh
5623         * tests/test-pread.sh: Add #! line.
5624
5625         test pread
5626         * tests/test-pread.c: New file.
5627         * tests/test-pread.sh: Likewise.
5628         * modules/pread-tests: Likewise.
5629
5630         pread: new module
5631         * modules/pread: New file.
5632         * lib/unistd.in.h (pread): Define/declare.
5633         * lib/pread.c (pread): New file.
5634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
5635         * modules/unistd (Makefile.am): Substitute witnesses.
5636         * doc/posix-functions/pread.texi (pread): Update.
5637         * MODULES.html.sh: Add pread.
5638
5639 2009-11-25  Jim Meyering  <meyering@redhat.com>
5640
5641         tests/init.sh: new file to be used via most *.sh tests
5642         * tests/init.sh: New file.
5643
5644 2009-11-25  Eric Blake  <ebb9@byu.net>
5645
5646         utimens: work around older Linux failure with symlinks
5647         * lib/utimens.c (lutimensat_works_really): New variable.
5648         (fdutimens, lutimens): Use it to manage kernels that support
5649         nanosecond times on files, but not on symlinks.
5650         Reported by Ondřej Vašík.
5651
5652         utimes: fix configure grammar
5653         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
5654
5655 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
5656
5657         regex: Fix fastmap for multibyte character ranges.
5658         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
5659         characters when a multibyte character range is included.
5660
5661 2009-11-22  Andy Wingo  <wingo@pobox.com>
5662
5663         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
5664         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
5665
5666 2009-11-24  Bruno Haible  <bruno@clisp.org>
5667
5668         doc: Most *_l functions exist in MacOS X 10.5.
5669         * doc/posix-functions/duplocale.texi: Update platforms list.
5670         * doc/posix-functions/freelocale.texi: Likewise.
5671         * doc/posix-functions/newlocale.texi: Likewise.
5672         * doc/posix-functions/uselocale.texi: Likewise.
5673         * doc/posix-functions/isalnum_l.texi: Likewise.
5674         * doc/posix-functions/isalpha_l.texi: Likewise.
5675         * doc/posix-functions/isblank_l.texi: Likewise.
5676         * doc/posix-functions/iscntrl_l.texi: Likewise.
5677         * doc/posix-functions/isdigit_l.texi: Likewise.
5678         * doc/posix-functions/isgraph_l.texi: Likewise.
5679         * doc/posix-functions/islower_l.texi: Likewise.
5680         * doc/posix-functions/isprint_l.texi: Likewise.
5681         * doc/posix-functions/ispunct_l.texi: Likewise.
5682         * doc/posix-functions/isspace_l.texi: Likewise.
5683         * doc/posix-functions/isupper_l.texi: Likewise.
5684         * doc/posix-functions/iswalnum_l.texi: Likewise.
5685         * doc/posix-functions/iswalpha_l.texi: Likewise.
5686         * doc/posix-functions/iswblank_l.texi: Likewise.
5687         * doc/posix-functions/iswcntrl_l.texi: Likewise.
5688         * doc/posix-functions/iswctype_l.texi: Likewise.
5689         * doc/posix-functions/iswdigit_l.texi: Likewise.
5690         * doc/posix-functions/iswgraph_l.texi: Likewise.
5691         * doc/posix-functions/iswlower_l.texi: Likewise.
5692         * doc/posix-functions/iswprint_l.texi: Likewise.
5693         * doc/posix-functions/iswpunct_l.texi: Likewise.
5694         * doc/posix-functions/iswspace_l.texi: Likewise.
5695         * doc/posix-functions/iswupper_l.texi: Likewise.
5696         * doc/posix-functions/iswxdigit_l.texi: Likewise.
5697         * doc/posix-functions/isxdigit_l.texi: Likewise.
5698         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
5699         * doc/posix-functions/strcasecmp_l.texi: Likewise.
5700         * doc/posix-functions/strcoll_l.texi: Likewise.
5701         * doc/posix-functions/strfmon_l.texi: Likewise.
5702         * doc/posix-functions/strftime_l.texi: Likewise.
5703         * doc/posix-functions/strncasecmp_l.texi: Likewise.
5704         * doc/posix-functions/strxfrm_l.texi: Likewise.
5705         * doc/posix-functions/tolower_l.texi: Likewise.
5706         * doc/posix-functions/toupper_l.texi: Likewise.
5707         * doc/posix-functions/towctrans_l.texi: Likewise.
5708         * doc/posix-functions/towlower_l.texi: Likewise.
5709         * doc/posix-functions/towupper_l.texi: Likewise.
5710         * doc/posix-functions/wcscoll_l.texi: Likewise.
5711         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5712         * doc/posix-functions/wctrans_l.texi: Likewise.
5713         * doc/posix-functions/wctype_l.texi: Likewise.
5714         * doc/glibc-functions/strptime_l.texi: Likewise.
5715         * doc/glibc-functions/strtod_l.texi: Likewise.
5716         * doc/glibc-functions/strtof_l.texi: Likewise.
5717         * doc/glibc-functions/strtol_l.texi: Likewise.
5718         * doc/glibc-functions/strtold_l.texi: Likewise.
5719         * doc/glibc-functions/strtoll_l.texi: Likewise.
5720         * doc/glibc-functions/strtoul_l.texi: Likewise.
5721         * doc/glibc-functions/strtoull_l.texi: Likewise.
5722         * doc/glibc-functions/wcsftime_l.texi: Likewise.
5723         * doc/glibc-functions/wcstod_l.texi: Likewise.
5724         * doc/glibc-functions/wcstof_l.texi: Likewise.
5725         * doc/glibc-functions/wcstol_l.texi: Likewise.
5726         * doc/glibc-functions/wcstold_l.texi: Likewise.
5727         * doc/glibc-functions/wcstoll_l.texi: Likewise.
5728         * doc/glibc-functions/wcstoul_l.texi: Likewise.
5729         * doc/glibc-functions/wcstoull_l.texi: Likewise.
5730
5731 2009-11-24  Bruno Haible  <bruno@clisp.org>
5732
5733         duplocale: Fix logic bug.
5734         * lib/duplocale.c: Don't include <langinfo.h>.
5735         (_NL_LOCALE_NAME): Remove macro.
5736         (rpl_duplocale): Use setlocale instead of nl_langinfo.
5737         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
5738
5739 2009-11-23  Jim Meyering  <meyering@redhat.com>
5740
5741         test-update-copyright: don't hard-code /usr/bin/perl
5742         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
5743         perl to print the current year.  Gilles Espinasse reported that
5744         the replaced use of perl was hard-coded as /usr/bin/perl.
5745
5746 2009-11-23  Bruno Haible  <bruno@clisp.org>
5747
5748         duplocale: Add support for glibc 2.3.x.
5749         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
5750
5751 2009-11-22  Bruno Haible  <bruno@clisp.org>
5752
5753         vasnprintf: Tiny optimization.
5754         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
5755         MacOS X.
5756
5757 2009-11-22  Bruno Haible  <bruno@clisp.org>
5758
5759         Tests for module 'duplocale'.
5760         * modules/duplocale-tests: New file.
5761         * tests/test-duplocale.c: New file.
5762
5763         New module 'duplocale'.
5764         * m4/duplocale.m4: New file.
5765         * lib/locale.in.h (duplocale): New declaration.
5766         * lib/duplocale.c: New file.
5767         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
5768         gl_LOCALE_H_DEFAULTS): New macros.
5769         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
5770         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
5771         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
5772         REPLACE_DUPLOCALE.
5773         * modules/duplocale: New file.
5774         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
5775
5776 2009-11-22  Bruno Haible  <bruno@clisp.org>
5777
5778         * modules/locale-tests (configure.ac): Test for newlocale function.
5779         * tests/test-locale.c: When the system has extended locale functions,
5780         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
5781
5782         locale: Make locale_t available when possible.
5783         * lib/locale.in.h: Include <xlocale.h> when it exists.
5784         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
5785         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
5786         * modules/locale (Depends-on): Add extensions.
5787         (Makefile.am): Also substitute HAVE_XLOCALE_H.
5788         * doc/posix-headers/locale.texi: Document the problem with locale_t.
5789
5790 2009-11-22  Bruno Haible  <bruno@clisp.org>
5791
5792         Add comments.
5793         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
5794         invocation.
5795         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
5796         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5797         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5798
5799 2009-11-22  Bruno Haible  <bruno@clisp.org>
5800
5801         error: account for the possibility of freopen (stdout).
5802         * lib/error.c: Include <unistd.h>.
5803         (flush_stdout): New function, extracted from error and error_at_line.
5804         Determine stdout's fd dynamically.
5805         (error, error_at_line): Invoke flush_stdout.
5806         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
5807         * modules/error (Depends-on): Add unistd.
5808
5809 2009-11-22  Bruno Haible  <bruno@clisp.org>
5810
5811         diffseq: Add comment.
5812         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
5813
5814 2009-11-22  Jim Meyering  <meyering@redhat.com>
5815
5816         c-stack: avoid defining an unused static function
5817         * lib/c-stack.c (find_stack_direction): Do not define this function
5818         when it will not be used.
5819
5820         diffseq: avoid spurious gcc warnings
5821         * lib/diffseq.h (IF_LINT2): Define.
5822         (compareseq): Use it to initialize two members of "part".
5823         This avoids two used-uninitialized warnings.
5824
5825 2009-11-21  Jim Meyering  <meyering@redhat.com>
5826
5827         c-stack: avoid "ignoring return value of `write'" warning
5828         * lib/c-stack.c: Include "ignore-value.h".
5829         (die): Explicitly ignore each write return value.
5830         * modules/c-stack (Depends-on): Add ignore-value.
5831
5832 2009-11-21  Bruno Haible  <bruno@clisp.org>
5833
5834         diffseq: reduce scope of variable 'best'.
5835         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
5836         variable, earlier used for two different purposes.
5837
5838 2009-11-21  Jim Meyering  <meyering@redhat.com>
5839
5840         diffseq: remove useless assignment to "best"
5841         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
5842         assignment.  At that point "best" is already guaranteed to be zero.
5843
5844 2009-11-20  Eric Blake  <ebb9@byu.net>
5845
5846         build: mention ftp redirector in release announcements
5847         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
5848         values that used to come from cfg.mk; mention FTP redirect URL.
5849         * build-aux/announce-gen: Mention the mirror list.
5850         Suggested by Karl Berry.
5851
5852         nanosleep: improve port to mingw
5853         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
5854         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
5855         LIB_NANOSLEEP, but only when needed.
5856         * modules/select (Link): Document LIBSOCKET.
5857         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
5858         enough.
5859
5860         nanosleep: work around cygwin bug
5861         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
5862         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
5863         bug.
5864         (getnow): Delete, not needed.
5865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
5866         LIB_CLOCK_GETTIME.
5867         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
5868         clock-time, gettime.
5869         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
5870         bug.
5871         * modules/nanosleep-tests: New test.
5872         * tests/test-nanosleep.c: New file.
5873
5874         sleep: work around cygwin bug
5875         * lib/sleep.c (rpl_sleep): Work around the bug.
5876         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
5877         (gl_PREREQ_SLEEP): Delete unused macro.
5878         * modules/sleep (Depends-on): Add verify.
5879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
5880         * modules/unistd (Makefile.am): Substitute witness.
5881         * lib/unistd.in.h (sleep): Update prototype.
5882         * doc/posix-functions/sleep.texi (sleep): Document the bug.
5883         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
5884         * modules/sleep-tests (Depends-on): Check for alarm.
5885
5886 2009-11-20  Jim Meyering  <meyering@redhat.com>
5887
5888         maint.mk: improve sc_prohibit_magic_number_exit
5889         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
5890         so it does not match uses like System.exit(1).
5891         Add comments showing how to correct all offenders.
5892
5893 2009-11-19  Eric Blake  <ebb9@byu.net>
5894
5895         xalloc-die-tests: add missing library
5896         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
5897
5898         test-xvasprintf: silence compiler warnings
5899         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
5900         empty string from gcc.
5901
5902 2009-11-19  Jim Meyering  <meyering@redhat.com>
5903
5904         xfreopen: new module, from coreutils
5905         * modules/xfreopen: New module.
5906         * lib/xfreopen.c: New file.
5907         * lib/xfreopen.h: New file.
5908         * MODULES.html.sh (File stream based Input/Output"): Add it.
5909
5910 2009-11-19  Eric Blake  <ebb9@byu.net>
5911
5912         manywarnings: depend on warnings
5913         * modules/manywarnings (Depends-on): Add warnings.
5914
5915         build: avoid compiler warnings
5916         * lib/select.c (rpl_select): Delete unused variable.
5917         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
5918
5919 2009-11-18  Eric Blake  <ebb9@byu.net>
5920
5921         tests: avoid false negative with --with-packager
5922         * tests/test-version-etc.sh: Discard packager information.
5923         * tests/test-argp-version-etc-1.sh: Likewise.
5924         Reported by Mike Frysinger.
5925
5926         utimens: fix regression on Solaris
5927         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
5928         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
5929         can only change fd timestamps via futimesat.  Instead, use an
5930         additional witness macro to avoid BSD bug.
5931         Reported by Jim Meyering.
5932
5933 2009-11-17  Eric Blake  <ebb9@byu.net>
5934
5935         usleep: use it to simplify tests
5936         * modules/stat-time-tests (Depends-on): Add usleep.
5937         (configure.ac): Drop usleep check.
5938         * modules/chown-tests (Depends-on, configure.ac): Likewise.
5939         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
5940         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
5941         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
5942         * modules/openat-tests (Depends-on, configure.ac): Likewise.
5943         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
5944         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
5945         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
5946         Likewise.
5947         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
5948         * tests/test-lchown.h (nap): Likewise.
5949         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
5950         * tests/test-stat-time.c (nap): Likewise.
5951         * tests/test-utimens-common.h (nap): Update comments.
5952
5953         usleep: new module
5954         * modules/usleep: New file.
5955         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
5956         * lib/usleep.c (usleep): Likewise.
5957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
5958         * modules/unistd (Makefile.am): Substitute witnesses.
5959         * lib/unistd.in.h (usleep): Add declaration.
5960         * doc/pastposix-functions/usleep.texi (usleep): Document this.
5961         * MODULES.html.sh (Date and time): Likewise.
5962         * modules/usleep-tests (Depends-on): New test.
5963         * tests/test-usleep.c: New file.
5964
5965         chown: work around OpenBSD bug
5966         * lib/chown.c (rpl_chown): Work around the bug.
5967         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
5968         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
5969         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
5970         * modules/chown (Depends-on): Add stdbool.
5971         * modules/lchown (Depends-on): Likewise.
5972         * doc/posix-functions/chown.texi (chown): Document the bug.
5973         * doc/posix-functions/lchown.texi (lchown): Likewise.
5974         * tests/test-lchown.h (test_chown): Relax test.
5975
5976         mkstemp: avoid conflict with C++ keyword template
5977         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
5978         * lib/mkostemp.c (mkostemp): Likewise.
5979         * lib/mkostemps.c (mkostemps): Likewise.
5980         * lib/mkstemp.c (mkstemp): Likewise.
5981         * lib/mkstemps.c (mkstemps): Likewise.
5982
5983         xalloc-die-tests: optimize
5984         * tests/test-xalloc-die.sh: Reduce number of processes.
5985
5986 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5987
5988         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
5989         patch from ludo@gnu.org (Ludovic Courtès).
5990
5991 2009-11-17  Jim Meyering  <meyering@redhat.com>
5992
5993         version-etc: use proper license string
5994         * modules/version-etc (License): Use LGPL, not LGPLv3+.
5995         * modules/version-etc-fsf: Likewise.
5996
5997 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5998
5999         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
6000         printed to stdout.  Deal with EOL differences.
6001
6002 2009-11-17  Eric Blake  <ebb9@byu.net>
6003
6004         unsetenv: work around Solaris bug
6005         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6006         * lib/unsetenv.c (rpl_unsetenv): Work around it.
6007         Reported by Jim Meyering.
6008
6009         vasnprintf: avoid compiler warnings
6010         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6011         variables.
6012         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6013
6014 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6015
6016         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6017         settings since xalloc-die is no longer the self test,
6018         xalloc-die.sh is.
6019
6020 2009-11-17  Jim Meyering  <meyering@redhat.com>
6021
6022         test-xalloc-die.sh: make the code agree with the commit log
6023         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6024         at the end, just in case you happen to have a test-xalloc-die
6025         program in some other PATH directory.
6026
6027         test-xalloc-die.sh: fix a portability bug
6028         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6029         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6030         Otherwise, argv[0] (as often seen in diagnostics) would be too
6031         system-dependent, sometimes with, and sometimes without the leading "./".
6032
6033         version-etc-fsf: relax license to LGPLv3+
6034         * modules/version-etc-fsf (License): Relax license.
6035
6036 2009-11-16  Eric Blake  <ebb9@byu.net>
6037
6038         xalloc-die-tests: avoid printing null pointer
6039         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6040         shell script.
6041         * tests/test-xalloc-die.c (program_name): Declare.
6042         * tests/test-xalloc-die.sh (tmpfiles): New file.
6043
6044         setenv, unsetenv: work around various bugs
6045         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6046         (setenv) [HAVE_SETENV]: Work around bugs.
6047         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6048         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6049         for bugs.
6050         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6051         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6053         * modules/stdlib (Makefile.am): Update substitutions.
6054         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6055         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6056         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6057         * modules/setenv-tests: New test.
6058         * modules/unsetenv-tests: Likewise.
6059         * tests/test-setenv.c: New file.
6060         * tests/test-unsetenv.c: Likewise.
6061
6062 2009-11-16  Jim Meyering  <meyering@redhat.com>
6063
6064         version-etc: relax license to LGPLv3+
6065         * modules/version-etc (License): Relax license.
6066
6067         better AC_REQUIRE expanded-before-required-warning avoidance
6068         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6069         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6070         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
6071         which is no longer needed.
6072
6073 2009-11-16  Eric Blake  <ebb9@byu.net>
6074
6075         test-freading: clean up temporary file
6076         * tests/test-freading.c (main): Remove file on success, and use
6077         ASSERT more liberally.
6078         Reported by Jim Meyering.
6079
6080 2009-11-16  Jim Meyering  <meyering@redhat.com>
6081
6082         avoid new AC_REQUIRE expanded-before-required warnings
6083         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6084         merely using it.
6085         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6086         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6087
6088 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6089
6090         * tests/test-xalloc-die.c: New file.
6091         * modules/xalloc-die-tests: New file.
6092         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6093         XFAIL_TESTS so it can be appended by modules.
6094
6095 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6096
6097         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
6098         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6099
6100 2009-11-14  Eric Blake  <ebb9@byu.net>
6101
6102         fnmatch: avoid compiler warning
6103         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6104         to silence compiler warning about mismatch signedness in ?:.
6105         Reported by Robert Millan.
6106
6107         intprops: add double-inclusion guard
6108         * lib/intprops.h: Allow idempotent includes.
6109         Suggested by Bruce Korb.
6110
6111         openat: detect Solaris fchownat bug
6112         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
6113         penalizing glibc chownat when only lchownat is broken.
6114         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6115         trailing slash bugs.
6116         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6117         * modules/openat-tests (Files): Include more files.
6118         (Depends-on): Add mgetgroups, sleep, stat-time.
6119         (configure.ac): Add additional checks.
6120         (Makefile.am): Build new test.
6121         * tests/test-fchownat.c: New file.
6122
6123         lchown: detect Solaris and FreeBSD bug
6124         * lib/lchown.c (rpl_lchown): Work around bug.
6125         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6127         * modules/unistd (Makefile.am): Populate it.
6128         * lib/unistd.in.h (lchown): Update declaration.
6129         * doc/posix-functions/lchown.texi (lchown): Document the bug.
6130         * modules/lchown-tests: New file.
6131         * tests/test-lchown.h (test_lchown): Likewise.
6132         * tests/test-lchown.c (main): Likewise.
6133
6134         chown: detect Solaris and FreeBSD bug
6135         * lib/chown.c (rpl_chown): Work around bug.
6136         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6137         (gl_PREREQ_CHOWN): Delete.
6138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6139         * modules/unistd (Makefile.am): Populate it.
6140         * lib/unistd.in.h (chown): Update declaration.
6141         * lib/lchown.c (chown): Update client.
6142         * modules/lchown (Depends-on): Add lstat.
6143         * doc/posix-functions/chown.texi (chown): Document the bug.
6144         * doc/posix-functions/getgroups.texi (getgroups): Document
6145         getgroups pitfall.
6146         * modules/chown-tests: New file.
6147         * tests/test-chown.h (test_chown): Likewise.
6148         * tests/test-chown.c (main): Likewise.
6149
6150 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
6151
6152         gnulib-tool: correctly detect absence of m4 directories
6153         * gnulib-tool: Avoid extra newline on data passed to wc -l.
6154
6155 2009-11-14  Jim Meyering  <meyering@redhat.com>
6156
6157         maint.mk: Prohibit inclusion of "xalloc.h" without use.
6158         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6159
6160 2009-11-14  John W. Eaton  <jwe@gnu.org>
6161
6162         strftime.h: wrap funtion declaration in extern "C" block
6163         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6164
6165 2009-11-13  Eric Blake  <ebb9@byu.net>
6166
6167         getgroups: avoid compiler warning
6168         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6169
6170         getgroups: work around FreeBSD bug
6171         * lib/getgroups.c (rpl_getgroups): Work around the bug.
6172         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6173         * doc/posix-functions/getgroups.texi (getgroups): Document it.
6174         * tests/test-getgroups.c (main): Fix buffer overrun.
6175
6176         getgroups: avoid compilation failure
6177         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6178         * modules/getgroups (Depends-on): Add stdint.
6179
6180 2009-11-13  Jim Meyering  <meyering@redhat.com>
6181
6182         test-getgroups: avoid compilation failure
6183         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6184
6185 2009-11-13  Eric Blake  <ebb9@byu.net>
6186
6187         mgetgroups: new module, taken from coreutils
6188         * modules/mgetgroups: New file.
6189         * lib/mgetgroups.h: Likewise.
6190         * lib/mgetgroups.c (mgetgroups): Likewise.
6191         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6192         * MODULES.html.sh (Users and groups): Mention it.
6193
6194         getgroups: don't expose GETGROUPS_T to user
6195         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
6196         an element at a time if GETGROUPS_T is wrong size.
6197         * lib/getugroups.h (getugroups): Change signature.
6198         * lib/unistd.in.h (getgroups): Likewise.
6199         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6200         signature needs fixing.
6201         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6202         AC_TYPE_GETGROUPS.
6203         * modules/group-member (Depends-on): Add getgroups.
6204         * lib/group-member.c (group_info, get_group_info): Use gid_t.
6205         (group_member): Rely on getgroups replacement.
6206         * lib/getugroups.c (getugroups): Use gid_t.
6207         * tests/test-getgroups.c (main): Likewise.
6208         * NEWS: Mention the signature change.
6209         * doc/posix-functions/getgroups.texi (getgroups): Mention the
6210         problem with signature.
6211         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6212         GETGROUPS_T is still useful for setgroups.
6213
6214         getgroups, getugroups: provide stubs for mingw
6215         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6216         * lib/getugroups.c (getugroups): Likewise.
6217         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6218         function.  Modernize replacement scheme.
6219         (gl_PREREQ_GETGROUPS): Delete.
6220         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6221         * modules/getgroups (configure.ac): Declare witness.
6222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6223         * modules/unistd (Depends-on): Substitute witness.
6224         * lib/unistd.in.h (getgroups): Declare replacement.
6225
6226         getgroups: avoid calling exit
6227         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6228         drop xalloc.
6229         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6230         dependencies.
6231         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6232         exiting, in the rare case of malloc failure.
6233
6234         getgroups: fix logic error
6235         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6236         has more than 20 groups.
6237         * modules/getgroups-tests: New test.
6238         * tests/test-getgroups.c: New file.
6239
6240 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6241
6242         * tests/test-base64.c: Improve.
6243
6244 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6245
6246         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6247         Blake <ebb9@byu.net>.
6248
6249 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6250
6251         * tests/test-xvasprintf.c: Add %s%s related checks.
6252
6253 2009-11-12  Eric Blake  <ebb9@byu.net>
6254
6255         version-etc: match standards.texi style
6256         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6257         and use <> only for URLs.
6258
6259 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
6260
6261         fts: do not fail on a submount during traversal
6262         * lib/fts.c (fts_build): Read the stat info again after opening
6263         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6264         Original report at http://bugzilla.redhat.com/501848.
6265
6266 2009-11-12  Jim Meyering  <meyering@redhat.com>
6267
6268         bootstrap: sync from coreutils
6269         * build-aux/bootstrap (bootstrap_epilogue): New function.
6270         Use git_modules_config in one more place.  This make bootstrap's
6271         --gnulib-srcdir option more useful for testing.
6272
6273         bootstrap: generalize autoheader check
6274         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6275         AC_CONFIG_HEADERS.
6276
6277 2009-11-11  Eric Blake  <ebb9@byu.net>
6278
6279         mkfifoat: use new modules for Solaris and BSD bugs
6280         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6281         * lib/mkfifoat.c (mknodat): Split...
6282         * lib/mknodat.c (mknodat): ...into new file.
6283         * modules/mkfifoat (Files): Ship new file.
6284         (Depends-on): Add mkfifo, mknod.
6285         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6286         (Depends-on): Add symlink.
6287         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
6288         redundant with test_mkfifo.h.
6289         (do_mkfifoat, do_mknodat): New helpers.
6290
6291         mknod: new module
6292         * modules/mknod: New file.
6293         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
6294         * lib/mknod.c (mknod): Likewise.
6295         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6296         defaults.
6297         * modules/sys_stat (Makefile.am): Substitute them.
6298         * lib/sys_stat.in.h (mknod): Declare replacement.
6299         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6300         Document it.
6301         * doc/posix-functions/mknod.texi (mknod): Likewise.
6302         * modules/mknod-tests: New test.
6303         * tests/test-mknod.c: Likewise.
6304
6305         mkfifo: new module
6306         * modules/mkfifo: New file.
6307         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6308         * lib/mkfifo.c (mkfifo): Likewise.
6309         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6310         defaults.
6311         * modules/sys_stat (Makefile.am): Substitute them.
6312         * lib/sys_stat.in.h (mkfifo): Declare replacement.
6313         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6314         Document it.
6315         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
6316         * modules/mkfifo-tests: New test.
6317         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
6318         from test-mkfifoat.c.
6319         * tests/test-mkfifo.c: New file.
6320
6321         readlink: detect FreeBSD bug
6322         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
6323         slash on symlink.
6324         * doc/posix-functions/readlink.texi (readlink): Document the bug.
6325         * tests/test-readlink.h (test_readlink): Enhance test.
6326
6327         symlink: detect FreeBSD bug
6328         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
6329         slash on symlink.
6330         * doc/posix-functions/symlink.texi (symlink): Document the bug.
6331         * tests/test-symlink.h (test_symlink): Enhance test.
6332
6333 2009-11-10  Eric Blake  <ebb9@byu.net>
6334
6335         link: detect FreeBSD bug
6336         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
6337         symlink.
6338         * doc/posix-functions/link.texi (link): Document the bug.
6339         * tests/test-link.h (test_link): Enhance test.
6340         * tests/test-linkat.c (main): Update caller.
6341
6342         unlink, remove: detect FreeBSD bug
6343         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
6344         slash on symlink.
6345         * doc/posix-functions/unlink.texi (unlink): Document the bug.
6346         * doc/posix-functions/remove.texi (remove): Likewise.
6347         * tests/test-unlink.h (test_unlink): Enhance test.
6348         * tests/test-remove.c (main): Likewise.
6349
6350 2009-11-09  Eric Blake  <ebb9@byu.net>
6351
6352         rename: detect FreeBSD bug
6353         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
6354         slash on symlink.
6355         * modules/renameat-tests (Depends-on): Add filenamecat.
6356         * tests/test-rename.h (test_rename): Allow one more errno.
6357         * tests/test-renameat.c (main): Likewise.
6358         * doc/posix-functions/rename.texi (rename): Document the bug.
6359
6360         open: detect FreeBSD bug
6361         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
6362         symlink.
6363         * doc/posix-functions/open.texi (open): Document the bug.
6364         * doc/posix-functions/utimes.texi (utimes): Likewise.
6365         * tests/test-open.h (test_open): Add parameters, and test symlink
6366         handling.
6367         * tests/test-open.c (main): Adjust caller.
6368         * tests/test-fcntl-safer.c (main): Likewise.
6369         * modules/open-tests (Depends-on): Add stdbool, symlink.
6370         * modules/fcntl-safer-tests (Depends-on): Likewise.
6371         * tests/test-openat.c (main): Add test-open tests.
6372
6373         stat: detect FreeBSD bug
6374         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
6375         symlink.
6376         * doc/posix-functions/stat.texi (stat): Document the bug.
6377         * tests/test-stat.h (test_stat_func): Add argument.
6378         * tests/test-stat.c (main): Adjust caller.
6379         * tests/test-fstatat.c (main): Likewise.
6380         * modules/stat-tests (Depends-on): Add stdbool, symlink.
6381         Reported by Jim Meyering.
6382
6383 2009-11-09  James Youngman  <jay@gnu.org>
6384
6385         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
6386         * lib/strftime.c: Correct placement of #include "ignore-value.h".
6387
6388 2009-11-08  Jim Meyering  <meyering@redhat.com>
6389
6390         utimens: remove invalid futimesat call
6391         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
6392         It used the file descriptor of the target file as the DIR_FD
6393         parameter and NULL as the file name.  That caused failure with
6394         errno == EFAULT on FreeBSD-8.0-rc2
6395
6396 2009-11-07  Eric Blake  <ebb9@byu.net>
6397
6398         fflush, freadseek: use fseeko, not fseek
6399         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
6400         (clear_ungetc_buffer): Avoid potential problems on large files.
6401         * lib/freadseek.c (freadseek): Likewise.
6402         * modules/freadseek (Depends-on): Add fseeko.
6403         * modules/fseek (configure.ac): Set a witness.
6404         * tests/test-fflush.c (main): Use fseeko.
6405         * tests/test-fpurge.c (fseek): Disable link warning.
6406         * tests/test-freadable.c (fseek): Likewise.
6407         * tests/test-freading.c (fseek): Likewise.
6408         * tests/test-fseeko.c (fseek): Likewise.
6409         * tests/test-ftell.c (fseek): Likewise.
6410         * tests/test-ftello.c (fseek): Likewise.
6411         * tests/test-fwritable.c (fseek): Likewise.
6412         * tests/test-fwriting.c (fseek): Likewise.
6413
6414 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6415
6416         * modules/memchr (Depends-on): Drop getpagesize dependency.
6417
6418 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6419
6420         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
6421         Reported by Ludovic Courtès.
6422         * build-aux/pmccabe2html: Improve example usage.
6423         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
6424
6425 2009-11-06  Jim Meyering  <meyering@redhat.com>
6426
6427         do-release-commit-and-tag: New module.
6428         Automate the release-commit and tag process.
6429         * build-aux/do-release-commit-and-tag: New script, from coreutils.
6430         * modules/do-release-commit-and-tag: New file.
6431         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6432
6433 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6434
6435         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
6436         because test-select.c uses inet_pton.
6437
6438 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6439
6440         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
6441         GETADDRINFO_LIB.  Bump serial number.
6442         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
6443         Suggested by Eric Blake <ebb9@byu.net>.
6444
6445 2009-11-05  Eric Blake  <ebb9@byu.net>
6446
6447         strtod: detect darwin bug
6448         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
6449         Reported by Leo Davis.
6450
6451         freopen-safer: new module
6452         * modules/freopen-safer: New module.
6453         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
6454         * lib/freopen-safer.c (freopen_safer): New file.
6455         * lib/stdio-safer.h (freopen_safer): New declaration.
6456         * lib/stdio--.h (freopen): New override.
6457         * MODULES.html.sh (File stream based Input/Output): Mention it.
6458         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
6459         freopen-safer module.
6460         * doc/posix-functions/stderr.texi (stderr): Likewise.
6461         * doc/posix-functions/stdin.texi (stdin): Likewise.
6462         * doc/posix-functions/stdout.texi (stdout): Likewise.
6463         * modules/freopen-safer-tests: New test.
6464         * tests/test-reopen-safer.c: New file.
6465
6466 2009-11-05  Jim Meyering  <meyering@redhat.com>
6467
6468         maint.mk: Prohibit inclusion of "close-stream.h" without use.
6469         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6470
6471 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6472
6473         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
6474
6475 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6476
6477         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
6478
6479 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6480
6481         Fix link error.
6482         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6483         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6484
6485 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6486
6487         * tests/test-func.c: Also test value of __func__.
6488
6489 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6490
6491         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
6492         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
6493
6494 2009-11-05  Bruno Haible  <bruno@clisp.org>
6495
6496         Fix link error.
6497         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6498         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6499         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
6500
6501 2009-11-05  Bruno Haible  <bruno@clisp.org>
6502
6503         Tests for module 'inet_pton'.
6504         * modules/inet_pton-tests: New file.
6505         * tests/test-inet_pton.c: New file.
6506
6507 2009-11-05  Bruno Haible  <bruno@clisp.org>
6508
6509         Tests for module 'inet_ntop'.
6510         * modules/inet_ntop-tests: New file.
6511         * tests/test-inet_ntop.c: New file.
6512
6513 2009-11-04  Eric Blake  <ebb9@byu.net>
6514
6515         stdlib-safer: wrap all mkstemp variants
6516         * modules/mkostemp (configure.ac): Set witness.
6517         * modules/mkostemps (configure.ac): Likewise.
6518         * modules/mkstemps (configure.ac): Likewise.
6519         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
6520         (mkstemps_safer): Wrap more functions.
6521         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
6522         wrapping.
6523         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
6524         (mkstemps_safer): Implement the wrappers.
6525
6526         mkstemps, mkostemps: new modules
6527         * modules/mkostemps: New module.
6528         * modules/mkstemps: Likewise.
6529         * lib/mkostemps.c (mkostemps): New file.
6530         * lib/mkstemps.c (mkstemps): Likewise.
6531         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
6532         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
6533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
6534         * modules/stdlib (Makefile.am): Substitute them.
6535         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
6536         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
6537         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6538         * doc/gnulib.texi (Glibc stdlib.h): Include them.
6539         * MODULES.html.sh (File system functions): Mention them.
6540
6541         tempname: resync from glibc
6542         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
6543         same values for __GT_FILE as glibc.  Abort even when assertions
6544         are disabled.
6545         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
6546         match its value otherwise.  Allow idempotent inclusion.
6547         * lib/mkdtemp.c (mkdtemp): Adjust caller.
6548         * lib/mkostemp.c (mkostemp): Likewise.
6549         * lib/mkstemp.c (mkstemp): Likewise.
6550         * lib/tmpfile.c (tmpfile): Likewise.
6551         * NEWS: Document this.
6552
6553         utimens: fix use of futimens on older Linux
6554         * lib/utimens.c (fdutimens): Use updated, rather than original,
6555         timespec to avoid bug in older Linux kernel.
6556         Reported by Simon Josefsson.
6557
6558 2009-11-04  Bruno Haible  <bruno@clisp.org>
6559
6560         Make num_processors more flexible and consistent.
6561         * lib/nproc.h (enum nproc_query): New type.
6562         (num_processors): Add a 'query' argument.
6563         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
6564         (num_processors): Add a 'query' argument. Test the value of the
6565         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
6566         mingw, count the number of CPUs available for the current process.
6567         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
6568         Check for sched_getaffinity and sched_getaffinity_np.
6569         * modules/nproc (Depends-on): Add c-ctype, extensions.
6570         * NEWS: Mention the change.
6571
6572 2009-11-03  Bruno Haible  <bruno@clisp.org>
6573
6574         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
6575
6576 2009-11-03  Jim Meyering  <meyering@redhat.com>
6577
6578         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
6579         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
6580         if it is defined.
6581
6582 2009-11-02  Eric Blake  <ebb9@byu.net>
6583
6584         mktime, timegm: share common declaration
6585         * lib/mktime-internal.h: New file.
6586         * lib/mktime.c: Use it rather than open-coding a declaration.
6587         * lib/timegm.c: Likewise.
6588         * modules/mktime (Files): Ship it.
6589         * modules/timegm (Files): Likewise.
6590         Suggested by Bruno Haible.
6591
6592         test-update-copyright: update test to match script changes
6593         * tests/test-update-copyright.sh: Avoid hard-coding perl
6594         location.  Don't update *.bak created by earlier runs.
6595
6596 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
6597             Simon Josefsson  <simon@josefsson.org>
6598             Bruno Haible  <bruno@clisp.org>
6599
6600         Fix link error on Solaris 8.
6601         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
6602         also in libnsl. Define also INET_PTON_LIB.
6603         * modules/inet_pton (Link): New section.
6604
6605 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6606             Bruno Haible  <bruno@clisp.org>
6607
6608         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
6609         * modules/inet_ntop (Link): New section.
6610         Reported by Boyan Kasarov <bkasarov@gmail.com>.
6611
6612 2009-11-02  Eric Blake  <ebb9@byu.net>
6613
6614         maint: avoid compiler warnings in m4 macros
6615         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
6616         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
6617
6618 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6619
6620         * m4/pmccabe2html.m4: Remove file.
6621         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
6622         function.  Change maintainer.
6623         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
6624         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
6625         Courtès).
6626
6627 2009-10-31  Eric Blake  <ebb9@byu.net>
6628
6629         fseeko: fix m4 regression
6630         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
6631         regression from 2009-10-27.
6632         Reported by Ralf Wildenhues.
6633
6634 2009-10-31  Jim Meyering  <meyering@redhat.com>
6635
6636         inttostr: aesthetics and improved (compile-time) safety
6637         Define inttype_is_signed rather than inttype_is_unsigned,
6638         since the sole use is via "#if inttype_is_signed".
6639         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
6640         inttype_is_unsigned.
6641         * lib/offtostr.c (inttype_is_signed): Likewise.
6642         * lib/uinttostr.c (inttype_is_signed): Likewise.
6643         * lib/umaxtostr.c (inttype_is_signed): Likewise.
6644         * lib/inttostr.c (inttostr): Use verify to cross-check the
6645         inttype_is_signed value and the signedness of the actual type.
6646         * modules/inttostr (Depends-on): Add verify.
6647
6648 2009-10-30  Eric Blake  <ebb9@byu.net>
6649
6650         build: avoid compiler warnings
6651         * lib/fchmodat.c (lchmod): Mark unused variables.
6652         * lib/getopt.c (_getopt_initialize): Likewise.
6653         * lib/mktime.c (__mktime_internal): Provide prototype.
6654         * lib/inttostr.c (inttostr): Avoid compiler warning even with
6655         older gcc that do not understand #pragma GCC diagnostic.
6656         * lib/uinttostr.c (inttype_is_unsigned): Define.
6657         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
6658
6659 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
6660
6661         stat: fix compilation on AIX
6662         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
6663         only see struct stat64.
6664
6665 2009-10-30  Eric Blake  <ebb9@byu.net>
6666
6667         exclude: make more robust
6668         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
6669         rather than masking a coding bug.
6670         Suggested by Bruno Haible.
6671
6672 2009-10-30  Jim Meyering  <meyering@redhat.com>
6673
6674         perl scripts: remove #!/usr/bin/perl in favor of more portable...
6675         Rather than putting #!/usr/bin/perl on the first line,
6676         start with a variant of what's recommended by "man perlrun" that
6677         invokes the first "perl" program from your shell's search path.
6678         * build-aux/gitlog-to-changelog: Replace #!... as above.
6679         Add a "Local Variables" perl mode setting.
6680         Prompted by a patch from Ludovic Courtès.
6681         Improved by Eric Blake.
6682         * build-aux/useless-if-before-free: Likewise.
6683         * build-aux/announce-gen: Likewise.
6684         * build-aux/update-copyright: Likewise.
6685
6686 2009-10-29  Eric Blake  <ebb9@byu.net>
6687
6688         filenamecat-lgpl: adjust clients
6689         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
6690         filenamecat.
6691         * modules/renameat (Depends-on): Likewise.
6692
6693         filenamecat: split into filenamecat-lgpl
6694         * modules/filenamecat-lgpl: New module.
6695         * modules/filenamecat (Files): Move library-safe files into
6696         filenamecat-lgpl.
6697         (Depends-on): Add filenamecat-lgpl.
6698         (configure.ac): Declare witness.
6699         * lib/filenamecat.h (file_name_concat): Only declare when using
6700         GPL module.
6701         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
6702         Move...
6703         * lib/filenamecat-lgpl.c: ...into new file.
6704         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
6705         (gl_FILE_NAME_CONCAT): Use it.
6706         * MODULES.html.sh (File system functions): Mention new module.
6707
6708         argp: avoid memory leak
6709         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
6710         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
6711         base_name, since the latter malloc()s and can call exit().
6712         Leak introduced 2006-07-03.
6713
6714         dirname-lgpl: adjust clients that don't need full dirname
6715         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
6716         * modules/filenamecat (Depends-on): Likewise.
6717         * modules/linkat (Depends-on): Likewise.
6718         * modules/mkancesdirs (Depends-on): Likewise.
6719         * modules/mkdir (Depends-on): Likewise.
6720         * modules/openat (Depends-on): Likewise.
6721         * modules/savewd (Depends-on): Likewise.
6722         * modules/rename (Depends-on): Likewise.
6723         (License): Relax license.
6724         * modules/mkdir-tests (Depends-on): Drop progname.
6725         (Makefile.am): Delete unneeded LDADD.
6726         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
6727
6728         dirname: split into dirname-lgpl
6729         * modules/dirname-lgpl: New module.
6730         * modules/dirname (Files): Move library-safe files into
6731         dirname-lgpl.
6732         (Depends-on): Add dirname-lgpl.
6733         (configure.ac): Declare witness.
6734         * modules/double-slash-root (License): Relax license.
6735         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
6736         module.
6737         * lib/dirname.c (dir_len, mdir_name): Move...
6738         * lib/dirname-lgpl.c: ...into new file.
6739         * lib/basename.c (last_component, base_len): Move...
6740         * lib/basename-lgpl.c: ...into new file.
6741         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
6742         (gl_DIRNAME): Use it.
6743         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
6744         Mention new module.
6745         * modules/dirname-tests (Depends-on): Add progname.
6746         * tests/test-dirname.c (program_name): Delete.
6747
6748         mkdir: make safe for libraries
6749         * modules/mkdir (Depends-on): Drop xalloc.
6750         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
6751         exit.
6752
6753         tests: avoid some compiler warnings
6754         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
6755         literals.
6756         * tests/test-memchr.c (main): Avoid type mismatch.
6757         * tests/test-arpa_inet.c (main): Avoid unused parameters.
6758         * tests/test-base64.c (main): Likewise.
6759         * tests/test-getdelim.c (main): Likewise.
6760         * tests/test-gethostname.c (main): Likewise.
6761         * tests/test-getline.c (main): Likewise.
6762         * tests/test-netinet_in.c (main): Likewise.
6763         * tests/test-select.c (open_server_socket, main): Likewise.
6764         * tests/test-select-stdin.c (main): Likewise.
6765         * tests/test-sockets.c (main): Likewise.
6766         * tests/test-strsignal.c (main): Likewise.
6767         * tests/test-sys_select.c (main): Likewise.
6768         * tests/test-sys_socket.c (main): Likewise.
6769         * tests/test-u64.c (main): Likewise.
6770         * tests/test-xfprintf-posix.c (main): Likewise.
6771         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
6772
6773         sockets: avoid compiler warning
6774         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
6775
6776         maint: detect usage(1) and other suspicious exits
6777         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
6778
6779 2009-10-29  Jim Meyering  <meyering@redhat.com>
6780
6781         timespec: long-to-int truncation could make timespec_cmp malfunction
6782         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
6783         a multiple of 2^32 nanoseconds as no difference.
6784
6785 2009-10-28  Jim Meyering  <meyering@redhat.com>
6786
6787         fprintftime: wrap macro code argument in "do {...} while(0)"
6788         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
6789         cpy macro must be a statement that can be followed by a semicolon.
6790         Now that the else clause contains a comment and is hence longer
6791         than one line, I require curly braces.  That in turn requires
6792         that we wrap this code block in the standard do...while(0).
6793
6794         fprintftime: remove stray semicolon from previous change
6795         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
6796
6797         fprintftime: avoid a warning about ignored fwrite return value
6798         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
6799         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
6800         that is unsafe.
6801         * modules/fprintftime (Depends-on): Add ignore-value.
6802
6803         exclude: avoid an unwarranted warning
6804         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
6805
6806 2009-10-27  Eric Blake  <ebb9@byu.net>
6807
6808         fseek: avoid compilation failure when fflush is replaced
6809         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
6810         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
6811         module is in use.
6812         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
6813         module is not in use; since REPLACE_FSEEK worked otherwise.
6814         (GNULIB_FTELLO): Likewise for ftell.
6815         Reported by Ian Beckwith and others.
6816
6817 2009-10-27  Bruno Haible  <bruno@clisp.org>
6818
6819         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
6820         Reported by Jim Meyering.
6821
6822 2009-10-27  Jim Meyering  <jim@meyering.net>
6823             Bruno Haible  <bruno@clisp.org>
6824
6825         Avoid warning despite dropping the return value of fwrite.
6826         * lib/unicodeio.c: Include ignore-value.h.
6827         (fwrite_success_callback): Explicitly ignore fwrite's return value.
6828         * modules/unicodeio (Depends-on): Add ignore-value.
6829
6830 2009-10-26  Eric Blake  <ebb9@byu.net>
6831
6832         areadlinkat: fix fallback path
6833         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
6834         pointer and zero.
6835
6836 2009-10-22  Pádraig Brady  <P@draigBrady.com>
6837
6838         Use a better IO block size for modern systems
6839         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
6840         * lib/md2.c: Likewise.
6841         * lib/md4.c: Likewise.
6842         * lib/md5.c: Likewise.
6843         * lib/sha1.c: Likewise.
6844         * lib/sha256.c: Likewise.
6845         * lib/sha512.c: Likewise.
6846
6847 2009-10-22  Eric Blake  <ebb9@byu.net>
6848
6849         tests: avoid several compiler warnings
6850         * tests/test-getcwd.c (main): Avoid buffer underflow.
6851         * tests/test-getdate.c (main): String literals are not safe with
6852         putenv, so use setenv.  Declare unused argument.
6853         * modules/getdate-tests (Depends-on): Add setenv.
6854         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
6855         problems with string literals in char *.
6856         * tests/test-hash.c (main): Avoid shadowing declaration.
6857         (insert_new): Treat string literals as char const *.
6858         * tests/test-getopt.h (test_getopt): Likewise.
6859         (getopt_loop): Alter types to minimize casting elsewhere.
6860         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
6861         (test_getopt_long_posix): Likewise.
6862         (do_getopt_long): Add wrapper to minimize casting.
6863         * tests/test-atexit.c (clear_temp_file): Use void.
6864         * tests/test-areadlink-with-size.c (main): Declare unused
6865         arguments.
6866         * tests/test-areadlink.c (main): Likewise.
6867         * tests/test-areadlinkat-with-size.c (main): Likewise.
6868         * tests/test-areadlinkat.c (main): Likewise.
6869         * tests/test-canonicalize-lgpl.c (main): Likewise.
6870         * tests/test-canonicalize.c (main): Likewise.
6871         * tests/test-dirent-safer.c (main): Likewise.
6872         * tests/test-dirname.c (main): Likewise.
6873         * tests/test-dup2.c (main): Likewise.
6874         * tests/test-fchdir.c (main): Likewise.
6875         * tests/test-fcntl-h.c (main): Likewise.
6876         * tests/test-fcntl-safer.c (main): Likewise.
6877         * tests/test-fdopendir.c (main): Likewise.
6878         * tests/test-fdutimensat.c (main): Likewise.
6879         * tests/test-fflush.c (main): Likewise.
6880         * tests/test-filenamecat.c (main): Likewise.
6881         * tests/test-filevercmp.c (main): Likewise.
6882         * tests/test-fopen-safer.c (main): Likewise.
6883         * tests/test-fopen.c (main): Likewise.
6884         * tests/test-fpending.c (main): Likewise.
6885         * tests/test-fpurge.c (main): Likewise.
6886         * tests/test-freading.c (main): Likewise.
6887         * tests/test-fstatat.c (main): Likewise.
6888         * tests/test-fsync.c (main): Likewise.
6889         * tests/test-futimens.c (main): Likewise.
6890         * tests/test-getndelim2.c (main): Likewise.
6891         * tests/test-gettimeofday.c (main): Likewise.
6892         * tests/test-getopt.c (main): Likewise.
6893         * tests/test-i-ring.c (main): Likewise.
6894         * tests/test-inttypes.c (main): Likewise.
6895         * tests/test-link.c (main): Likewise.
6896         * tests/test-lstat.c (main): Likewise.
6897         * tests/test-math.c (main): Likewise.
6898         * tests/test-md5.c (main): Likewise.
6899         * tests/test-memchr2.c (main): Likewise.
6900         * tests/test-memrchr.c (main): Likewise.
6901         * tests/test-mkdir.c (main): Likewise.
6902         * tests/test-mkdirat.c (main): Likewise.
6903         * tests/test-mkfifoat.c (main): Likewise.
6904         * tests/test-open.c (main): Likewise.
6905         * tests/test-openat-safer.c (main): Likewise.
6906         * tests/test-openat.c (main): Likewise.
6907         * tests/test-quotearg.c (main): Likewise.
6908         * tests/test-rawmemchr.c (main): Likewise.
6909         * tests/test-readlink.c (main): Likewise.
6910         * tests/test-remove.c (main): Likewise.
6911         * tests/test-rename.c (main): Likewise.
6912         * tests/test-renameat.c (main): Likewise.
6913         * tests/test-rmdir.c (main): Likewise.
6914         * tests/test-sha1.c (main): Likewise.
6915         * tests/test-signal.c (main): Likewise.
6916         * tests/test-sigaction.c (main): Likewise.
6917         * tests/test-stat.c (main): Likewise.
6918         * tests/test-stat-time.c (main): Likewise.
6919         * tests/test-stddef.c (main): Likewise.
6920         * tests/test-stdint.c (main): Likewise.
6921         * tests/test-stdio.c (main): Likewise.
6922         * tests/test-stdlib.c (main): Likewise.
6923         * tests/test-strchrnul.c (main): Likewise.
6924         * tests/test-strerror.c (main): Likewise.
6925         * tests/test-string.c (main): Likewise.
6926         * tests/test-strtod.c (main): Likewise.
6927         * tests/test-strverscmp.c (main): Likewise.
6928         * tests/test-symlink.c (main): Likewise.
6929         * tests/test-symlinkat.c (main): Likewise.
6930         * tests/test-sys_stat.c (main): Likewise.
6931         * tests/test-sys_time.c (main): Likewise.
6932         * tests/test-time.c (main): Likewise.
6933         * tests/test-unistd.c (main): Likewise.
6934         * tests/test-unlink.c (main): Likewise.
6935         * tests/test-unlinkat.c (main): Likewise.
6936         * tests/test-utimens.c (main): Likewise.
6937         * tests/test-utimensat.c (main): Likewise.
6938         * tests/test-version-etc.c (main): Likewise.
6939         * tests/test-wchar.c (main): Likewise.
6940         * tests/test-wctype.c (main): Likewise.
6941         * tests/test-xprintf-posix.c (main): Likewise.
6942         * tests/test-posixtm.c (main): Likewise.
6943         (STREQ): Delete unused macro.
6944         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
6945         shadowed variables.
6946         * tests/test-memchr.c (main): Likewise.
6947
6948 2009-10-21  Eric Blake  <ebb9@byu.net>
6949
6950         areadlinkat: avoid failure on older glibc
6951         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
6952         rather than mis-comparing 0 against FUNC_RESULT of char*.
6953
6954 2009-10-21  Bruno Haible  <bruno@clisp.org>
6955
6956         * modules/stpncpy (License): Relicense under LGPLv2+.
6957         Reported by David Lutterkort <lutter@redhat.com>.
6958
6959 2009-10-20  Eric Blake  <ebb9@byu.net>
6960
6961         utimensat: work around Solaris 9 bug
6962         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
6963         has trailing slash bugs.
6964         * tests/test-lutimens.h (test_lutimens): Enhance test.
6965         * tests/test-utimens.h (test_utimens): Likewise.
6966         * doc/posix-functions/utime.texi (utime): Enhance documentation.
6967         * doc/posix-functions/utimes.texi (utimes): Likewise.
6968         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6969         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
6970         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
6971         * doc/posix-functions/futimens.texi (futimens): Likewise.
6972
6973         fdutimensat: new module
6974         * modules/fdutimensat: New file.
6975         * lib/fdutimensat.c (fdutimensat): Likewise.
6976         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
6977         * MODULES.html.sh (File system functions): Mention module.
6978         * modules/fdutimensat-tests: New test.
6979         * tests/test-fdutimensat.c: Likewise.
6980
6981         doc: regenerate INSTALL
6982         * doc/INSTALL: Reflect recent autoconf update.
6983         * doc/INSTALL.ISO: Likewise.
6984         * doc/INSTALL.UTF-8: Likewise.
6985
6986 2009-10-20  Pádraig Brady  <P@draigBrady.com>
6987
6988         acl: warn if ACL support is not detected
6989         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
6990
6991 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
6992
6993         * lib/nproc.h: Add extern "C" block for C++.
6994
6995 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
6996             Bruno Haible  <bruno@clisp.org>
6997
6998         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
6999         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7000         * doc/posix-functions/isalpha.texi: Likewise.
7001         * doc/posix-functions/isblank.texi: Likewise.
7002         * doc/posix-functions/iscntrl.texi: Likewise.
7003         * doc/posix-functions/isdigit.texi: Likewise.
7004         * doc/posix-functions/isgraph.texi: Likewise.
7005         * doc/posix-functions/islower.texi: Likewise.
7006         * doc/posix-functions/isprint.texi: Likewise.
7007         * doc/posix-functions/ispunct.texi: Likewise.
7008         * doc/posix-functions/isspace.texi: Likewise.
7009         * doc/posix-functions/isupper.texi: Likewise.
7010         * doc/posix-functions/isxdigit.texi: Likewise.
7011
7012 2009-10-18  Bruno Haible  <bruno@clisp.org>
7013
7014         Tests for module 'isblank'.
7015         * modules/isblank-tests: New file.
7016         * tests/test-isblank.c: New file.
7017
7018         New module 'isblank'.
7019         * lib/isblank.c: New file.
7020         * m4/isblank.m4: New file.
7021         * modules/isblank: New file.
7022         * doc/posix-functions/isblank.texi: Mention the new module.
7023
7024 2009-10-18  Bruno Haible  <bruno@clisp.org>
7025
7026         New module 'ctype'.
7027         * lib/ctype.in.h: New file.
7028         * m4/ctype.m4: New file.
7029         * modules/ctype: New file.
7030         * doc/posix-headers/ctype.texi: Mention the new module.
7031
7032 2009-10-18  Jim Meyering  <meyering@redhat.com>
7033
7034         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7035         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7036         right after its initialization, rather than farther down.
7037         Keeping these in close proximity makes it easier to ensure
7038         that each such variable is initialized.  E.g.,
7039
7040             LIB_CLOCK_GETTIME=
7041             AC_SUBST([LIB_CLOCK_GETTIME])
7042
7043         This change also increments these serial numbers.
7044         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7045         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7047
7048 2009-10-18  Bruno Haible  <bruno@clisp.org>
7049
7050         Don't let environment variables perturb build.
7051         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7052         (gl_PREREQ_GETHRXTIME): ... not here.
7053
7054 2009-10-18  Bruno Haible  <bruno@clisp.org>
7055
7056         Avoid symlink attack in localcharset module.
7057         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7058         (O_NOFOLLOW): Define fallback.
7059         (get_charset_aliases): Don't open the file if it is a symbolic link.
7060         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7061         gl_FCNTL_H.
7062         (gl_FCNTL_H): Require it.
7063         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7064         * modules/localcharset (Files): Add m4/fcntl_h.m4.
7065         Reported by Fergal Glynn <fglynn@veracode.com>.
7066
7067 2009-10-18  Bruno Haible  <bruno@clisp.org>
7068
7069         Implement nproc for mingw.
7070         * lib/nproc.c: Include <windows.h>
7071         (num_processors): On native Windows platforms, try GetSystemInfo.
7072
7073 2009-10-18  Bruno Haible  <bruno@clisp.org>
7074
7075         Implement nproc for IRIX.
7076         * lib/nproc.c: Include <sys/sysmp.h>.
7077         (num_processors): On IRIX systems, try sysmp.
7078         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7079
7080 2009-10-18  Bruno Haible  <bruno@clisp.org>
7081
7082         Implement nproc for HP-UX.
7083         * lib/nproc.c: Include <sys/pstat.h>
7084         (num_processors): On HP-UX systems, try pstat_getdynamic.
7085         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7086         pstat_getdynamic.
7087
7088 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
7089             Bruno Haible  <bruno@clisp.org>
7090
7091         Implement nproc for NetBSD, OpenBSD.
7092         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7093         (ARRAY_SIZE): New macro.
7094         (num_processors): On BSD systems, try sysctl of HW_NCPU.
7095         * m4/nproc.m4: New file.
7096         * modules/nproc (Files): Add m4/nproc.m4.
7097         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7098         (Makefile.am): Instead, augment lib_SOURCES.
7099
7100 2009-10-18  Bruno Haible  <bruno@clisp.org>
7101
7102         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7103         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7104         sys/param.h.
7105
7106 2009-10-16  Eric Blake  <ebb9@byu.net>
7107
7108         utimensat: new module
7109         * modules/utimensat: New file.
7110         * lib/utimensat.c (utimensat): Likewise.
7111         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7112         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7113         so we can work around Linux bugs.
7114         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7115         * modules/sys_stat (Makefile.am): Substitute them.
7116         * lib/sys_stat.in.h (utimensat): Declare it.
7117         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7118         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7119         * modules/utimensat-tests: New test.
7120         * tests/test-utimensat.c: Likewise.
7121
7122         utimens: let lutimens work on non-symlinks
7123         * lib/utimens.c (lutimens): Fall back to utimens rather than
7124         failing with ENOSYS, when file is not a symlink.
7125         (utimens): Reduce redirection.
7126         * tests/test-lutimens.h (test_lutimens): Update test to cover
7127         non-symlinks.
7128         * tests/test-utimens.h (test_utimens): Update test to cover
7129         symlinks.
7130         * tests/test-utimens.c (main): Update caller.
7131
7132         utimens: cache whether utimensat syscall works
7133         * lib/utimens.c (utimensat_works_really): New cache variable.
7134         (fdutimens, lutimens): Use it to avoid failing syscall.
7135
7136         test-stat-time, test-utimens: improve portability
7137         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7138         ext4 on alpha, and for cygwin.
7139         * tests/test-utimens-common.h: New file.
7140         (nap): Factor delays into single function.
7141         * tests/test-lutimens.h (test_lutimens): Use new header.
7142         * tests/test-futimens.h (test_futimens): Likewise.
7143         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
7144         timestamps to occur from same machine, as was done previously for
7145         test_utimens.
7146         * modules/utimens-tests (Files): Ship new file.
7147         * modules/futimens-tests (Files): Likewise.
7148         Reported in part by Jim Meyering.
7149
7150         sys_stat: sort replacement declarations
7151         * lib/sys_stat.in.h: Sort declarations.
7152         * lib/futimens.c (futimens): Fix typo.
7153
7154 2009-10-15  Jim Meyering  <meyering@redhat.com>
7155
7156         don't let environment settings perturb build
7157         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7158         could cause a configure-time and/or build-time malfunction.
7159         Typically, a configure-time function-in-library test is performed
7160         via code like this:
7161
7162           LIB_VAR=
7163           AC_SUBST([LIB_VAR])
7164           prefix_saved_LIBS=$LIBS
7165             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7166                        [test "$ac_cv_search_FUNC" = "none required" ||
7167                         LIB_VAR=$ac_cv_search_FUNC])
7168           LIBS=$prefix_saved_LIBS
7169
7170         However, in each of the files affected by this change, the LIB_VAR=
7171         initialization was omitted.  Thus, when set in the environment, its
7172         value would propagate into generated Makefiles when FUNC is not found
7173         in LIB_NAME.
7174         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7175         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7176         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7177
7178 2009-10-14  Eric Blake  <ebb9@byu.net>
7179
7180         fchdir: avoid infinite recursion in mingw
7181         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7182         recursing.
7183
7184         test-stat-time: port to mingw
7185         * tests/test-stat-time.c (force_unlink): Return a value.
7186         (test_ctime) [W32]: Fix compilation error.
7187         (nap): Don't call usleep with too large an argument.  Use
7188         force_unlink.
7189         * doc/pastposix-functions/usleep.texi (usleep): Document the
7190         portability issue.
7191
7192 2009-10-13  Jim Meyering  <meyering@redhat.com>
7193
7194         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7195         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7196         * modules/pipe-filter-ii: Likewise.
7197         * modules/sys_socket-tests: Likewise.
7198         * modules/tsearch-tests: Likewise.
7199         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7200         (check): Depend on it.
7201
7202 2009-10-12  Eric Blake  <ebb9@byu.net>
7203
7204         utimens-tests: port to NFS file systems
7205         * tests/test-utimens.h (test_utimens): Refactor utimecmp
7206         comparisons to avoid spurious failures from timestamp drift
7207         between NFS machines.
7208
7209 2009-10-12  Eric Blake  <ebb9@byu.net>
7210
7211         stat-time-tests: minor cleanups
7212         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7213         * tests/test-stat-time.c (nap): Separate assignment from call.
7214         Suggested by Paolo Bonzini and Bruno Haible.
7215
7216         sys_stat: guarantee struct timespec
7217         * lib/sys_stat.in.h (includes): Always include <time.h>
7218         * modules/sys_stat (Depends-on): Add time.
7219         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7220         mode_t permission values.
7221         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7222         get at subsecond timestamps.
7223
7224 2009-10-10  Eric Blake  <ebb9@byu.net>
7225
7226         futimens: new module
7227         * modules/futimens: New file.
7228         * lib/futimens.c (futimens): Likewise.
7229         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7230         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7231         we can work around Linux bugs.
7232         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7233         * modules/sys_stat (Makefile.am): Substitute them.
7234         * lib/sys_stat.in.h (futimens): Declare it.
7235         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7236         * doc/posix-functions/futimens.texi (futimens): Likewise.
7237         * modules/futimens-tests: New test.
7238         * tests/test-futimens.c: Likewise.
7239
7240         utimens: introduce fdutimens
7241         * lib/utimens.h (fdutimens): New prototype.
7242         * lib/utimens.c (gl_futimens): Move guts...
7243         (fdutimens): ...to new interface.
7244         * tests/test-utimens.c (do_fdutimens): Use it.
7245
7246         utimens: add UTIME_NOW and UTIME_OMIT support
7247         * lib/utimens.c (validate_timespec, update_timespec): New helper
7248         functions.
7249         (gl_futimens, lutimens): Use them.
7250         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7251         stdbool, sys_stat.
7252         (Link): Mention resulting library dependency.
7253         * modules/utimecmp (Link): Likewise.
7254         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7255         (Makefile.am): Pick up library dependency.
7256         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7257         definition.
7258         * tests/test-sys_stat.c: Test the definitions.
7259         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7260         * NEWS: Document library dependency.
7261
7262         utimecmp: support symlink timestamps
7263         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
7264         hashing when possible.  Use pathconf when available.
7265         (SYSCALL_RESOLUTION): Recognize tighter resolution.
7266         * modules/utimecmp (Depends-on): Add lstat.
7267
7268         utimens: add lutimens interface
7269         * lib/utimens.c (lutimens): New function.
7270         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7271         * lib/utimens.h (lutimens): Declare new interface.
7272         * tests/test-utimens.c (main): Enhance test.
7273         * tests/test-lutimens.h (test_lutimens): New file.
7274         * modules/utimens-tests (Files): Distribute it.
7275         (Depends-on): Add symlink.
7276         (configure.ac): Check for usleep.
7277
7278         utimens: validate futimens usage
7279         * lib/utimens.c (gl_futimens): Require valid fd up front, using
7280         fewer syscalls on failure later on.  Avoid compiler warning on
7281         mingw.
7282         * modules/utimens (Depends-on): Add dup2.
7283
7284         utimens: add test
7285         * modules/utimens-tests: New test.
7286         * tests/test-utimens.h: New file.
7287         * tests/test-futimens.h: Likewise.
7288         * tests/test-utimens.c: Likewise.
7289
7290         doc: mention timestamp portability issues
7291         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7292         instead.
7293         * doc/posix-functions/utime.texi (utime): Likewise.
7294         * doc/posix-functions/utimes.texi (utimes): Likewise.
7295         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
7296         instead.
7297         * doc/posix-functions/futimens.texi (futimens): Mention utimens
7298         module.
7299         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7300         Mention weakness with symlink timestamps.
7301         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
7302         to utimensat/futimens instead.
7303         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
7304
7305         test-dup2: enhance test
7306         * tests/test-dup2.c (main): Also check AT_FDCWD.
7307
7308         test-stat-time: avoid more spurious failures
7309         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
7310         xfs; and avoid race if the two timestamps cross quantization edge.
7311
7312         relocatable: prefer 'file system' over 'filesystem'
7313         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
7314         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
7315         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
7316         * doc/relocatable.texi (Enabling Relocatability): Likewise.
7317         * lib/relocatable.c (compute_curr_prefix): Likewise.
7318
7319 2009-10-10  Jim Meyering  <meyering@redhat.com>
7320
7321         stat-time-tests: check for the usleep function
7322         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
7323
7324 2009-10-10  Bruno Haible  <bruno@clisp.org>
7325
7326         * modules/xnanosleep: Put the Link section after the Include section.
7327
7328 2009-10-09  Eric Blake  <ebb9@byu.net>
7329
7330         dup2: work around FreeBSD 6.1 bug
7331         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
7332         * doc/posix-functions/dup2.texi (dup2): Document it.
7333         Reported by Nelson H. F. Beebe and Jim Meyering.
7334
7335         test-stat-time: port to buggy NFS clients
7336         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
7337         (test_ctime): Also skip test if mtime and ctime are skewed.
7338
7339         maint: prefer 'file system' over 'filesystem'
7340         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7341         * doc/posix-functions/lstat.texi (lstat): Likewise.
7342         * lib/file-has-acl.c (file_has_acl): Likewise.
7343         * lib/fwriteerror.c [TEST]: Likewise.
7344         * tests/test-areadlink.h (test_areadlink): Likewise.
7345         * tests/test-areadlinkat-with-size.c (main): Likewise.
7346         * tests/test-areadlinkat.c (main): Likewise.
7347         * tests/test-canonicalize-lgpl.c (main): Likewise.
7348         * tests/test-canonicalize.c (main): Likewise.
7349         * tests/test-fstatat.c (main): Likewise.
7350         * tests/test-linkat.c (main): Likewise.
7351         * tests/test-lstat.h (test_lstat_func): Likewise.
7352         * tests/test-mkdir.h (test_mkdir): Likewise.
7353         * tests/test-readlink.h (test_readlink): Likewise.
7354         * tests/test-remove.c (main): Likewise.
7355         * tests/test-rename.h (test_rename): Likewise.
7356         * tests/test-renameat.c (main): Likewise.
7357         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7358         * tests/test-symlink.h (test_symlink): Likewise.
7359         * tests/test-symlinkat.c (main): Likewise.
7360         * tests/test-unlink.h (test_unlink_func): Likewise.
7361         * tests/test-unlinkat.c (main): Likewise.
7362
7363         maint: make realtime library usage explicit
7364         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
7365         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
7366         * modules/settime (Link): Likewise.
7367         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
7368
7369         test-stat-time: speed up execution
7370         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
7371         warning on mingw.
7372         (nap): New helper function.
7373         (prepare_test): Use it to reduce sleep time.
7374         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
7375         execution.
7376         * modules/stat-time-tests (configure.ac): Check for usleep.
7377
7378 2009-10-09  Jim Meyering  <meyering@redhat.com>
7379
7380         selinux-h: always use getfilecon wrappers
7381         * lib/getfilecon.c: New file.
7382         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
7383         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
7384         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
7385         (fgetfilecon): Provide a stub.
7386         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
7387         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
7388         file unconditionally.
7389         When <selinux/selinux.h> is found, arrange to use wrappers.
7390         * modules/selinux-h (Files): Add getfilecon.c.
7391         (Makefile.am): Substitute include-next-related bits
7392         into the now-always-generated selinux/selinux.h file.
7393         * doc/glibc-functions/lgetfilecon.texi: New file.
7394         * doc/glibc-functions/fgetfilecon.texi: New file.
7395         * doc/glibc-functions/getfilecon.texi: New file.
7396         * doc/glibc-functions/getfilecon-desc.texi: New file.
7397         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
7398         which to pull in the new files.
7399         * MODULES.html.sh (Misc): Add selinux-h.
7400
7401 2009-10-08  Jim Meyering  <meyering@redhat.com>
7402
7403         unistd: fix comment typo
7404         * lib/unistd.in.h (euidaccess): Fix a comment typo.
7405
7406 2009-10-08  Eric Blake  <ebb9@byu.net>
7407
7408         areadlink: use SIZE_MAX consistently
7409         * modules/areadlink (Depends-on): Add stdint.
7410         * modules/areadlink-with-size (Depends-on): Likewise.
7411         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
7412         gives NULL; drop sys/types, since unistd gives size_t; and add
7413         stdint for SIZE_MAX.
7414         (SIZE_MAX): Rely on headers.
7415         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
7416         and add stdint.
7417         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
7418         (SIZE_MAX): Likewise.
7419         (INITIAL_BUF_SIZE): Turn into enum.
7420         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
7421
7422 2009-10-08  Jim Meyering  <meyering@redhat.com>
7423
7424         areadlinkat: avoid compilation failure
7425         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
7426         Fix typo in comment.
7427
7428 2009-10-07  Eric Blake  <ebb9@byu.net>
7429
7430         areadlinkat-with-size: new module
7431         * modules/areadlinkat-with-size: New module.
7432         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
7433         * lib/areadlink.h (areadlinkat): Declare it.
7434         * MODULES.html.sh (File system functions): Mention it.
7435         * modules/areadlinkat-with-size-tests: New test.
7436         * tests/test-areadlinkat-with-size.c: New file.
7437
7438         xreadlinkat: new module
7439         * modules/xreadlinkat: New module.
7440         * lib/xreadlinkat.c (xreadlinkat): New file.
7441         * lib/xreadlink.h (xreadlinkat): Declare it.
7442         * MODULES.html.sh (File system functions): Mention it.
7443
7444         areadlinkat: new module
7445         * lib/at-func.c (FUNC_FAIL): New define.
7446         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
7447         * modules/areadlinkat: New module.
7448         * lib/linkat.c (areadlinkat): Move...
7449         * lib/areadlinkat.c (areadlinkat): ...to new file.
7450         * lib/areadlink.h (areadlinkat): Declare it.
7451         * modules/linkat (Depends-on): Add areadlinkat.
7452         * MODULES.html.sh (File system functions): Mention it.
7453         * modules/areadlinkat-tests: New test.
7454         * tests/test-areadlinkat.c: New file.
7455
7456         areadlink, areadlink-with-size: add tests
7457         * modules/areadlink-tests: New test.
7458         * modules/areadlink-with-size-tests: Likewise.
7459         * tests/test-areadlink.h: New file.
7460         * tests/test-areadlink.c: Likewise.
7461         * tests/test-areadlink-with-size.c: Likewise.
7462
7463         maint: minor cleanups
7464         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
7465         _UNUSED_PARAMETER_ instead.
7466         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
7467         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
7468         * modules/linkat-tests (Files): Distribute test-link.h.
7469
7470         openat, utimens: whitespace cleanup
7471         * lib/openat.c: Prefer space throughout, rather than mix of 8
7472         spaces vs. tabs.
7473         * lib/at-func.c: Likewise.
7474         * lib/utimens.c: Likewise.
7475
7476         openat: avoid using wrong fd
7477         * lib/openat.c (openat_permissive): Reject user's fd if saving the
7478         working directory chooses same fd.
7479         * lib/at-func.c (AT_FUNC_NAME): Likewise.
7480
7481         mkdir, mkdirat: fix cygwin 1.5.x bug
7482         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
7483         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
7484         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
7485         bug.
7486         (gl_PREREQ_MKDIR): Delete unused macro.
7487         * modules/mkdir (Files): Track file rename.
7488         (configure.ac): Update macro name.
7489         * modules/openat (Depends-on): Add mkdir.
7490         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
7491
7492         mkdir, mkdirat: add tests
7493         * modules/mkdir-tests: New test.
7494         * tests/test-mkdir.h: New file.
7495         * tests/test-mkdir.c: Likewise.
7496         * tests/test-mkdirat.c: Likewise.
7497         * modules/openat-tests (Files): Add new files.
7498         (Makefile.am): Run new test.
7499
7500 2009-10-06  Eric Blake  <ebb9@byu.net>
7501
7502         doc: tweak *at function documentation
7503         * doc/posix-functions/faccessat.texi (faccessat): Mention
7504         known issue with replacement.
7505         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
7506         * doc/posix-functions/linkat.texi (linkat): Likewise.
7507         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7508         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7509         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7510         * doc/posix-functions/renameat.texi (renameat): Likewise.
7511         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7512
7513         openat: fix GNU/Hurd bug in unlinkat
7514         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
7515         broken.
7516         * doc/posix-functions/unlink.texi (unlink): Document this.
7517         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
7518
7519         fdopendir: fix GNU/Hurd bug
7520         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
7521         allowing non-directory fds.
7522         * lib/fdopendir.c (rpl_fdopendir): Work around it.
7523         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7524         * modules/dirent (Makefile.am): Substitute it.
7525         * lib/dirent.in.h (fdopendir): Declare replacement.
7526         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
7527         * tests/test-fdopendir.c (main): Test something other than
7528         /dev/null, since on Hurd that behaves like a directory.
7529
7530         test-symlink: port to GNU/Hurd
7531         * tests/test-symlink.h (test_symlink): Relax expected errno.
7532
7533         doc: tweak more cygwin information
7534         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
7535         now compatible with glibc.
7536         * doc/posix-functions/getopt.texi (getopt): Likewise.
7537
7538         getopt-gnu: add another test
7539         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
7540         guarantee behavior relied on by m4.
7541         * tests/test-getopt.c (main): Use it.
7542         * modules/getopt-posix-tests (Depends-on): Add setenv.
7543         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
7544
7545         getopt: fix compilation on darwin
7546         * lib/getopt.in.h (includes): Leave breadcrumbs during system
7547         include.
7548         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
7549         Reported by Ludovic Courtès.
7550
7551 2009-10-06  Bruno Haible  <bruno@clisp.org>
7552
7553         * modules/size_max (Description): Discourage its use.
7554         Reported by Simon Josefsson.
7555
7556 2009-10-06  Jim Meyering  <meyering@redhat.com>
7557
7558         linkat: avoid compilation failure
7559         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
7560
7561 2009-10-05  Eric Blake  <ebb9@byu.net>
7562
7563         linkat: support Linux 2.6.17
7564         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
7565         linkat on Linux, but allow cache variable override.
7566         * lib/linkat.c (rpl_linkat): Define override.
7567         * modules/linkat (Depends-on): Add symlinkat.
7568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
7569         * modules/unistd (Makefile.am): Substitute it.
7570         * lib/unistd.in.h (linkat): Declare replacement.
7571         Reported by Pádraig Brady.
7572
7573         quotearg: port test to systems with C.UTF-8 locale
7574         * tests/test-quotearg.c (struct result_strings): Add another
7575         member, differentiating between C.ASCII and C.UTF-8 handling.
7576         (compare_strings): Add parameter.
7577         (main): Adjust all callers.
7578
7579         getopt: avoid clash with FreeBSD _getopt_internal
7580         * lib/getopt.in.h (_getopt_internal): Override the name.
7581         * lib/getopt_int.h (includes): Pick up any overrides.
7582         Reported by Reuben Thomas.
7583
7584         hash: allow C89 compilation
7585         * lib/hash.c (check_tuning): Move declaration before statement.
7586         Reported by Reuben Thomas.
7587
7588 2009-10-05  Karl Berry  <karl@gnu.org>
7589
7590         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
7591
7592 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
7593             Bruno Haible  <bruno@clisp.org>
7594
7595         * lib/uname.c (uname): Use a table-driven algorithm to compute
7596         Windows NT versions.
7597
7598 2009-10-04  Bruno Haible  <bruno@clisp.org>
7599
7600         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
7601         program_invocation_short_name.
7602         * modules/progname (configure.ac): Test for presence of
7603         program_invocation_short_name.
7604         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
7605
7606 2009-10-04  Bruno Haible  <bruno@clisp.org>
7607
7608         * lib/progname.c (set_program_name): Fix comment.
7609         Reported by Jim Meyering.
7610
7611 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7612             Bruno Haible  <bruno@clisp.org>
7613
7614         * lib/uname.c: Include <string.h>.
7615         (uname): Do only one call to GetVersionEx in the common case.
7616
7617 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7618             Bruno Haible  <bruno@clisp.org>
7619
7620         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
7621         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
7622         (uname): Add support for Windows CE and various non-x86 CPU types.
7623
7624 2009-10-03  Bruno Haible  <bruno@clisp.org>
7625
7626         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
7627         invocation to tests/configure.ac.
7628         Reported by Ian Beckwith <ianb@erislabs.net>.
7629
7630 2009-10-02  Eric Blake  <ebb9@byu.net>
7631
7632         fchdir: avoid compiler warning
7633         * lib/fchdir.c (canonicalize_file_name)
7634         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
7635
7636         test-open: support mingw errno values
7637         * tests/test-open.h (test_open): Relax test.
7638         * tests/test-fopen.h (test_fopen): Likewise.
7639         * tests/test-openat-safer.c (main): Likewise.
7640
7641         open: fix opening directory on mingw
7642         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
7643
7644         test-open: on GNU/Hurd, /dev/null is a directory
7645         * tests/test-fopen.h (main): Rename...
7646         (test_fopen): ...to this.  Use a guaranteed non-directory when
7647         confirming open behavior on trailing slash.
7648         * tests/test-openat-safer.c (main): Likewise.
7649         * tests/test-open.h (main): Likewise....
7650         (test_open): ...to this.
7651         * tests/test-fopen.c (main): Adjust caller.
7652         * tests/test-fopen-safer.c (main): Likewise.
7653         * tests/test-open.c (main): Likewise.
7654         * tests/test-fcntl-safer.c (main): Likewise.
7655         Reported by Samuel Thibault.
7656
7657         rename, fchdir: don't ignore chdir failure
7658         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
7659         * lib/rename.c (rpl_rename) [W32]: Likewise.
7660         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
7661         an empty destination directory if source cannot be renamed,
7662         although there is still possibility for failure.
7663         * doc/posix-functions/rename.texi (rename): Document the race.
7664         Reported by Jim Meyering.
7665
7666         maint: cleanup whitespace in recent commits
7667         * lib/rename.c (rpl_rename): Remove tabs.
7668         * tests/test-link.h (test_link): Likewise.
7669         * lib/fchdir.c (get_name): Likewise.
7670         Reported by Jim Meyering.
7671
7672 2009-10-02  Ben Pfaff  <blp@gnu.org>
7673
7674         relocatable-prog-wrapper: Add missing dependency on
7675         double-slash-root.
7676         * modules/relocatable-prog-wrapper: Add dependency.
7677         Reported by Ian Beckwith <ianb@erislabs.net>.
7678
7679 2009-10-02  Eric Blake  <ebb9@byu.net>
7680
7681         renameat: fix Solaris bugs
7682         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
7683         needed fixing.
7684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
7685         * modules/stdio (Makefile.am): Substitute it.
7686         * lib/stdio.in.h (renameat): Declare replacement.
7687         * lib/renameat.c (rpl_renameat): Implement fix.
7688
7689         renameat: new module
7690         * modules/renameat: New file.
7691         * lib/renameat.c (renameat): Likewise.
7692         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
7693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7694         * modules/stdio (Makefile.am): Substitute them.
7695         * lib/stdio.in.h (renameat): Declare it.
7696         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7697         * doc/posix-functions/renameat.texi (renameat): Likewise.
7698         * modules/renameat-tests: New test.
7699         * tests/test-renameat.c: Likewise.
7700
7701         rename: fix mingw bugs
7702         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
7703         directory overwrite bugs.
7704
7705         rename: fix another cygwin 1.5 bug
7706         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
7707         checks.
7708         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
7709         unnecessary cygwin workarounds.  Also work around bug with moving
7710         full directory onto an empty one.
7711         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
7712
7713         rename-dest-slash: merge into rename module
7714         * modules/rename-dest-slash (Status): Mark obsolete.
7715         (Depends-on): Add rename.
7716         (Files): Let rename do it all.
7717         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
7718         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
7719         * m4/rename-dest-slash.m4: ...so this file can be deleted.
7720         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
7721         * lib/rename.c (rpl_rename): Update comments.
7722
7723         rename: fix cygwin 1.5.x bugs
7724         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
7725         * lib/rename.c (rpl_rename): Work around them.
7726         * modules/rename (Depends-on): Add same-inode.
7727
7728         rename: fix Solaris 10 bug
7729         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7730         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
7731         was the only bug.
7732
7733         rename: fix Solaris 9 bug
7734         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
7735         on non-directory.  Avoid calling exit.
7736         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
7737         strdup.
7738         * modules/rename-tests (Depends-on): Drop lstat.
7739         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7740         (gl_PREREQ_RENAME): Delete unused macro.
7741
7742         rename-dest-slash: fix NetBSD bug
7743         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
7744         links.
7745         * modules/rename-dest-slash (Depends-on): Add same-inode.
7746
7747         rename-tests: new test, exposes several platform bugs
7748         * modules/rename-tests: New file.
7749         * tests/test-rename.h: Likewise.
7750         * tests/test-rename.c: Likewise.
7751         * doc/posix-functions/rename.texi (rename): Improve documentation,
7752         including bugs that will eventually be fixed in gnulib.
7753
7754 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
7755
7756         * lib/uname.c: Include <stdlib.h>
7757         (uname): Assume version info is available.
7758
7759 2009-10-02  Jim Meyering  <meyering@redhat.com>
7760
7761         gnu-web-doc-update: correct --help output
7762         * build-aux/gnu-web-doc-update: Make --help output relevant.
7763
7764         gnu-web-doc-update: add standard options
7765         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
7766
7767         gnu-web-doc-update: New module.
7768         Use this script to automatically update the on-line web documentation
7769         for your GNU project at http://www.gnu.org/software/$pkg/manual/
7770         * modules/gnu-web-doc-update: New file, from coreutils.
7771         * build-aux/gnu-web-doc-update: New script.
7772
7773 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
7774
7775         link: LoadLibrary is not needed.
7776         * lib/link.c: Use GetModuleHandle.
7777
7778 2009-10-01  Eric Blake  <ebb9@byu.net>
7779
7780         getopt: bump serial number
7781         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
7782         change.
7783
7784         tests: tighten link, rmdir, and remove tests
7785         * tests/test-link.h (includes): No need to use <config.h> here.
7786         Clean up if directory hard link was created, otherwise test for
7787         trailing '.'.
7788         * tests/test-linkat.c (main): Simplify.
7789         * tests/test-remove.c (main): Enhance test for trailing '.'.
7790         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7791
7792 2009-10-01  Jim Meyering  <meyering@redhat.com>
7793
7794         maint.mk: requiring "make major" was annoying, for a "minor" release.
7795         What is intended is "stable", to contrast with alpha and beta,
7796         so require "make stable", not "make major".
7797         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
7798         (get_tool_versions): Likewise.
7799         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
7800
7801 2009-09-30  Ben Pfaff  <blp@gnu.org>
7802
7803         Fix broken build of replacement for Windows tmpfile().
7804         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
7805         flags argument added along with the 'mkostemp' module.
7806
7807 2009-09-28  Bruno Haible  <bruno@clisp.org>
7808
7809         Avoid identifier clash with POSIX function 'remove' defined as a macro.
7810         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
7811         to 'remove_elt'.
7812         (gl_list_remove): Update.
7813         * lib/gl_list.c (gl_list_remove): Update.
7814         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
7815         to 'remove_elt'.
7816         (gl_oset_remove): Update.
7817         * lib/gl_list.c (gl_oset_remove): Update.
7818         Reported by Eric Blake.
7819
7820 2009-09-28  Eric Blake  <ebb9@byu.net>
7821
7822         doc: mention yet more cygwin 1.7 status
7823         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
7824         cygwin.
7825         * doc/glibc-functions/execvpe.texi (execvpe): New file.
7826         * doc/gnulib.texi (Glibc unistd.h): Mention it.
7827
7828         argp: fix test failure
7829         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
7830         that are not upper-case.  Pass correct range to tolower.
7831
7832 2009-09-27  Jim Meyering  <meyering@redhat.com>
7833
7834         test-yesno: work around sparc-dash here-document infelicity
7835         Without this change, the literal \177 byte in a here document
7836         would make dash 0.5.5.1-3 access uninitialized memory.
7837         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
7838         Instead, use a marker, "@", and filter through tr to create the desired
7839         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
7840
7841 2009-09-27  Bruno Haible  <bruno@clisp.org>
7842
7843         Disable untested support for new flavours of ACLs on AIX.
7844         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
7845         progress.
7846         * lib/set-mode-acl.c (qset_acl): Likewise.
7847
7848 2008-12-07  Bruno Haible  <bruno@clisp.org>
7849
7850         Add support for new flavours of ACLs on AIX. (Untested.)
7851         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
7852         (file_has_acl): Add support for newer AIX.
7853         * lib/set-mode-acl.c (qset_acl): Likewise.
7854         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
7855         Rainer Tammer <tammer@tammer.net>.
7856
7857 2009-09-26  Eric Blake  <ebb9@byu.net>
7858
7859         argp: fix compilation of getopt
7860         * lib/getopt.in.h (includes): Use different guard than glibc.
7861         Reported by Sergey Poznyakoff.
7862
7863         doc: mention more cygwin 1.7 status
7864         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
7865         bug.
7866         * doc/posix-functions/execl.texi (execl): Likewise.
7867         * doc/posix-functions/execle.texi (execle): Likewise.
7868         * doc/posix-functions/execlp.texi (execlp): Likewise.
7869         * doc/posix-functions/execv.texi (execv): Likewise.
7870         * doc/posix-functions/execve.texi (execve): Likewise.
7871         * doc/posix-functions/execvp.texi (execvp): Likewise.
7872         * doc/glibc-functions/canonicalize_file_name.texi
7873         (canonicalize_file_name): Cygwin 1.7 now provides this.
7874         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
7875         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
7876         on AT_SYMLINK_NOFOLLOW.
7877
7878 2009-09-24  Eric Blake  <ebb9@byu.net>
7879
7880         test-linkat: make test more robust
7881         * tests/test-linkat.c (main): Avoid collision with EEXIST.
7882
7883         getopt: fix inclusion guards for cygwin
7884         * modules/getopt-posix (Depends-on): Add include-next.
7885         (Makefile.am): Substitute more items in replacement header.
7886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
7887         <getopt.h>.
7888         * lib/getopt.in.h (includes): Use split inclusion guard, and
7889         prefer <getopt.h> over include <unistd.h> when one is present.
7890         (option): Also override name of 'struct option'.
7891
7892         same-inode: revert prior change; it is not yet ready
7893         * NEWS: Undo mention of this change.
7894         * lib/same-inode.h (same-inode.h): Undo tri-state change.
7895         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
7896         * lib/cycle-check.c (cycle_check): Likewise.
7897         * lib/same.c (same_name): Likewise.
7898         * lib/at-func2.c (at_func2): Likewise.
7899
7900 2009-09-23  Eric Blake  <ebb9@byu.net>
7901
7902         linkat: new module
7903         * modules/linkat: New file.
7904         * lib/at-func2.c (at_func2): Likewise.
7905         * lib/linkat.c (linkat): Likewise.
7906         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7907         * lib/openat-priv.h (at_func2): Add declaration.
7908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7909         * modules/unistd (Makefile.am): Substitute them.
7910         * lib/unistd.in.h (linkat): Declare it.
7911         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7912         * doc/posix-functions/linkat.texi (linkat): Likewise.
7913         * doc/posix-functions/link.texi (link): Tweak wording.
7914         * tests/test-link.c (main): Move guts...
7915         * tests/test-link.h (test_link): ...into new file.
7916         * modules/linkat-tests: New test.
7917         * tests/test-linkat.c: Likewise.
7918         * modules/link-tests (Files): Ship new file.
7919         (Depends-on): Add stdbool.
7920
7921         dirname: add library-safe mdir_name
7922         * lib/dirname.h (mdir_name): New prototype.
7923         * lib/dirname.c (dir_name): Move guts...
7924         (mdir_name): ...to new function that avoids xalloc_die.
7925
7926         fchdir: another mingw fix
7927         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
7928         * lib/fchdir.c (get_name): New helper method; skips canonicalize
7929         on mingw (where it has not yet been ported), and make it optional
7930         elsewhere.
7931         (_gl_register_fd): Use it.
7932
7933         same-inode: make SAME_INODE tri-state, to port to mingw
7934         * NEWS: Mention this change.
7935         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
7936         st_ino always being 0.
7937         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
7938         * lib/cycle-check.c (cycle_check): Likewise.
7939         * lib/same.c (same_name): Likewise.
7940
7941         lstat: avoid mingw compilation error
7942         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
7943         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
7944         lstat ourselves.
7945         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
7946         was adequate.
7947         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
7948         the checks for lstat.
7949         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
7950
7951         link: fix test failure on Solaris 9
7952         * lib/link.c (rpl_link): Don't assume link will catch bogus
7953         trailing slash on source.
7954
7955         test-symlinkat: enhance test
7956         * tests/test-readlink.c (main): Move guts...
7957         * tests/test-readlink.h (test_readlink): ...into new file.
7958         * tests/test-symlink.c (main): Move guts...
7959         * tests/test-symlink.h (test_symlink): ...into new file.
7960         * tests/test-symlinkat.c (main): Use new files for further
7961         coverage.
7962         (do_symlink, do_readlink): New helper functions.
7963         * modules/symlink-tests (Files): Ship new file.
7964         (Depends-on): Add stdbool.
7965         * modules/readlink-tests (Files): Ship new file.
7966         (Depends-on): Add stdbool.
7967         * modules/symlinkat-tests (Files): Use new files.
7968
7969 2009-09-23  Eric Blake  <ebb9@byu.net>
7970
7971         readlink: document portability issue with symlink length
7972         * doc/posix-functions/lstat.texi (lstat): Mention that some file
7973         systems have bogus st_size on symlinks, and mention the
7974         areadlink-with-size module.
7975         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7976         * doc/posix-functions/readlink.texi (readlink): Mention the
7977         areadlink module, and ERANGE failure.
7978         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7979         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
7980
7981         readlink: fix Solaris 9 bug with trailing slash
7982         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
7983         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
7984         * doc/posix-functions/readlink.texi (readlink): Document this.
7985         * modules/readlink-tests: New test.
7986         * tests/test-readlink.c: Likewise.
7987
7988         readlink: fix cygwin 1.5.x bug with return type
7989         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
7990         * lib/unistd.in.h (readlink): Use ssize_t.
7991         * lib/readlink.c (readlink): Likewise.
7992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7993         * modules/unistd (Makefile.am): Substitute it.
7994         * lib/unistd.in.h (readlink): Declare replacement.
7995         * doc/posix-functions/readlink.texi (readlink): Document this.
7996
7997         symlink: use throughout gnulib
7998         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
7999         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8000         symlink is not used.
8001         * modules/symlinkat (Depends-on): Add symlink.
8002         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8003         * modules/canonicalize-tests (Depends-on): Likewise.
8004         * modules/lstat-tests (Depends-on): Likewise.
8005         * modules/openat-tests (Depends-on): Likewise.
8006         * modules/remove-tests (Depends-on): Likewise.
8007         * modules/rmdir-tests (Depends-on): Likewise.
8008         * modules/unlink-tests (Depends-on): Likewise.
8009         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8010         * tests/test-canonicalize.c (symlink): Likewise.
8011         * tests/test-fstatat.c (symlink): Likewise.
8012         * tests/test-lstat.c (symlink): Likewise.
8013         * tests/test-remove.c (symlink): Likewise.
8014         * tests/test-rmdir.c (symlink): Likewise.
8015         * tests/test-unlink.c (symlink): Likewise.
8016         * tests/test-unlinkat.c (symlink): Likewise.
8017
8018         symlink: new module, for Solaris 9 bug
8019         * modules/symlink: New file.
8020         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8021         * lib/symlink.c: Likewise.
8022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8023         * modules/unistd (Makefile.am): Substitute them.
8024         * lib/unistd.in.h (symlink): Declare replacement.
8025         * MODULES.html.sh (File system functions): Mention it.
8026         * doc/posix-functions/symlink.texi (symlink): Likewise.
8027         * modules/symlink-tests: New test.
8028         * tests/test-symlink.c: Likewise.
8029
8030 2009-09-23  Bruno Haible  <bruno@clisp.org>
8031
8032         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8033         when needed.
8034         Test case: gnulib-tool --import --with-tests atexit inttypes.
8035         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8036
8037 2009-09-23  Bruno Haible  <bruno@clisp.org>
8038
8039         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8040         subcommand, not in a subshell.
8041
8042 2009-09-22  Eric Blake  <ebb9@byu.net>
8043
8044         unistd: sort replacement declarations
8045         * lib/unistd.in.h: Sort declarations.
8046
8047         open, openat: minor optimization
8048         * lib/open.c (open): If open succeeded, len is non-zero.
8049         * lib/openat.c (rpl_openat): Likewise.
8050
8051         link-follow: ensure correct result
8052         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8053         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8054         distinguish between possible failures.
8055
8056 2009-09-21  Eric Blake  <ebb9@byu.net>
8057
8058         fts: avoid compiler warning
8059         * lib/fts.c (dirent_inode_sort_may_be_useful)
8060         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8061
8062 2009-09-19  Bruno Haible  <bruno@clisp.org>
8063
8064         * lib/progreloc.c (canonicalize_file_name): New declaration.
8065
8066 2009-09-19  Eric Blake  <ebb9@byu.net>
8067
8068         link: fix quoting
8069         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8070
8071         openat: fix openat bugs on Solaris 9
8072         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8073         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8074         * modules/openat (Depends-on): Add open.
8075         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8076         * modules/fcntl-h (Makefile.am): Substitute it.
8077         * lib/fcntl.in.h (openat): Declare replacement.
8078         * doc/posix-functions/openat.texi (openat): Document this.
8079
8080         openat: move fstatat and unlinkat into correct files
8081         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8082         compiled.
8083         * lib/openat.c (fstatat, unlinkat): Move...
8084         * lib/fstatat.c (fstatat): ...into correct files.
8085         * lib/unlinkat.c (unlinkat): Likewise.
8086
8087         openat: fix unlinkat bugs on Solaris 9
8088         * lib/unlinkat.c (unlinkat): New file.
8089         * modules/openat (Depends-on): Add unlink.
8090         (Files): Distribute it.
8091         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8092         trailing slash behavior is broken.
8093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8094         * modules/unistd (Makefile.am): Substitute it.
8095         * lib/unistd.in.h (unlinkat): Declare replacement.
8096         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8097
8098         openat: fix fstatat bugs on Solaris 9
8099         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8100         stat.
8101         * doc/posix-functions/fstatat.texi (fstatat): Document this.
8102
8103         test-unlinkat: enhance test, to expose Solaris 9 bug
8104         * tests/test-unlink.c (main): Factor guts...
8105         * tests/test-unlink.h (test_rmdir_func): ...into new file.
8106         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8107         * tests/test-rmdir.c (main): Adjust caller.
8108         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
8109         (unlinker): New helper function.
8110         (rmdirat): Enhance check.
8111         * modules/rmdir-tests (Depends-on): Add stdbool.
8112         * modules/unlink-tests (Depends-on): Likewise.
8113         (Files): Add test-unlink.h.
8114         * modules/openat-tests (Files): Likewise.
8115         (Depends-on): Add unlinkdir.
8116
8117         test-fstatat: new test, to expose Solaris 9 bugs
8118         * tests/test-stat.c (main): Factor guts...
8119         * tests/test-stat.h (test_stat_func): ...into new file.
8120         * tests/test-lstat.c (main): Factor guts...
8121         * tests/test-lstat.h (test_lstat_func): ...into new file.
8122         * tests/test-fstatat.c: New file.
8123         * modules/stat-tests (Files): Add test-stat.h.
8124         * modules/lstat-tests (Files): Add test-lstat.h.
8125         (Depends-on): Add stdbool.
8126         * modules/openat-tests (Depends-on): Add pathmax.
8127         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8128         (Makefile.am): Run new test.
8129
8130         remove: new module, for mingw and Solaris 9 bugs
8131         * modules/remove: New file.
8132         * lib/remove.c: Likewise.
8133         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8135         * modules/stdio (Makefile.am): Use them.
8136         * lib/stdio.in.h (remove): Declare replacement.
8137         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8138         * doc/posix-functions/remove.texi (remove): Likewise.
8139         * modules/remove-tests: New test.
8140         * tests/test-remove.c: Likewise.
8141
8142         unlink: new module, for Solaris 9 bug
8143         * modules/unlink: New file.
8144         * lib/unlink.c: Likewise.
8145         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8147         * modules/unistd (Makefile.am): Use them.
8148         * lib/unistd.in.h (stat): Declare replacement.
8149         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8150         * doc/posix-functions/unlink.texi (unlink): Likewise.
8151         * modules/unlink-tests: New test.
8152         * tests/test-unlink.c: Likewise.
8153
8154         lstat: fix Solaris 9 bug
8155         * lib/lstat.c (lstat): Also check for trailing slash on
8156         non-symlink, non-directories.  Use stat module to simplify logic.
8157         * doc/posix-functions/lstat.texi (lstat): Document it.
8158         * modules/lstat-tests (Depends-on): Add errno, same-inode.
8159         (configure.ac): Check for symlink.
8160         * tests/test-lstat.c (main): Add more tests.
8161
8162         stat: add as dependency to other modules
8163         * modules/chown (Depends-on): Add stat.
8164         * modules/euidaccess (Depends-on): Likewise.
8165         * modules/fchdir (Depends-on): Likewise.
8166         * modules/isdir (Depends-on): Likewise.
8167         * modules/link (Depends-on): Likewise.
8168         * modules/lstat (Depends-on): Likewise.
8169         * modules/mkdir-p (Depends-on): Likewise.
8170         * modules/modechange (Depends-on): Likewise.
8171         * modules/open (Depends-on): Likewise.
8172         * modules/readlink (Depends-on): Likewise.
8173         * modules/same (Depends-on): Likewise.
8174
8175         stat: fix Solaris 9 bug
8176         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8177         slash.
8178         * lib/stat.c (rpl_stat): Work around it.
8179         * doc/posix-functions/stat.texi (stat): Update documentation.
8180
8181         stat: new module, for mingw bug
8182         * modules/stat: New file.
8183         * lib/stat.c: Likewise.
8184         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8185         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8186         * modules/sys_stat (Makefile.am): Use them.
8187         * lib/sys_stat.in.h (stat): Declare replacement.
8188         * lib/openat.c (fstatat): Deal with lstat and stat being function
8189         macros.
8190         * modules/openat (Depends-on): Add inline.
8191         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8192         * doc/posix-functions/stat.texi (stat): Likewise.
8193         * modules/stat-tests: New test.
8194         * tests/test-stat.c: Likewise.
8195
8196 2009-09-19  Jim Meyering  <meyering@redhat.com>
8197
8198         syntax-check: detect unnecessary inclusion of canonicalize.h
8199         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8200
8201 2009-09-19  Eric Blake  <ebb9@byu.net>
8202
8203         canonicalize-lgpl: adjust clients to use correct header
8204         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8205         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8206         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8207         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8208         * lib/progreloc.c (includes): Likewise.
8209
8210 2009-09-19  Jim Meyering  <meyering@redhat.com>
8211
8212         test-posixtm.c: correct a comment
8213         * tests/test-posixtm.c: Correct first-line comment.
8214         Spotted by Eric Blake.
8215
8216 2009-09-16  Jim Meyering  <meyering@redhat.com>
8217
8218         posixtm-tests: make T const-correct; add a test case
8219         * tests/test-posixtm.c (T): Declare const.
8220         Add a test for -(2^31+1).
8221         Remove useless can-succeed-only-in-2002 test.
8222
8223         posixtm-tests: adjust the sole failing test
8224         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8225         expected output matches what mktime now produces.  Cross-checked via
8226         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8227
8228         posixtm: move #ifdef'd tests into a new module
8229         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
8230         * tests/test-posixtm.c: ... this new file.
8231         * modules/posixtm-tests: New module.
8232
8233 2009-09-19  Eric Blake  <ebb9@byu.net>
8234
8235         openat: simplify use of at-func.c
8236         * lib/at-func.c (includes): Include prerequisites here, to
8237         simplify requirements on client files.
8238         * lib/openat-priv.h: Add double-inclusion guard.
8239         * lib/faccessat.c (includes): Simplify.
8240         * lib/fchmodat.c (includes): Likewise.
8241         * lib/fchownat.c (includes): Likewise.
8242         * lib/mkdirat.c (includes): Likewise.
8243         * lib/mkfifoat.c (includes): Likewise.
8244         * lib/symlinkat.c (includes): Likewise.
8245
8246         openat: allow return of fd 0
8247         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8248         * modules/save-cwd (Depends-on): Replace fcntl-safer with
8249         unistd-safer.
8250         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8251         <fcntl.h>; this module does not leak fds.
8252         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8253         must be allowed to return 0, leaving openat_safer to add the
8254         safety.
8255         (openat_permissive): Avoid writing to just-opened fd 2 if
8256         restoring the current directory fails.
8257         * lib/openat-die.c (openat_restore_fail): Add comment.
8258         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8259         (save_cwd): Guarantee safe fd, but without use of open_safer.
8260         * tests/test-openat.c: New test.
8261         * modules/openat-tests (Files, Makefile.am): Distribute and build
8262         new file.
8263
8264         relocatable-prog-wrapper: fix build
8265         * modules/relocatable-prog-wrapper (Files): Update name of
8266         canonicalize m4 file, broken on 2009-09-17.
8267         Reported by emad hajjar <aleppos@hotmail.com>.
8268
8269 2009-09-19  Bruno Haible  <bruno@clisp.org>
8270
8271         * lib/safe-alloc.h: Use the standard header with GPL copyright.
8272         * lib/safe-alloc.c: Likewise.
8273         Reported by Ian Beckwith <ianb@erislabs.net>.
8274
8275 2009-09-18  Bruno Haible  <bruno@clisp.org>
8276
8277         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8278         Reported by <erobles@sensacd.com.mx>.
8279
8280 2009-09-17  Eric Blake  <ebb9@byu.net>
8281
8282         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8283         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8284         slashes when checking if last component is missing.
8285         * tests/test-canonicalize.c (main): Test this.
8286
8287         canonicalize, canonicalize-lgpl: honor // if distinct from /
8288         * modules/canonicalize (Files): Add double-slash-root.m4.
8289         * modules/canonicalize-lgpl (Files): Likewise.
8290         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8291         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8292         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
8293         fallback definition.
8294         (canonicalize_filename_mode): Use it to protect //.
8295         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
8296         (__realpath): Likewise.
8297         * tests/test-canonicalize.c (main): Test this.
8298         * tests/test-canonicalize-lgpl.c (main): Likewise.
8299         * modules/canonicalize-tests (Depends-on): Add same-inode.
8300         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8301
8302         canonicalize-lgpl: fix glibc bug with trailing slash
8303         * m4/canonicalize-lgpl.m4: Move contents...
8304         * m4/canonicalize.m4: ...here.
8305         (gl_CANONICALIZE_LGPL): Factor realpath check...
8306         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
8307         glibc 2.3.5 bug, fixed 2005-04-27.
8308         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
8309         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
8310         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
8311         * modules/canonicalize-lgpl (Files): Manage file rename.
8312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8313         * modules/stdlib (Makefile.am): Substitute witness.
8314         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
8315         is needed.
8316         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
8317         replacement is required.
8318         * lib/canonicalize.c (canonicalize_file_name): Likewise.
8319         * doc/glibc-functions/canonicalize_file_name.texi
8320         (canonicalize_file_name): Document this.
8321         * doc/posix-functions/realpath.texi (realpath): Likewise.
8322
8323         canonicalize-lgpl: reject non-directory with trailing slash
8324         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
8325         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
8326         catches failures in glibc 2.3.5.
8327         * tests/test-canonicalize.c (main): Likewise.
8328
8329         canonicalize-lgpl: use native realpath if it works
8330         * lib/canonicalize-lgpl.c (realpath): Guard with
8331         FUNC_REALPATH_WORKS.
8332         * lib/stdlib.in.h (realpath): Make declaration optional based on
8333         HAVE_REALPATH.
8334         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
8335         native realpath works.
8336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8337         * modules/stdlib (Makefile.am): Substitute witness.
8338
8339         canonicalize, canonicalize-lgpl: use <stdlib.h>
8340         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
8341         (Include): Mention <stdlib.h>.
8342         (configure.ac): Mention functions we provide.
8343         * modules/canonicalize (configure.ac): Likewise.
8344         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
8345         realpath if canonicalize_file_name is missing.
8346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
8347         * modules/stdlib (Makefile.am): Substitute witnesses.
8348         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
8349         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
8350         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
8351         * NEWS: Document this.
8352         * doc/glibc-functions/canonicalize_file_name.texi
8353         (canonicalize_file_name): Likewise.
8354         * doc/posix-functions/realpath.texi (realpath): Likewise.
8355         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
8356
8357         test-canonicalize: consolidate into single C program
8358         * tests/test-canonicalize.sh: Delete; move setup into...
8359         * tests/test-canonicalize.c (main): ...the program, making it
8360         easier to run in debugger.  Add some tests.
8361         * modules/canonicalize-tests (Files): Remove unused file.
8362         (Depends-on): Add progname.
8363         (configure.ac, Makefile.am): Simplify.
8364
8365         test-canonicalize-lgpl: consolidate into single C program
8366         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
8367         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
8368         easier to run in debugger.  Add some tests.
8369         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
8370         (configure.ac, Makefile.am): Simplify.
8371
8372         canonicalize: avoid resolvepath
8373         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
8374         unnecessary checks.
8375         * lib/canonicalize.c (includes): Simplify.
8376         (canonicalize_file_name): Drop resolvepath implementation.
8377         * modules/canonicalize (Depends-on): Drop filenamecat.
8378
8379         canonicalize: don't lose errno
8380         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
8381         over calls to free.
8382
8383         canonicalize: simplify errno handling
8384         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
8385         assignment.
8386
8387         canonicalize, canonicalize-lgpl: update module dependencies
8388         * modules/canonicalize (Depends-on): Add extensions, lstat,
8389         pathmax, stdlib.
8390         (Files): Drop pathmax.h.
8391         (configure.ac): Adjust macro name.
8392         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
8393         lstat, stdlib, sys_stat.
8394         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
8395         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
8396         extensions.
8397         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
8398         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
8399         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
8400         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
8401         declaration, if available.
8402         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
8403         we can rely on the readlink module.
8404         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
8405         (includes): Use <unistd.h> unconditionally.
8406
8407 2009-09-17  Eric Blake  <ebb9@byu.net>
8408
8409         maint: make Include sections of modules consistent
8410         * modules/alloca: Use only header name; no need to list #include.
8411         * modules/alloca-opt: Likewise.
8412         * modules/arpa_inet: Likewise.
8413         * modules/canon-host: Likewise.
8414         * modules/configmake: Likewise.
8415         * modules/dirent: Likewise.
8416         * modules/eealloc: Likewise.
8417         * modules/environ: Likewise.
8418         * modules/fchdir: Likewise.
8419         * modules/fcntl: Likewise.
8420         * modules/fcntl-h: Likewise.
8421         * modules/gethrxtime: Likewise.
8422         * modules/gettime: Likewise.
8423         * modules/ignore-value: Likewise.
8424         * modules/inet_ntop: Likewise.
8425         * modules/inet_pton: Likewise.
8426         * modules/inttypes: Likewise.
8427         * modules/isnand-nolibm: Likewise.
8428         * modules/isnanf-nolibm: Likewise.
8429         * modules/mbchar: Likewise.
8430         * modules/mbfile: Likewise.
8431         * modules/mbiter: Likewise.
8432         * modules/mbuiter: Likewise.
8433         * modules/netdb: Likewise.
8434         * modules/netinet_in: Likewise.
8435         * modules/nproc: Likewise.
8436         * modules/pagealign_alloc: Likewise.
8437         * modules/poll: Likewise.
8438         * modules/printf-frexp: Likewise.
8439         * modules/pthread: Likewise.
8440         * modules/putenv: Likewise.
8441         * modules/random_r: Likewise.
8442         * modules/relocatable-prog: Likewise.
8443         * modules/search: Likewise.
8444         * modules/select: Likewise.
8445         * modules/selinux-h: Likewise.
8446         * modules/settime: Likewise.
8447         * modules/signal: Likewise.
8448         * modules/size_max: Likewise.
8449         * modules/socklen: Likewise.
8450         * modules/ssize_t: Likewise.
8451         * modules/stdarg: Likewise.
8452         * modules/stdbool: Likewise.
8453         * modules/stddef: Likewise.
8454         * modules/stdint: Likewise.
8455         * modules/stdio: Likewise.
8456         * modules/stdlib: Likewise.
8457         * modules/string: Likewise.
8458         * modules/strings: Likewise.
8459         * modules/sys_file: Likewise.
8460         * modules/sys_ioctl: Likewise.
8461         * modules/sys_select: Likewise.
8462         * modules/sys_socket: Likewise.
8463         * modules/sys_stat: Likewise.
8464         * modules/sys_time: Likewise.
8465         * modules/sys_times: Likewise.
8466         * modules/sys_utsname: Likewise.
8467         * modules/sys_wait: Likewise.
8468         * modules/sysexits: Likewise.
8469         * modules/time: Likewise.
8470         * modules/times: Likewise.
8471         * modules/tmpfile: Likewise.
8472         * modules/trim: Likewise.
8473         * modules/unistd: Likewise.
8474         * modules/wchar: Likewise.
8475         * modules/wctype: Likewise.
8476
8477 2009-09-17  Bruno Haible  <bruno@clisp.org>
8478
8479         Make getdate.y compile on QNX and NetBSD 5 / i386.
8480         * m4/getdate.m4 (gl_GETDATE): Conditionally define
8481         TIME_T_FITS_IN_LONG_INT.
8482         * lib/getdate.y (long_time_t): New type.
8483         (relative_time): Change type of 'seconds' field to long_time_t.
8484         (get_date): Update types of local variables. Check against overflow
8485         during conversion from long_time_t to time_t.
8486         Reported by Matt Kraai <kraai@ftbfs.org>
8487         and Hasso Tepper <hasso@netbsd.org>.
8488
8489 2009-09-17  Bruno Haible  <bruno@clisp.org>
8490
8491         * modules/COPYING: Update copyright years.
8492         * modules/README: Likeiwse.
8493         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
8494         Reported by Ian Beckwith <ianb@erislabs.net>.
8495
8496 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8497
8498         * users.txt: Update references for gnuit package.
8499
8500 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8501
8502         * m4/getdelim.m4: Fix typo in copyright line.
8503
8504 2009-09-17  Bruno Haible  <bruno@clisp.org>
8505
8506         * lib/atoll.c: Use the standard header with GPL copyright.
8507         * lib/argz.in.h: Likewise.
8508         * lib/glob.c: Likewise.
8509         * lib/glob-libc.h: Likewise.
8510         * lib/random_r.c: Likewise.
8511         * lib/siglist.h: Likewise.
8512         * lib/strsignal.c: Likewise.
8513         Reported by Ian Beckwith <ianb@erislabs.net>.
8514
8515 2009-09-17  Eric Blake  <ebb9@byu.net>
8516
8517         rmdir: ensure correct dependency order
8518         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
8519
8520 2009-09-17  Bruno Haible  <bruno@clisp.org>
8521
8522         Disable assertion that fails on NetBSD 5 / i386.
8523         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
8524         Reported by Sam Steingold <sds@gnu.org>
8525         and Hasso Tepper <hasso@netbsd.org>.
8526
8527 2009-09-16  Eric Blake  <ebb9@byu.net>
8528
8529         unlinkdir: port to mingw
8530         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
8531         on which no one can unlink a directory.
8532
8533         stdlib: sort witness names
8534         * modules/stdlib (Makefile.am): Sort replacements.
8535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
8536         * lib/stdlib.in.h: Likewise.
8537
8538         parse-duration-tests: avoid link failure
8539         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
8540         LIBINTL.
8541         Reported by Tom G. Christensen.
8542
8543         openat-tests: ensure unlinkat behaves like rmdir
8544         * tests/test-rmdir.c (main): Factor guts...
8545         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
8546         * modules/rmdir-tests (Files): Ship new file.
8547         * modules/openat-tests: New test.
8548         * tests/test-unlinkat.c: Likewise.
8549
8550         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
8551         * modules/rmdir-errno (Status, Notice): Now obsolete.
8552
8553         rmdir: work around cygwin 1.5.x and mingw bugs
8554         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
8555         * lib/rmdir.c (rmdir): Work around it.
8556         * modules/rmdir (Status, Notice): No longer obsolete.
8557         (Files): Add dos.m4.
8558         (Depends-on): Add unistd.
8559         (configure.ac): Set witnesses.
8560         (License): Relax to LGPLv2+.
8561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
8562         * modules/unistd (Makefile.am): Substitute witnesses.
8563         * lib/unistd.in.h (rmdir): Declare replacement.
8564         * doc/posix-functions/rmdir.texi (rmdir): Document this.
8565         * modules/rmdir-tests: New tests.
8566         * tests/test-rmdir.c: Likewise.
8567
8568 2009-09-15  Eric Blake  <ebb9@byu.net>
8569
8570         fchdir: improve use of replacement functions
8571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
8572         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
8573         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
8574         REPLACE_CLOSEDIR.
8575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
8576         * modules/sys_stat (Makefile.am): Substitute correct witness.
8577         * modules/dirent (Makefile.am): Likewise.
8578         * modules/unistd (Makefile.am): Likewise.
8579         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
8580         * lib/unistd.in.h (dup): Likewise.
8581         * lib/sys_stat.in.h (fstat): Likewise.
8582
8583         maint: ignore gnulib-tool temp files
8584         * .gitignore: Ignore files created during gnulib-tool --test.
8585
8586 2009-09-13  Jim Meyering  <meyering@redhat.com>
8587
8588         posixtm: don't reject a time that specify "60" as the number of seconds
8589         * lib/posixtm.c (posixtime): The code to reject invalid dates
8590         would also reject a time specified with the .60 suffix.
8591         But POSIX allows that, in order to accommodate leap seconds.
8592         So don't reject it.
8593         (main): Adjust tests accordingly.
8594         * modules/posixtm (Depends-on): Add stpcpy.
8595
8596 2009-09-11  Jim Meyering  <meyering@redhat.com>
8597
8598         announce-gen: include [$release_type] in emitted Subject:
8599         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
8600         e.g., [stable] in the emitted Subject: line.
8601
8602 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8603
8604         Remove obsolete macros from several modules.
8605         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
8606         obsolete Autoconf macros with their modern counterparts.
8607         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
8608         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
8609         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8610         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
8611         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
8612         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8614         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8615         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8616         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
8617         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8618         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8619         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
8620         * m4/sockets.m4 (gl_SOCKETS): Likewise.
8621         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
8622         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
8623         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
8624         * m4/time_r.m4 (gl_TIME_R): Likewise.
8625         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8626         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
8627         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8628
8629         Fix copyright header in build-aux scripts.
8630         * build-aux/git-version-gen: Fix copyright header to match GPLv3
8631         recommendation.
8632         * build-aux/ncftpput-ftp: Likewise.
8633         * build-aux/update-copyright: Likewise.
8634
8635 2009-09-09  Eric Blake  <ebb9@byu.net>
8636
8637         test-link: allow Linux choice of errno
8638         * tests/test-link.c (main): Relax test for alternate error.
8639
8640         strndup: fix improper m4 caching
8641         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
8642         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
8643         (gl_PREREQ_STRNDUP): Delete.
8644         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
8645         * modules/string (Makefile.am): Substitute it.
8646         * lib/string.in.h (strndup): Modernize prototype.
8647
8648         getcwd: port to mingw
8649         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
8650         different from the POSIX assumptions made throughout the getcwd
8651         module; fortunately, the mingw getcwd does not need replacement.
8652         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
8653         * modules/getcwd-tests: New test.
8654         * tests/test-getcwd.c: Likewise.
8655
8656         link: fix platform bugs
8657         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
8658         * lib/link.c (link): Work around them.  Fix related mingw bug.
8659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
8660         * modules/unistd (Makefile.am): Substitute it.
8661         * lib/unistd.in.h (link): Declare replacement.
8662         * doc/posix-functions/link.texi (link): Document this.
8663         * modules/link (Depends-on): Add strdup-posix, sys_stat.
8664
8665         test-link: consolidate into single C program, test more cases
8666         * tests/test-link.sh: Delete.
8667         * tests/test-link.c: Test more error conditions.  Exposes bugs on
8668         at least Cygwin and Solaris.
8669         * modules/link-tests (Files): Remove unused file.
8670         (Depends-on): Add errno, sys_stat.
8671         (Makefile.am): Simplify.
8672
8673 2009-09-08  Bruno Haible  <bruno@clisp.org>
8674
8675         Work around towlower, towupper bug on mingw.
8676         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
8677         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
8678         * doc/posix-functions/towlower.texi: Mention the mingw bug.
8679         * doc/posix-functions/towupper.texi: Likewise.
8680         Reported by Eric Blake.
8681
8682 2009-09-08  Jim Meyering  <meyering@redhat.com>
8683
8684         build: don't try to run autoheader if we don't use it
8685         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
8686         is not used in configure.ac.
8687
8688 2009-09-08  Eric Blake  <ebb9@byu.net>
8689
8690         euidaccess: fix compilation error
8691         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
8692
8693         rawmemchr: relax license
8694         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
8695         okay.
8696         Reported by Jim Meyering.
8697
8698         mkfifoat: new module
8699         * modules/mkfifoat: New file.
8700         * lib/mkfifoat.c: Likewise.
8701         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
8702         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8703         * modules/sys_stat (Makefile.am): Use them.
8704         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
8705         * MODULES.html.sh (File system functions): Mention module.
8706         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8707         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8708         * modules/mkfifoat-tests: New test.
8709         * tests/test-mkfifoat.c: Likewise.
8710
8711         strchrnul: relax license
8712         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
8713         okay.
8714         Reported by Jim Meyering.
8715
8716 2009-09-08  Eric Blake  <ebb9@byu.net>
8717
8718         fstatat: fix compilation on Solaris
8719         * lib/fstatat.c (includes): Add fcntl.h.
8720         Reported by Pádraig Brady.
8721
8722 2009-09-07  Eric Blake  <ebb9@byu.net>
8723
8724         rename: modernize replacement
8725         * modules/rename (Depends-on): Add stdio.
8726         (configure.ac): Declare witness.
8727         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
8728         stdio take care of replacement.
8729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8730         * modules/stdio (Makefile.am): Substitute them.
8731         * lib/stdio.in.h (rename): Declare replacement.
8732         * lib/rename.c (includes): Allow cross-compilation to non-windows
8733         machines.
8734         * doc/posix-functions/rename.texi (rename): Improve
8735         documentation.
8736
8737         stdio: sort witness names
8738         * modules/stdio (Makefile.am): Sort replacements.
8739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8740         * lib/stdio.in.h: Likewise.
8741
8742         getcwd: minor cleanups
8743         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
8744         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
8745
8746         openat: provide more convenience names
8747         * modules/faccessat (configure.ac): Add C witness.
8748         * lib/unistd.in.h (readlinkat): Fix typo.
8749         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
8750         convenience wrappers.
8751         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
8752         wrappers in syntax checks.
8753
8754 2009-09-06  Eric Blake  <ebb9@byu.net>
8755
8756         doc: fix comments in recent patches
8757         * lib/faccessat.c: Mention correct function.
8758         * lib/fchmodat.c: Likewise.
8759         * lib/fchownat.c: Likewise.
8760         * lib/symlinkat.c: Likewise.
8761         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
8762         constants.
8763
8764         faccessat, symlinkat: continue cleanup of previous patch
8765         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
8766         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8767         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
8768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
8769         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
8770         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
8771         set.
8772
8773 2009-09-06  Bruno Haible  <bruno@clisp.org>
8774
8775         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
8776         (fstatat): Declare if GNULIB_FSTATAT is set.
8777         (mkdirat): Declare if GNULIB_MKDIRAT is set.
8778         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
8779         (unlinkat): Declare if GNULIB_UNLINKAT is set.
8780         * modules/fcntl-h (Files): Remove m4/openat.m4.
8781         * modules/sys_stat (Files): Remove m4/openat.m4.
8782         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
8783         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
8784         * modules/unistd (Files): Remove m4/openat.m4.
8785         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
8786         GNULIB_OPENAT.
8787         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
8788         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
8789         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
8790         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
8791         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
8792         gl_OPENAT_DEFAULTS.
8793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
8794         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
8795         Don't require gl_OPENAT_DEFAULTS.
8796         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
8797         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
8798         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
8799         (gl_OPENAT_DEFAULTS): Remove macro.
8800
8801 2009-09-06  Bruno Haible  <bruno@clisp.org>
8802
8803         * modules/openat (configure.ac): Remove unneeded witness.
8804
8805 2009-09-06  Bruno Haible  <bruno@clisp.org>
8806
8807         Set errno to ENOSYS when a function is entirely unsupported.
8808         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
8809         EOPNOTSUPP.
8810         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
8811         * modules/chown (Depends-on): Remove errno.
8812
8813 2009-09-06  Bruno Haible  <bruno@clisp.org>
8814
8815         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
8816
8817 2009-09-06  Bruno Haible  <bruno@clisp.org>
8818
8819         * lib/sys_stat.in.h: Fix preprocessor command indentation.
8820
8821 2009-09-06  Ben Pfaff  <blp@gnu.org>
8822             Bruno Haible  <bruno@clisp.org>
8823
8824         Work around a glibc bug in strtok_r.
8825         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
8826         Undefine if UNDEFINE_STRTOK_R is set.
8827         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
8828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8829         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
8830         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
8831         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
8832         UNDEFINE_STRTOK_R.
8833         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
8834
8835 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8836
8837         exclude: minor fix
8838         * lib/exclude.c: Include wctype.h
8839
8840 2009-09-06  Akim Demaille  <demaille@gostai.com>
8841
8842         bootstrap: improve error message
8843         * build-aux/bootstrap (find_tool): Upon failure, report the list
8844         of candidates.
8845         Honor the initial value of the envvar.
8846
8847 2009-09-05  Eric Blake  <ebb9@byu.net>
8848
8849         symlinkat: new module
8850         * modules/symlinkat: New file.
8851         * lib/symlinkat.c: Likewise.
8852         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
8853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8854         * modules/unistd (Makefile.am): Use them.
8855         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
8856         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
8857         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
8858         * MODULES.html.sh (File system functions): Mention module.
8859         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8860         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8861         * modules/symlinkat-tests: New test.
8862         * tests/test-symlinkat.c: Likewise.
8863
8864         test-openat-safer: add more checks
8865         * tests/test-openat-safer.c (main): Check more code paths.
8866
8867 2009-09-05  Jim Meyering  <meyering@redhat.com>
8868
8869         syntax-check: detect unnecessary inclusion of openat.h
8870         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
8871
8872 2009-09-05  Bruno Haible  <bruno@clisp.org>
8873
8874         Support towlower, towupper.
8875         * doc/posix-functions/towlower.texi: Mention module wctype.
8876         * doc/posix-functions/towupper.texi: Likewise.
8877         * lib/wctype.in.h (towlower, towupper): New functions.
8878         * tests/test-wctype.c: Include stdio.h, stdlib.h.
8879         (ASSERT): New macro.
8880         (e): New variable.
8881         (main): Test also towlower, towupper. Test WEOF argument.
8882         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
8883
8884 2009-09-05  Bruno Haible  <bruno@clisp.org>
8885
8886         Fix conversion behaviour when the input is invalid.
8887         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
8888         mark occurring in first pass of indirect conversion.
8889         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
8890         input.
8891         Found by clang's static analyzer.
8892
8893 2009-09-05  Bruno Haible  <bruno@clisp.org>
8894
8895         * tests/test-striconveh.c (main): Test indirect conversion on platforms
8896         where direct conversion is possible.
8897
8898 2009-09-04  Eric Blake  <ebb9@byu.net>
8899
8900         openat: fail with ENOENT on empty name
8901         * lib/openat-proc.c (openat_proc_name): Special-case the empty
8902         buffer.
8903
8904         link-follow: fix logic bug in prior patch
8905         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
8906         reversed sense of yes and no in prior patch.  Avoid confusing
8907         compilation failure with desired semantics.
8908
8909         link-follow: accomodate mingw and cross-compilation
8910         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
8911         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
8912         cross-compilation results to -1, to make linkat easier to
8913         implement when cross-compiling.  Trivially support mingw.
8914         * modules/link-follow (configure.ac): Call new name.
8915         * NEWS: Mention this.
8916
8917 2009-09-03  Eric Blake  <ebb9@byu.net>
8918
8919         faccessat: compile replacement
8920         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
8921         needed.
8922
8923         fts: fix compilation error
8924         * lib/fts.c (includes): Re-add "openat.h", for
8925         openat_needs_fchdir.
8926
8927         faccessat: new module
8928         * modules/faccessat: New file.
8929         * lib/faccessat.c: Likewise.
8930         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8932         * modules/unistd (Makefile.am): Use it.
8933         * lib/unistd.in.h (faccessat): Declare it.
8934         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
8935         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
8936         * MODULES.html.sh (File system functions): Mention it.
8937         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
8938         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
8939
8940         euidaccess: prefer POSIX over non-standard implementation
8941         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
8942         * lib/euidaccess.c (euidaccess): Use it if available.
8943
8944         openat: make template easier to use
8945         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
8946         AT_FUNC_F2 to be undefined.
8947         (VALIDATE_FLAG): New macro; use it to reject bad flags.
8948         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
8949         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
8950         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
8951         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
8952         Likewise.
8953         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
8954         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
8955         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
8956         Likewise.
8957
8958         openat: declare in POSIX headers
8959         * NEWS: Mention this.
8960         * modules/openat (configure.ac): Declare witnesses.
8961         (Depends-on): Add fcntl-h, sys_stat, unistd.
8962         (Include): Mention correct headers.
8963         * modules/fcntl-h (Depends-on): Add link-warning.
8964         (Files): Add openat.m4.
8965         (Makefile.am): Substitute witnesses.
8966         * modules/sys_stat (Files, Makefile.am): Likewise.
8967         * modules/unistd (Files, Makefile.am): Likewise.
8968         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
8969         (gl_OPENAT_DEFAULTS): New macro.
8970         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
8971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
8972         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
8973         (SYS_STAT_H): Remove unused variable.
8974         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
8975         * lib/fcntl--.h (includes): Remove unneeded header.
8976         * lib/openat-safer.c (includes): Likewise.
8977         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
8978         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
8979         appropriate headers.
8980         (__OPENAT_PREFIX): Delete.
8981         * lib/fcntl.in.h (openat): Provide declaration.
8982         (AT_FDCWD): Fix Solaris bug.
8983         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
8984         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
8985         * lib/fchmodat.c (includes):  Adjust to find declaration.
8986         * lib/fchownat.c (includes): Likewise.
8987         * lib/mkdirat.c (includes): Likewise.
8988         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
8989         still visible.
8990
8991 2009-09-02  Eric Blake  <ebb9@byu.net>
8992
8993         errno: use consistently
8994         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
8995         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
8996         * lib/canonicalize.c (ELOOP): Likewise.
8997         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
8998         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
8999         * lib/lchown.c (EOPNOTSUPP): Likewise.
9000         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9001         * lib/savewd.c (ESTALE): Likewise.
9002         * lib/settime.c (ENOSYS): Likewise.
9003         * lib/utimens.c (ENOSYS): Likewise.
9004         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9005         * lib/chdir-safer.c (ELOOP): Likewise.
9006         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9007         * modules/c-stack (Depends-on): Add errno.
9008         * modules/canonicalize (Depends-on): Likewise.
9009         * modules/chdir-safer (Depends-on): Likewise.
9010         * modules/fdopendir (Depends-on): Likewise.
9011         * modules/inet_ntop (Depends-on): Likewise.
9012         * modules/inet_pton (Depends-on): Likewise.
9013         * modules/lchown (Depends-on): Likewise.
9014         * modules/openat (Depends-on): Likewise.
9015         * modules/savewd (Depends-on): Likewise.
9016         * modules/settime (Depends-on): Likewise.
9017         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9018
9019         fts: avoid leaking fds
9020         * modules/fts (Depends-on): Add cloexec.
9021         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9022         flag.
9023
9024         fts: make directory fds more robust
9025         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9026         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9027
9028         backupfile, chdir-long, fts, savedir: make safer
9029         * lib/backupfile.c (includes): Use "dirent--.h", since
9030         numbered_backup can write to stderr during readdir.
9031         * lib/savedir.c (includes): Likewise.
9032         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9033         emulation can write to stderr on failure.
9034         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9035         * lib/getcwd.c: Document why opendir_safer is unused.
9036         * lib/glob.c: Likewise.
9037         * lib/scandir.c: Likewise.
9038         * lib/openat-proc.c: Likewise, for open_safer.
9039         * modules/backupfile (Depends-on): Add dirent-safer.
9040         * modules/savedir (Depends-on): Likewise.
9041         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9042         * modules/chdir-long (Depends-on): Add openat-safer.
9043
9044         openat-safer: new module
9045         * modules/openat-safer: New file.
9046         * lib/openat-safer.c: Likewise.
9047         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9048         * lib/fcntl-safer.h (openat_safer): Declare.
9049         * lib/fcntl--.h (openat): Override.
9050         * MODULES.html.sh (File descriptor based I/O): Mention it.
9051         * lib/openat.h: Add double-inclusion guards.
9052         * lib/openat.c (includes): Only include "fcntl-safer.h", not
9053         "fcntl--.h", so we can implement openat.
9054         * modules/openat-safer-tests: New test.
9055         * tests/test-openat-safer.c: New file.
9056
9057         dirent-safer: new module
9058         * modules/dirent-safer: New file.
9059         * lib/dirent--.h: Likewise.
9060         * lib/dirent-safer.h: Likewise.
9061         * lib/opendir-safer.c: Likewise.
9062         * m4/dirent-safer.m4: Likewise.
9063         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9064         * modules/dirent-safer-tests: New test.
9065         * tests/test-dirent-safer.c: New file.
9066         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9067
9068         fdopendir: optimize on mingw
9069         * lib/unistd.in.h (_gl_directory_name): New prototype.
9070         * lib/fchdir.c (_gl_directory_name): Implement it.
9071         (fchdir): Use it to simplify implementation.
9072         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9073         fchdir, when available, to avoid calling [f]chdir().
9074
9075         fdopendir: split into its own module
9076         * lib/openat.c (fdopendir): Move...
9077         * lib/fdopendir.c: ...into new file.
9078         * modules/fdopendir: New module.
9079         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9080         * modules/openat (Depends-on): Add fdopendir.
9081         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9082         fdopendir here.
9083         * modules/savedir (Depends-on): Only need fdopendir, not full
9084         openat.
9085         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9086         * lib/openat.h (fdopendir): Drop prototype.
9087         * lib/dirent.in.h (fdopendir): Provide prototype.
9088         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9089         * modules/dirent (Makefile.am): Substitute them.
9090         * MODULES.html.sh (File system functions): Mention it.
9091         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9092         * modules/fdopendir-tests: New file.
9093         * tests/test-fdopendir.c: Likewise.
9094
9095         fchdir: use more consistent macro convention
9096         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9097         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9098         REPLACE_FCHDIR, rather than relying on config.h macros.
9099         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9100         inside a single make-time REPLACE_FCHDIR block, rather than using
9101         the config.h FCHDIR_REPLACEMENT.
9102         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9103         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
9104         Manage fstat replacement.
9105         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9106         REPLACE_FCHDIR.
9107         * modules/sys_stat (Files): Add m4/unistd_h.m4.
9108         (Makefile.am): Substitute REPLACE_FCHDIR.
9109         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9110         FCHDIR_REPLACEMENT.
9111         * lib/dup-safer.c (dup_safer): Likewise.
9112         * lib/dup2.c (rpl_dup2): Likewise.
9113         * lib/dup3.c (rpl_dup3): Likewise.
9114         * lib/open.c (rpl_open): Likewise.
9115
9116         fchdir: simplify error handling, and support dup3
9117         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
9118         stdbool, malloc-posix, realloc-posix.
9119         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9120         (ensure_dirs_slot): Return false on allocation failure.
9121         (rpl_dup2): Delete.
9122         (_gl_register_dup): New function.
9123         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9124         (_gl_register_fd): Close fd on allocation failure.
9125         * lib/fcntl.in.h (_gl_register_fd): Update signature.
9126         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9127         prototype.
9128         (rpl_dup2_fchdir): Delete prototype.
9129         * lib/open.c (open): Update caller.
9130         * lib/dup2.c (dup2): Track fchdir metadata.
9131         * lib/dup3.c (dup3): Likewise.
9132         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9133         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9134
9135 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9136
9137         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9138         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9139         don't pass arguments to AC_OUTPUT.
9140
9141 2009-09-02  Bruno Haible  <bruno@clisp.org>
9142
9143         * modules/mkdtemp (License): Relicense under LGPLv2+.
9144         Reported by Paolo Bonzini.
9145
9146 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9147
9148         Replace uses of obsolete autoconf macros in Jim's modules.
9149         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9150         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9151         can evoke a warning from autoconf when run with -Wobsolete
9152         enabled.  They were declared obsolete for good reasons (see
9153         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9154         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9155         should not continue using the deprecated macros.
9156         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9157         obsolete Autoconf macros with modern counterparts.
9158         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9159         * m4/dos.m4 (gl_AC_DOS): Likewise.
9160         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9161         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9162         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9163         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9164         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9165         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9166         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9167         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9168         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9169         Likewise.
9170         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9171         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9172         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9173         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9174         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9175         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9176
9177 2009-09-01  Eric Blake  <ebb9@byu.net>
9178
9179         fchdir: fix off-by-one bug in previous patch
9180         * lib/fchdir.c (rpl_fstat): Use correct bounds.
9181         (_gl_unregister_fd): Delete useless if.
9182
9183 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
9184
9185         maint.mk: sort the list of syntax-check rules
9186         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9187         easier to get a sense of progress when the rules are run sequentially
9188         and take a long time.
9189
9190 2009-09-01  Simon Josefsson  <simon@josefsson.org>
9191
9192         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9193         * modules/netinet_in: Likewise.
9194         * modules/sys_file: Likewise.
9195         * modules/sys_ioctl: Likewise.
9196         * modules/sys_select: Likewise.
9197         * modules/sys_socket: Likewise.
9198         * modules/sys_stat: Likewise.
9199         * modules/sys_time: Likewise.
9200         * modules/sys_times: Likewise.
9201         * modules/sys_utsname: Likewise.
9202         * modules/sys_wait: Likewise.
9203
9204 2009-09-01  Jim Meyering  <meyering@redhat.com>
9205
9206         fts: help ensure that return values are not ignored
9207         * lib/fts_.h (__GNUC_PREREQ): Define.
9208         (__attribute_warn_unused_result__): Define.
9209         (fts_children, fts_close, fts_open, fts_read): Declare with
9210         __attribute_warn_unused_result__.
9211
9212         fts: fts_close now fails also when closing a dir file descriptor fails
9213         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9214         and propagate to caller, along with errno.
9215
9216         announce-gen: correct formatting in --help output
9217         * build-aux/announce-gen (usage): Move the one-line description in
9218         --help output "up", to where it belongs, just after Usage:.
9219
9220 2009-08-31  Eric Blake  <ebb9@byu.net>
9221
9222         fchdir: port to mingw
9223         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9224         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9225         opened, then use a substitute.
9226         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9227         replacement.
9228         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9229         (_gl_register_fd): No need to check stat if open already filters
9230         all directories.
9231         (fchdir): Fix error condition to match POSIX.
9232         * modules/fchdir (Depends-on): Add sys_stat.
9233         * doc/posix-functions/open.texi (open): Document the limitation.
9234         * modules/fchdir-tests: New file.
9235         * tests/test-fchdir.c: Likewise.
9236
9237         canonicalize: allow cross-testing from cygwin to mingw
9238         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9239         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9240         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9241         Likewise.
9242         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9243         target does not support symlinks.
9244         * tests/test-canonicalize-lgpl.sh: Likewise.
9245
9246         chown: avoid compilation warning on mingw
9247         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9248         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9249         mingw.
9250         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9251         * modules/chown (Depends-on): Add errno.
9252
9253 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9254
9255         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9256         command.
9257
9258 2009-08-31  Jim Meyering  <meyering@redhat.com>
9259
9260         canonicalize: remove useless initialization
9261         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9262         initialization of local, "end".
9263
9264 2009-08-30  Bruno Haible  <bruno@clisp.org>
9265
9266         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9267         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9268         ENOSYS.
9269
9270 2009-08-30  Bruno Haible  <bruno@clisp.org>
9271
9272         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9273         /usr/xpg4/bin/tr when it exists.
9274         * tests/test-pipe-filter-gi1.sh: Likewise.
9275
9276 2009-08-30  Bruno Haible  <bruno@clisp.org>
9277
9278         Work around deficient /usr/bin/id program on Solaris.
9279         * tests/test-file-has-acl.sh (ID): New variable.
9280         * tests/test-set-mode-acl.sh (ID): Likewise.
9281         * tests/test-copy-acl.sh (ID): Likewise.
9282         * tests/test-copy-file.sh (ID): Likewise.
9283
9284 2009-08-30  Bruno Haible  <bruno@clisp.org>
9285
9286         New module 'xstriconveh'.
9287         * lib/xstriconveh.h: New file.
9288         * lib/xstriconveh.c: New file.
9289         * modules/xstriconveh: New file.
9290
9291 2009-08-30  Bruno Haible  <bruno@clisp.org>
9292
9293         Make it easier to use mem_cd_iconveh.
9294         * lib/striconveh.h (iconveh_t): New type.
9295         (iconveh_open, iconveh_close): New declarations.
9296         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9297         with a single 'const iconveh_t *' argument.
9298         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
9299         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9300         with a single 'const iconveh_t *' argument.
9301         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
9302         * tests/test-striconveh.c (main): Update.
9303         * NEWS: Mention the change.
9304
9305 2009-08-30  Bruno Haible  <bruno@clisp.org>
9306
9307         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
9308         problem.
9309
9310 2009-08-30  Bruno Haible  <bruno@clisp.org>
9311
9312         Work around iconv_open problem on Solaris.
9313         * lib/iconv_open-solaris.gperf: New file.
9314         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
9315         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
9316         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
9317         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
9318         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
9319         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
9320
9321 2009-08-29  Jim Meyering  <meyering@redhat.com>
9322
9323         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
9324         * top/maint.mk (cvs-check): Remove target; it was just an alias
9325         to the better-named vc-diff-check.
9326         (maintainer-distcheck): Remove rule.  It was used only from
9327         the (alpha/beta/major) target, and all of its commands but one
9328         were coreutils-specific.
9329         (vc-dist): Remove rule.
9330         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
9331         Run vc-diff-check, not vc-dist.
9332         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
9333
9334 2009-08-27  Bruno Haible  <bruno@clisp.org>
9335
9336         * tests/test-bitrotate.c (main): Remove test that uses a shift count
9337         of 0.
9338
9339 2009-08-27  Bruno Haible  <bruno@clisp.org>
9340
9341         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
9342         compilers.
9343         * doc/func.texi: Document the SunPRO C bug.
9344
9345 2009-08-27  Bruno Haible  <bruno@clisp.org>
9346
9347         Fix link error on Solaris.
9348         * tests/test-parse-duration.c (xstrdup): Remove function.
9349
9350 2009-08-26  Pádraig Brady  <P@draigbrady.com>
9351
9352         ignore-value: handle pointer types, too
9353         * lib/ignore-value.h (__attribute__): Remove definition.
9354         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
9355         of a more concise and more-often effective "(void) i" statement.
9356         (ignore_ptr): New function to suppress warnings from functions that
9357         return pointers, and to make it explicit that one function doesn't
9358         handle all cases.
9359
9360 2009-08-25  Bruno Haible  <bruno@clisp.org>
9361
9362         dup2: work around a Linux bug.
9363         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
9364         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
9365         * doc/posix-functions/dup2.texi: Mention the Linux bug.
9366         Reported by Simon Josefsson.
9367
9368 2009-08-25  Jim Meyering  <meyering@redhat.com>
9369
9370         libguestfs uses gnulib
9371         * users.txt: Add libguestfs.
9372
9373 2009-08-24  Eric Blake  <ebb9@byu.net>
9374
9375         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
9376         * lib/pipe2.c (includes): Add binary-io.h.
9377         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
9378
9379 2009-08-24  Bruno Haible  <bruno@clisp.org>
9380
9381         Tolerate declared but missing accept4 syscall.
9382         * lib/accept4.c (accept4): Invoke original accept4 function first, if
9383         available.
9384         * lib/sys_socket.in.h (accept4): If the function is already present,
9385         override it.
9386         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
9387         * modules/accept4 (Makefile.am): Compile accept4.c always.
9388         Reported by Paolo Bonzini and Eric Blake.
9389
9390 2009-08-23  Bruno Haible  <bruno@clisp.org>
9391
9392         New module 'accept4'.
9393         * lib/sys_socket.in.h (accept4): New declaration.
9394         * lib/accept4.c: New file.
9395         * m4/accept4.m4: New file.
9396         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9397         GNULIB_ACCEPT4, HAVE_ACCEPT4.
9398         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
9399         HAVE_ACCEPT4.
9400         * modules/accept4: New file.
9401         * doc/glibc-functions/accept4.texi: Mention the new module.
9402
9403 2009-08-24  Jim Meyering  <meyering@redhat.com>
9404
9405         progname: also set global program_invocation_name, when possible
9406         Before this change, a libtool-enabled program that calls glibc's
9407         error function would report the program name as
9408         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
9409         * modules/progname (configure.ac): Check for a declaration of
9410         program_invocation_name.
9411         * lib/progname.c:  Include <errno.h>.
9412         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
9413         Set program_invocation_name.
9414
9415 2009-08-23  Bruno Haible  <bruno@clisp.org>
9416
9417         * lib/dup3.c: Include <string.h>.
9418
9419 2009-08-23  Bruno Haible  <bruno@clisp.org>
9420
9421         * lib/dup3.c (dup3): Test only once whether the system actually exists.
9422         * lib/pipe2.c (pipe2): Likewise.
9423         Suggested by Eric Blake.
9424
9425 2009-08-23  Bruno Haible  <bruno@clisp.org>
9426
9427         Tolerate declared but missing dup3 syscall.
9428         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
9429         * lib/unistd.in.h (dup3): If the function is already present,
9430         override it.
9431         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
9432         * modules/dup3 (Makefile.am): Compile dup3.c always.
9433         Reported by Paolo Bonzini.
9434
9435 2009-08-23  Bruno Haible  <bruno@clisp.org>
9436
9437         Tolerate declared but missing pipe2 syscall.
9438         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
9439         available.
9440         * lib/unistd.in.h (pipe2): If the function is already present,
9441         override it.
9442         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
9443         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
9444         Reported by Paolo Bonzini.
9445
9446 2009-08-23  Bruno Haible  <bruno@clisp.org>
9447
9448         * lib/pipe2.c (pipe2): Move #ifs inside function.
9449
9450 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9451
9452         quotearg: document limitations of quote_these_too
9453         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
9454         those limitations are created.
9455         * lib/quotearg.h (set_char_quoting): Document that digits and
9456         letters that are special after backslash are not permitted.
9457         (quotearg_char): Cross-reference set_char_quoting documentation.
9458
9459 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
9460
9461         quotearg: implement custom_quoting_style
9462         * lib/quotearg.c: (struct quoting_options): Add left_quote and
9463         right_quote fields.
9464         (set_custom_quoting): New public function.
9465         (quotearg_buffer_restyled): Add left_quote and right_quote
9466         arguments, handle them very much like locale quoting, and update
9467         all uses.
9468         (quotearg_n_custom): New public function.
9469         (quotearg_n_custom_mem): New public function.
9470         (quotearg_custom): New public function.
9471         (quotearg_custom_mem): New public function.
9472         * lib/quotearg.h: Prototype and document new public functions.
9473         (enum quoting_style): For escape_quoting_style and
9474         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
9475         ignored even though they're otherwise like c_quoting_style.
9476         Add custom_quoting_style member and document with comparison to
9477         clocale_quoting_style.
9478         * tests/test-quotearg.c (custom_quotes): New array.
9479         (custom_results): New array.
9480         (main): Extend to test custom quoting.
9481
9482 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9483
9484         quotearg: fix right quote escaping when it's in quote_these_too
9485         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
9486         quote, be sure to prepend only one backslash.
9487         * tests/test-quotearg.c (use_quote_double_quotes): New function.
9488         (main): Test it.
9489
9490 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9491
9492         quotearg-tests: test escaping of embedded locale quotes
9493         * tests/test-quotearg.c (struct result_strings): Add member for
9494         new input.
9495         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
9496         (inputs): Add new input.
9497         (results_g): Add expected results.
9498         (flag_results): Likewise.
9499         (locale_results): Likewise.
9500         (compare_strings): Check those.
9501
9502 2009-08-23  Bruno Haible  <bruno@clisp.org>
9503
9504         Tests for module 'dup3'.
9505         * modules/dup3-tests: New file.
9506         * tests/test-dup3.c: New file.
9507
9508         New module 'dup3'.
9509         * lib/unistd.in.h (dup3): New declaration.
9510         * lib/dup3.c: New file.
9511         * m4/dup3.m4: New file.
9512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
9513         HAVE_DUP3.
9514         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
9515         * modules/dup3: New file.
9516         * doc/glibc-functions/dup3.texi: Mention the new module.
9517
9518 2009-08-23  Bruno Haible  <bruno@clisp.org>
9519
9520         Tweak the dup2 test.
9521         * tests/test-dup2.c (main): Create the test file empty. Verify that an
9522         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
9523         the test file is still empty. Fix argument order of lseek.
9524
9525 2009-08-23  Bruno Haible  <bruno@clisp.org>
9526
9527         Avoid test link errors when the modules getopt-gnu, gettext are used.
9528         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
9529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9530
9531 2009-08-23  Bruno Haible  <bruno@clisp.org>
9532
9533         Fix getdtablesize() on mingw.
9534         * lib/getdtablesize.c (getdtablesize): Implement differently.
9535         * lib/unistd.in.h (getdtablesize): Improve comment.
9536
9537 2009-08-23  Bruno Haible  <bruno@clisp.org>
9538
9539         New module 'mkostemp'.
9540         Based on Ulrich Drepper's 2007-08-10 change in glibc.
9541         * lib/stdlib.in.h (mksotemp): New declaration.
9542         * lib/mkostemp.c: New file, from glibc with modifications.
9543         * lib/tempname.h (GT_FILE): Remove outdated comment.
9544         (gen_tempname): Add flags argument.
9545         * lib/tempname.c (__GT_BIGFILE): Remove macro.
9546         (__GT_FILE): Map to 1.
9547         (small_open, large_open): Remove macros.
9548         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
9549         * lib/mkstemp.c (mkstemp): Update.
9550         * lib/mkdtemp.c (mkdtemp): Likewise.
9551         * m4/mkostemp.m4: New file.
9552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
9553         HAVE_MKOSTEMP.
9554         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
9555         HAVE_MKOSTEMP.
9556         * modules/mkostemp: New file, based on modules/mkstemp.
9557         * doc/glibc-functions/mkostemp.texi: Mention the new module.
9558         * NEWS: Mention the change.
9559
9560 2009-08-23  Bruno Haible  <bruno@clisp.org>
9561
9562         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
9563         Reported by Eric Blake.
9564
9565 2009-08-23  Bruno Haible  <bruno@clisp.org>
9566
9567         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
9568         Reported by Eric Blake.
9569
9570 2009-08-23  Bruno Haible  <bruno@clisp.org>
9571
9572         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
9573         * modules/pipe2 (Depends-on): Likewise.
9574
9575 2009-08-23  Eric Blake  <ebb9@byu.net>
9576
9577         fcntl-h: add O_TTY_INIT support
9578         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
9579         * tests/test-fcntl-h.c (o): Test it.
9580         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9581
9582         fcntl-h: rename from fcntl, in preparation for fcntl(2)
9583         * modules/fcntl: Move <fcntl.h> header replacement...
9584         * modules/fcntl-h: ...to new name, so as not to collide with
9585         like-named function.
9586         * tests/test-fcntl.c: Rename...
9587         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
9588         * modules/fcntl-tests: Rename...
9589         * modules/fcntl-h-tests: ...to this.  Update test file name.
9590         * modules/chdir-long (Depends-on): Update clients.
9591         * modules/chdir-safer (Depends-on): Likewise.
9592         * modules/fcntl-safer (Depends-on): Likewise.
9593         * modules/fts (Depends-on): Likewise.
9594         * modules/mkancesdirs (Depends-on): Likewise.
9595         * modules/mkdir-p (Depends-on): Likewise.
9596         * modules/open (Depends-on): Likewise.
9597         * modules/savewd (Depends-on): Likewise.
9598         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
9599         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9600
9601 2009-08-22  Bruno Haible  <bruno@clisp.org>
9602
9603         * modules/binary-io (License): Relicense under LGPL.
9604         * modules/pipe2 (License): Likewise.
9605
9606 2009-08-22  Bruno Haible  <bruno@clisp.org>
9607
9608         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
9609         return value.
9610         * lib/pipe-filter-gi.c (filter_init): Likewise.
9611         Reported by Eric Blake.
9612
9613 2009-08-22  Bruno Haible  <bruno@clisp.org>
9614
9615         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
9616         * modules/pipe (Depends-on): Add pipe2.
9617
9618 2009-08-22  Bruno Haible  <bruno@clisp.org>
9619
9620         Tests for module 'pipe2'.
9621         * modules/pipe2-tests: New file.
9622         * tests/test-pipe2.c: New file.
9623
9624         New module 'pipe2'.
9625         * lib/unistd.in.h (pipe2): New declaration.
9626         * lib/pipe2.c: New file.
9627         * m4/pipe2.m4: New file.
9628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
9629         HAVE_PIPE2.
9630         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
9631         * modules/pipe2: New file.
9632         * doc/glibc-functions/pipe2.texi: Mention the new module.
9633
9634 2009-08-22  Bruno Haible  <bruno@clisp.org>
9635
9636         Reference some new glibc functions.
9637         * doc/glibc-functions/accept4.texi: New file.
9638         * doc/glibc-functions/dup3.texi: New file.
9639         * doc/glibc-functions/mkostemp.texi: New file.
9640         * doc/glibc-functions/pipe2.texi: New file.
9641         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
9642         (Glibc sys/socket.h): Refer to accept4.
9643         (Glibc unistd.h): Refer to dup3, pipe2.
9644         Reported by Eric Blake.
9645
9646 2009-08-22  Jim Meyering  <meyering@redhat.com>
9647             Bruno Haible  <bruno@clisp.org>
9648
9649         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
9650         This makes it so packages using automake-1.11's silent-rules option
9651         can print e.g., a single "GEN    configmake.h" line, rather than
9652         the 30+ statements that perform the job.  If you want to see the
9653         actual commands, you can still run "make V=1".
9654         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
9655         so that make output is abbreviated when those variables are defined
9656         appropriately.
9657         * modules/argz: Likewise.
9658         * modules/arpa_inet: Likewise.
9659         * modules/byteswap: Likewise.
9660         * modules/configmake: Likewise.
9661         * modules/dirent: Likewise.
9662         * modules/errno: Likewise.
9663         * modules/fcntl: Likewise.
9664         * modules/float: Likewise.
9665         * modules/fnmatch: Likewise.
9666         * modules/getopt-posix: Likewise.
9667         * modules/glob: Likewise.
9668         * modules/iconv_open: Likewise.
9669         * modules/inttypes: Likewise.
9670         * modules/localcharset: Likewise.
9671         * modules/locale: Likewise.
9672         * modules/math: Likewise.
9673         * modules/netdb: Likewise.
9674         * modules/netinet_in: Likewise.
9675         * modules/poll: Likewise.
9676         * modules/posix_spawnp-tests: Likewise.
9677         * modules/sched: Likewise.
9678         * modules/search: Likewise.
9679         * modules/selinux-h: Likewise.
9680         * modules/signal: Likewise.
9681         * modules/spawn: Likewise.
9682         * modules/stdarg: Likewise.
9683         * modules/stdbool: Likewise.
9684         * modules/stddef: Likewise.
9685         * modules/stdint: Likewise.
9686         * modules/stdio: Likewise.
9687         * modules/stdlib: Likewise.
9688         * modules/string: Likewise.
9689         * modules/strings: Likewise.
9690         * modules/sys_file: Likewise.
9691         * modules/sys_ioctl: Likewise.
9692         * modules/sys_select: Likewise.
9693         * modules/sys_socket: Likewise.
9694         * modules/sys_stat: Likewise.
9695         * modules/sys_time: Likewise.
9696         * modules/sys_times: Likewise.
9697         * modules/sys_utsname: Likewise.
9698         * modules/sys_wait: Likewise.
9699         * modules/sysexits: Likewise.
9700         * modules/time: Likewise.
9701         * modules/unistd: Likewise.
9702         * modules/wchar: Likewise.
9703         * modules/wctype: Likewise.
9704
9705 2009-08-22  Jim Meyering  <meyering@redhat.com>
9706
9707         announce-gen: detect write failure
9708         * build-aux/announce-gen: Add Coda at end.
9709         Remove equivalent-but-more-verbose block at top.
9710
9711 2009-08-19  Akim Demaille  <demaille@gostai.com>
9712
9713         bootstrap: --help to stdout.
9714         * bootstrap (usage): Don't send --help to stderr.
9715         Use a here doc instead of a long string.
9716
9717 2009-08-21  Eric Blake  <ebb9@byu.net>
9718
9719         test-popen-safer: split from test-popen
9720         * tests/test-popen.c (main): Move...
9721         * tests/test-popen.h: ...into new file.
9722         * tests/test-popen-safer2.c: New file.
9723         * modules/popen-tests (Files): Add test-popen.h.
9724         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
9725         Suggested by Bruno Haible.
9726
9727         test-fcntl-safer: split from test-open
9728         * tests/test-open.c (main): Move...
9729         * tests/test-open.h: ...into new file.
9730         * tests/test-fcntl-safer.c: New file.
9731         * modules/open-tests (Files): Add test-open.h.
9732         * modules/fcntl-safer-tests: New file.
9733         Suggested by Bruno Haible.
9734
9735         test-fopen-safer: split from test-fopen
9736         * tests/test-fopen.c (main): Move...
9737         * tests/test-fopen.h: ...into new file.
9738         * tests/test-fopen-safer.c: New file.
9739         * modules/fopen-tests (Files): Add test-fopen.h.
9740         * modules/fopen-safer-tests: New file.
9741         Suggested by Bruno Haible.
9742
9743 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9744
9745         popen-safer: test O_CLOEXEC at run-time.
9746         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
9747
9748 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9749
9750         fcntl: move more flags to the header
9751         * lib/cloexec.c: Do not define FD_CLOEXEC here.
9752         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
9753         * lib/fcntl.in.h: Do both things here.
9754
9755 2009-08-21  Jim Meyering  <meyering@redhat.com>
9756
9757         consistently remove $@-t before redirecting to it
9758         * modules/argz: Remove $@-t and $@ before redirecting to the former.
9759         * modules/alloca-opt: Likewise.
9760         * modules/byteswap: Likewise.
9761         * modules/fnmatch: Likewise.
9762         * modules/getopt-posix: Likewise.
9763         * modules/glob: Likewise.
9764         * modules/poll: Likewise.
9765         * modules/posix_spawnp-tests: Likewise.
9766         * modules/sys_socket: Likewise.
9767         * modules/sysexits: Likewise.
9768
9769 2009-08-21  Eric Blake  <ebb9@byu.net>
9770
9771         popen: simplify access to original popen
9772         * lib/popen.c (rpl_popen): No need to worry about popen being a
9773         macro.
9774         Reported by Bruno Haible.
9775
9776 2009-08-20  Eric Blake  <ebb9@byu.net>
9777
9778         build: avoid some compiler warnings
9779         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
9780         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
9781         type.
9782         (new_exclude_segment, excluded_file_pattern_p)
9783         (excluded_file_name_p): Reduce scope.
9784         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
9785         old-style declaration.
9786
9787 2009-08-20  Simon Josefsson  <simon@josefsson.org>
9788
9789         * tests/test-exclude1.sh: Handle Windows EOL.
9790         * tests/test-exclude2.sh: Likewise.
9791         * tests/test-exclude3.sh: Likewise.
9792         * tests/test-exclude4.sh: Likewise.
9793         * tests/test-exclude5.sh: Likewise.
9794         * tests/test-exclude6.sh: Likewise.
9795         * tests/test-exclude7.sh: Likewise.
9796
9797 2009-08-19  Akim Demaille  <demaille@gostai.com>
9798
9799         bootstrap: find sha1sum when named gsha1sum.
9800         * bootstrap (find_tool): New.
9801         ($SHA1SUM): New.
9802         Use it.
9803
9804 2009-08-20  Jim Meyering  <meyering@redhat.com>
9805
9806         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
9807         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
9808         expression that converts "." in a file name to "\." in the resulting
9809         regexp.  Start with a dummy statement, so that prior shell variable
9810         definitions are expanded portably.  Reported by Simon Josefsson.
9811
9812 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
9813
9814         Fix polling for writeability of a screen buffer.
9815         * lib/poll.c: Distinguish input and screen buffers for the
9816         Win32 implementation.
9817         * lib/select.c: Likewise.
9818
9819 2009-08-19  Eric Blake  <ebb9@byu.net>
9820
9821         popen-safer: prevent popen from clobbering std descriptors
9822         * modules/popen-safer: New file.
9823         * lib/popen-safer.c: Likewise.
9824         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
9825         * lib/stdio--.h (popen): Provide override.
9826         * lib/stdio-safer.h (popen_safer): Provide declaration.
9827         * tests/test-popen.c (includes): Partially test this.
9828         * modules/popen-safer-tests: New file, for more tests.
9829         * tests/test-popen-safer.c: Likewise.
9830         * MODULES.html.sh (file stream based Input/Output): Mention it.
9831
9832         tests: test some of the *-safer modules
9833         * modules/fopen-safer (Depends-on): Add fopen.
9834         * modules/fcntl-safer (Depends-on): Add fcntl.
9835         * modules/stdlib-safer (Depends-on): Add stdlib.
9836         (configure.ac): Set indicator.
9837         * modules/unistd-safer (configure.ac): Likewise.
9838         * modules/tmpfile-safer (configure.ac): Likewise.
9839         (Depends-on): Add tmpfile.
9840         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
9841         active.
9842         * tests/test-fopen.c (includes): Test safer versions when they are
9843         in use.
9844         * tests/test-open.c (includes): Likewise.
9845
9846         popen: fix cygwin 1.5 bug when stdin closed
9847         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
9848         * modules/popen: New file.
9849         * modules/popen-tests: Likewise.
9850         * tests/test-popen.c: Likewise.
9851         * m4/popen.m4: Likewise.
9852         * lib/popen.c: Likewise.
9853         * lib/stdio.in.h (popen): New declaration.
9854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
9855         * modules/stdio (Makefile.am): Likewise.
9856         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
9857
9858 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
9859
9860         maint.mk: give full control over update-copyright exclusions
9861         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
9862         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
9863         (update-copyright): Don't force inclusion of top-level
9864         ChangeLog.  Don't force exclusion of all COPYING files, but make
9865         them the default exclusion instead.
9866
9867 2009-08-16  Bruno Haible  <bruno@clisp.org>
9868
9869         Fix test failures on Solaris 10.
9870         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
9871         tests when Solaris iconv() is used.
9872         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9873         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9874         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9875         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9876         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9877
9878 2009-08-16  Bruno Haible  <bruno@clisp.org>
9879
9880         Fix test failures on Solaris 10.
9881         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
9882         'tr' program and pass it as first argument.
9883         * tests/test-pipe-filter-gi1.sh: Likewise.
9884         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
9885         program as first argument.
9886         * tests/test-pipe-filter-gi1.c (main): Likewise.
9887
9888 2009-08-16  Eric Blake  <ebb9@byu.net>
9889
9890         fpurge: fix previous commits
9891         * modules/fpurge (Makefile.am): Make replacement conditional,
9892         partially reverting 2007-04-29 change; missed in previous
9893         attempt.
9894         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
9895         is missing.
9896
9897 2009-08-16  Bruno Haible  <bruno@clisp.org>
9898
9899         Clarify fpurge's effect on the file position.
9900         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
9901         * tests/test-fpurge.c (main): Make a second pass for checking the file
9902         position.
9903
9904 2009-08-16  Bruno Haible  <bruno@clisp.org>
9905
9906         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
9907         declaration of fpurge is missing.
9908         * tests/test-fpurge.c (main): Check that the file has not more contents
9909         than expected. Close the file before removing it.
9910
9911 2009-08-15  Eric Blake  <ebb9@byu.net>
9912
9913         fpurge: don't wrap working cygwin implementation
9914         * lib/fpurge.c (fpurge): Fix comment typo.
9915         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
9916         1.7 to avoid replacement.
9917         * tests/test-fpurge.c (main): Enhance test.
9918
9919 2009-08-15  Eric Blake  <ebb9@byu.net>
9920         and Jim Meyering  <meyering@redhat.com>
9921
9922         test-update-copyright: skip if perl is insufficient
9923         * tests/test-update-copyright.sh: Failure to run maintainer tool
9924         should not cause testsuite failure on cygwin 1.5.
9925
9926 2009-08-14  Eric Blake  <ebb9@byu.net>
9927
9928         doc: mention more functions added in cygwin 1.7.0
9929         * doc/posix-headers/limits.texi (limits.h): Update for recent
9930         cygwin additions.
9931         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
9932         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9933         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
9934         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
9935         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
9936
9937 2009-08-14  Eric Blake  <ebb9@byu.net>
9938
9939         maint.mk: simplify update-copyright rule
9940         * top/maint.mk (update-copyright-local): Delete, and document how
9941         to do it in cfg.mk instead.
9942         (update-copyright-exclude-regexp): Delete, and document how to do
9943         it in .x-update-copyright instead.
9944         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
9945         exclude ChangeLog.
9946
9947 2009-08-14  Bruno Haible  <bruno@clisp.org>
9948
9949         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
9950
9951 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9952
9953         maint.mk: support update-copyright-env
9954         * top/maint.mk (update-copyright-env): Define place-holder.
9955         (update-copyright): Expand $(update-copyright-env) before
9956         invoking update-copyright.
9957
9958 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9959
9960         update-copyright: implement forced reformatting
9961         * build-aux/update-copyright: Implement and document
9962         UPDATE_COPYRIGHT_FORCE.
9963         * tests/test-update-copyright.sh: Test it.
9964
9965 2009-08-14  Eric Blake  <ebb9@byu.net>
9966         and Bruno Haible  <bruno@clisp.org>
9967
9968         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
9969         * tests/test-locale.c: Revert previous patch related to NULL.
9970         * tests/test-stdio.c: Likewise.
9971         * tests/test-stdlib.c: Likewise.
9972         * tests/test-string.c: Likewise.
9973         * tests/test-unistd.c: Likewise.
9974         * modules/time-tests (Depends-on): Add verify.
9975         * modules/wchar-tests (Depends-on): Likewise.
9976         * tests/test-time.c: Test for NULL compliance.
9977         * tests/test-wchar.c: Likewise.
9978         * modules/locale (Depends-on): Add stddef.
9979         * modules/stdio (Depends-on): Likewise.
9980         * modules/stdlib (Depends-on): Likewise.
9981         * modules/string (Depends-on): Likewise.
9982         * modules/time (Depends-on): Likewise.
9983         * modules/unistd (Depends-on): Likewise.
9984         * modules/wchar (Depends-on): Likewise.
9985         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
9986         * lib/stdlib.in.h (includes): Likewise.
9987         * lib/string.in.h (includes): Likewise.
9988         * lib/time.in.h (includes): Likewise.
9989         * lib/unistd.in.h (includes): Likewise.
9990         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
9991         replaced.
9992         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9993         * m4/stddef_h.m4: New file.
9994         * modules/stddef: Likewise.
9995         * lib/stddef.in.h: Likewise.
9996         * modules/stddef-tests: Likewise.
9997         * tests/test-stddef.c: Likewise.
9998         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
9999         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10000         * doc/posix-headers/locale.texi (locale.h): Likewise.
10001         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10002         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10003         * doc/posix-headers/string.texi (string.h): Likewise.
10004         * doc/posix-headers/time.texi (time.h): Likewise.
10005         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10006         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10007
10008 2009-08-14  Eric Blake  <ebb9@byu.net>
10009
10010         doc: improve git diff of texinfo files
10011         * .gitattributes: Add rule for *.texi files, with hint on how to
10012         use it.
10013         Copied from m4, and based on a report by Bruno Haible.
10014
10015 2009-08-14  Bruno Haible  <bruno@clisp.org>
10016
10017         Disable multithread support by default on Cygwin 1.5.x for real.
10018         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10019
10020 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10021
10022         update-copyright: much ado about intervals
10023         * build-aux/update-copyright: Implement and document
10024         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10025         of copyright year intervals.
10026         Also, document UPDATE_COPYRIGHT_YEAR.
10027         * tests/test-update-copyright.sh: Test it.
10028
10029         update-copyright: convert 2-digit to 4-digit years
10030         * build-aux/update-copyright: Implement and document.
10031         * tests/test-update-copyright.sh: Update.
10032
10033 2009-08-14  Jim Meyering  <meyering@redhat.com>
10034
10035         test-exclude: avoid coreutils "make check" failure
10036         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10037         just as in test-argmatch.c.
10038
10039 2009-08-13  Eric Blake  <ebb9@byu.net>
10040
10041         test-dup2: fix bad assumption
10042         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10043         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10044
10045         test-version-etc: fix CRLF portability issue
10046         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10047         recognize \r.
10048         * tests/test-argp-version-etc-1.sh: Likewise.
10049
10050         getopt: update client modules
10051         * modules/argp (Depends-on): Use getopt-gnu.
10052         * modules/git-merge-changelog (Depends-on): Likewise.
10053         * modules/long-options (Depends-on): Likewise.
10054         * modules/xstrtol (Depends-on): Likewise.
10055
10056 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10057
10058         * tests/test-version-etc.sh: Don't fail on different
10059         project/version.  Don't fail on CRLF differences.  Rewrite to use
10060         multiple -e instead of multiple sed forks, suggested by Eric Blake
10061         <ebb9@byu.net>.
10062         * tests/test-argp-version-etc-1.sh: Likewise.
10063
10064 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10065
10066         * tests/test-version-etc.sh: Don't fail on different
10067         project/version.
10068
10069 2009-08-12  Bruno Haible  <bruno@clisp.org>
10070
10071         Tests for modules 'getopt-posix', 'getopt-gnu'.
10072         * modules/getopt-posix-tests: New file.
10073         * tests/test-getopt.c: New file.
10074         * tests/test-getopt.h: New file.
10075         * tests/test-getopt_long.h: New file.
10076
10077         New modules 'getopt-posix', 'getopt-gnu'.
10078         * modules/getopt-gnu: New file, renamed from modules/getopt.
10079         * modules/getopt-posix: New file.
10080         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10081         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10082         (gl_GETOPT): Remove macro.
10083         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10084         Disable the test against BSD systems that declare optreset. Test
10085         against mingw bug. Test against lack of support of optional arguments
10086         on many platforms.
10087         * doc/glibc-headers/getopt.texi: Update module name and list of
10088         relevant platforms.
10089         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10090         'getopt-gnu' and more portability problems.
10091         * NEWS: Mention the changes.
10092
10093 2009-08-12  Bruno Haible  <bruno@clisp.org>
10094
10095         Ensure that optarg etc. get declared by <unistd.h>.
10096         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10097         AC_USE_SYSTEM_EXTENSIONS.
10098         * modules/getopt (Depends-on): Add 'extensions'.
10099
10100 2009-08-12  Bruno Haible  <bruno@clisp.org>
10101
10102         Avoid test link errors.
10103         * modules/pipe-filter-ii-tests (Makefile.am): Define
10104         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10105         * modules/pipe-filter-gi-tests (Makefile.am): Define
10106         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10107         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10108
10109 2009-08-12  Bruno Haible  <bruno@clisp.org>
10110
10111         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10112         gl_GETOPT_SUBSTITUTE before.
10113         (gl_GETOPT): Use it.
10114         * m4/argp.m4 (gl_ARGP): Update.
10115         Reported by Sergey Poznyakoff.
10116
10117         * m4/getopt.m4: Reorder macros.
10118         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10119         (gl_GETOPT_SUBSTITUTE): Remove macro.
10120
10121 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10122
10123         Minor improvement in gitlog-to-changelog
10124
10125         * build-aux/gitlog-to-changelog: New option `--format' makes
10126         output format string configurable.
10127
10128 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10129
10130         Optimize exclude: use hash tables for non-wildcard patterns.
10131
10132         * lib/exclude.c: Include hash.h and mbuiter.h
10133         (struct exclude_pattern, exclude_segment): New data types.
10134         (struct exclude): Rewrite.
10135         (fnmatch_pattern_has_wildcards): New function.
10136         (new_exclude_segment, free_exclude_segment): New functions.
10137         (excluded_file_pattern_p, excluded_file_name_p): New functions.
10138         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10139         * lib/exclude.h (is_fnmatch_pattern): New prototype.
10140         * modules/exclude: Depend on hash and mbuiter.
10141
10142         * modules/exclude-tests: New file.
10143         * tests/test-exclude.c: New file.
10144         * tests/test-exclude1.sh: New file.
10145         * tests/test-exclude2.sh: New file.
10146         * tests/test-exclude3.sh: New file.
10147         * tests/test-exclude4.sh: New file.
10148         * tests/test-exclude5.sh: New file.
10149         * tests/test-exclude6.sh: New file.
10150         * tests/test-exclude7.sh: New file.
10151
10152 2009-08-12  Bruno Haible  <bruno@clisp.org>
10153
10154         Ensure that getopt() gets declared by <unistd.h>.
10155         * lib/unistd.in.h: Conditionally include getopt.h.
10156         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10157         Set GNULIB_UNISTD_H_GETOPT.
10158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10159         GNULIB_UNISTD_H_GETOPT.
10160         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10161
10162 2009-08-12  Bruno Haible  <bruno@clisp.org>
10163
10164         Clarify logic.
10165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10166         gl_replace_getopt instead of GETOPT_H.
10167
10168 2009-08-12  Bruno Haible  <bruno@clisp.org>
10169
10170         * m4/getopt.m4: Add comments.
10171
10172 2009-08-12  Bruno Haible  <bruno@clisp.org>
10173
10174         Disable multithread support by default on Cygwin 1.5.x.
10175         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10176         set gl_use_threads=no if not specified otherwise.
10177
10178 2009-08-11  Bruno Haible  <bruno@clisp.org>
10179
10180         Avoid compilation error on NetBSD 5.0.
10181         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10182         * tests/test-stdio.c: Likewise.
10183         * tests/test-stdlib.c: Likewise.
10184         * tests/test-string.c: Likewise.
10185         * tests/test-unistd.c: Likewise.
10186         Reported by Greg Troxel <gdt@ir.bbn.com>
10187         at <https://savannah.gnu.org/support/?106973>.
10188
10189 2009-08-11  Bruno Haible  <bruno@clisp.org>
10190
10191         * modules/dup2-tests (Depends-on): Remove close.
10192
10193         Undo 2009-07-19 commit.
10194         * modules/acl-tests (Depends-on): Remove close.
10195         * modules/binary-io-tests (Depends-on): Likewise.
10196         * modules/closein-tests (Depends-on): Likewise.
10197         * modules/flock-tests (Depends-on): Likewise.
10198         * modules/fsync-tests (Depends-on): Likewise.
10199         * modules/lseek-tests (Depends-on): Likewise.
10200         * modules/pipe-tests (Depends-on): Likewise.
10201         * modules/posix_spawn-tests (Depends-on): Likewise.
10202         * modules/posix_spawnp-tests (Depends-on): Likewise.
10203         * modules/stat-time-tests (Depends-on): Likewise.
10204         * modules/yesno-tests (Depends-on): Likewise.
10205
10206 2009-08-10  Bruno Haible  <bruno@clisp.org>
10207
10208         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10209
10210 2009-08-10  Bruno Haible  <bruno@clisp.org>
10211
10212         Fix a gcc warning.
10213         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10214
10215 2009-08-10  Bruno Haible  <bruno@clisp.org>
10216
10217         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10218         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10219         not only the first time.
10220         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10221         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10222         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10223         is 1, not only the the first time.
10224
10225 2009-08-10  Bruno Haible  <bruno@clisp.org>
10226
10227         Make it possible to use module 'gethostname' without module 'close'.
10228         * lib/unistd.in.h (close): Evoke a link error only if
10229         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10231         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10232         * modules/unistd (Makefile.am): Substitute
10233         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10234         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10235         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10236         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10237         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10238         * modules/sys_ioctl (Makefile.am): Substitute
10239         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10240         * modules/socket (configure.ac): On native Windows, set
10241         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10242         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10243         Reported by Sam Steingold <sds@gnu.org>.
10244
10245 2009-08-10  Bruno Haible  <bruno@clisp.org>
10246
10247         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10248         * modules/ioctl (configure.ac): Likewise.
10249
10250 2009-08-10  Bruno Haible  <bruno@clisp.org>
10251
10252         Avoid collision between gnulib wrapper and libintl wrapper.
10253         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10254         already defined in intl/printf.c.
10255         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10256         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10257
10258 2009-08-09  Bruno Haible  <bruno@clisp.org>
10259
10260         Make <sys/select.h> really self-contained, also on Solaris 10.
10261         * lib/sys_select.in.h: Include <string.h>.
10262         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10263         Solaris 10 problem.
10264         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10265         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10266         Reported by Jim Meyering.
10267
10268 2009-08-09  Bruno Haible  <bruno@clisp.org>
10269
10270         Avoid warnings from 'aclocal' that are due to a use of macro name
10271         AM_XGETTEXT_OPTION that is not defined in automake.
10272         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10273         automake.
10274         * modules/error (configure.ac): Likewise.
10275         * modules/propername (configure.ac): Likewise.
10276         * modules/vasprintf (configure.ac): Likewise.
10277         * modules/verror (configure.ac): Likewise.
10278         * modules/xprintf (configure.ac): Likewise.
10279         * modules/xvasprintf (configure.ac): Likewise.
10280
10281 2009-08-08  Bruno Haible  <bruno@clisp.org>
10282
10283         Avoid compilation error in C++ mode.
10284         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10285         Reported by Sam Steingold <sds@gnu.org>.
10286
10287 2009-08-08  Bruno Haible  <bruno@clisp.org>
10288
10289         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10290         for the various Unix platforms.
10291         * doc/posix-headers/limits.texi: Update platforms list regarding
10292         HOST_NAME_MAX.
10293         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10294
10295 2009-08-07  Jim Meyering  <meyering@redhat.com>
10296
10297         selinux-at: fix typo in a comment
10298         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
10299         Spotted by Paolo Bonzini.
10300
10301         selinux-at: remove redundant m4 code, add documentation
10302         * modules/selinux-at (configure.ac): Remove redundant code.
10303         LIB_SELINUX is already set via the dependent module, selinux-h.
10304         (Include): Add quotes around selinux-at.h.
10305         * lib/selinux-at.h: Add documentation.
10306         Reported by Bruno Haible in
10307         http://marc.info/?l=gnulib-bug&m=124958988300749
10308
10309 2009-08-07  Bruno Haible  <bruno@clisp.org>
10310
10311         Avoid link error on MacOS X 10.3 and 10.4.
10312         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
10313         on non-ELF systems.
10314         * lib/argp-pv.c (argp_program_version): Likewise.
10315         Reported by Simon Josefsson.
10316
10317 2009-08-07  Simon Josefsson  <simon@josefsson.org>
10318
10319         * tests/test-version-etc.sh: Use $EXEEXT.
10320
10321 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
10322
10323         update-copyright: update documentation to point to maint.mk
10324         * build-aux/update-copyright: Here.
10325
10326 2009-08-06  Jim Meyering  <meyering@redhat.com>
10327
10328         maint.mk: support update-copyright-local
10329         * top/maint.mk (update-copyright-local): Define place-holder.
10330         (update-copyright): Depend on $(update-copyright-local).
10331
10332 2009-08-06  Jim Meyering  <meyering@redhat.com>
10333
10334         selinux-at: new module
10335         Initially written for coreutils, this module will soon be
10336         used by findutils, too.
10337         * MODULES.html.sh [Misc]: Add selinux-at.
10338         * lib/selinux-at.h: New file, from coreutils.
10339         * lib/selinux-at.c: Likewise.
10340         * modules/selinux-at: Likewise.
10341         (License): Change from LGPL to GPL, since it depends
10342         on the GPL'd openat module.
10343
10344         doc: update README
10345         * README: Remove references to cogito.
10346         Remove cvs-repo-updating instructions from 2007.
10347         Don't imply that CVS is better if you have limited disk space.
10348
10349 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10350
10351         update-copyright: support C-style comments
10352         * build-aux/update-copyright: Implement and document.
10353         * tests/test-update-copyright.sh: Test.
10354
10355 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10356
10357         update-copyright: support omitted "(C)"
10358         * build-aux/update-copyright: Implement and document.  Also,
10359         allow variable whitespace before "(C)".
10360         * tests/test-update-copyright.sh: Test.
10361
10362 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10363
10364         update-copyright: don't trip on non-FSF copyright statements
10365         * build-aux/update-copyright: Fix so that the first correctly
10366         formatted FSF copyright statement is recognized no matter what
10367         appears before it.  Update documentation.
10368         * tests/test-update-copyright.sh: Test that.
10369
10370 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10371
10372         update-copyright: clean up code a little
10373         * build-aux/update-copyright: Append "_re" to the name of any
10374         variable holding a regular expression.
10375         Replace "old" and "new" with "stmt" in variable names.
10376         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
10377         handled correctly.
10378         Format code more consistently.
10379
10380 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10381
10382         update-copyright-tests: improve portability
10383         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
10384         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
10385
10386 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10387
10388         update-copyright: support @copyright{} and &copy;
10389         * build-aux/update-copyright: Implement and document.
10390         * tests/test-update-copyright.sh: Test.
10391
10392 2009-08-04  Jim Meyering  <meyering@redhat.com>
10393
10394         update-copyright-tests: correctly test EOL=\r\n handling
10395         * tests/test-update-copyright.sh: Put \r at the end of some lines
10396         for the dos-eol tests.  Based on a patch by Joel E. Denny.
10397
10398         maint.mk: make update-copyright exclusion list more configurable
10399         * top/maint.mk (update-copyright): Default to excluding COPYING,
10400         but allow an override, in case someone does want to update that file.
10401
10402         maint.mk: don't update copyright date in COPYING
10403         * top/maint.mk (update-copyright): Exclude COPYING.
10404
10405         maint.mk: add a copyright-updating rule
10406         * top/maint.mk (update-copyright): New rule.
10407         Derived from coreutils/Makefile.am.
10408
10409         update-copyright: rename some variables
10410         * build-aux/update-copyright: Rename a few variables for clarity.
10411         Tweak syntax.  List Joel E. Denny as coauthor.
10412
10413 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10414
10415         update-copyright: fix bug for 2-digit last year and add tests
10416         * build-aux/update-copyright: Fix bug.
10417         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
10418         specified.
10419         * modules/update-copyright-tests: New
10420         * tests/test-update-copyright.sh: New.
10421
10422 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10423
10424         update-copyright: handle leading tabs in line prefix
10425         * build-aux/update-copyright: Count leading tabs as 8 spaces
10426         when computing margin.  This helps with the formatting of
10427         ChangeLogs, for example.
10428         Fix documentation a little.
10429
10430 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10431
10432         update-copyright: support EOL=\r\n
10433         * build-aux/update-copyright: Implement that.
10434
10435 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10436
10437         update-copyright: automatically format copyright statements
10438         * build-aux/update-copyright: Implement that.
10439         Also, be a little more predictable and safer by always failing
10440         when the full copyright format is not perfectly recognized as an
10441         unbroken whole.  Discussed at
10442         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
10443         Rewrite documentation.
10444
10445 2009-08-03  Bruno Haible  <bruno@clisp.org>
10446
10447         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
10448
10449 2009-08-02  Bruno Haible  <bruno@clisp.org>
10450
10451         Tests for module 'uname'.
10452         * modules/uname-tests: New file.
10453         * tests/test-uname.c: New file.
10454
10455         New module 'uname'.
10456         * lib/uname.c: New file.
10457         * m4/uname.m4: New file.
10458         * modules/uname: New file.
10459         * doc/posix-functions/uname.texi: Mention the new module.
10460
10461 2009-08-02  Bruno Haible  <bruno@clisp.org>
10462
10463         Tests for module 'sys_utsname'.
10464         * modules/sys_utsname-tests: New file.
10465         * tests/test-sys_utsname.c: New file.
10466
10467         New module 'sys_utsname'.
10468         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
10469         * m4/sys_utsname_h.m4: New file.
10470         * modules/sys_utsname: New file.
10471         * doc/posix-headers/sys_utsname.texi: Mention the new module.
10472
10473 2009-08-02  Bruno Haible  <bruno@clisp.org>
10474
10475         Implicitly initialize the sockets library.
10476         * lib/gethostname.c: Include sockets.h.
10477         (rpl_gethostname): Invoke gl_sockets_startup.
10478         * lib/socket.c: Include sockets.h.
10479         (rpl_socket): Invoke gl_sockets_startup.
10480         * modules/gethostname (Depends-on): Add sockets.
10481         * modules/socket (Depends-on): Likewise.
10482         * tests/test-poll.c: Don't include sockets.h.
10483         (main): Don't invoke gl_sockets_startup.
10484         * tests/test-select.c: Don't include sockets.h.
10485         (main): Don't invoke gl_sockets_startup.
10486
10487 2009-08-02  Bruno Haible  <bruno@clisp.org>
10488
10489         Allow multiple calls to gl_sockets_startup.
10490         * lib/sockets.c (initialized_sockets_version): New variable.
10491         (gl_sockets_startup): Do nothing if already called for this or a higher
10492         version.
10493         (gl_sockets_cleanup): Reset initialized_sockets_version.
10494
10495 2009-08-03  Simon Josefsson  <simon@josefsson.org>
10496
10497         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
10498         different project/version.
10499
10500 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
10501             Bruno Haible  <bruno@clisp.org>
10502
10503         Tests for module 'pipe-filter-gi'.
10504         * modules/pipe-filter-gi-tests: New file.
10505         * tests/test-pipe-filter-gi1.sh: New file.
10506         * tests/test-pipe-filter-gi1.c: New file.
10507         * tests/test-pipe-filter-gi2.sh: New file.
10508         * tests/test-pipe-filter-gi2-main.c: New file.
10509         * tests/test-pipe-filter-gi2-child.c: New file.
10510
10511         New module 'pipe-filter-gi'.
10512         * lib/pipe-filter-gi.c: New file.
10513         * modules/pipe-filter-gi: New file.
10514
10515 2009-08-02  Bruno Haible  <bruno@clisp.org>
10516             Paolo Bonzini  <bonzini@gnu.org>
10517
10518         Tests for module 'pipe-filter-ii'.
10519         * modules/pipe-filter-ii-tests: New file.
10520         * tests/test-pipe-filter-ii1.sh: New file.
10521         * tests/test-pipe-filter-ii1.c: New file.
10522         * tests/test-pipe-filter-ii2.sh: New file.
10523         * tests/test-pipe-filter-ii2-main.c: New file.
10524         * tests/test-pipe-filter-ii2-child.c: New file.
10525
10526         New module 'pipe-filter-ii'.
10527         * lib/pipe-filter.h: New file.
10528         * lib/pipe-filter-ii.c: New file.
10529         * lib/pipe-filter-aux.h: New file.
10530         * modules/pipe-filter-ii: New file.
10531
10532 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10533
10534         * lib/gc-libgcrypt.c: Change copyright to FSF.
10535         * lib/gc-gnulib.c: Likewise.
10536
10537 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
10538
10539         * lib/gethostname.c: Include limits.h.
10540
10541 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10542             Bruno Haible  <bruno@clisp.org>
10543
10544         Ensure HOST_NAME_MAX as part of the gethostname module.
10545         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
10546         define also HOST_NAME_MAX.
10547         * tests/test-gethostname.c: Include <limits.h>.
10548         (main): Check also HOST_NAME_MAX.
10549         * doc/posix-headers/limits.texi: Document the mingw problem.
10550
10551 2009-08-02  Bruno Haible  <bruno@clisp.org>
10552
10553         * lib/gethostname.c (gethostname): Fix handling of large len argument.
10554         Add comments.
10555
10556 2009-03-31  Simon Josefsson  <simon@josefsson.org>
10557
10558         * lib/gethostname.c: Add Windows wrapper.
10559         * m4/gethostname.m4: Look for gethostname in -lws2_32.
10560         * modules/gethostname: Depend on sys_socket & errno, for also
10561         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
10562         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
10563
10564 2009-07-31  Jim Meyering  <meyering@redhat.com>
10565
10566         getloadavg: fix symbol name in comment
10567         * lib/getloadavg.c: Correct a typo I introduced when adding
10568         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
10569         Matt Kraai spotted the problem.
10570
10571 2009-07-29  Matt Kraai  <mkraai@beckman.com>
10572
10573         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
10574         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
10575         code also if ! defined N_NAME_POINTER.
10576         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
10577         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
10578         but the n_name member is a 12-byte array.
10579
10580 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
10581
10582         update-copyright: generalize comment handling
10583         * build-aux/update-copyright: Handle copyright statements
10584         within more comment styles.
10585         Document usage.
10586         Report any file with an external copyright holder or parse failure.
10587
10588 2009-07-29  Jim Meyering  <meyering@redhat.com>
10589
10590         mktime: correct setting of REPLACE_MKTIME
10591         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
10592
10593         update-copyright: new module
10594         * modules/update-copyright: New file.
10595         * build-aux/update-copyright: New file.
10596         * MODULES.html.sh (maint+release support): Add update-copyright.
10597
10598 2009-07-27  Bruno Haible  <bruno@clisp.org>
10599
10600         Fix compilation error when <ctime> is used and mktime is replaced.
10601         * lib/time.in.h (mktime): New declaration.
10602         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
10603         REPLACE_MKTIME instead of defining mktime in config.h.
10604         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
10605         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
10606         Reported by Ross McFarland <rwmcfa1@neces.com>.
10607
10608 2009-07-27  Bruno Haible  <bruno@clisp.org>
10609
10610         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
10611         Reported by Matt Kraai <mkraai@beckman.com>.
10612
10613 2009-07-25  Jim Meyering  <meyering@redhat.com>
10614
10615         maint.mk: avoid warnings about missing files
10616         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
10617         diagnostic when .prev-version does not exist.
10618         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
10619         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
10620         nonexistent cfg.mk.
10621         Suggestions from Simon Josefsson.
10622
10623 2009-07-25  Bruno Haible  <bruno@clisp.org>
10624
10625         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
10626         defined as macros. Needed on QNX 6.4.1.
10627         Reported by Matt Kraai <mkraai@beckman.com>.
10628
10629 2009-07-23  Jim Meyering  <meyering@redhat.com>
10630
10631         maint.mk: invoke "make dist" with a working value of XZ_OPT
10632         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
10633
10634 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
10635
10636         Make fseeko.c compile on QNX.
10637         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
10638
10639 2009-07-22  Peter Simons  <simons@cryp.to>
10640
10641         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
10642         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
10643         * lib/md4.h: Likewise.
10644         * lib/md5.h: Likewise.
10645         * lib/sha1.h: Likewise.
10646         * lib/sha256.h: Likewise.
10647         * lib/sha512.h: Likewise.
10648
10649         tests-sha1: don't assign literal string to 'char *' variable
10650         * tests/test-sha1.c (main): Declare locals with "const" to match
10651         attributes of the right hand side.
10652
10653 2009-07-21  Eric Blake  <ebb9@byu.net>
10654
10655         dup2: fix more mingw problems
10656         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
10657         fd to itself.
10658         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10659         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
10660         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
10661         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
10662         care of mingw bugs.
10663
10664 2009-07-21  Jim Meyering  <meyering@redhat.com>
10665
10666         vc-list-files: avoid failure when /bin/sh is dash
10667         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
10668         On some Debian based systems, /bin/sh is a symlink to dash, and running
10669         this command would omit the "/" following each 'tests' prefix:
10670           dash -x build-aux/vc-list-files -C . tests
10671         That is because bash and dash work differently:
10672           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
10673           bash ok
10674           dash odd
10675
10676 2009-07-21  Eric Blake  <ebb9@byu.net>
10677
10678         dup2-tests: test previous patch
10679         * modules/dup2-tests: New file.
10680         * tests/test-dup2.c: Likewise.
10681         * tests/test-open.c (main): Avoid unspecified behavior.
10682         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
10683         test.
10684
10685         dup2: work around mingw and cygwin 1.5 bug
10686         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
10687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10688         * modules/unistd (Makefile.am): Substitute it.
10689         * lib/unistd.in.h (dup2): Declare the replacement.
10690         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
10691         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
10692         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
10693         * modules/execute (Depends-on): Add dup2.
10694         * modules/fseterr (Depends-on): Likewise.
10695         * modules/pipe (Depends-on): Likewise.
10696         * modules/posix_spawn-internal (Depends-on): Likewise.
10697
10698 2009-07-21  Bruno Haible  <bruno@clisp.org>
10699
10700         * modules/.gitattributes: New file.
10701
10702 2009-07-20  Bruno Haible  <bruno@clisp.org>
10703
10704         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
10705         (main): Use it.
10706
10707 2009-07-20  Eric Blake  <ebb9@byu.net>
10708
10709         test-pipe: make a bit more robust.
10710         * tests/test-pipe.c (myerr): Allow error messages regardless of
10711         what we do to stderr.
10712         (test_pipe): Rearrange to avoid deadlock.
10713         (child_main): Try a larger read, to ensure we avoided deadlock.
10714         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
10715         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
10716         if misused.
10717
10718 2009-07-19  Jim Meyering  <meyering@redhat.com>
10719
10720         fts: avoid false-positive cycle-detection
10721         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
10722         for each new command line argument.
10723
10724 2009-07-19  Bruno Haible  <bruno@clisp.org>
10725
10726         Fix build error on mingw with the modules sys_select and unistd.
10727         * modules/acl-tests (Depends-on): Add close.
10728         * modules/binary-io-tests (Depends-on): Likewise.
10729         * modules/closein-tests (Depends-on): Likewise.
10730         * modules/flock-tests (Depends-on): Likewise.
10731         * modules/fsync-tests (Depends-on): Likewise.
10732         * modules/lseek-tests (Depends-on): Likewise.
10733         * modules/pipe-tests (Depends-on): Likewise.
10734         * modules/posix_spawn-tests (Depends-on): Likewise.
10735         * modules/posix_spawnp-tests (Depends-on): Likewise.
10736         * modules/stat-time-tests (Depends-on): Likewise.
10737         * modules/yesno-tests (Depends-on): Likewise.
10738
10739 2009-07-19  Bruno Haible  <bruno@clisp.org>
10740
10741         Unify conditionals.
10742         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
10743         macros, not at the compiler macros.
10744         * lib/pipe.c: Likewise.
10745         * lib/execute.c: Likewise.
10746         * lib/spawni.c: Likewise.
10747
10748 2009-07-19  Bruno Haible  <bruno@clisp.org>
10749
10750         Fix handling of closed stdin/stdout/stderr on mingw.
10751         * lib/w32spawn.h: Include unistd.h.
10752         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
10753         file descriptor with O_NOINHERIT flag.
10754         (fd_safer_noinherit): New function, based on fd-safer.c.
10755         (dup_safer_noinherit): New function, based on dup-safer.c.
10756         (undup_safer_noinherit): New function.
10757         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
10758         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
10759         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
10760         instead of fd_safer.
10761         * tests/test-pipe.c: Include <windows.h>.
10762         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
10763
10764         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
10765         from main.
10766         (test_pipe): Pass an extra argument for disambiguation.
10767         (main): Invoke parent_main or child_main.
10768
10769         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
10770         consistently.
10771
10772 2009-07-18  Eric Blake  <ebb9@byu.net>
10773
10774         test-pipe: fix mingw build
10775         * tests/test-pipe.c (main): Avoid fcntl on mingw.
10776
10777 2009-07-18  Bruno Haible  <bruno@clisp.org>
10778
10779         * modules/pipe-tests (Makefile.am): Fix typo.
10780
10781 2009-07-18  Eric Blake  <ebb9@byu.net>
10782
10783         error: fix mingw build
10784         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
10785         Reported by Bruno Haible.
10786
10787         error: avoid undefined use of stdout
10788         * lib/error.c (error, error_at_line): Check that fd 1 is open
10789         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
10790         is handling faults and the close_stdout module wants to report the
10791         detection of closed stdout as an error.
10792
10793 2009-07-17  Eric Blake  <ebb9@byu.net>
10794
10795         pipe: be robust in face of closed fds
10796         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
10797         should cause child to misbehave.
10798         * modules/pipe-tests: New module.
10799         * tests/test-pipe.c: New file.
10800         * tests/test-pipe.sh: New file.
10801         Reported by Akim Demaille.
10802
10803 2009-07-14  Bruno Haible  <bruno@clisp.org>
10804
10805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
10806         Reported by anonymous kc.
10807
10808 2009-07-07  Jim Meyering  <meyering@redhat.com>
10809
10810         maint.mk: don't look for translatable strings in *.m4 or *.mk
10811         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
10812         when searching for translatable strings.
10813
10814 2009-07-05  Jim Meyering  <meyering@redhat.com>
10815
10816         remove superfluous parentheses in STREQ definition
10817         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
10818         * lib/getugroups.c (STREQ): Likewise.
10819         * lib/fnmatch.c (STREQ): Likewise.
10820         Spotted by Bruno Haible.
10821
10822 2009-07-04  Jim Meyering  <meyering@redhat.com>
10823
10824         argv-iter: new module
10825         * MODULES.html.sh: Add argv-iter.
10826         * lib/argv-iter.c, lib/argv-iter.h: New files.
10827         * modules/argv-iter: New file.
10828         * modules/argv-iter-tests: New file.
10829         * tests/test-argv-iter.c: Test it.
10830
10831 2009-07-04  Bruno Haible  <bruno@clisp.org>
10832
10833         Fix assertion.
10834         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
10835         contains more exact copies of a given entry than file2, leave the extra
10836         copies unpaired rather than aborting.
10837         Reported by Eric Blake.
10838
10839 2009-07-02  Bruno Haible  <bruno@clisp.org>
10840
10841         Speedup git-merge-changelog for git cherry-pick.
10842         * lib/git-merge-changelog.c (struct entries_mapping): New type.
10843         (entries_mapping_get): New function, extracted from compute_mapping.
10844         (entries_mapping_reverse_get): New function.
10845         (compute_mapping): Add a 'full' argument. Return the result in a
10846         'struct entries_mapping'.
10847         (main): Update. Access the mappings through entries_mapping_get.
10848         Reported by Eric Blake.
10849
10850 2009-07-02  Bruno Haible  <bruno@clisp.org>
10851
10852         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
10853         best_i.
10854
10855 2009-07-02  Bruno Haible  <bruno@clisp.org>
10856
10857         Speed up approximate search for matching ChangeLog entries.
10858         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
10859         argument. Call fstrcmp_bounded instead of fstrcmp.
10860         (compute_mapping, try_split_merged_entry, main): Update callers.
10861
10862 2009-07-02  Bruno Haible  <bruno@clisp.org>
10863
10864         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
10865
10866 2009-06-30  Bruno Haible  <bruno@clisp.org>
10867
10868         Reduce the number of uc_is_cased calls.
10869         * lib/unicase.h (casing_suffix_context_t): Add
10870         'first_char_except_ignorable' field.
10871         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
10872         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
10873         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
10874         Update initializer.
10875         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
10876         case-ignorable characters.
10877         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
10878         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
10879         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
10880         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
10881         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
10882
10883 2009-06-30  Bruno Haible  <bruno@clisp.org>
10884
10885         Tests for module 'unicase/ignorable'.
10886         * modules/unicase/ignorable-tests: New file.
10887         * tests/unicase/test-ignorable.c: New file, generated by
10888         gen-uni-tables.
10889
10890         Tests for module 'unicase/cased'.
10891         * modules/unicase/cased-tests: New file.
10892         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
10893         * tests/unicase/test-predicate-part1.h: New file, derived from
10894         tests/unictype/test-predicate-part1.h.
10895         * tests/unicase/test-predicate-part2.h: New file, same as
10896         tests/unictype/test-predicate-part2.h.
10897
10898         Fix evaluation of "Before C" condition of FINAL_SIGMA.
10899         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
10900         (output_casing_properties): New function.
10901         (main): Call it.
10902         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
10903         * lib/unicase/cased.c: Include unictype/bitmap.h.
10904         (uc_is_cased): Define through a bitmap lookup.
10905         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
10906         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
10907         (uc_is_case_ignorable): Define through a bitmap lookup.
10908         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
10909         lib/unictype/bitmap.h.
10910         (Depends-on): Add inline. Clean up.
10911         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
10912         lib/unictype/bitmap.h.
10913         (Depends-on): Add inline. Clean up.
10914         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
10915         recognition.
10916         * tests/unicase/test-u16-tolower.c (main): Likewise.
10917         * tests/unicase/test-u32-tolower.c (main): Likewise.
10918
10919 2009-06-30  Bruno Haible  <bruno@clisp.org>
10920
10921         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
10922         * lib/unicase/u16-casemap.c: Likewise.
10923         * lib/unicase/u32-casemap.c: Likewise.
10924
10925 2009-06-29  Bruno Haible  <bruno@clisp.org>
10926
10927         Define u32_casefold as a wrapper around u32_ct_casefold.
10928         * lib/unicase/u32-casefold.c: Update.
10929         * modules/unicase/u32-casefold (Depends-on): Add
10930         unicase/u32-ct-casefold, unicase/empty-prefix-context,
10931         unicase/empty-suffix-context. Clean up.
10932
10933         Define u16_casefold as a wrapper around u16_ct_casefold.
10934         * lib/unicase/u16-casefold.c: Update.
10935         * modules/unicase/u16-casefold (Depends-on): Add
10936         unicase/u16-ct-casefold, unicase/empty-prefix-context,
10937         unicase/empty-suffix-context. Clean up.
10938
10939         Define u8_casefold as a wrapper around u8_ct_casefold.
10940         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
10941         * lib/unicase/u8-casefold.c: Update.
10942         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
10943         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10944
10945         Define u32_totitle as a wrapper around u32_ct_totitle.
10946         * lib/unicase/u32-totitle.c: Update.
10947         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
10948         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10949
10950         Define u16_totitle as a wrapper around u16_ct_totitle.
10951         * lib/unicase/u16-totitle.c: Update.
10952         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
10953         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10954
10955         Define u8_totitle as a wrapper around u8_ct_totitle.
10956         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
10957         functions.
10958         (FUNC): Delegate to U_CT_TOTITLE.
10959         * lib/unicase/u8-totitle.c: Update.
10960         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
10961         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10962
10963         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
10964         invocation.
10965         * modules/unicase/u32-tolower (Depends-on): Add
10966         unicase/empty-prefix-context, unicase/empty-suffix-context.
10967
10968         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
10969         invocation.
10970         * modules/unicase/u16-tolower (Depends-on): Add
10971         unicase/empty-prefix-context, unicase/empty-suffix-context.
10972
10973         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
10974         * modules/unicase/u8-tolower (Depends-on): Add
10975         unicase/empty-prefix-context, unicase/empty-suffix-context.
10976
10977         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
10978         invocation.
10979         * modules/unicase/u32-toupper (Depends-on): Add
10980         unicase/empty-prefix-context, unicase/empty-suffix-context.
10981
10982         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
10983         invocation.
10984         * modules/unicase/u16-toupper (Depends-on): Add
10985         unicase/empty-prefix-context, unicase/empty-suffix-context.
10986
10987         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
10988         * modules/unicase/u8-toupper (Depends-on): Add
10989         unicase/empty-prefix-context, unicase/empty-suffix-context.
10990
10991         New module 'unicase/u32-ct-casefold'.
10992         * lib/unicase/u32-ct-casefold.c: New file.
10993         * modules/unicase/u32-ct-casefold: New file.
10994
10995         New module 'unicase/u16-ct-casefold'.
10996         * lib/unicase/u16-ct-casefold.c: New file.
10997         * modules/unicase/u16-ct-casefold: New file.
10998
10999         New module 'unicase/u8-ct-casefold'.
11000         * lib/unicase/u8-ct-casefold.c: New file.
11001         * lib/unicase/u-ct-casefold.h: New file, derived from
11002         lib/unicase/u-casefold.h.
11003         * modules/unicase/u8-ct-casefold: New file.
11004
11005         New module 'unicase/u32-ct-totitle'.
11006         * lib/unicase/u32-ct-totitle.c: New file.
11007         * modules/unicase/u32-ct-totitle: New file.
11008
11009         New module 'unicase/u16-ct-totitle'.
11010         * lib/unicase/u16-ct-totitle.c: New file.
11011         * modules/unicase/u16-ct-totitle: New file.
11012
11013         New module 'unicase/u8-ct-totitle'.
11014         * lib/unicase/u8-ct-totitle.c: New file.
11015         * lib/unicase/u-ct-totitle.h: New file, derived from
11016         lib/unicase/u-totitle.h.
11017         * modules/unicase/u8-ct-totitle: New file.
11018
11019         New module 'unicase/u32-ct-tolower'.
11020         * lib/unicase/u32-ct-tolower.c: New file.
11021         * modules/unicase/u32-ct-tolower: New file.
11022
11023         New module 'unicase/u16-ct-tolower'.
11024         * lib/unicase/u16-ct-tolower.c: New file.
11025         * modules/unicase/u16-ct-tolower: New file.
11026
11027         New module 'unicase/u8-ct-tolower'.
11028         * lib/unicase/u8-ct-tolower.c: New file.
11029         * modules/unicase/u8-ct-tolower: New file.
11030
11031         New module 'unicase/u32-ct-toupper'.
11032         * lib/unicase/u32-ct-toupper.c: New file.
11033         * modules/unicase/u32-ct-toupper: New file.
11034
11035         New module 'unicase/u16-ct-toupper'.
11036         * lib/unicase/u16-ct-toupper.c: New file.
11037         * modules/unicase/u16-ct-toupper: New file.
11038
11039         New module 'unicase/u8-ct-toupper'.
11040         * lib/unicase/u8-ct-toupper.c: New file.
11041         * modules/unicase/u8-ct-toupper: New file.
11042
11043         Add context arguments to u*_casemap functions.
11044         * lib/unicase/unicasemap.h: Include unicase.h.
11045         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11046         suffix_context arguments.
11047         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11048         functions.
11049         (FUNC): Add prefix_context and suffix_context arguments. Use
11050         uc_is_cased and uc_is_case_ignorable.
11051         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11052         * lib/unicase/u16-casemap.c: Likewise.
11053         * lib/unicase/u32-casemap.c: Likewise.
11054         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11055         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11056         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11057         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11058         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11059         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11060
11061         New module 'unicase/u32-suffix-context'.
11062         * lib/unicase/u32-suffix-context.c: New file.
11063         * modules/unicase/u32-suffix-context: New file.
11064
11065         New module 'unicase/u16-suffix-context'.
11066         * lib/unicase/u16-suffix-context.c: New file.
11067         * modules/unicase/u16-suffix-context: New file.
11068
11069         New module 'unicase/u8-suffix-context'.
11070         * lib/unicase/u8-suffix-context.c: New file.
11071         * lib/unicase/u-suffix-context.h: New file.
11072         * modules/unicase/u8-suffix-context: New file.
11073
11074         New module 'unicase/empty-suffix-context'.
11075         * lib/unicase/empty-suffix-context.c: New file.
11076         * modules/unicase/empty-suffix-context: New file.
11077
11078         New module 'unicase/u32-prefix-context'.
11079         * lib/unicase/u32-prefix-context.c: New file.
11080         * modules/unicase/u32-prefix-context: New file.
11081
11082         New module 'unicase/u16-prefix-context'.
11083         * lib/unicase/u16-prefix-context.c: New file.
11084         * modules/unicase/u16-prefix-context: New file.
11085
11086         New module 'unicase/u8-prefix-context'.
11087         * lib/unicase/u8-prefix-context.c: New file.
11088         * lib/unicase/u-prefix-context.h: New file.
11089         * lib/unicase/context.h: New file.
11090         * modules/unicase/u8-prefix-context: New file.
11091
11092         New module 'unicase/empty-prefix-context'.
11093         * lib/unicase/empty-prefix-context.c: New file.
11094         * modules/unicase/empty-prefix-context: New file.
11095
11096         New module 'unicase/ignorable'.
11097         * lib/unicase/ignorable.c: New file.
11098         * modules/unicase/ignorable: New file.
11099
11100         New module 'unicase/cased'.
11101         * lib/unicase/caseprop.h: New file.
11102         * lib/unicase/cased.c: New file.
11103         * modules/unicase/cased: New file.
11104
11105         New functions for case mapping of substrings.
11106         * lib/unicase.h (casing_prefix_context_t): New type.
11107         (unicase_empty_prefix_context): New variable.
11108         (u8_casing_prefix_context, u16_casing_prefix_context,
11109         u32_casing_prefix_context, u8_casing_prefixes_context,
11110         u16_casing_prefixes_context, u32_casing_prefixes_context): New
11111         declarations.
11112         (casing_suffix_context_t): New type.
11113         (unicase_empty_suffix_context): New variable.
11114         (u8_casing_suffix_context, u16_casing_suffix_context,
11115         u32_casing_suffix_context, u8_casing_suffixes_context,
11116         u16_casing_suffixes_context, u32_casing_suffixes_context,
11117         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11118         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11119         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11120         declarations.
11121
11122 2009-06-28  Jim Meyering  <meyering@redhat.com>
11123
11124         boostrap: indent only with spaces
11125         * build-aux/bootstrap: Indent only with spaces, never TABs.
11126
11127         bootstrap: split long lines
11128         * build-aux/bootstrap: Keep line length < 80.
11129
11130         bootstrap: sync from coreutils
11131         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11132         just as autoreconf does.  Verify a list of prerequisite
11133         package-name,version-number pairs if defined in bootstrap.conf.
11134         Refer to README-prereq, if prerequisites are not satisfied.
11135
11136 2009-06-27  Eric Blake  <ebb9@byu.net>
11137
11138         tests: add test for bogus NULL definition
11139         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11140         * tests/test-stdlib.c: Likewise.
11141         * tests/test-string.c: Likewise.
11142         * tests/test-locale.c: Likewise.
11143         * tests/test-unistd.c: Likewise.
11144         * modules/stdio-tests (Depends-on): Add verify.
11145         * modules/stdlib-tests (Depends-on): Likewise.
11146         * modules/string-tests (Depends-on): Likewise.
11147         * modules/locale-tests (Depends-on): Likewise.
11148         * modules/unistd-tests (Depends-on): Likewise.
11149
11150 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11151
11152         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11153         self-explaining comment.
11154         * m4/selinux-selinux-h: Update serial.
11155         (gl_LIBSELINUX): New macro, adding a warning for missing development
11156         packages to code extracted from...
11157         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
11158         Add warning for missing development packages here, too.
11159
11160 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
11161
11162         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11163
11164 2009-06-25  Eric Blake  <ebb9@byu.net>
11165
11166         version-etc: fix regression
11167         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11168         gcc.
11169         (version_etc): Use it, to catch bugs with trailing NULL.
11170         * lib/version-etc.c (version_etc_arn): Delete unused argument.
11171         (version_etc_va): Fix logic bug.
11172         * modules/version-etc-tests: Add test.
11173         * tests/test-version-etc.c: New file.
11174         * tests/test-version-etc.sh: Likewise.
11175
11176 2009-06-25  Sam Steingold  <sds@gnu.org>
11177
11178         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11179         mbtowc declaration.
11180
11181 2009-06-25  Eric Blake  <ebb9@byu.net>
11182
11183         fpurge: migrate into <stdio.h>
11184         * lib/fpurge.h: Delete...
11185         * lib/stdio.in.h (fpurge): ...and declare here, instead.
11186         * lib/fpurge.c (fpurge): Change declaring header.
11187         * modules/fpurge (Files): Drop deleted file.
11188         (Depends-on): Add stdio.
11189         (configure.ac): Set witness.
11190         * modules/stdio (Makefile.am): Support fpurge macros.
11191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11192         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11193         * lib/fflush.c: Update client.
11194         * tests/test-fpurge.c: Likewise.
11195         * NEWS: Mention the change.
11196
11197 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11198
11199         * lib/argp-version-etc.c (program_authors): Add const
11200         qualifier.
11201         * lib/version-etc.c: Fix typos in the comments.
11202         * modules/argp-version-etc: Depends on version-etc.
11203
11204 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11205
11206         argp-version-etc: new module.
11207
11208         * lib/argp-version-etc.c: New file.
11209         * lib/argp-version-etc.h: New file.
11210         * modules/argp-version-etc: New file.
11211         * modules/argp-version-etc-tests: New file.
11212         * tests/test-argp-version-etc.c: New test.
11213         * tests/test-argp-version-etc-1.sh: New test.
11214
11215 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11216
11217         Provide additional interfaces and documentation for version-etc
11218         module.
11219
11220         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11221         interfaces.
11222         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11223         prototypes.
11224
11225 2009-06-24  Bruno Haible  <bruno@clisp.org>
11226
11227         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11228         HAVE_LIB${NAME} macro.
11229         Reported by Sam Steingold <sds@gnu.org>.
11230
11231 2009-06-23  Simon Josefsson  <simon@josefsson.org>
11232
11233         * modules/hash-tests (test_hash_LDADD): Link to libintl when
11234         needed.
11235
11236 2009-06-21  Bruno Haible  <bruno@clisp.org>
11237
11238         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11239         work.
11240         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11241         together with LIB${NAME}, LTLIB${NAME}.
11242         Reported by Sam Steingold <sds@gnu.org>.
11243
11244 2009-06-20  Jim Meyering  <meyering@redhat.com>
11245
11246         tests: make sc_require_test_exit_idiom more generic
11247         * top/maint.mk (Exit_witness_file): New overridable variable.
11248         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11249         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11250
11251 2009-06-19  Jim Meyering  <meyering@redhat.com>
11252
11253         hash: reverse order of src/dst parameters in an internal interface
11254         * lib/hash.c (transfer_entries): Reverse order of parameters to
11255         put DST before SRC.  Adjust callers.
11256
11257         tests: test-hash: avoid wholesale duplication
11258         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11259         Instead, use a loop and add a single conditional.
11260
11261         tests: test-hash: allow seed selection via a command line argument
11262         * tests/test-hash.c (get_seed): New function.
11263         (main): Use it.
11264
11265 2009-06-19  Eric Blake  <ebb9@byu.net>
11266
11267         hash: avoid memory leak on allocation failure
11268         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11269         failure.  Factor repeated algorithm...
11270         (transfer_entries): ...into new helper routine.
11271         (hash_delete): React to hash_rehash return value.
11272
11273         hash: reduce memory pressure in hash_rehash no-op case
11274         * lib/hash.c (next_prime): Avoid overflow.
11275         (hash_initialize): Factor bucket size computation...
11276         (compute_bucket_size): ...into new helper function.
11277         (hash_rehash): Use new function and open coding to reduce memory
11278         pressure, and avoid a memory leak in USE_OBSTACK code.
11279         Reported by Jim Meyering.
11280
11281 2009-06-18  Eric Blake  <ebb9@byu.net>
11282
11283         hash: make rotation more obvious
11284         * modules/hash (Depends-on): Add bitrotate and stdint.
11285         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11286         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
11287         (SIZE_MAX): Rely on headers for definition.
11288         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11289         (raw_hasher): Use rotr_sz.
11290         Suggested by Jim Meyering.
11291
11292         hash: fix memory leak in last patch
11293         * lib/hash.c (hash_rehash): Avoid memory leak.
11294
11295         hash: avoid no-op rehashing
11296         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
11297
11298         hash: provide default callback functions
11299         * lib/hash.c (raw_hasher, raw_comparator): New functions.
11300         (hash_initialize): Use them as defaults.
11301         * tests/test-hash.c (main): Test this.
11302
11303         hash: minor optimization
11304         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
11305         when possible.
11306         (hash_initialize): Document this promise.
11307         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
11308         * tests/test-hash.c (hash_compare_strings): Test this.
11309
11310 2009-06-18  Bruno Haible  <bruno@clisp.org>
11311
11312         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
11313         going to be replaced anyway.
11314
11315 2009-06-18  Bruno Haible  <bruno@clisp.org>
11316
11317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
11318         in one place.
11319         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
11320         be replaced anyway.
11321
11322 2009-06-18  Eric Blake  <ebb9@byu.net>
11323
11324         hash: check for resize before insertion
11325         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
11326         threshold before insertion, so that a pathological hash_rehash
11327         that fills every bucket can still trigger another rehash.
11328
11329 2009-06-18  Jim Meyering  <meyering@redhat.com>
11330
11331         hash-tests: add a loop around the small tests
11332         * tests/test-hash.c (main): Repeat small tests with selected
11333         small initial table sizes.
11334
11335 2009-06-17  Eric Blake  <ebb9@byu.net>
11336
11337         hash: minor cleanups
11338         * lib/hash.h (hash_entry): Make opaque, by moving...
11339         * lib/hash.c (hash_entry): ...here.
11340         (hash_insert): Clarify restrictions on what can be inserted.
11341         (hash_get_next): Clarify when it is safe to remove an element
11342         during traversal.
11343         (check_tuning): Skip verification when tuning is known safe.
11344         (hash_initialize): Clarify restrictions on tuning.
11345
11346 2009-06-17  Jim Meyering  <jim@meyering.net>
11347         and Eric Blake  <ebb9@byu.net>
11348
11349         hash-tests: new module
11350         * modules/hash-tests: New file.
11351         * tests/test-hash.c: New file.
11352
11353 2009-06-17  Eric Blake  <ebb9@byu.net>
11354
11355         strstr-simple: document new module
11356         * MODULES.html.sh: Document new module.
11357
11358         strstr, strcasestr: replace on platforms with broken memchr
11359         * modules/strstr: Split into...
11360         * modules/strstr-simple: ...new module that does not care about
11361         performance, but does care about glibc bug.
11362         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
11363         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
11364         if platform memchr is broken, per Debian bug 521737.
11365         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
11366         memchr.
11367         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
11368         * doc/posix-functions/strstr.texi (strstr): Document the fix.
11369         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11370         * modules/mountlist (Depends-on): Add strstr-simple.
11371         * modules/gen-uni-tables (Depends-on): Likewise.
11372         * modules/argz (Depends-on): Add strstr.
11373
11374 2009-06-17  Bruno Haible  <bruno@clisp.org>
11375
11376         * modules/posix_spawn-internal (Depends-on): Add errno.
11377
11378 2009-06-17  Bruno Haible  <bruno@clisp.org>
11379
11380         Define missing ESTALE on Interix 3.5.
11381         * lib/errno.in.h (ESTALE): Assign a value if missing.
11382         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
11383         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
11384         missing.
11385         * doc/posix-headers/errno.texi: Mention the Interix bug.
11386         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
11387
11388 2009-06-15  Eric Blake  <ebb9@byu.net>
11389
11390         memchr, memchr2: add valgrind exception
11391         * lib/memchr.valgrind: New file.
11392         * lib/memchr2.valgrind: New file.
11393         * modules/memchr (Files): Distribute valgrind file.
11394         * modules/memchr2 (Files): Likewise.
11395
11396         docs: memchr is no longer obsolete
11397         * MODULES.html.sh: Move memchr from obsolete to string.h section.
11398         * lib/string.in.h (memchr): Simplify logic.
11399
11400 2009-06-14  Jim Meyering  <meyering@redhat.com>
11401
11402         link-follow: fix the "checking..." message to not mention trailing slash
11403         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
11404         never considered trailing slashes.
11405
11406 2009-06-14  Bruno Haible  <bruno@clisp.org>
11407
11408         * m4/memchr.m4: Mention also the bug on IA-64.
11409         * doc/posix-functions/memchr.texi: Likewise.
11410
11411 2009-06-12  Eric Blake  <ebb9@byu.net>
11412
11413         memchr: detect broken x86_64 and alpha implementations
11414         * modules/memchr-tests (Depends-on): Move mmap detection...
11415         * modules/memchr (Depends-on): ...here.
11416         (configure.ac): Set indicator.
11417         * lib/string.in.h (memchr): Declare replacement.
11418         * modules/string (Makefile.am): Trigger replacement.
11419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
11420         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
11421         bugs.
11422         * doc/posix-functions/memchr.texi (memchr): Document the bug.
11423         * modules/getpagesize (License): Relax license.
11424
11425 2009-06-11  Bruno Haible  <bruno@clisp.org>
11426
11427         * lib/idpriv.h: Add more references.
11428
11429 2009-06-08  Bruno Haible  <bruno@clisp.org>
11430
11431         Tests for module 'idpriv-droptemp'.
11432         * modules/idpriv-droptemp-tests: New file.
11433         * tests/test-idpriv-droptemp.sh: New file.
11434         * tests/test-idpriv-droptemp.su.sh: New file.
11435         * tests/test-idpriv-droptemp.c: New file.
11436
11437         New module 'idpriv-droptemp'.
11438         * lib/idpriv-droptemp.c: New file.
11439         * modules/idpriv-droptemp: New file.
11440
11441 2009-06-08  Bruno Haible  <bruno@clisp.org>
11442
11443         Tests for module 'idpriv-drop'.
11444         * modules/idpriv-drop-tests: New file.
11445         * tests/test-idpriv-drop.sh: New file.
11446         * tests/test-idpriv-drop.su.sh: New file.
11447         * tests/test-idpriv-drop.c: New file.
11448
11449         New module 'idpriv-drop'.
11450         * lib/idpriv.h: New file.
11451         * lib-idpriv-drop.c: New file.
11452         * m4/idpriv.m4: New file.
11453         * modules/idpriv-drop: New file.
11454
11455 2009-06-08  Bruno Haible  <bruno@clisp.org>
11456
11457         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
11458         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11459         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11460         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11461         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11462         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11463         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11464
11465 2009-06-08  Eric Blake  <ebb9@byu.net>
11466
11467         test-strstr: use memory fence, when possible
11468         * tests/test-strstr.c (main): Use memory fence, in order to be
11469         more likely to trigger Debian bug 521737.
11470         * modules/strstr-tests (Files): Pull in additional files.
11471
11472         memchr: no longer obsolete, for wider field testing
11473         * modules/memchr (Status, Notice): Delete, this module is no
11474         longer obsolete.
11475         * modules/vasnprintf (Depends-on): Add memchr.
11476
11477 2009-06-07  Jim Meyering  <meyering@redhat.com>
11478
11479         hash: declare some functions with the warn_unused_result attribute
11480         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
11481
11482 2009-06-07  Bruno Haible  <bruno@clisp.org>
11483
11484         * tests/test-alignof.c: Don't test int64_t if it does not exist.
11485         Reported by Eric Blake.
11486
11487 2009-06-06  Eric Blake  <ebb9@byu.net>
11488
11489         test-alignof: fix typo with long double
11490         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
11491         compiler error.
11492
11493 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
11494
11495         Escape non-texinfo { and }s.
11496         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
11497         markup error.
11498
11499 2009-06-04  Jim Meyering  <meyering@redhat.com>
11500
11501         gitlog-to-changelog: don't infloop on an empty commit log
11502         * build-aux/gitlog-to-changelog: Warn about an empty log message.
11503         Reported by Boris Petersen <transacid@centerim.org>.
11504
11505 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
11506
11507         version-etc: extend for packagers
11508         Add three new configure options, intended for packagers:
11509           --with-packager="packager name"
11510           --with-packager-version="packager-specific version"
11511           --with-packager-bug-reports="packager bug reporting"
11512         An example with coreutils:
11513           $ ./configure \
11514             --with-packager=Gentoo \
11515             --with-packager-bug-report=http://bugs.gentoo.org/ \
11516             --with-packager-version="patchset 1.6"
11517           $ ./src/ls --version | head -n2
11518           ls (GNU coreutils) 7.1-dirty
11519           Packaged by Gentoo (patchset 1.6)
11520         Note that the bug reporting info via --help doesn't show up because
11521         coreutils uses its own custom emit_bug_reporting_address() implementation
11522         in src/system.h.  If it didn't, it'd look like:
11523           $ ./src/ls --help | tail -n4
11524           Report bugs to <bug-coreutils@gnu.org>.
11525           Report Gentoo bugs to <http://bugs.gentoo.org/>.
11526           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
11527           General help using GNU software: <http://www.gnu.org/gethelp/>.
11528         * lib/version-etc.c: Print new information, if provided.
11529         * m4/version-etc.m4: New file.
11530         * modules/version-etc (Files): Add m4/version-etc.m4.
11531         (configure.ac): Add gl_VERSION_ETC.
11532
11533 2009-05-31  Bruno Haible  <bruno@clisp.org>
11534
11535         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
11536         and 'int64_t'.
11537         * modules/alignof-tests (Dependencies): Add stdint.
11538         Reported by Eric Blake.
11539
11540 2009-05-31  Bruno Haible  <bruno@clisp.org>
11541
11542         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
11543         restriction due to compiler bugs.
11544         Reported by Eric Blake.
11545
11546 2009-05-31  Simon Josefsson  <simon@josefsson.org>
11547             Bruno Haible  <bruno@clisp.org>
11548
11549         Fix test-alignof failure.
11550         * lib/alignof.h (alignof_slot): New macro.
11551         (alignof_type): New macro, with the same semantics as the previous
11552         'alignof'.
11553         (alignof): Alias to alignof_slot.
11554         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
11555         check that the results are usable as constant expressions.
11556
11557 2009-05-31  Bruno Haible  <bruno@clisp.org>
11558
11559         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
11560         * tests/test-memchr.c (main): Check that memchr does not read past the
11561         first occurrence of the byte.
11562         * tests/test-strstr.c (main): Update comment.
11563         Suggested by Eric Blake.
11564
11565 2009-05-30  Bruno Haible  <bruno@clisp.org>
11566
11567         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
11568         detail how to use dumpbin.
11569         Reported by David Byron <dbyron@dbyron.com>.
11570
11571 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11572
11573         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
11574
11575 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11576
11577         * m4/manywarnings.m4: Add GCC 4.4 warnings.
11578
11579 2009-05-28  Bruno Haible  <bruno@clisp.org>
11580
11581         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
11582         build-aux/ files.
11583
11584 2009-05-28  Simon Josefsson  <simon@josefsson.org>
11585
11586         * gnulib-tool (func_import): Transform license on build-aux/ files too.
11587
11588 2009-05-27  Simon Josefsson  <simon@josefsson.org>
11589
11590         * gnulib-tool (sed_transform_main_lib_file)
11591         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
11592         regexps.
11593
11594 2009-05-26  Simon Josefsson  <simon@josefsson.org>
11595
11596         * tests/test-strstr.c: Add another self-test.
11597         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
11598         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
11599
11600 2009-05-23  Bruno Haible  <bruno@clisp.org>
11601
11602         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
11603         change.
11604
11605 2009-05-21  Bruno Haible  <bruno@clisp.org>
11606
11607         Simplify use of mode_t varargs.
11608         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
11609         uses 'mode_t' or 'int'.
11610         * lib/openat.c (openat): Likewise.
11611         * lib/open-safer.c (open_safer): Likewise.
11612         * m4/mode_t.m4: New file.
11613         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
11614         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
11615         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
11616         * modules/open (Files): Add m4/mode_t.m4.
11617         * modules/openat (Files): Likewise.
11618         * modules/fcntl-safer (Files): Likewise.
11619         Suggested by Eric Blake.
11620
11621 2009-05-21  Pádraig Brady  <P@draigbrady.com>
11622
11623         * doc/glibc-functions/fallocate.texi: New file.
11624         * doc/gnulib.texi: Include it.
11625
11626 2009-05-21  Eric Blake  <ebb9@byu.net>
11627             Bruno Haible  <bruno@clisp.org>
11628
11629         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
11630         invocations.
11631         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11632
11633 2009-05-21  Eric Blake  <ebb9@byu.net>
11634             Bruno Haible  <bruno@clisp.org>
11635
11636         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
11637         include_next. Fix of 2008-11-20 commit.
11638         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
11639         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
11640         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
11641         NEXT_MATH_H.
11642         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
11643         instead of NEXT_MATH_H.
11644
11645 2009-05-21  Bruno Haible  <bruno@clisp.org>
11646
11647         Avoid redefinition warnings for SIZE_MAX.
11648         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
11649         Reported by Simon Josefsson.
11650
11651 2009-05-21  Bruno Haible  <bruno@clisp.org>
11652
11653         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
11654         AC_CACHE_VAL.
11655
11656 2009-05-20  Bruno Haible  <bruno@clisp.org>
11657
11658         Make zeroptr.h work on mingw.
11659         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
11660         mprotect.
11661         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
11662         * modules/memchr2-tests (configure.ac): Likewise.
11663         * modules/memcmp-tests (configure.ac): Likewise.
11664         * modules/memmem-tests (configure.ac): Likewise.
11665         * modules/memrchr-tests (configure.ac): Likewise.
11666         Reported by Simon Josefsson.
11667
11668 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11669
11670         * tests/test-glob.c: Include string.h for strcmp prototype.
11671
11672 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11673
11674         * modules/getdelim (Depends-on): Add explicit stdint, although it
11675         was implicitly already pulled in via realloc-posix.
11676         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
11677
11678 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11679
11680         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
11681         G. Christensen" <tgc@jupiterrise.com>.
11682         * m4/sys_socket_h.m4: Check for sa_family_t.
11683         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
11684         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
11685         * tests/test-sys_socket.c: Check that sa_family_t works.
11686
11687 2009-05-18  Eric Blake  <ebb9@byu.net>
11688
11689         maint.mk: allow gnulib_dir in VPATH build
11690         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
11691
11692 2009-05-15  Jim Meyering  <meyering@redhat.com>
11693
11694         maint.mk: Give gnulib_dir a default definition.
11695         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
11696         Thus, most packages no longer need to specify this variable in cfg.mk
11697
11698 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
11699
11700         rename.m4: fix typos that would make non-mingw cross-configure fail
11701         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
11702
11703 2009-05-13  Eric Blake  <ebb9@byu.net>
11704
11705         mmap-anon: avoid out-of-order autoconf expansion
11706         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
11707         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
11708         * modules/memchr-tests (Depends-on): Add extensions.
11709         * modules/memchr2-tests (Depends-on): Add extensions.
11710         * modules/memcmp-tests (Depends-on): Add extensions.
11711         * modules/memmem-tests (Depends-on): Add extensions.
11712         * modules/memrchr-tests (Depends-on): Add extensions.
11713
11714 2009-05-13  Bruno Haible  <bruno@clisp.org>
11715
11716         Make some tests ISO C 99 compliant.
11717         * tests/zerosize-ptr.h: New file.
11718         * tests/test-memchr.c: Include zerosize-ptr.h.
11719         (main): Use a zero-size object pointer instead of NULL.
11720         * tests/test-memchr2.c: Include zerosize-ptr.h.
11721         (main): Use a zero-size object pointer instead of NULL.
11722         * tests/test-memcmp.c: Include zerosize-ptr.h.
11723         (main): Use a zero-size object pointer instead of NULL.
11724         * tests/test-memmem.c: Include zerosize-ptr.h.
11725         (main): Use a zero-size object pointer instead of NULL.
11726         * tests/test-memrchr.c: Include zerosize-ptr.h.
11727         (main): Use a zero-size object pointer instead of NULL.
11728         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
11729         m4/mmap-anon.m4.
11730         (Depends-on): Add getpagesize.
11731         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11732         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
11733         m4/mmap-anon.m4.
11734         (Depends-on): Add getpagesize.
11735         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11736         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
11737         m4/mmap-anon.m4.
11738         (Depends-on): Add getpagesize.
11739         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11740         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
11741         m4/mmap-anon.m4.
11742         (Depends-on): Add getpagesize.
11743         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11744         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
11745         m4/mmap-anon.m4.
11746         (Depends-on): Add getpagesize.
11747         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11748
11749 2009-05-12  Bruno Haible  <bruno@clisp.org>
11750
11751         Tests for module 'alignof'.
11752         * modules/alignof-tests: New file.
11753         * tests/test-alignof.c: New file.
11754
11755 2009-05-12  Bruno Haible  <bruno@clisp.org>
11756
11757         Fix alignof macro.
11758         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
11759         vendor compilers that are always correct.
11760
11761 2009-05-12  Bruno Haible  <bruno@clisp.org>
11762
11763         Make the MAP_ANONYMOUS detection work on HP-UX 11.
11764         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
11765         not whether its fully works.
11766
11767 2009-05-12  Bruno Haible  <bruno@clisp.org>
11768
11769         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
11770
11771 2009-05-12  Jim Meyering  <meyering@redhat.com>
11772
11773         * top/maint.mk: Adjust backslash alignment.
11774
11775 2009-05-11  Simon Josefsson  <simon@josefsson.org>
11776
11777         * top/maint.mk: Make $(srcdir)/build-aux configurable.
11778
11779 2009-05-11  Eric Blake  <ebb9@byu.net>
11780
11781         argp: avoid undefined behavior
11782         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
11783         macros.
11784
11785 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11786
11787         * tests/test-vc-list-files-git.sh: Do git config of user.email and
11788         user.name to prevent git commit from complaining.
11789
11790 2009-05-10  Bruno Haible  <bruno@clisp.org>
11791
11792         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
11793         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
11794         it rewrites every file name only once.
11795         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
11796
11797 2009-05-08  Bruno Haible  <bruno@clisp.org>
11798
11799         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
11800         instead of 'max'.
11801
11802 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11803
11804         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
11805         sockaddr_storage test.
11806
11807 2009-05-07  Simon Josefsson  <simon@josefsson.org>
11808
11809         * modules/sys_socket (Makefile.am): Substitute
11810         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
11811         * m4/sys_socket_h.m4: Check for sockaddr_storage.
11812         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
11813         * tests/test-sys_socket.c: Check sockaddr_storage.
11814
11815 2009-05-08  Bruno Haible  <bruno@clisp.org>
11816
11817         New module 'alignof'.
11818         * lib/alignof.h: New file.
11819         * modules/alignof: New file.
11820
11821 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11822             Bruno Haible  <bruno@clisp.org>
11823
11824         Fix test-file-has-acl on FreeBSD.
11825         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
11826         mask is implicitly added.
11827         * tests/test-file-has-acl.c: Include <signal.h>.
11828         (main): Terminate the test after 5 seconds.
11829         * modules/acl-tests (configure.ac): Check for alarm function.
11830
11831 2009-05-04  Bruno Haible  <bruno@clisp.org>
11832
11833         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
11834         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
11835         * modules/errno (configure.ac): Drop AC_REQUIRE.
11836         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
11837         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
11838
11839 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11840
11841         * modules/glob-tests: New module.
11842         * tests/test-glob.c: Add.
11843
11844 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11845
11846         * modules/fnmatch-tests: New module.
11847         * tests/test-fnmatch.c: Add.
11848
11849 2009-05-04  Eric Blake  <ebb9@byu.net>
11850
11851         maint: make the new no-submodule-changes rule VPATH-safe
11852         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
11853
11854 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11855             Bruno Haible  <bruno@clisp.org>
11856
11857         acl: Fix infinite loop on FreeBSD.
11858         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
11859         of return value from acl_get_entry.
11860         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
11861         Likewise.
11862
11863 2009-05-03  Bruno Haible  <bruno@clisp.org>
11864
11865         * lib/acl-internal.h (acl_entries): Clarify return value.
11866         * lib/acl_entries.c (acl_entries): Likewise.
11867
11868 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11869
11870         Bug fix in acl module.
11871         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
11872
11873 2009-05-03  Bruno Haible  <bruno@clisp.org>
11874
11875         Create gperf-generated file in the source dir, not in the build dir.
11876         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
11877         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
11878         * modules/unicase/locale-language (unicase/locale-languages.h):
11879         Likewise.
11880         * modules/unicase/special-casing (unicase/special-casing-table.h):
11881         Likewise.
11882         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
11883         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
11884         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
11885         Reported by Ralf Wildenhues.
11886
11887 2009-05-03  Bruno Haible  <bruno@clisp.org>
11888
11889         * modules/fnmatch (Description, configure.ac): Taken from
11890         fnmatch-posix.
11891         * modules/fnmatch-posix: Turn into a symbolic reference to the
11892         'fnmatch' module, and deprecate.
11893         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
11894
11895 2009-05-03  Bruno Haible  <bruno@clisp.org>
11896
11897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
11898         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
11899         Reported by Ralf Wildenhues.
11900
11901 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11902
11903         * m4/fnmatch.m4: Fix fnmatch re-define.
11904
11905 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11906
11907         priv-set: new module and tests; adapt write-any-file
11908         * lib/priv-set.c: New file.
11909         * lib/priv-set.h: New file.
11910         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
11911         * lib/write-any-file.c: Simplify by using priv-set module.
11912         * m4/priv-set.m4: New file.
11913         * modules/priv-set: New file.
11914         * modules/unlinkdir: Add dependency on priv-set module.
11915         * modules/write-any-file: Likewise.
11916
11917         Tests for module 'priv-set'.
11918         * modules/priv-set-tests: New file.
11919         * tests/test-priv-set.c: New file.
11920
11921 2009-05-03  Jim Meyering  <meyering@redhat.com>
11922             Bruno Haible  <bruno@clisp.org>
11923
11924         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
11925         use the converted UTF-8 variant of the name instead.
11926
11927 2009-05-03  Jim Meyering  <meyering@redhat.com>
11928
11929         tests: tighten some getdate tests
11930         * tests/test-getdate.c (main): Tighten tests: require equality,
11931         not just greater than.  Set TZ envvar to UTC0.
11932
11933 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11934
11935         getdate: correctly interpret "next monday" when run on a Monday
11936         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
11937         that e.g., "next tues" (when run on a tuesday) results in a date
11938         that is one week in the future, and not today's date.
11939         I.e., add a week when the wday is the same as the current one.
11940         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
11941         and earlier by Martin Bernreuther and Jan Minář.
11942         * tests/test-getdate.c (main): Check that "next DAY" is always in
11943         the future and that "last DAY" is always in the past.
11944
11945 2009-05-02  Jim Meyering  <meyering@redhat.com>
11946
11947         build: ensure that a release build fails when a submodule is unclean
11948         * top/maint.mk (no-submodule-changes): New rule.
11949         (alpha beta major): Depend on it.
11950
11951 2009-05-02  Bruno Haible  <bruno@clisp.org>
11952
11953         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
11954         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
11955         shell variable gl_fnmatch_required to detect which variant is
11956         requested.
11957         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
11958         gl_FUNC_FNMATCH_POSIX.
11959         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
11960         exclude fnmatch-posix.
11961
11962 2009-05-02  Bruno Haible  <bruno@clisp.org>
11963
11964         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
11965         * modules/mbsrtowcs (License): Change to LGPLv2+.
11966         * modules/strnlen1 (License): Likewise.
11967         Reported by Simon Josefsson.
11968
11969 2009-05-02  Bruno Haible  <bruno@clisp.org>
11970
11971         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
11972         "cross".
11973         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
11974         gnulib-tool was called with option --source-base=lib.
11975
11976 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11977
11978         Use automake *-local hooks without commands, for extensibility.
11979         * modules/localcharset (Makefile.am): Rename install-exec-local
11980         rule to install-exec-localcharset, and make it a prerequisite of
11981         install-exec-local.  Likewise, rename the uninstall-local rule to
11982         uninstall-localcharset, and make it a prerequisite of the former.
11983
11984 2009-05-01  Bruno Haible  <bruno@clisp.org>
11985
11986         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
11987         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
11988         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
11989         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
11990         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
11991         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
11992         m4/locale-zh.m4, m4/codeset.m4.
11993
11994         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
11995         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
11996         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
11997         m4/locale-zh.m4.
11998
11999         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12000         REPLACE_WCRTOMB if mbstate_t must be replaced.
12001         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12002         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12003
12004 2009-05-01  Bruno Haible  <bruno@clisp.org>
12005
12006         Avoid compiler warnings when redefining macros defined by <libintl.h>.
12007         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12008         dngettext, dcngettext, textdomain, bindtextdomain,
12009         bind_textdomain_codeset): Undefine before redefining.
12010
12011 2009-04-30  Bruno Haible  <bruno@clisp.org>
12012
12013         Fix bug introduced on 2009-04-25.
12014         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12015         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12016         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12017         is defined.
12018         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12019         is defined.
12020         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12021         is defined.
12022         Reported by Elbert_Pol <elbert.pol@gmail.com>.
12023
12024 2009-04-28  Bruno Haible  <bruno@clisp.org>
12025
12026         Comment tweaks.
12027         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12028         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12029         * lib/unicase.h (u*_casexfrm): Likewise.
12030         Reported by Paolo Bonzini.
12031
12032 2009-04-28  Bruno Haible  <bruno@clisp.org>
12033
12034         Fix a compilation error.
12035         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12036         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12037         Reported by Jim Meyering.
12038
12039 2009-04-27  Bruno Haible  <bruno@clisp.org>
12040
12041         New module 'libunistring'.
12042         * modules/libunistring: New file.
12043         * m4/libunistring.m4: New file.
12044         * MODULES.html.sh (Unicode string functions): Add it.
12045
12046 2009-04-27  Eric Blake  <ebb9@byu.net>
12047
12048         maint.mk: allow package-specific header to provide <config.h>
12049         * top/maint.mk (sc_require_config_h): New variable.
12050         (sc_require_config_h, sc_require_config_h_first): Use it.
12051
12052 2009-04-27  Simon Josefsson  <simon@josefsson.org>
12053
12054         * top/maint.mk (sc_avoid_if_before_free): Except
12055         useless-if-before-free script.
12056
12057 2009-04-27  Eric Blake  <ebb9@byu.net>
12058
12059         maintainer-makefile: depend on all required helper scripts
12060         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12061         useless-if-before-free.
12062         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12063         version, rather than assuming gnulib checkout is available.
12064         Reported by Simen Josefsson.
12065
12066 2009-04-26  Bruno Haible  <bruno@clisp.org>
12067
12068         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12069         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12070         "../" or "..".
12071
12072 2009-04-26  Bruno Haible  <bruno@clisp.org>
12073
12074         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12075         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12076         AC_LIB_HAVE_LINKFLAGS.
12077
12078 2009-04-26  Bruno Haible  <bruno@clisp.org>
12079
12080         Simplify calling convention of u*_conv_from_encoding.
12081         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12082         u32_conv_from_encoding): Expect a resultbuf argument and return the
12083         result directly as a pointer.
12084         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12085         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12086         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12087         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12088         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12089         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12090         Update.
12091         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12092         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12093         * lib/vasnprintf.c (VASNPRINTF): Update.
12094         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12095         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12096         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12097         * NEWS: Mention the change.
12098
12099 2009-04-26  Bruno Haible  <bruno@clisp.org>
12100
12101         Simplify calling convention of u*_conv_to_encoding.
12102         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12103         u32_conv_to_encoding): Expect a resultbuf argument and return the
12104         result directly as a pointer.
12105         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12106         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12107         freeing scaled_offsets if mem_iconveha failed.
12108         * lib/unicase/u-casexfrm.h (FUNC): Update.
12109         * lib/uninorm/u-normxfrm.h (FUNC): Update.
12110         * lib/vasnprintf.c (VASNPRINTF): Update.
12111         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12112         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12113         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12114         * NEWS: Mention the change.
12115
12116 2009-04-26  Bruno Haible  <bruno@clisp.org>
12117
12118         Avoid test failures on AIX and OSF/1.
12119         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12120         malloc(0).
12121         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12122         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12123         Likewise.
12124         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12125         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12126         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12127         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12128         * doc/posix-functions/malloc.texi: Document the portability problem
12129         related to malloc(0).
12130
12131 2009-04-26  Bruno Haible  <bruno@clisp.org>
12132
12133         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12134         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12135         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12136
12137 2009-04-25  Bruno Haible  <bruno@clisp.org>
12138
12139         Avoid link error when creating a namespace clean library.
12140         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12141         as macro with arguments if already defined as an alias.
12142         * lib/signbitf.c (gl_signbitf): Don't undefine.
12143         * lib/signbitd.c (gl_signbitd): Don't undefine.
12144         * lib/signbitl.c (gl_signbitl): Don't undefine.
12145
12146 2009-04-25  Jim Meyering  <meyering@redhat.com>
12147
12148         vc-list-files: fix another quoting bug
12149         * build-aux/vc-list-files: Avoid sed backslash expansion
12150         of pathological directory names.
12151
12152 2009-04-25  Eric Blake  <ebb9@byu.net>
12153
12154         vc-list-files: fix shell quoting error
12155         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
12156         timestamp.
12157
12158 2009-04-25  Jim Meyering  <meyering@redhat.com>
12159
12160         vc-list-files: restore lost functionality with subdir argument
12161         * build-aux/vc-list-files: When given a non-"." sub-directory
12162         argument, substitute the $dir/ prefix back onto each resulting name.
12163         Otherwise, coreutils' root_tests check would fail.
12164
12165 2009-04-24  Eric Blake  <ebb9@byu.net>
12166
12167         vc-list-files: ignore git symlinks
12168         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12169         than ls-files, to ignore git symlinks.
12170
12171         maint.mk: import improvements from m4
12172         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12173         (move_if_change): Delete unused macro.
12174         (news-date-check, vc-diff-check): Support VPATH builds.
12175         (announcement): Likewise.  Split --bootstrap-tools list...
12176         (boostrap-tools): ...into separate list, which can be overridden
12177         in cfg.mk.
12178         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12179         requiring dependency on useless-if-before-free module.
12180         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12181         Support VPATH builds.
12182
12183 2009-04-24  Jim Meyering  <meyering@redhat.com>
12184
12185         maint.mk: remove coreutils-specific rules and variables
12186         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12187         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12188         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12189
12190         maint.mk: remove obsolete rule
12191         * top/maint.mk (rel-check): Remove rule.
12192         (WGET, WGETFLAGS): Remove now-unused variables.
12193
12194 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12195
12196         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12197         consistency.
12198
12199         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12200         '$(PATH_SEPARATOR)' instead of ':'.
12201
12202 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12203
12204         * lib/getopt1.c (main): Use 'const' for static array.
12205
12206 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12207
12208         * top/maint.mk: Sync with coreutils.
12209         * NEWS: Explain incompatibilities.
12210
12211 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12212             Bruno Haible  <bruno@clisp.org>
12213
12214         Fix cross-compilation results.
12215         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12216         statement, as third argument of AC_TRY_RUN.
12217         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12218         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12219         Likewise.
12220         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12221         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12222         Likewise.
12223         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12224         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12225         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12226
12227 2009-04-20  Bruno Haible  <bruno@clisp.org>
12228
12229         Avoid test failure on mingw.
12230         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12231
12232 2009-04-20  Bruno Haible  <bruno@clisp.org>
12233
12234         Avoid compilation error on mingw.
12235         * modules/localename-tests (Depends-on): Add locale.
12236
12237 2009-04-19  Bruno Haible  <bruno@clisp.org>
12238
12239         Support for building a shared library on Windows platforms.
12240         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12241         (main): Test the presence of UNINORM_NFC here.
12242         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12243         (main): Test the presence of UNINORM_NFD here.
12244         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12245         (main): Test the presence of UNINORM_NFKC here.
12246         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12247         (main): Test the presence of UNINORM_NFKD here.
12248
12249 2009-04-19  Bruno Haible  <bruno@clisp.org>
12250
12251         Avoid a compiler warning.
12252         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12253         Change type of variable 'sequence'.
12254
12255 2009-04-19  Bruno Haible  <bruno@clisp.org>
12256
12257         * modules/configmake (Makefile.am): When the contents of configmake.h
12258         does not change, arrange to preserve its modification time.
12259
12260 2009-04-17  Simon Josefsson  <simon@josefsson.org>
12261
12262         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12263         gettext domain.
12264
12265 2009-04-16  Jim Meyering  <meyering@redhat.com>
12266
12267         useless-if-before-free: improve conversion code
12268         * build-aux/useless-if-before-free: Adjust code-in-comment to match
12269         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
12270
12271 2009-04-14  Bruno Haible  <bruno@clisp.org>
12272
12273         * modules/fcntl (Depends-on): Add extensions.
12274         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12275
12276 2009-04-12  Ben Pfaff  <blp@gnu.org>
12277
12278         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12279         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12280
12281 2009-03-20  Ben Pfaff  <blp@gnu.org>
12282
12283         Make rename replace existing destinations on Windows.
12284         * m4/rename.m4: Add test for Mingw.
12285         * lib/rename.c: Add rename replacement that uses MoveFileEx with
12286         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12287         * doc/posix-functions/rename.texi: Document.
12288
12289 2009-04-10  Bruno Haible  <bruno@clisp.org>
12290
12291         New include file "iconveh.h".
12292         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
12293         * lib/striconveh.h: Include it.
12294         (enum iconv_ilseq_handler): Remove definition.
12295         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
12296         striconveh.h.
12297         * lib/striconveha.c: Include striconveh.h.
12298         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
12299         * modules/striconveh (Files): Add lib/iconveh.h.
12300         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
12301         lib/striconveh.h.
12302
12303 2009-04-10  Bruno Haible  <bruno@clisp.org>
12304
12305         * lib/uniconv.h: Update comment.
12306
12307 2009-04-10  Bruno Haible  <bruno@clisp.org>
12308
12309         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
12310         always.
12311         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12312         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12313         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12314         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
12315         "unistring-notinline.h", so that the function gets defined always.
12316         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12317         * lib/unistr/u8-uctomb.c: Likewise.
12318         * lib/unistr/u16-mbtouc.c: Likewise.
12319         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12320         * lib/unistr/u16-uctomb.c: Likewise.
12321         * lib/unistr/u32-mbtouc.c: Likewise.
12322         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12323         * lib/unistr/u32-uctomb.c: Likewise.
12324
12325 2009-04-10  Bruno Haible  <bruno@clisp.org>
12326
12327         Mark 'utime' obsolete.
12328         * modules/utime (Status, Notice): New sections.
12329         Suggested by Jim Meyering.
12330
12331         Fix cross-compile guess for utime test.
12332         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
12333         autoconf.
12334         * doc/posix-functions/utime.texi: Give more precisions.
12335         Reported by Jan <ipif@ymail.com>.
12336
12337 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
12338
12339         filevercmp: correct today's change
12340         * lib/filevercmp.c: Also handle coreutils' test inputs.
12341         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
12342
12343         Fix regression in 'filevercmp' module. Thanks Sven Joachim
12344         for reporting it.
12345         * lib/filevercmp.c: Special handle for "", "." and "..".
12346         * tests/test-filevercmp.c: Enlarge the set suite.
12347
12348 2009-04-07  Jim Meyering  <meyering@redhat.com>
12349
12350         useless-if-before-free: show how to remove braced useless free, too
12351         * build-aux/useless-if-before-free: still only in a comment, though.
12352
12353 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
12354
12355         maint.mk: import changes to syntax-check macros from coreutils
12356         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
12357         Use them in the relevant macros.
12358
12359 2009-04-06  Bruno Haible  <bruno@clisp.org>
12360
12361         Fix unportable use of bit-fields.
12362         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
12363         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
12364         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
12365
12366 2009-04-06  Bruno Haible  <bruno@clisp.org>
12367
12368         Avoid test failures on AIX and OSF/1.
12369         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
12370         that malloc(0) = NULL.
12371         * tests/unicase/test-u8-tolower.c (check): Likewise.
12372         * tests/unicase/test-u8-totitle.c (check): Likewise.
12373         * tests/unicase/test-u8-toupper.c (check): Likewise.
12374         * tests/unicase/test-u16-casefold.c (check): Likewise.
12375         * tests/unicase/test-u16-tolower.c (check): Likewise.
12376         * tests/unicase/test-u16-totitle.c (check): Likewise.
12377         * tests/unicase/test-u16-toupper.c (check): Likewise.
12378         * tests/unicase/test-u32-casefold.c (check): Likewise.
12379         * tests/unicase/test-u32-tolower.c (check): Likewise.
12380         * tests/unicase/test-u32-totitle.c (check): Likewise.
12381         * tests/unicase/test-u32-toupper.c (check): Likewise.
12382         * tests/uninorm/test-u8-nfc.c (check): Likewise.
12383         * tests/uninorm/test-u8-nfd.c (check): Likewise.
12384         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
12385         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
12386         * tests/uninorm/test-u16-nfc.c (check): Likewise.
12387         * tests/uninorm/test-u16-nfd.c (check): Likewise.
12388         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
12389         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
12390         * tests/uninorm/test-u32-nfc.c (check): Likewise.
12391         * tests/uninorm/test-u32-nfd.c (check): Likewise.
12392         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
12393         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
12394
12395 2009-04-05  Bruno Haible  <bruno@clisp.org>
12396
12397         Work around an autoconf limitation.
12398         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
12399         comment line if it would be longer than 3 KB.
12400
12401 2009-04-05  Bruno Haible  <bruno@clisp.org>
12402
12403         Avoid test failure with libiconv-1.13.
12404         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
12405         of the expected test results.
12406
12407 2009-04-05  Bruno Haible  <bruno@clisp.org>
12408
12409         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
12410         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
12411         that it should be installed.
12412
12413 2009-04-05  Bruno Haible  <bruno@clisp.org>
12414
12415         * gnulib-tool: New option --copy-file.
12416         (func_usage): Document it.
12417         (func_dest_tmpfilename): Moved out of func_import.
12418         (func_add_file, func_update_file): New functions, extracted from
12419         func_import.
12420         (func_import): Update.
12421
12422 2009-04-05  Karl Berry  <karl@gnu.org>
12423
12424         * README: prominently mention gnulib-tool.
12425         Rearrange sections so getting the code is near the top.
12426
12427 2009-04-05  Bruno Haible  <bruno@clisp.org>
12428
12429         * lib/unicase.h: Mention u*_cmp2.
12430         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12431         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
12432         * lib/unicase/ulc-casecmp.c: Likewise.
12433         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
12434         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
12435         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
12436         unistr/u8-cmp.
12437         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
12438         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
12439         unistr/u16-cmp.
12440         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
12441         unistr/u32-cmp.
12442
12443         * lib/uninorm.h: Mention u*_cmp2.
12444         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12445         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
12446         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
12447         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
12448         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
12449         unistr/u8-cmp.
12450         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
12451         unistr/u16-cmp.
12452         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
12453         unistr/u32-cmp.
12454
12455         New module 'unistr/u32-cmp2'.
12456         * lib/unistr/u32-cmp2.c: New file.
12457         * modules/unistr/u32-cmp2: New file.
12458
12459         New module 'unistr/u16-cmp2'.
12460         * lib/unistr/u16-cmp2.c: New file.
12461         * modules/unistr/u16-cmp2: New file.
12462
12463         New module 'unistr/u8-cmp2'.
12464         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
12465         * lib/unistr/u8-cmp2.c: New file.
12466         * lib/unistr/u-cmp2.h: New file.
12467         * modules/unistr/u8-cmp2: New file.
12468
12469 2009-04-05  Bruno Haible  <bruno@clisp.org>
12470
12471         * lib/unictype.h (uc_property_is_valid): New macro.
12472         * tests/unictype/test-pr_byname.c (main): Use it.
12473
12474         * lib/unistr.h: Doc fixes.
12475         * lib/uniconv.h: Doc fixes.
12476         * lib/unictype.h: Doc fixes.
12477
12478 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12479
12480         Port coreutils 7.2 to Solaris 8.
12481
12482         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
12483         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
12484         for Solaris 8.  This is a bit of a hack, as it means it's the
12485         caller's responsibility to add -lnsl if needed, but most likely it
12486         won't be needed since only getaddrinfo uses this and getaddrinfo
12487         isn't needed on Solaris 8.
12488
12489         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
12490         problem to Solaris 8 encountered with coreutils 7.2, which
12491         resulted in a message "fnmatch.c:292: warning: passing argument 4
12492         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
12493         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
12494
12495 2009-04-03  Simon Josefsson  <simon@josefsson.org>
12496
12497         * m4/ld-version-script.m4: Add FIXME comment.
12498
12499 2009-04-02  Simon Josefsson  <simon@josefsson.org>
12500
12501         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
12502         SOVERSION variable.
12503
12504 2009-04-02  Bruno Haible  <bruno@clisp.org>
12505
12506         * Makefile (info, html, dvi, pdf): Combine the rules.
12507         Suggested by Jim Meyering.
12508
12509 2009-04-01  Bruno Haible  <bruno@clisp.org>
12510
12511         * Makefile (info, html, dvi, pdf): New targets.
12512         Reported by Reuben Thomas <rrt@sc3d.org>.
12513
12514 2009-04-01  Bruno Haible  <bruno@clisp.org>
12515
12516         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
12517         can be put into PATH.
12518         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
12519
12520 2009-04-01  Bruno Haible  <bruno@clisp.org>
12521
12522         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
12523
12524 2009-04-01  Bruno Haible  <bruno@clisp.org>
12525
12526         Rename module 'visibility'.
12527         * modules/lib-symbol-visibility: Renamed from modules/visibility.
12528         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
12529         * doc/gnulib.texi: Update.
12530         * MODULES.html.sh (Misc): Update.
12531         * NEWS: Mention the change.
12532
12533 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12534
12535         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
12536         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
12537         Eric Blake <ebb9@byu.net> for review.
12538         * MODULES.html.sh: Add lib-msvc-compat.
12539         * doc/gnulib.texi: Link to new section.
12540         * m4/ld-output-def.m4: New file.
12541         * doc/ld-output-def.texi: New file.
12542
12543 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12544
12545         Rename ld-version-script to lib-symbol-versions.  Suggested by
12546         Bruno Haible <bruno@clisp.org>.
12547         * modules/ld-version-script: Renamed to lib-symbol-versions.
12548         * doc/ld-version-script.texi: Fix module name.
12549         * MODULES.html.sh: Add lib-symbol-versions.
12550
12551 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12552
12553         * modules/u64-tests: New file.
12554         * tests/test-u64.c: New file.
12555
12556 2009-03-04  Simon Josefsson  <simon@josefsson.org>
12557
12558         * MODULES.html.sh: Mention u64.
12559         * modules/u64: New module.
12560         * modules/crypto/sha512: Depend on u64 module instead of providing
12561         u64.h.
12562
12563 2009-03-27  Eric Blake  <ebb9@byu.net>
12564
12565         test-strerror: make debugging EAI_SYSTEM easier
12566         * modules/getaddrinfo-tests (Depends-on): Add strerror.
12567         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
12568         failure was EAI_SYSTEM.
12569
12570 2009-03-25  Bruno Haible  <bruno@clisp.org>
12571
12572         Fix a problem with --enable-relocatable on Solaris 7.
12573         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
12574         since 2008-02-24.
12575
12576 2009-03-25  Eric Blake  <ebb9@byu.net>
12577
12578         test-sockets: avoid gcc warning
12579         * tests/test-sockets.c (main): Silence compiler warning.
12580
12581 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12582
12583         New modules nproc, pthread, contributed by Glen Lenker.
12584
12585         * MODULES.html.sh: Add pthread, nproc.
12586         * lib/nproc.c: New file.
12587         * lib/nproc.h: New file.
12588         * lib/pthread.in.h: New file.
12589         * m4/pthread.m4: New file.
12590         * modules/nproc: New file.
12591         * modules/pthread: New file.
12592
12593 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12594
12595         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
12596         New variable.
12597
12598 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
12599
12600         filevercmp: handle simple~ and numbered.~3~ backup suffixes
12601         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
12602         * tests/test-filevercmp.c: Add tests for backup suffixes.
12603
12604 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12605
12606         * modules/stdlib (Depends-on): Add stdint, needed when defining
12607         struct random_data on, for example, HP-UX 10.20.  Reported by
12608         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12609
12610 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12611
12612         * lib/readline.c (readline): Call fflush on stdout after printing
12613         prompt.
12614
12615 2009-03-20  Bruno Haible  <bruno@clisp.org>
12616
12617         Remove dependency from 'close' module to -lws2_32 on native Windows.
12618         * lib/close-hook.h: New file.
12619         * lib/close-hook.c: New file.
12620         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
12621         w32sock.h.
12622         (_gl_close_fd_maybe_socket): Remove function.
12623         (rpl_close): Invoke execute_all_close_hooks instead of
12624         _gl_close_fd_maybe_socket.
12625         * lib/sockets.c: Include close-hook.h, w32sock.h.
12626         (close_fd_maybe_socket): New function, essentially from lib/close.c.
12627         (close_sockets_hook): New variable.
12628         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
12629         (gl_sockets_cleanup): Unregister it.
12630         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
12631         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
12632         * modules/close-hook: New file.
12633         * modules/close (Files): Remove lib/w32sock.h.
12634         (Depends-on): Add close-hook.
12635         (Link): Remove section.
12636         * modules/sockets (Files): Add lib/w32sock.h.
12637         (Depends-on): Add close-hook.
12638         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
12639         invocation.
12640         * NEWS: Mention that LIB_CLOSE is gone.
12641
12642 2009-03-23  Eric Blake  <ebb9@byu.net>
12643
12644         signal-tests: test previous patch
12645         * tests/test-signal.c: New file.
12646         * modules/signal-tests: Likewise.
12647
12648         signal.h: always support 'volatile sig_atomic_t'
12649         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
12650         (gl_SIGNAL_H_DEFAULTS): Add a default.
12651         * modules/signal (Makefile.am): Substitute if needed.
12652         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
12653         users can blindly add volatile.
12654         * doc/posix-headers/signal.texi (signal.h): Document it.
12655         Reported by Matthew Woehlke.
12656
12657 2009-03-23  Jim Meyering  <meyering@redhat.com>
12658
12659         pathmax: PATH_MAX: use pathconf only when available
12660         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
12661         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
12662         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
12663         This avoids a link failure in a PSP cross-compilation environment
12664         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
12665
12666         * lib/vasnprintf.c (divide): Fix typo in comment.
12667
12668 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12669
12670         * gnulib-tool (func_filter_filelist): Fix comment.
12671
12672 2009-03-20  Bruno Haible  <bruno@clisp.org>
12673
12674         Make sockets.h self-contained.
12675         * lib/sockets.c: Include sockets.h first.
12676         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
12677
12678 2009-03-19  Eric Blake  <ebb9@byu.net>
12679
12680         doc: mention more functions added in cygwin 1.7.0
12681         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
12682         addition.
12683         * doc/posix-functions/log2f.texi: Likewise.
12684
12685 2009-03-19  Jim Meyering  <meyering@redhat.com>
12686
12687         fsusage: avoid syntax error due to statement-before-declaration
12688         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
12689         after all declarations.  Reported by Matthew Woehlke in
12690         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
12691
12692 2009-03-18  Eric Blake  <ebb9@byu.net>
12693
12694         build-aux/compile: sync from automake
12695         * build-aux/compile: New file, from automake.
12696         * config/srclist.txt: Mention build-aux/compile.
12697
12698 2009-03-17  Bruno Haible  <bruno@clisp.org>
12699
12700         * lib/git-merge-changelog.c: Fix typo in comment.
12701         Reported by Reuben Thomas <rrt@sc3d.org>.
12702
12703 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
12704
12705         * m4/regex.m4: update and improve help for
12706         --without-included-regex.
12707
12708 2009-03-17  Simon Josefsson  <simon@josefsson.org>
12709
12710         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
12711         failure on missing include files.
12712
12713 2009-03-17  Eric Blake  <ebb9@byu.net>
12714
12715         doc: mention more functions added in cygwin 1.7.0
12716         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
12717         addition.
12718         * doc/posix-functions/fwscanf.texi: Likewise.
12719         * doc/posix-functions/swprintf.texi: Likewise.
12720         * doc/posix-functions/swscanf.texi: Likewise.
12721         * doc/posix-functions/vfwprintf.texi: Likewise.
12722         * doc/posix-functions/vfwscanf.texi: Likewise.
12723         * doc/posix-functions/vswprintf.texi: Likewise.
12724         * doc/posix-functions/vswscanf.texi: Likewise.
12725         * doc/posix-functions/vwprintf.texi: Likewise.
12726         * doc/posix-functions/vwscanf.texi: Likewise.
12727         * doc/posix-functions/wcscasecmp.texi: Likewise.
12728         * doc/posix-functions/wcsdup.texi: Likewise.
12729         * doc/posix-functions/wcsftime.texi: Likewise.
12730         * doc/posix-functions/wcsncasecmp.texi: Likewise.
12731         * doc/posix-functions/wprintf.texi: Likewise.
12732         * doc/posix-functions/wscanf.texi: Likewise.
12733         * doc/glibc-functions/gethostbyname2.texi: Likewise.
12734
12735 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12736
12737         maint.mk: really add $(AM_MAKEFLAGS)
12738         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
12739         was inadvertently omitted in the last commit.
12740         Spotted by Bruno Haible.
12741
12742         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
12743         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
12744         $(AM_MAKEFLAGS)' rather than plain `make'.
12745
12746         gnulib-tool: execute $MAKE not make
12747         * gnulib-tool: Default $MAKE to 'make'.
12748         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
12749         than make.  Initialize $MAKE in the do-autobuild script.
12750
12751         gnulib-tool: use $MAKE not make in generated files
12752         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
12753         make, in generated files.  Initialize $MAKE in the do-autobuild
12754         script.
12755
12756         * top/GNUmakefile (_have-git-version-gen): Fix typo.
12757
12758         GNUmakefile: disable parallelism only for multiple, recursive targets
12759         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
12760         additions in the Makefile.
12761         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
12762         by Automake.
12763         (.NOTPARALLEL): Only disable parallel builds if multiple targets
12764         are listed on the command line and at least one of them is
12765         listed in $(ALL_RECURSIVE_TARGETS).
12766
12767 2009-03-14  Bruno Haible  <bruno@clisp.org>
12768
12769         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
12770         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
12771         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
12772         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
12773         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
12774         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
12775         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
12776         unistr/u8-uctomb.
12777         * modules/unistr/u8-strchr (Depends-on): Likewise.
12778         * modules/unistr/u8-strrchr (Depends-on): Likewise.
12779         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
12780         unistr/u16-uctomb.
12781         * modules/unistr/u16-strchr (Depends-on): Likewise.
12782         * modules/unistr/u16-strrchr (Depends-on): Likewise.
12783
12784 2009-03-12  Bruno Haible  <bruno@clisp.org>
12785
12786         Work around select() bug on Interix 3.5.
12787         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
12788         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
12789         * m4/select.m4: New file.
12790         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
12791         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
12792         * modules/select (Files): Add m4/select.m4.
12793         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
12794         * modules/nanosleep (Depends-on): Add select.
12795         * modules/poll (Depends-on): Likewise.
12796         * doc/posix-functions/select.texi: Mention the Interix bug.
12797         Reported by Markus Duft <mduft@gentoo.org>.
12798
12799         * lib/select.c: Renamed from lib/winsock-select.c.
12800         * modules/select (Files): Add lib/select.c, remove
12801         lib/winsock-select.c.
12802         (configure.ac): Update.
12803
12804 2009-03-12  Jim Meyering  <meyering@redhat.com>
12805
12806         avoid gcc warnings about unused macro definitions
12807         * lib/readtokens.c (STREQ): Remove unused definition.
12808         * lib/xmalloc.c (SIZE_MAX): Likewise.
12809         * lib/openat-die.c (N_): Likewise.
12810         * lib/mountlist.c (SIZE_MAX): Remove definition.
12811         Instead, include <stdint.h>.
12812         * lib/readutmp.c: Likewise.
12813         * modules/readutmp (Depends-on): Add stdint.
12814         * modules/mountlist (Depends-on): Add stdint.
12815         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
12816
12817 2009-03-10  Bruno Haible  <bruno@clisp.org>
12818
12819         Tests for module 'mbmemcasecoll'.
12820         * modules/mbmemcasecoll-tests: New file.
12821         * tests/test-mbmemcasecoll1.sh: New file.
12822         * tests/test-mbmemcasecoll2.sh: New file.
12823         * tests/test-mbmemcasecoll3.sh: New file.
12824         * tests/test-mbmemcasecoll.c: New file.
12825
12826         New module 'mbmemcasecoll'.
12827         * lib/mbmemcasecoll.h: New file.
12828         * lib/mbmemcasecoll.c: New file.
12829         * modules/mbmemcasecoll: New file.
12830
12831         * tests/test-mbmemcasecmp.h: New file, extracted from
12832         tests/test-mbmemcasecmp.c.
12833         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
12834         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
12835         (main): Update.
12836         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
12837
12838 2009-03-09  Bruno Haible  <bruno@clisp.org>
12839
12840         Tests for module 'mbmemcasecmp'.
12841         * modules/mbmemcasecmp-tests: New file.
12842         * tests/test-mbmemcasecmp1.sh: New file.
12843         * tests/test-mbmemcasecmp2.sh: New file.
12844         * tests/test-mbmemcasecmp3.sh: New file.
12845         * tests/test-mbmemcasecmp.c: New file.
12846
12847         New module 'mbmemcasecmp'.
12848         * lib/mbmemcasecmp.h: New file.
12849         * lib/mbmemcasecmp.c: New file.
12850         * modules/mbmemcasecmp: New file.
12851
12852 2009-03-09  Bruno Haible  <bruno@clisp.org>
12853
12854         Tests for module 'unicase/ulc-casecoll'.
12855         * modules/unicase/ulc-casecoll-tests: New file.
12856         * tests/unicase/test-ulc-casecoll1.sh: New file.
12857         * tests/unicase/test-ulc-casecoll2.sh: New file.
12858         * tests/unicase/test-ulc-casecoll.c: New file.
12859
12860         New module 'unicase/ulc-casecoll'.
12861         * lib/unicase.h (ulc_casecoll): New declaration.
12862         * lib/unicase/ulc-casecoll.c: New file.
12863         * modules/unicase/ulc-casecoll: New file.
12864
12865         New module 'unicase/ulc-casexfrm'.
12866         * lib/unicase.h (ulc_casexfrm): New declaration.
12867         * lib/unicase/ulc-casexfrm.c: New file.
12868         * modules/unicase/ulc-casexfrm: New file.
12869
12870 2009-03-09  Bruno Haible  <bruno@clisp.org>
12871
12872         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
12873         invocations.
12874
12875         * m4/mbscasecmp.m4: Remove file.
12876         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
12877         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
12878
12879         * m4/mbscasestr.m4: Remove file.
12880         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
12881         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
12882
12883         * m4/mbschr.m4: Remove file.
12884         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
12885         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
12886
12887         * m4/mbscspn.m4: Remove file.
12888         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
12889         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
12890
12891         * m4/mbslen.m4: Remove file.
12892         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
12893         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
12894
12895         * m4/mbsncasecmp.m4: Remove file.
12896         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
12897         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
12898
12899         * m4/mbsnlen.m4: Remove file.
12900         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
12901         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
12902
12903         * m4/mbspbrk.m4: Remove file.
12904         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
12905         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
12906
12907         * m4/mbspcasecmp.m4: Remove file.
12908         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
12909         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
12910
12911         * m4/mbsrchr.m4: Remove file.
12912         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
12913         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
12914
12915         * m4/mbssep.m4: Remove file.
12916         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
12917         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
12918
12919         * m4/mbsspn.m4: Remove file.
12920         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
12921         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
12922
12923         * m4/mbsstr.m4: Remove file.
12924         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
12925         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
12926
12927         * m4/mbstok_r.m4: Remove file.
12928         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
12929         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
12930
12931         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
12932
12933         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
12934         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
12935
12936         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
12937
12938 2009-03-08  Bruno Haible  <bruno@clisp.org>
12939
12940         Tests for module 'unicase/ulc-casecmp'.
12941         * modules/unicase/ulc-casecmp-tests: New file.
12942         * tests/unicase/test-ulc-casecmp1.sh: New file.
12943         * tests/unicase/test-ulc-casecmp2.sh: New file.
12944         * tests/unicase/test-ulc-casecmp.c: New file.
12945
12946         New module 'unicase/ulc-casecmp'.
12947         * lib/unicase.h (ulc_casecmp): New declaration.
12948         * lib/unicase/ulc-casecmp.c: New file.
12949         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
12950         'const SRC_UNIT *'.
12951         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
12952         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
12953         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
12954         * modules/unicase/ulc-casecmp: New file.
12955
12956         Tests for module 'unicase/u32-is-cased'.
12957         * modules/unicase/u32-is-cased-tests: New file.
12958         * tests/unicase/test-u32-is-cased.c: New file.
12959
12960         Tests for module 'unicase/u16-is-cased'.
12961         * modules/unicase/u16-is-cased-tests: New file.
12962         * tests/unicase/test-u16-is-cased.c: New file.
12963
12964         Tests for module 'unicase/u8-is-cased'.
12965         * modules/unicase/u8-is-cased-tests: New file.
12966         * tests/unicase/test-u8-is-cased.c: New file.
12967         * tests/unicase/test-is-cased.h: New file.
12968
12969         New module 'unicase/u32-is-cased'.
12970         * lib/unicase/u32-is-cased.c: New file.
12971         * modules/unicase/u32-is-cased: New file.
12972
12973         New module 'unicase/u16-is-cased'.
12974         * lib/unicase/u16-is-cased.c: New file.
12975         * modules/unicase/u16-is-cased: New file.
12976
12977         New module 'unicase/u8-is-cased'.
12978         * lib/unicase/u8-is-cased.c: New file.
12979         * lib/unicase/u-is-cased.h: New file.
12980         * modules/unicase/u8-is-cased: New file.
12981
12982         Tests for module 'unicase/u32-is-casefolded'.
12983         * modules/unicase/u32-is-casefolded-tests: New file.
12984         * tests/unicase/test-u32-is-casefolded.c: New file.
12985
12986         Tests for module 'unicase/u16-is-casefolded'.
12987         * modules/unicase/u16-is-casefolded-tests: New file.
12988         * tests/unicase/test-u16-is-casefolded.c: New file.
12989
12990         Tests for module 'unicase/u8-is-casefolded'.
12991         * modules/unicase/u8-is-casefolded-tests: New file.
12992         * tests/unicase/test-u8-is-casefolded.c: New file.
12993         * tests/unicase/test-is-casefolded.h: New file.
12994
12995         New module 'unicase/u32-is-casefolded'.
12996         * lib/unicase/u32-is-casefolded.c: New file.
12997         * modules/unicase/u32-is-casefolded: New file.
12998
12999         New module 'unicase/u16-is-casefolded'.
13000         * lib/unicase/u16-is-casefolded.c: New file.
13001         * modules/unicase/u16-is-casefolded: New file.
13002
13003         New module 'unicase/u8-is-casefolded'.
13004         * lib/unicase/u8-is-casefolded.c: New file.
13005         * modules/unicase/u8-is-casefolded: New file.
13006
13007         Tests for module 'unicase/u32-is-titlecase'.
13008         * modules/unicase/u32-is-titlecase-tests: New file.
13009         * tests/unicase/test-u32-is-titlecase.c: New file.
13010
13011         Tests for module 'unicase/u16-is-titlecase'.
13012         * modules/unicase/u16-is-titlecase-tests: New file.
13013         * tests/unicase/test-u16-is-titlecase.c: New file.
13014
13015         Tests for module 'unicase/u8-is-titlecase'.
13016         * modules/unicase/u8-is-titlecase-tests: New file.
13017         * tests/unicase/test-u8-is-titlecase.c: New file.
13018         * tests/unicase/test-is-titlecase.h: New file.
13019
13020         New module 'unicase/u32-is-titlecase'.
13021         * lib/unicase/u32-is-titlecase.c: New file.
13022         * modules/unicase/u32-is-titlecase: New file.
13023
13024         New module 'unicase/u16-is-titlecase'.
13025         * lib/unicase/u16-is-titlecase.c: New file.
13026         * modules/unicase/u16-is-titlecase: New file.
13027
13028         New module 'unicase/u8-is-titlecase'.
13029         * lib/unicase/u8-is-titlecase.c: New file.
13030         * modules/unicase/u8-is-titlecase: New file.
13031
13032         Tests for module 'unicase/u32-is-lowercase'.
13033         * modules/unicase/u32-is-lowercase-tests: New file.
13034         * tests/unicase/test-u32-is-lowercase.c: New file.
13035
13036         Tests for module 'unicase/u16-is-lowercase'.
13037         * modules/unicase/u16-is-lowercase-tests: New file.
13038         * tests/unicase/test-u16-is-lowercase.c: New file.
13039
13040         Tests for module 'unicase/u8-is-lowercase'.
13041         * modules/unicase/u8-is-lowercase-tests: New file.
13042         * tests/unicase/test-u8-is-lowercase.c: New file.
13043         * tests/unicase/test-is-lowercase.h: New file.
13044
13045         New module 'unicase/u32-is-lowercase'.
13046         * lib/unicase/u32-is-lowercase.c: New file.
13047         * modules/unicase/u32-is-lowercase: New file.
13048
13049         New module 'unicase/u16-is-lowercase'.
13050         * lib/unicase/u16-is-lowercase.c: New file.
13051         * modules/unicase/u16-is-lowercase: New file.
13052
13053         New module 'unicase/u8-is-lowercase'.
13054         * lib/unicase/u8-is-lowercase.c: New file.
13055         * modules/unicase/u8-is-lowercase: New file.
13056
13057         Tests for module 'unicase/u32-is-uppercase'.
13058         * modules/unicase/u32-is-uppercase-tests: New file.
13059         * tests/unicase/test-u32-is-uppercase.c: New file.
13060
13061         Tests for module 'unicase/u16-is-uppercase'.
13062         * modules/unicase/u16-is-uppercase-tests: New file.
13063         * tests/unicase/test-u16-is-uppercase.c: New file.
13064
13065         Tests for module 'unicase/u8-is-uppercase'.
13066         * modules/unicase/u8-is-uppercase-tests: New file.
13067         * tests/unicase/test-u8-is-uppercase.c: New file.
13068         * tests/unicase/test-is-uppercase.h: New file.
13069
13070         New module 'unicase/u32-is-uppercase'.
13071         * lib/unicase/u32-is-uppercase.c: New file.
13072         * modules/unicase/u32-is-uppercase: New file.
13073
13074         New module 'unicase/u16-is-uppercase'.
13075         * lib/unicase/u16-is-uppercase.c: New file.
13076         * modules/unicase/u16-is-uppercase: New file.
13077
13078         New module 'unicase/u8-is-uppercase'.
13079         * lib/unicase/u8-is-uppercase.c: New file.
13080         * modules/unicase/u8-is-uppercase: New file.
13081
13082         New module 'unicase/u32-is-invariant'.
13083         * lib/unicase/u32-is-invariant.c: New file.
13084         * modules/unicase/u32-is-invariant: New file.
13085
13086         New module 'unicase/u16-is-invariant'.
13087         * lib/unicase/u16-is-invariant.c: New file.
13088         * modules/unicase/u16-is-invariant: New file.
13089
13090         New module 'unicase/u8-is-invariant'.
13091         * lib/unicase/u8-is-invariant.c: New file.
13092         * lib/unicase/invariant.h: New file.
13093         * lib/unicase/u-is-invariant.h: New file.
13094         * modules/unicase/u8-is-invariant: New file.
13095
13096         Tests for module 'unicase/u32-casecoll'.
13097         * modules/unicase/u32-casecoll-tests: New file.
13098         * tests/unicase/test-u32-casecoll.c: New file.
13099
13100         Tests for module 'unicase/u16-casecoll'.
13101         * modules/unicase/u16-casecoll-tests: New file.
13102         * tests/unicase/test-u16-casecoll.c: New file.
13103
13104         Tests for module 'unicase/u8-casecoll'.
13105         * modules/unicase/u8-casecoll-tests: New file.
13106         * tests/unicase/test-u8-casecoll.c: New file.
13107
13108         New module 'unicase/u32-casecoll'.
13109         * lib/unicase/u32-casecoll.c: New file.
13110         * modules/unicase/u32-casecoll: New file.
13111
13112         New module 'unicase/u16-casecoll'.
13113         * lib/unicase/u16-casecoll.c: New file.
13114         * modules/unicase/u16-casecoll: New file.
13115
13116         New module 'unicase/u8-casecoll'.
13117         * lib/unicase/u8-casecoll.c: New file.
13118         * lib/unicase/u-casecoll.h: New file.
13119         * modules/unicase/u8-casecoll: New file.
13120
13121         New module 'unicase/u32-casexfrm'.
13122         * lib/unicase/u32-casexfrm.c: New file.
13123         * modules/unicase/u32-casexfrm: New file.
13124
13125         New module 'unicase/u16-casexfrm'.
13126         * lib/unicase/u16-casexfrm.c: New file.
13127         * modules/unicase/u16-casexfrm: New file.
13128
13129         New module 'unicase/u8-casexfrm'.
13130         * lib/unicase/u8-casexfrm.c: New file.
13131         * lib/unicase/u-casexfrm.h: New file.
13132         * modules/unicase/u8-casexfrm: New file.
13133
13134         Tests for module 'unicase/u32-casecmp'.
13135         * modules/unicase/u32-casecmp-tests: New file.
13136         * tests/unicase/test-u32-casecmp.c: New file.
13137
13138         Tests for module 'unicase/u16-casecmp'.
13139         * modules/unicase/u16-casecmp-tests: New file.
13140         * tests/unicase/test-u16-casecmp.c: New file.
13141
13142         Tests for module 'unicase/u8-casecmp'.
13143         * modules/unicase/u8-casecmp-tests: New file.
13144         * tests/unicase/test-u8-casecmp.c: New file.
13145         * tests/unicase/test-casecmp.h: New file.
13146
13147         New module 'unicase/u32-casecmp'.
13148         * lib/unicase/u32-casecmp.c: New file.
13149         * modules/unicase/u32-casecmp: New file.
13150
13151         New module 'unicase/u16-casecmp'.
13152         * lib/unicase/u16-casecmp.c: New file.
13153         * modules/unicase/u16-casecmp: New file.
13154
13155         New module 'unicase/u8-casecmp'.
13156         * lib/unicase/u8-casecmp.c: New file.
13157         * lib/unicase/u-casecmp.h: New file.
13158         * modules/unicase/u8-casecmp: New file.
13159
13160         Tests for module 'unicase/u32-casefold'.
13161         * modules/unicase/u32-casefold-tests: New file.
13162         * tests/unicase/test-u32-casefold.c: New file.
13163
13164         Tests for module 'unicase/u16-casefold'.
13165         * modules/unicase/u16-casefold-tests: New file.
13166         * tests/unicase/test-u16-casefold.c: New file.
13167
13168         Tests for module 'unicase/u8-casefold'.
13169         * modules/unicase/u8-casefold-tests: New file.
13170         * tests/unicase/test-u8-casefold.c: New file.
13171
13172         New module 'unicase/u32-casefold'.
13173         * lib/unicase/u32-casefold.c: New file.
13174         * modules/unicase/u32-casefold: New file.
13175
13176         New module 'unicase/u16-casefold'.
13177         * lib/unicase/u16-casefold.c: New file.
13178         * modules/unicase/u16-casefold: New file.
13179
13180         New module 'unicase/u8-casefold'.
13181         * lib/unicase/u8-casefold.c: New file.
13182         * lib/unicase/u-casefold.h: New file.
13183         * modules/unicase/u8-casefold: New file.
13184
13185         New module 'unicase/tocasefold'.
13186         * lib/unicase/casefold.h: New file.
13187         * lib/unicase/tocasefold.c: New file.
13188         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13189         * modules/unicase/tocasefold: New file.
13190
13191         Tests for module 'unicase/u32-totitle'.
13192         * modules/unicase/u32-totitle-tests: New file.
13193         * tests/unicase/test-u32-totitle.c: New file.
13194
13195         Tests for module 'unicase/u16-totitle'.
13196         * modules/unicase/u16-totitle-tests: New file.
13197         * tests/unicase/test-u16-totitle.c: New file.
13198
13199         Tests for module 'unicase/u8-totitle'.
13200         * modules/unicase/u8-totitle-tests: New file.
13201         * tests/unicase/test-u8-totitle.c: New file.
13202
13203         New module 'unicase/u32-totitle'.
13204         * lib/unicase/u32-totitle.c: New file.
13205         * modules/unicase/u32-totitle: New file.
13206
13207         New module 'unicase/u16-totitle'.
13208         * lib/unicase/u16-totitle.c: New file.
13209         * modules/unicase/u16-totitle: New file.
13210
13211         New module 'unicase/u8-totitle'.
13212         * lib/unicase/u8-totitle.c: New file.
13213         * lib/unicase/u-totitle.h: New file.
13214         * modules/unicase/u8-totitle: New file.
13215
13216         Tests for module 'unicase/u32-tolower'.
13217         * modules/unicase/u32-tolower-tests: New file.
13218         * tests/unicase/test-u32-tolower.c: New file.
13219
13220         Tests for module 'unicase/u16-tolower'.
13221         * modules/unicase/u16-tolower-tests: New file.
13222         * tests/unicase/test-u16-tolower.c: New file.
13223
13224         Tests for module 'unicase/u8-tolower'.
13225         * modules/unicase/u8-tolower-tests: New file.
13226         * tests/unicase/test-u8-tolower.c: New file.
13227
13228         New module 'unicase/u32-tolower'.
13229         * lib/unicase/u32-tolower.c: New file.
13230         * modules/unicase/u32-tolower: New file.
13231
13232         New module 'unicase/u16-tolower'.
13233         * lib/unicase/u16-tolower.c: New file.
13234         * modules/unicase/u16-tolower: New file.
13235
13236         New module 'unicase/u8-tolower'.
13237         * lib/unicase/u8-tolower.c: New file.
13238         * modules/unicase/u8-tolower: New file.
13239
13240         Tests for module 'unicase/u32-toupper'.
13241         * modules/unicase/u32-toupper-tests: New file.
13242         * tests/unicase/test-u32-toupper.c: New file.
13243
13244         Tests for module 'unicase/u16-toupper'.
13245         * modules/unicase/u16-toupper-tests: New file.
13246         * tests/unicase/test-u16-toupper.c: New file.
13247
13248         Tests for module 'unicase/u8-toupper'.
13249         * modules/unicase/u8-toupper-tests: New file.
13250         * tests/unicase/test-u8-toupper.c: New file.
13251
13252         New module 'unicase/u32-toupper'.
13253         * lib/unicase/u32-toupper.c: New file.
13254         * modules/unicase/u32-toupper: New file.
13255
13256         New module 'unicase/u16-toupper'.
13257         * lib/unicase/u16-toupper.c: New file.
13258         * modules/unicase/u16-toupper: New file.
13259
13260         New module 'unicase/u8-toupper'.
13261         * lib/unicase/u8-toupper.c: New file.
13262         * modules/unicase/u8-toupper: New file.
13263
13264         New module 'unicase/u32-casemap'.
13265         * lib/unicase/u32-casemap.c: New file.
13266         * modules/unicase/u32-casemap: New file.
13267
13268         New module 'unicase/u16-casemap'.
13269         * lib/unicase/u16-casemap.c: New file.
13270         * modules/unicase/u16-casemap: New file.
13271
13272         New module 'unicase/u8-casemap'.
13273         * lib/unicase/unicasemap.h: New file.
13274         * lib/unicase/u8-casemap.c: New file.
13275         * lib/unicase/u-casemap.h: New file.
13276         * modules/unicase/u8-casemap: New file.
13277
13278         New module 'unicase/special-casing'.
13279         * lib/unicase/special-casing.h: New file.
13280         * lib/unicase/special-casing.c: New file.
13281         * lib/unicase/special-casing-table.gperf: New file, generated by
13282         gen-uni-tables.c.
13283         * modules/unicase/special-casing: New file.
13284
13285         Tests for module 'unicase/locale-language'.
13286         * modules/unicase/locale-language-tests: New file.
13287         * tests/unicase/test-locale-language.sh: New file.
13288         * tests/unicase/test-locale-language.c: New file.
13289
13290         New module 'unicase/locale-language'.
13291         * lib/unicase/locale-language.c: New file.
13292         * lib/unicase/locale-languages.gperf: New file.
13293         * modules/unicase/locale-language: New file.
13294
13295         Generate more tables for case conversion and case folding.
13296         * lib/gen-uni-tables.c (SCC_*): New enum items.
13297         (struct special_casing_rule): New type.
13298         (casing_rules, num_casing_rules, allocated_casing_rules): New
13299         variables.
13300         (add_casing_rule, fill_casing_rules): New functions.
13301         (struct casefold_rule): New type.
13302         (casefolding_rules, num_casefolding_rules,
13303         allocated_casefolding_rules): New variables.
13304         (fill_casefolding_rules): New function.
13305         (unicode_casefold): New variable.
13306         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
13307         sort_casing_rules, output_casing_rules): New functions.
13308         (main): Accept to more arguments: SpecialCasing.txt and
13309         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
13310         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
13311         Output mapping for casefolding.
13312
13313         * lib/unicase.h: Include stdbool.h, uninorm.h.
13314         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
13315         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
13316         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
13317         arguments.
13318         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
13319         resultp arguments.
13320         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
13321         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
13322         resultp arguments.
13323         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
13324         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
13325         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
13326         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
13327         declarations.
13328         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
13329
13330 2009-03-08  Bruno Haible  <bruno@clisp.org>
13331
13332         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13333         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
13334         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
13335         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13336
13337 2009-03-07  Bruno Haible  <bruno@clisp.org>
13338
13339         Adjust u*_normcmp, u*_normcoll API.
13340         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13341         u16_normcoll, u32_normcoll): Change failure conventions.
13342         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
13343         errno and return -1.
13344         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13345
13346 2009-03-07  Bruno Haible  <bruno@clisp.org>
13347
13348         Tests for module 'uninorm/u32-normcoll'.
13349         * modules/uninorm/u32-normcoll-tests: New file.
13350         * tests/uninorm/test-u32-normcoll.c: New file.
13351
13352         Tests for module 'uninorm/u16-normcoll'.
13353         * modules/uninorm/u16-normcoll-tests: New file.
13354         * tests/uninorm/test-u16-normcoll.c: New file.
13355
13356         Tests for module 'uninorm/u8-normcoll'.
13357         * modules/uninorm/u8-normcoll-tests: New file.
13358         * tests/uninorm/test-u8-normcoll.c: New file.
13359
13360 2009-03-07  Bruno Haible  <bruno@clisp.org>
13361
13362         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
13363         tests/uninorm/test-u32-normcmp.c.
13364         * tests/uninorm/test-u32-normcmp.c: Include it.
13365         (test_nonascii): New function, extracted from main. Add some more
13366         tests.
13367         (main): Invoke test_ascii and test_nonascii.
13368         * modules/uninorm/u32-normcmp-tests (Files): Add
13369         tests/uninorm/test-u32-normcmp.h.
13370         (Depends-on): Remove uninorm/u32-normcmp.
13371
13372         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
13373         tests/uninorm/test-u16-normcmp.c.
13374         * tests/uninorm/test-u16-normcmp.c: Include it.
13375         (test_nonascii): New function, extracted from main. Add some more
13376         tests.
13377         (main): Invoke test_ascii and test_nonascii.
13378         * modules/uninorm/u16-normcmp-tests (Files): Add
13379         tests/uninorm/test-u16-normcmp.h.
13380         (Depends-on): Remove uninorm/u16-normcmp.
13381
13382         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
13383         tests/uninorm/test-u8-normcmp.c.
13384         * tests/uninorm/test-u8-normcmp.c: Include it.
13385         (test_nonascii): New function, extracted from main. Add some more
13386         tests.
13387         (main): Invoke test_ascii and test_nonascii.
13388         * modules/uninorm/u8-normcmp-tests (Files): Add
13389         tests/uninorm/test-u8-normcmp.h.
13390         (Depends-on): Remove uninorm/u8-normcmp.
13391
13392 2009-03-07  Bruno Haible  <bruno@clisp.org>
13393
13394         New module 'uninorm/u32-normcoll'.
13395         * lib/uninorm/u32-normcoll.c: New file.
13396         * modules/uninorm/u32-normcoll: New file.
13397
13398         New module 'uninorm/u16-normcoll'.
13399         * lib/uninorm/u16-normcoll.c: New file.
13400         * modules/uninorm/u16-normcoll: New file.
13401
13402         New module 'uninorm/u8-normcoll'.
13403         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
13404         declarations.
13405         * lib/uninorm/u8-normcoll.c: New file.
13406         * lib/uninorm/u-normcoll.h: New file.
13407         * modules/uninorm/u8-normcoll: New file.
13408
13409         New module 'uninorm/u32-normxfrm'.
13410         * lib/uninorm/u32-normxfrm.c: New file.
13411         * modules/uninorm/u32-normxfrm: New file.
13412
13413         New module 'uninorm/u16-normxfrm'.
13414         * lib/uninorm/u16-normxfrm.c: New file.
13415         * modules/uninorm/u16-normxfrm: New file.
13416
13417         New module 'uninorm/u8-normxfrm'.
13418         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
13419         declarations.
13420         * lib/uninorm/u8-normxfrm.c: New file.
13421         * lib/uninorm/u-normxfrm.h: New file.
13422         * modules/uninorm/u8-normxfrm: New file.
13423
13424 2009-03-07  Bruno Haible  <bruno@clisp.org>
13425
13426         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
13427         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
13428         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
13429
13430 2009-03-07  Bruno Haible  <bruno@clisp.org>
13431
13432         New module 'memxfrm'.
13433         * lib/memxfrm.h: New file.
13434         * lib/memxfrm.c: New file.
13435         * modules/memxfrm: New file.
13436
13437 2009-03-07  Bruno Haible  <bruno@clisp.org>
13438
13439         New module 'memcmp2'.
13440         * lib/memcmp2.h: New file.
13441         * lib/memcmp2.c: New file.
13442         * modules/memcmp2: New file.
13443
13444 2009-03-07  Bruno Haible  <bruno@clisp.org>
13445
13446         Tests for module 'uninorm/decomposing-form'.
13447         * modules/uninorm/decomposing-form-tests: New file.
13448         * tests/uninorm/test-decomposing-form.c: New file.
13449
13450         New module 'uninorm/decomposing-form'.
13451         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
13452         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
13453         Add 'decomposing_variant' field.
13454         * lib/uninorm/decomposing-form.c: New file.
13455         * lib/uninorm/nfc.c (uninorm_nfc): Update.
13456         * lib/uninorm/nfd.c (uninorm_nfd): Update.
13457         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
13458         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
13459         * modules/uninorm/decomposing-form: New file.
13460         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
13461         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
13462
13463 2009-03-07  Bruno Haible  <bruno@clisp.org>
13464
13465         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
13466         strings.
13467
13468 2009-03-06  Bruno Haible  <bruno@clisp.org>
13469
13470         Tests for module 'uninorm/u32-normcmp'.
13471         * tests/uninorm/test-u32-normcmp.c: New file.
13472         * modules/uninorm/u32-normcmp-tests: New file.
13473
13474         Tests for module 'uninorm/u16-normcmp'.
13475         * tests/uninorm/test-u16-normcmp.c: New file.
13476         * modules/uninorm/u16-normcmp-tests: New file.
13477
13478         Tests for module 'uninorm/u8-normcmp'.
13479         * tests/uninorm/test-u8-normcmp.c: New file.
13480         * modules/uninorm/u8-normcmp-tests: New file.
13481
13482         New module 'uninorm/u32-normcmp'.
13483         * lib/uninorm/u32-normcmp.c: New file.
13484         * modules/uninorm/u32-normcmp: New file.
13485
13486         New module 'uninorm/u16-normcmp'.
13487         * lib/uninorm/u16-normcmp.c: New file.
13488         * modules/uninorm/u16-normcmp: New file.
13489
13490         New module 'uninorm/u8-normcmp'.
13491         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
13492         declarations.
13493         * lib/uninorm/u8-normcmp.c: New file.
13494         * lib/uninorm/u-normcmp.h: New file.
13495         * modules/uninorm/u8-normcmp: New file.
13496
13497 2009-03-06  Bruno Haible  <bruno@clisp.org>
13498
13499         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
13500         Reported by Eric Blake.
13501
13502 2009-03-06  Eric Blake  <ebb9@byu.net>
13503             Bruno Haible  <bruno@clisp.org>
13504
13505         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
13506         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
13507         condition.
13508         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13509         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
13510         condition.
13511         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13512
13513 2009-03-06  Eric Blake  <ebb9@byu.net>
13514
13515         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
13516         to avoid compiler warnings.
13517         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
13518
13519 2009-03-05  Bruno Haible  <bruno@clisp.org>
13520
13521         * tests/test-ftell.c (main): Disable test beyond end of file on
13522         FreeMiNT.
13523         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13524
13525 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
13526
13527         * lib/filevercmp.c: Move hidden files up in ordering.
13528         * tests/test-filevercmp.c: Add tests for hidden files.
13529
13530 2009-03-04  Bruno Haible  <bruno@clisp.org>
13531
13532         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
13533         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
13534         AM_CFLAGS.
13535         Reported by Simon Josefsson.
13536
13537 2009-03-03  Bruno Haible  <bruno@clisp.org>
13538
13539         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
13540         Reported by Simon Josefsson.
13541
13542         * doc/ld-version-script.texi: Update node reference.
13543
13544 2009-03-03  Bruno Haible  <bruno@clisp.org>
13545
13546         * modules/visibility (License): Change to 'unlimited'.
13547         Suggested by Simon Josefsson.
13548
13549 2009-03-03  Jim Meyering  <meyering@redhat.com>
13550
13551         unlinkdir: cannot_unlink_dir may modify process state
13552         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
13553         it's neither thread-safe nor appropriate for use in a library.
13554
13555 2009-03-03  Eric Blake  <ebb9@byu.net>
13556
13557         test-closein: silence test under Darwin
13558         * tests/test-closein.sh: Ignore stderr from cat, since we don't
13559         care if it dies from EPIPE or EBADF.
13560
13561 2009-03-03  Bruno Haible  <bruno@clisp.org>
13562
13563         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
13564         earlier.
13565         * doc/visibility.texi: Fix @node and @section.
13566
13567 2009-03-03  Simon Josefsson  <simon@josefsson.org>
13568
13569         * doc/gnulib.texi: Link to sections for ld version script and
13570         visibility.
13571         * doc/visibility.texi: Add @node and @section.
13572         * modules/ld-version-script: New module.
13573         * m4/ld-version-script.m4: New file.
13574         * doc/ld-version-script.texi: New file.
13575
13576 2009-03-02  David Lutterkort  <lutter@redhat.com>
13577
13578         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
13579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13580
13581 2009-03-02  Bruno Haible  <bruno@clisp.org>
13582
13583         * doc/visibility.texi: Mention libtool's -export-symbols option.
13584
13585 2009-03-02  Jim Meyering  <meyering@redhat.com>
13586
13587         announce-gen: new option: --no-print-checksums
13588         * build-aux/announce-gen (usage): Describe it.
13589         (print_checksums): Print a newline here, not in the [*] footnote.
13590         (main): Honor it.
13591
13592 2009-03-01  Bruno Haible  <bruno@clisp.org>
13593
13594         Use socklen_t in the native Windows replacements prototypes.
13595         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
13596         instead of 'int'.
13597         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13598         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13599         * modules/getsockopt (Depends-on): Add socklen.
13600         * modules/setsockopt (Depends-on): Add socklen.
13601
13602 2009-03-01  Bruno Haible  <bruno@clisp.org>
13603
13604         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
13605         least 4.2.
13606
13607 2009-03-01  Eric Blake  <ebb9@byu.net>
13608             Bruno Haible  <bruno@clisp.org>
13609
13610         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
13611         error messages.
13612         * lib/wait-process.c (wait_subprocess): Omit error message about
13613         deadly signal sent to the child of termsigp != NULL.
13614
13615 2009-03-01  Eric Blake  <ebb9@byu.net>
13616
13617         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
13618
13619 2009-03-01  Bruno Haible  <bruno@clisp.org>
13620
13621         Avoid a gcc warning.
13622         * tests/test-sched.c (b): Make global.
13623         Reported by Eric Blake.
13624
13625 2009-01-19  Martin Lambers  <marlam@marlam.de>
13626
13627         Provide POSIX semantics for socket timeout options on W32.
13628         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
13629         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
13630         * modules/setsockopt: Depend on sys_time module for struct timeval.
13631         * modules/getsockopt: Depend on sys_time module for struct timeval.
13632
13633 2009-03-01  Simon Josefsson  <simon@josefsson.org>
13634
13635         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
13636         __USE_GNU, for consistency with netdb.in.h.
13637         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13638
13639 2009-03-01  Bruno Haible  <bruno@clisp.org>
13640
13641         More support for FreeMiNT.
13642         * lib/fseeko.c (rpl_fseeko): Complete last commit.
13643         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13644
13645 2009-03-01  Bruno Haible  <bruno@clisp.org>
13646
13647         More support for FreeMiNT.
13648         * lib/fpurge.c (fpurge): Correct last commit.
13649         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13650
13651 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13652
13653         Fix unportable awk script in vc-list-files.
13654         * build-aux/vc-list-files: In the replacement awk script, use
13655         substr with a second argument of 1, not zero.
13656         Report by Simon Josefsson.
13657
13658 2009-02-28  Bruno Haible  <bruno@clisp.org>
13659
13660         More support for FreeMiNT.
13661         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
13662         to FreeMiNT today.
13663         * lib/fwriting.c (fwriting): Likewise.
13664         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
13665
13666 2009-02-28  Bruno Haible  <bruno@clisp.org>
13667
13668         * tests/test-freadseek.c (main): Disable test beyond end of file on
13669         FreeMiNT.
13670         * tests/test-ftello.c (main): Likewise.
13671         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13672
13673 2009-02-28  Bruno Haible  <bruno@clisp.org>
13674
13675         Add tentative support for FreeMiNT.
13676         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
13677         * lib/fpurge.c (fpurge): Likewise.
13678         * lib/freadable.c (freadable): Likewise.
13679         * lib/freading.c (freading): Likewise.
13680         * lib/freadptr.c (freadptr): Likewise.
13681         * lib/freadseek.c (freadptrinc): Likewise.
13682         * lib/fseeko.c (rpl_fseeko): Likewise.
13683         * lib/fseterr.c (fseterr): Likewise.
13684         * lib/fwritable.c (fwritable): Likewise.
13685         * lib/fwriting.c (fwriting): Likewise.
13686         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
13687         Hourihane.
13688         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13689
13690 2009-02-28  Bruno Haible  <bruno@clisp.org>
13691
13692         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
13693         SIGCHLD.
13694         Reported by Jim Meyering.
13695
13696 2009-02-28  Bruno Haible  <bruno@clisp.org>
13697
13698         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
13699         Mention the results of these tests on various platforms.
13700         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
13701         order.
13702         * doc/posix-functions/printf.texi: Likewise.
13703         * doc/posix-functions/snprintf.texi: Likewise.
13704         * doc/posix-functions/sprintf.texi: Likewise.
13705         * doc/posix-functions/vfprintf.texi: Likewise.
13706         * doc/posix-functions/vprintf.texi: Likewise.
13707         * doc/posix-functions/vsnprintf.texi: Likewise.
13708         * doc/posix-functions/vsprintf.texi: Likewise.
13709         * doc/glibc-functions/obstack_printf.texi: Likewise.
13710         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13711
13712 2009-02-28  Bruno Haible  <bruno@clisp.org>
13713
13714         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
13715         Reported by Loïc Minier <lool@dooz.org>.
13716
13717 2009-02-27  Bruno Haible  <bruno@clisp.org>
13718
13719         * gnulib-tool (func_import): Make the sed expression used to create the
13720         sed script for updating the .gitignore file POSIX compliant.
13721         Reported by Eric Blake.
13722
13723 2009-02-27  Bruno Haible  <bruno@clisp.org>
13724
13725         * gnulib-tool (sed): Don't alias as "sed --posix".
13726         Reported by Eric Blake.
13727
13728 2009-02-27  Bruno Haible  <bruno@clisp.org>
13729
13730         Avoid test link errors.
13731         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
13732         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
13733         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
13734         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
13735         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13736
13737 2009-02-27  Bruno Haible  <bruno@clisp.org>
13738
13739         Avoid spurious "(cached)" in configure output.
13740         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
13741         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
13742         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13743         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13744         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13745         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13746         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13747         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13748         Reported by Eric Blake.
13749
13750 2009-02-27  Eric Blake  <ebb9@byu.net>
13751
13752         printf: fix regression in previous patch
13753         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
13754
13755 2009-02-27  Bruno Haible  <bruno@clisp.org>
13756
13757         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
13758         value.
13759         * lib/stdint.in.h: Likewise.
13760         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
13761
13762 2009-02-27  Eric Blake  <ebb9@byu.net>
13763
13764         doc: mention more functions added in cygwin 1.7.0
13765         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
13766         addition.
13767         * doc/posix-functions/open_wmemstream.texi: Likewise.
13768         * doc/posix-functions/wcsnlen.texi: Likewise.
13769         * doc/posix-functions/wcsnrtombs.texi: Likewise.
13770         * doc/posix-functions/wcstod.texi: Likewise.
13771         * doc/posix-functions/wcstof.texi: Likewise.
13772         * doc/posix-functions/wcstoimax.texi: Likewise.
13773         * doc/posix-functions/wcstok.texi: Likewise.
13774         * doc/posix-functions/wcstoumax.texi: Likewise.
13775
13776         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
13777         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
13778         * doc/posix-functions/fprintf.texi: Update.
13779         * doc/posix-functions/printf.texi: Update.
13780         * doc/posix-functions/snprintf.texi: Update.
13781         * doc/posix-functions/sprintf.texi: Update.
13782         * doc/posix-functions/vfprintf.texi: Update.
13783         * doc/posix-functions/vprintf.texi: Update.
13784         * doc/posix-functions/vsnprintf.texi: Update.
13785         * doc/posix-functions/vsprintf.texi: Update.
13786         * doc/glibc-functions/obstack_printf.texi: Update.
13787         * doc/glibc-functions/obstack_vprintf.texi: Update.
13788
13789 2009-02-26  Eric Blake  <ebb9@byu.net>
13790
13791         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
13792         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
13793         compilation bug by using runtime conversion.
13794         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13795         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
13796         * modules/ceill-tests (Files): Use nan.h.
13797         * modules/floorl-tests (Files): Likewise.
13798         * modules/frexpl-tests (Files): Likewise.
13799         * modules/isnanl-tests (Files): Likewise.
13800         * modules/ldexpl-tests (Files): Likewise.
13801         * modules/roundl-tests (Files): Likewise.
13802         * modules/truncl-tests (Files): Likewise.
13803         * tests/test-ceill.c (main): Use a working NaN.
13804         * tests/test-floorl.c (main): Likewise.
13805         * tests/test-frexpl.c (main): Likewise.
13806         * tests/test-isnan.c (test_long_double): Likewise.
13807         * tests/test-isnanl.h (main): Likewise.
13808         * tests/test-ldexpl.h (main): Likewise.
13809         * tests/test-roundl.h (main): Likewise.
13810         * tests/test-truncl.h (main): Likewise.
13811         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
13812
13813 2009-02-26  Eric Blake  <ebb9@byu.net>
13814             Bruno Haible  <bruno@clisp.org>
13815
13816         Work around a *printf bug with %ls on Solaris.
13817         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
13818         precision is specified, sprintf stops converting the wide string
13819         argument when the number of bytes that have been produced by this
13820         conversion equals or exceeds the precision.
13821         * doc/posix-functions/fprintf.texi: Update.
13822         * doc/posix-functions/printf.texi: Update.
13823         * doc/posix-functions/snprintf.texi: Update.
13824         * doc/posix-functions/sprintf.texi: Update.
13825         * doc/posix-functions/vfprintf.texi: Update.
13826         * doc/posix-functions/vprintf.texi: Update.
13827         * doc/posix-functions/vsnprintf.texi: Update.
13828         * doc/posix-functions/vsprintf.texi: Update.
13829         * doc/glibc-functions/obstack_printf.texi: Update.
13830         * doc/glibc-functions/obstack_vprintf.texi: Update.
13831
13832 2009-02-26  Eric Blake  <ebb9@byu.net>
13833
13834         stdlib: favor compiler check of random.h
13835         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
13836         to avoid an ObjC random.h installed by Swarm.
13837
13838 2009-02-26  Bruno Haible  <bruno@clisp.org>
13839
13840         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
13841         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
13842         Reported by Gary V. Vaughan <gary@gnu.org>.
13843
13844 2009-02-26  Bruno Haible  <bruno@clisp.org>
13845
13846         Fix *printf behaviour regarding the %ls directive.
13847         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
13848         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
13849         NEED_PRINTF_DIRECTIVE_LS.
13850         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
13851         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
13852         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13853         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
13854         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
13855         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
13856         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
13857         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13858         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13859         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13860         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13861         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
13862         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13863         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13864         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13865         * doc/posix-functions/fprintf.texi: Update.
13866         * doc/posix-functions/printf.texi: Update.
13867         * doc/posix-functions/snprintf.texi: Update.
13868         * doc/posix-functions/sprintf.texi: Update.
13869         * doc/posix-functions/vfprintf.texi: Update.
13870         * doc/posix-functions/vprintf.texi: Update.
13871         * doc/posix-functions/vsnprintf.texi: Update.
13872         * doc/posix-functions/vsprintf.texi: Update.
13873         * doc/glibc-functions/obstack_printf.texi: Update.
13874         * doc/glibc-functions/obstack_vprintf.texi: Update.
13875         Reported by Eric Blake.
13876
13877 2009-02-25  Bruno Haible  <bruno@clisp.org>
13878
13879         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
13880         with known value.
13881         Reported by Gary V. Vaughan <gary@gnu.org>.
13882
13883 2009-02-25  Bruno Haible  <bruno@clisp.org>
13884
13885         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
13886         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
13887         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
13888         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
13889         Reported by Gary V. Vaughan <gary@gnu.org>.
13890
13891 2009-02-25  Bruno Haible  <bruno@clisp.org>
13892
13893         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
13894         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
13895         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
13896         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
13897         Reported by Gary V. Vaughan <gary@gnu.org>.
13898
13899 2009-02-25  Eric Blake  <ebb9@byu.net>
13900
13901         tests: skip fseek/ftell tests if ungetc is broken
13902         * m4/ungetc.m4: New file.
13903         * modules/fseek-tests: Split test, so ungetc dependency is
13904         separate from rest of test.
13905         * modules/fseeko-tests: Likewise.
13906         * modules/ftell-tests: Likewise.
13907         * modules/ftello-tests: Likewise.
13908         * tests/test-fseek.c (main): Isolate ungetc dependency.
13909         * tests/test-fseeko.c (main): Likewise.
13910         * tests/test-ftell.c (main): Likewise.
13911         * tests/test-ftello.c (main): Likewise.
13912         * tests/test-fseek2.sh: New file.
13913         * tests/test-fseeko2.sh: Likewise.
13914         * tests/test-ftell2.sh: Likewise.
13915         * tests/test-ftello2.sh: Likewise.
13916
13917 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
13918
13919         test-getaddrinfo: fix usage of skip return code 77
13920         * tests/test-gettaddrinfo.c: Return skip code 77 only
13921         for first occurance of skip (4x77 is not 77)
13922
13923 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
13924
13925         strtod: avoid C99 decl-after-statement
13926         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
13927
13928 2009-02-24  Eric Blake  <ebb9@byu.net>
13929
13930         strtod: detect HP-UX 11.31 bug
13931         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
13932         Reported by Gary V. Vaughan.
13933
13934 2009-02-23  Bruno Haible  <bruno@clisp.org>
13935
13936         Fix invalid read past end of memory block.
13937         * lib/vasnprintf.c (DCHAR_SET): Define.
13938         (local_wcslen): Define only when needed.
13939         (local_strnlen, local_wcsnlen): New functions.
13940         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
13941         directives that involve a conversion ourselves.
13942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
13943         wcsnlen, mbrtowc, wcrtomb.
13944         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
13945         * tests/test-vasprintf-posix.c (test_function): Likewise.
13946         * tests/test-snprintf-posix.h (test_function): Likewise.
13947         * tests/test-sprintf-posix.h (test_function): Likewise.
13948         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13949
13950 2009-02-22  Bruno Haible  <bruno@clisp.org>
13951
13952         Implement new clarified decomposition of Hangul syllables.
13953         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
13954         of type LTV, return only a pairwise decomposition.
13955         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
13956         Likewise.
13957         * tests/uninorm/test-decomposition.c (main): Updated expected result.
13958         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
13959         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
13960
13961 2009-02-22  Bruno Haible  <bruno@clisp.org>
13962
13963         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
13964         zero-length results and shrink excess allocated memory.
13965         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
13966         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
13967         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
13968         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
13969         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
13970         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
13971         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
13972         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
13973         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
13974         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
13975         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
13976         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
13977
13978 2009-02-21  Bruno Haible  <bruno@clisp.org>
13979
13980         * doc/gnulib.texi: Include safe-alloc.texi earlier.
13981         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
13982         spaces after a period. Put a space between a macro name and its
13983         argument list. Trivial rewordings.
13984         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
13985         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
13986         (main): Return 0 explicitly.
13987
13988 2009-02-21  Bruno Haible  <bruno@clisp.org>
13989
13990         Tests for module 'uninorm/filter'.
13991         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
13992         * modules/uninorm/filter-tests: New file.
13993
13994         New module 'uninorm/filter'.
13995         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
13996         uninorm_filter_flush, uninorm_filter_free): New declarations.
13997         * lib/uninorm/uninorm-filter.c: New file.
13998         * modules/uninorm/filter: New file.
13999
14000 2009-02-21  Bruno Haible  <bruno@clisp.org>
14001
14002         Tests for module 'uninorm/nfkc'.
14003         * tests/uninorm/test-nfkc.c: New file.
14004         * tests/uninorm/test-u8-nfkc.c: New file.
14005         * tests/uninorm/test-u16-nfkc.c: New file.
14006         * tests/uninorm/test-u32-nfkc.c: New file.
14007         * tests/uninorm/test-u32-nfkc-big.sh: New file.
14008         * tests/uninorm/test-u32-nfkc-big.c: New file.
14009         * modules/uninorm/nfkc-tests: New file.
14010
14011         New module 'uninorm/nfkc'.
14012         * lib/uninorm/nfkc.c: New file.
14013         * modules/uninorm/nfkc: New file.
14014
14015         Tests for module 'uninorm/nfkd'.
14016         * tests/uninorm/test-nfkd.c: New file.
14017         * tests/uninorm/test-u8-nfkd.c: New file.
14018         * tests/uninorm/test-u16-nfkd.c: New file.
14019         * tests/uninorm/test-u32-nfkd.c: New file.
14020         * tests/uninorm/test-u32-nfkd-big.sh: New file.
14021         * tests/uninorm/test-u32-nfkd-big.c: New file.
14022         * modules/uninorm/nfkd-tests: New file.
14023
14024         New module 'uninorm/nfkd'.
14025         * lib/uninorm/nfkd.c: New file.
14026         * modules/uninorm/nfkd: New file.
14027
14028         Tests for module 'uninorm/nfc'.
14029         * tests/uninorm/test-nfc.c: New file.
14030         * tests/uninorm/test-u8-nfc.c: New file.
14031         * tests/uninorm/test-u16-nfc.c: New file.
14032         * tests/uninorm/test-u32-nfc.c: New file.
14033         * tests/uninorm/test-u32-nfc-big.sh: New file.
14034         * tests/uninorm/test-u32-nfc-big.c: New file.
14035         * modules/uninorm/nfc-tests: New file.
14036
14037         New module 'uninorm/nfc'.
14038         * lib/uninorm/nfc.c: New file.
14039         * modules/uninorm/nfc: New file.
14040
14041         Tests for module 'uninorm/nfd'.
14042         * tests/uninorm/test-nfd.c: New file.
14043         * tests/uninorm/test-u8-nfd.c: New file.
14044         * tests/uninorm/test-u16-nfd.c: New file.
14045         * tests/uninorm/test-u32-nfd.c: New file.
14046         * tests/uninorm/test-u32-nfd-big.sh: New file.
14047         * tests/uninorm/test-u32-nfd-big.c: New file.
14048         * tests/uninorm/test-u32-normalize-big.h: New file.
14049         * tests/uninorm/test-u32-normalize-big.c: New file.
14050         * tests/uninorm/NormalizationTest.txt: New file, created from
14051         Unicode 5.1.0 NormalizationTest.txt.
14052         * modules/uninorm/nfd-tests: New file.
14053
14054         New module 'uninorm/nfd'.
14055         * lib/uninorm/nfd.c: New file.
14056         * modules/uninorm/nfd: New file.
14057
14058         New module 'uninorm/u32-normalize'.
14059         * lib/uninorm/u32-normalize.c: New file.
14060         * modules/uninorm/u32-normalize: New file.
14061
14062         New module 'uninorm/u16-normalize'.
14063         * lib/uninorm/u16-normalize.c: New file.
14064         * modules/uninorm/u16-normalize: New file.
14065
14066         New module 'uninorm/u8-normalize'.
14067         * lib/uninorm/u8-normalize.c: New file.
14068         * lib/uninorm/normalize-internal.h: New file.
14069         * lib/uninorm/u-normalize-internal.h: New file.
14070         * modules/uninorm/u8-normalize: New file.
14071
14072         New module 'uninorm/decompose-internal'.
14073         * lib/uninorm/decompose-internal.c: New file.
14074         * modules/uninorm/decompose-internal: New file.
14075
14076         Tests for module 'uninorm/composition'.
14077         * tests/uninorm/test-composition.c: New file.
14078         * modules/uninorm/composition-tests: New file.
14079
14080         New module 'uninorm/composition'.
14081         * lib/uninorm/composition.c: New file.
14082         * lib/uninorm/composition-table.gperf: New file, generated by
14083         gen-uni-tables.
14084         * modules/uninorm/composition: New file.
14085
14086         Tests for module 'uninorm/compat-decomposition'.
14087         * tests/uninorm/test-compat-decomposition.c: New file.
14088         * modules/uninorm/compat-decomposition-tests: New file.
14089
14090         New module 'uninorm/compat-decomposition'.
14091         * lib/uninorm/decompose-internal.h: New file.
14092         * lib/uninorm/compat-decomposition.c: New file.
14093         * modules/uninorm/compat-decomposition: New file.
14094
14095         Tests for module 'uninorm/canonical-decomposition'.
14096         * tests/uninorm/test-canonical-decomposition.c: New file.
14097         * modules/uninorm/canonical-decomposition-tests: New file.
14098
14099         New module 'uninorm/canonical-decomposition'.
14100         * lib/uninorm/canonical-decomposition.c: New file.
14101         * modules/uninorm/canonical-decomposition: New file.
14102
14103         Tests for module 'uninorm/decomposition'.
14104         * tests/uninorm/test-decomposition.c: New file.
14105         * modules/uninorm/decomposition-tests: New file.
14106
14107         New module 'uninorm/decomposition'.
14108         * lib/uninorm/decomposition.c: New file.
14109         * modules/uninorm/decomposition: New file.
14110
14111         New module 'uninorm/decomposition-table'.
14112         * lib/uninorm/decomposition-table.h: New file.
14113         * lib/uninorm/decomposition-table.c: New file.
14114         * lib/uninorm/decomposition-table1.h: New file, generated by
14115         gen-uni-tables.
14116         * lib/uninorm/decomposition-table2.h: New file, generated by
14117         gen-uni-tables.
14118         * modules/uninorm/decomposition-table: New file.
14119
14120         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14121         (UC_DECOMP_*): New enumeration items.
14122         (get_decomposition): New function.
14123         (struct decomp_table): New type.
14124         (output_decomposition, output_decomposition_tables): New functions.
14125         (unicode_composition_exclusions): New variable.
14126         (fill_composition_exclusions, debug_output_composition_tables): New
14127         functions.
14128         (main): Accept one more argument. Invoke fill_composition_exclusions.
14129         Output decomposition and composition tables.
14130
14131         New module 'uninorm/base'.
14132         * lib/uninorm.h: New file.
14133         * lib/unictype.h: Update comment.
14134         * modules/uninorm/base: New file.
14135
14136 2009-02-21  David Lutterkort  <lutter@redhat.com>
14137
14138         Tests for module 'safe-alloc'.
14139         * tests/test-safe-alloc.c: New file.
14140         * modules/safe-alloc-tests: New file.
14141
14142         New module 'safe-alloc'.
14143         * lib/safe-alloc.h: New file.
14144         * lib/safe-alloc.c: New file.
14145         * m4/safe-alloc.m4: New file.
14146         * modules/safe-alloc: New file.
14147         * doc/safe-alloc.texi: New file.
14148         * doc/gnulib.texi: Include it.
14149         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14150         safe-alloc.
14151
14152 2009-02-18  Bruno Haible  <bruno@clisp.org>
14153
14154         Fix link error on non-glibc systems.
14155         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14156         variable.
14157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14158
14159 2009-02-18  Jim Meyering  <meyering@redhat.com>
14160
14161         fts: avoid used-uninitialized error due to recent change
14162         * lib/fts.c (fts_read): Guard uses of the new member,
14163         parent->fts_n_dirs_remaining, since it's not relevant for
14164         the parent of a directory specified on the command-line.
14165
14166 2009-02-17  James Youngman  <jay@gnu.org>
14167             Bruno Haible  <bruno@clisp.org>
14168
14169         * m4/include_next.m4: Reformulate comment.
14170
14171 2009-02-16  Jim Meyering  <meyering@redhat.com>
14172
14173         fts: add #if guards so that the fts_lgpl module still builds
14174         * lib/fts.c: Guard just-added hash-table-using parts with
14175         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14176         Reported by Simon Josefsson.
14177
14178 2009-02-15  Bruno Haible  <bruno@clisp.org>
14179
14180         * modules/array-mergesort-tests: New file.
14181         * tests/test-array-mergesort.c: New file.
14182
14183         New module 'array-mergesort'.
14184         * modules/array-mergesort: New file.
14185         * lib/array-mergesort.h: New file.
14186
14187 2009-02-15  Bruno Haible  <bruno@clisp.org>
14188
14189         Fix 2009-02-07 commit.
14190         * lib/gen-uni-tables.c (output_predicate, output_category,
14191         output_combclass, output_bidi_category, output_decimal_digit,
14192         output_digit, output_numeric, output_mirror, output_scripts,
14193         output_ident_category, output_simple_mapping): Fix format directives.
14194         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14195
14196 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
14197
14198         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14199         fixes are available from IBM.
14200
14201 2009-02-13  Jim Meyering  <meyering@redhat.com>
14202
14203         fts: arrange not to stat non-directories in more cases
14204         This makes GNU find (when it doesn't need to stat each file)
14205         *much* more efficient at traversing reiserfs file systems.
14206         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14207         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14208         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14209         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14210         (leaf_optimization_applies): New function.
14211         (LCO_hash, LCO_compare): New helper functions.
14212         (link_count_optimize_ok): New function.
14213         (fts_stat): Initialize new member (if dir).
14214         (fts_read): Decrement parent's fts_n_dirs_remaining count if
14215         we've just stat'ed a directory.  Skip the stat call when possible.
14216         ---
14217         Note this AFS-related exchange:
14218         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14219         and note find's pioctl call in find/fstype.c.
14220         But that is necessary only if you want to enable the
14221         optimization for AFS, and for now, I don't.
14222
14223         fts: move a function definition "up" (no semantic change)
14224         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14225         "up" to precede upcoming use of a related function.
14226
14227 2009-02-11  Jim Meyering  <meyering@redhat.com>
14228
14229         fts: correct internal computation of nlinks (optimization-related)
14230         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14231         whether the current entry is a directory, so don't test it.
14232
14233 2009-02-10  Bruno Haible  <bruno@clisp.org>
14234
14235         Tests for module 'uniwbrk/ulc-wordbreaks'.
14236         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14237         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14238         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14239
14240         Tests for module 'uniwbrk/u32-wordbreaks'.
14241         * modules/uniwbrk/u32-wordbreaks-tests: New file.
14242         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14243
14244         Tests for module 'uniwbrk/u16-wordbreaks'.
14245         * modules/uniwbrk/u16-wordbreaks-tests: New file.
14246         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14247
14248         Tests for module 'uniwbrk/u8-wordbreaks'.
14249         * modules/uniwbrk/u8-wordbreaks-tests: New file.
14250         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14251
14252 2009-02-10  Bruno Haible  <bruno@clisp.org>
14253
14254         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14255         property.
14256         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14257         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14258         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14259
14260 2009-02-10  Simon Josefsson  <simon@josefsson.org>
14261
14262         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14263         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
14264
14265 2009-02-10  Bruno Haible  <bruno@clisp.org>
14266
14267         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14268         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14269         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14270         * lib/unilbrk/u8-possible-linebreaks.c: Update.
14271         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14272         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14273
14274 2009-02-09  Simon Josefsson  <simon@josefsson.org>
14275
14276         * lib/sockets.h (gl_fd_to_handle): New function.
14277
14278         * tests/test-sockets.c: Call gl_fd_to_handle.
14279
14280 2009-02-09  Bruno Haible  <bruno@clisp.org>
14281
14282         * doc/havelib.texi: Document the conventions on bi-arch systems.
14283
14284 2009-02-08  Bruno Haible  <bruno@clisp.org>
14285
14286         Document the AC_LIB_LINKFLAGS macro.
14287         * doc/havelib.texi: New file, mostly written on 2005-05-24.
14288         * doc/gnulib.texi: Include it.
14289
14290 2009-02-08  Bruno Haible  <bruno@clisp.org>
14291
14292         Fix wrong order of sections, compared to TOC.
14293         * doc/gnulib.texi: Include relocatable-maint.texi after the
14294         "Regular expressions" node, not before.
14295
14296 2009-02-08  Bruno Haible  <bruno@clisp.org>
14297
14298         Tests for module 'unicase/totitle'.
14299         * modules/unicase/totitle-tests: New file.
14300
14301         Tests for module 'unicase/tolower'.
14302         * modules/unicase/tolower-tests: New file.
14303
14304         Tests for module 'unicase/toupper'.
14305         * modules/unicase/toupper-tests: New file.
14306         * tests/unicase/test-mapping-part1.h: New file.
14307         * tests/unicase/test-mapping-part2.h: New file.
14308
14309         New module 'unicase/totitle'.
14310         * modules/unicase/totitle: New file.
14311         * lib/unicase/totitle.c: New file.
14312
14313         New module 'unicase/tolower'.
14314         * modules/unicase/tolower: New file.
14315         * lib/unicase/tolower.c: New file.
14316
14317         New module 'unicase/toupper'.
14318         * modules/unicase/toupper: New file.
14319         * lib/unicase/toupper.c: New file.
14320         * lib/unicase/simple-mapping.h: New file.
14321
14322         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
14323         (mapping_table): New structure.
14324         (output_simple_mapping): New function.
14325         (main): Invoke output_simple_mapping_test and output_simple_mapping.
14326         * modules/gen-uni-tables (Description): Update.
14327         * lib/unicase/toupper.h: New file, automatically generated by
14328         gen-uni-tables.
14329         * lib/unicase/tolower.h: New file, automatically generated by
14330         gen-uni-tables.
14331         * lib/unicase/totitle.h: New file, automatically generated by
14332         gen-uni-tables.
14333         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
14334         gen-uni-tables.
14335         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
14336         gen-uni-tables.
14337         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
14338         gen-uni-tables.
14339
14340         New module 'unicase/base'.
14341         * modules/unicase/base: New file.
14342         * lib/unicase.h: New file.
14343
14344 2009-02-08  Bruno Haible  <bruno@clisp.org>
14345
14346         New module 'uniwbrk/ulc-wordbreaks'.
14347         * modules/uniwbrk/ulc-wordbreaks: New file.
14348         * lib/uniwbrk/ulc-wordbreaks.c: New file.
14349
14350         New module 'uniwbrk/u32-wordbreaks'.
14351         * modules/uniwbrk/u32-wordbreaks: New file.
14352         * lib/uniwbrk/u32-wordbreaks.c: New file.
14353
14354         New module 'uniwbrk/u16-wordbreaks'.
14355         * modules/uniwbrk/u16-wordbreaks: New file.
14356         * lib/uniwbrk/u16-wordbreaks.c: New file.
14357
14358         New module 'uniwbrk/u8-wordbreaks'.
14359         * modules/uniwbrk/u8-wordbreaks: New file.
14360         * lib/uniwbrk/u8-wordbreaks.c: New file.
14361         * lib/uniwbrk/u-wordbreaks.h: New file.
14362
14363         New module 'uniwbrk/table'.
14364         * modules/uniwbrk/table: New file.
14365         * lib/uniwbrk/wbrktable.h: New file.
14366         * lib/uniwbrk/wbrktable.c: New file.
14367
14368         New module 'uniwbrk/wordbreak-property'.
14369         * modules/uniwbrk/wordbreak-property: New file.
14370         * lib/uniwbrk/wordbreak-property.c: New file.
14371
14372         * lib/gen-uni-tables.c (WBP_*): New enum items.
14373         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
14374         (unicode_org_wbp): New variable.
14375         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
14376         New functions.
14377         (wbp_table): New structure.
14378         (output_wbp, output_wbrk_tables): New functions.
14379         (main): Accept additional argument. Invoke fill_org_wbp,
14380         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
14381         output_wbrk_tables.
14382         * modules/gen-uni-tables (Description): Update.
14383         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
14384         gen-uni-tables.
14385
14386         New module 'uniwbrk/base'.
14387         * modules/uniwbrk/base: New file.
14388         * lib/uniwbrk.h: New file.
14389
14390 2009-02-08  Bruno Haible  <bruno@clisp.org>
14391
14392         Update to Unicode 5.1.0.
14393         * lib/gen-uni-tables.c (is_property_alphabetic): Include
14394         U+2185..U+2188.
14395         (is_property_default_ignorable_code_point): Don't include characters
14396         of category Cc or Cs and not-a-characters.
14397         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
14398         U+0D79, U+109E, U+109F, U+A60C.
14399         * lib/unictype/bidi_of.h: Regenerated.
14400         * lib/unictype/blocks.h: Regenerated.
14401         * lib/unictype/categ_C.h: Regenerated.
14402         * lib/unictype/categ_Cf.h: Regenerated.
14403         * lib/unictype/categ_Cn.h: Regenerated.
14404         * lib/unictype/categ_L.h: Regenerated.
14405         * lib/unictype/categ_Ll.h: Regenerated.
14406         * lib/unictype/categ_Lm.h: Regenerated.
14407         * lib/unictype/categ_Lo.h: Regenerated.
14408         * lib/unictype/categ_Lu.h: Regenerated.
14409         * lib/unictype/categ_M.h: Regenerated.
14410         * lib/unictype/categ_Mc.h: Regenerated.
14411         * lib/unictype/categ_Me.h: Regenerated.
14412         * lib/unictype/categ_Mn.h: Regenerated.
14413         * lib/unictype/categ_N.h: Regenerated.
14414         * lib/unictype/categ_Nd.h: Regenerated.
14415         * lib/unictype/categ_Nl.h: Regenerated.
14416         * lib/unictype/categ_No.h: Regenerated.
14417         * lib/unictype/categ_P.h: Regenerated.
14418         * lib/unictype/categ_Pd.h: Regenerated.
14419         * lib/unictype/categ_Pe.h: Regenerated.
14420         * lib/unictype/categ_Pf.h: Regenerated.
14421         * lib/unictype/categ_Pi.h: Regenerated.
14422         * lib/unictype/categ_Po.h: Regenerated.
14423         * lib/unictype/categ_Ps.h: Regenerated.
14424         * lib/unictype/categ_S.h: Regenerated.
14425         * lib/unictype/categ_Sk.h: Regenerated.
14426         * lib/unictype/categ_Sm.h: Regenerated.
14427         * lib/unictype/categ_So.h: Regenerated.
14428         * lib/unictype/categ_of.h: Regenerated.
14429         * lib/unictype/combining.h: Regenerated.
14430         * lib/unictype/ctype_alnum.h: Regenerated.
14431         * lib/unictype/ctype_alpha.h: Regenerated.
14432         * lib/unictype/ctype_graph.h: Regenerated.
14433         * lib/unictype/ctype_lower.h: Regenerated.
14434         * lib/unictype/ctype_print.h: Regenerated.
14435         * lib/unictype/ctype_punct.h: Regenerated.
14436         * lib/unictype/ctype_upper.h: Regenerated.
14437         * lib/unictype/decdigit.h: Regenerated.
14438         * lib/unictype/digit.h: Regenerated.
14439         * lib/unictype/mirror.h: Regenerated.
14440         * lib/unictype/numeric.h: Regenerated.
14441         * lib/unictype/pr_alphabetic.h: Regenerated.
14442         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
14443         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
14444         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
14445         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
14446         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
14447         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
14448         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
14449         * lib/unictype/pr_combining.h: Regenerated.
14450         * lib/unictype/pr_dash.h: Regenerated.
14451         * lib/unictype/pr_decimal_digit.h: Regenerated.
14452         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
14453         * lib/unictype/pr_deprecated.h: Regenerated.
14454         * lib/unictype/pr_diacritic.h: Regenerated.
14455         * lib/unictype/pr_extender.h: Regenerated.
14456         * lib/unictype/pr_format_control.h: Regenerated.
14457         * lib/unictype/pr_grapheme_base.h: Regenerated.
14458         * lib/unictype/pr_grapheme_extend.h: Regenerated.
14459         * lib/unictype/pr_grapheme_link.h: Regenerated.
14460         * lib/unictype/pr_id_continue.h: Regenerated.
14461         * lib/unictype/pr_id_start.h: Regenerated.
14462         * lib/unictype/pr_ideographic.h: Regenerated.
14463         * lib/unictype/pr_ignorable_control.h: Regenerated.
14464         * lib/unictype/pr_lowercase.h: Regenerated.
14465         * lib/unictype/pr_math.h: Regenerated.
14466         * lib/unictype/pr_numeric.h: Regenerated.
14467         * lib/unictype/pr_other_alphabetic.h: Regenerated.
14468         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
14469         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
14470         * lib/unictype/pr_other_id_continue.h: Regenerated.
14471         * lib/unictype/pr_other_lowercase.h: Regenerated.
14472         * lib/unictype/pr_other_math.h: Regenerated.
14473         * lib/unictype/pr_punctuation.h: Regenerated.
14474         * lib/unictype/pr_sentence_terminal.h: Regenerated.
14475         * lib/unictype/pr_soft_dotted.h: Regenerated.
14476         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
14477         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
14478         * lib/unictype/pr_unified_ideograph.h: Regenerated.
14479         * lib/unictype/pr_uppercase.h: Regenerated.
14480         * lib/unictype/pr_xid_continue.h: Regenerated.
14481         * lib/unictype/pr_xid_start.h: Regenerated.
14482         * lib/unictype/pr_zero_width.h: Regenerated.
14483         * lib/unictype/scripts.h: Regenerated.
14484         * lib/unictype/scripts_byname.gperf: Regenerated.
14485         * lib/unictype/sy_java_ident.h: Regenerated.
14486         * lib/unilbrk/lbrkprop1.h: Regenerated.
14487         * lib/unilbrk/lbrkprop2.h: Regenerated.
14488         * tests/unictype/test-categ_C.c: Regenerated.
14489         * tests/unictype/test-categ_Cf.c: Regenerated.
14490         * tests/unictype/test-categ_Cn.c: Regenerated.
14491         * tests/unictype/test-categ_L.c: Regenerated.
14492         * tests/unictype/test-categ_Ll.c: Regenerated.
14493         * tests/unictype/test-categ_Lm.c: Regenerated.
14494         * tests/unictype/test-categ_Lo.c: Regenerated.
14495         * tests/unictype/test-categ_Lu.c: Regenerated.
14496         * tests/unictype/test-categ_M.c: Regenerated.
14497         * tests/unictype/test-categ_Mc.c: Regenerated.
14498         * tests/unictype/test-categ_Me.c: Regenerated.
14499         * tests/unictype/test-categ_Mn.c: Regenerated.
14500         * tests/unictype/test-categ_N.c: Regenerated.
14501         * tests/unictype/test-categ_Nd.c: Regenerated.
14502         * tests/unictype/test-categ_Nl.c: Regenerated.
14503         * tests/unictype/test-categ_No.c: Regenerated.
14504         * tests/unictype/test-categ_P.c: Regenerated.
14505         * tests/unictype/test-categ_Pd.c: Regenerated.
14506         * tests/unictype/test-categ_Pe.c: Regenerated.
14507         * tests/unictype/test-categ_Pf.c: Regenerated.
14508         * tests/unictype/test-categ_Pi.c: Regenerated.
14509         * tests/unictype/test-categ_Po.c: Regenerated.
14510         * tests/unictype/test-categ_Ps.c: Regenerated.
14511         * tests/unictype/test-categ_S.c: Regenerated.
14512         * tests/unictype/test-categ_Sk.c: Regenerated.
14513         * tests/unictype/test-categ_Sm.c: Regenerated.
14514         * tests/unictype/test-categ_So.c: Regenerated.
14515         * tests/unictype/test-ctype_alnum.c: Regenerated.
14516         * tests/unictype/test-ctype_alpha.c: Regenerated.
14517         * tests/unictype/test-ctype_graph.c: Regenerated.
14518         * tests/unictype/test-ctype_lower.c: Regenerated.
14519         * tests/unictype/test-ctype_print.c: Regenerated.
14520         * tests/unictype/test-ctype_punct.c: Regenerated.
14521         * tests/unictype/test-ctype_upper.c: Regenerated.
14522         * tests/unictype/test-decdigit.h: Regenerated.
14523         * tests/unictype/test-digit.h: Regenerated.
14524         * tests/unictype/test-numeric.h: Regenerated.
14525         * tests/unictype/test-pr_alphabetic.c: Regenerated.
14526         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
14527         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
14528         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
14529         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
14530         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
14531         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
14532         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
14533         * tests/unictype/test-pr_combining.c: Regenerated.
14534         * tests/unictype/test-pr_dash.c: Regenerated.
14535         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
14536         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
14537         * tests/unictype/test-pr_deprecated.c: Regenerated.
14538         * tests/unictype/test-pr_diacritic.c: Regenerated.
14539         * tests/unictype/test-pr_extender.c: Regenerated.
14540         * tests/unictype/test-pr_format_control.c: Regenerated.
14541         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
14542         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
14543         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
14544         * tests/unictype/test-pr_id_continue.c: Regenerated.
14545         * tests/unictype/test-pr_id_start.c: Regenerated.
14546         * tests/unictype/test-pr_ideographic.c: Regenerated.
14547         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
14548         * tests/unictype/test-pr_lowercase.c: Regenerated.
14549         * tests/unictype/test-pr_math.c: Regenerated.
14550         * tests/unictype/test-pr_numeric.c: Regenerated.
14551         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
14552         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
14553         Regenerated.
14554         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
14555         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
14556         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
14557         * tests/unictype/test-pr_other_math.c: Regenerated.
14558         * tests/unictype/test-pr_punctuation.c: Regenerated.
14559         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
14560         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
14561         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
14562         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
14563         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
14564         * tests/unictype/test-pr_uppercase.c: Regenerated.
14565         * tests/unictype/test-pr_xid_continue.c: Regenerated.
14566         * tests/unictype/test-pr_xid_start.c: Regenerated.
14567         * tests/unictype/test-pr_zero_width.c: Regenerated.
14568
14569         Update to Unicode 5.1.0.
14570         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
14571         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
14572         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
14573         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
14574         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
14575         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
14576         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
14577         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
14578         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
14579         (nonspacing_table_ind): Update.
14580         * tests/uniwidth/test-uc_width2.sh: Update expected result.
14581
14582         Update to Unicode 5.1.0.
14583         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
14584         code transform.
14585         * lib/uniname/uniname.c (unicode_character_name,
14586         unicode_name_character): Add the range 0x1Fxxx to the code transform.
14587         * lib/uniname/uninames.h: Regenerated.
14588         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
14589
14590 2009-02-07  Bruno Haible  <bruno@clisp.org>
14591
14592         Merge gen-ctype and gen-lbrk into a single program.
14593         * lib/gen-uni-tables.c: New file, incorporating
14594         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
14595         Add directory prefixes to the names of the generated files.
14596         * lib/unictype/gen-ctype.c: Remove file.
14597         * lib/unilbrk/gen-lbrk.c: Remove file.
14598         * modules/gen-uni-tables: New file.
14599         * modules/unictype/gen-ctype: Remove file.
14600         * modules/unilbrk/gen-lbrk: Remove file.
14601
14602 2009-02-07  Bruno Haible  <bruno@clisp.org>
14603
14604         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
14605
14606         New module 'unistr/u32-strcoll'.
14607         * modules/unistr/u32-strcoll: New file.
14608         * lib/unistr/u32-strcoll.c: New file.
14609
14610         New module 'unistr/u16-strcoll'.
14611         * modules/unistr/u16-strcoll: New file.
14612         * lib/unistr/u16-strcoll.c: New file.
14613
14614         New module 'unistr/u8-strcoll'.
14615         * modules/unistr/u8-strcoll: New file.
14616         * lib/unistr/u8-strcoll.c: New file.
14617         * lib/unistr/u-strcoll.h: New file.
14618
14619 2009-02-07  Bruno Haible  <bruno@clisp.org>
14620
14621         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
14622         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14623         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14624         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
14625         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
14626         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
14627
14628 2009-02-07  Bruno Haible  <bruno@clisp.org>
14629
14630         Make 64-bit clean.
14631         * lib/unictype/gen-ctype.c (output_predicate, output_category,
14632         output_combclass, output_bidi_category, output_decimal_digit,
14633         output_digit, output_numeric, output_mirror, output_scripts,
14634         output_ident_category): Use proper width specifier in format strings.
14635
14636 2009-02-07  Bruno Haible  <bruno@clisp.org>
14637
14638         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
14639         failure behaviour.
14640
14641 2009-02-07  Jim Meyering  <meyering@redhat.com>
14642
14643         regex: avoid compilation failure with upcoming gcc-4.4
14644         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
14645         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
14646         "... error: integer overflow in preprocessor expression".
14647
14648 2009-02-05  Ben Pfaff  <blp@gnu.org>
14649
14650         Fix link errors on Windows when close module is used.
14651         * modules/close: Add $(LIB_CLOSE) to Link section.
14652         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
14653         $(LIB_CLOSE) on Windows.
14654
14655 2009-02-05  Jim Meyering  <meyering@redhat.com>
14656
14657         still avoid unused-parameter warnings, but do it cleanly
14658         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
14659         (get_fs_usage): Cast to void instead.
14660         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
14661         (dev_from_mount_options, read_file_system_list): Cast to void.
14662         Prompted by Bruno Haible.
14663
14664 2009-02-04  Jim Meyering  <meyering@redhat.com>
14665
14666         fsusage.c: correct copyright year
14667         * lib/fsusage.c: Reflect year in which the change is pushed into
14668
14669         avoid misc. warnings
14670         * lib/fsusage.c (UNUSED_PARAM): Define.
14671         (get_fs_usage): Mark parameter "disk" as unused.
14672         * lib/getugroups.c (getgrent): Use "void" in prototype.
14673         * lib/mountlist.c: Mark unused parameters.
14674         (read_file_system_list): Declare a local with "const".
14675         * lib/nanosleep.c (getnow): Declare static.
14676         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
14677
14678         dirfd: set errno upon failure
14679         * lib/dirfd.c: Include <errno.h>.
14680         Set errno to ENOTSUP when returning -1.
14681         * modules/dirfd (Depends-on): Add errno.
14682         Suggested by John Kodis <kodis@comcast.net>.
14683
14684 2009-02-01  Bruno Haible  <bruno@clisp.org>
14685
14686         Don't assume sizeof (long) >= sizeof (void *).
14687         * lib/memcmp.c: Include stdint.h.
14688         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
14689         srcp2 to 'const byte *'.
14690         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
14691         types to uintptr_t.
14692         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
14693         * modules/memcmp (Depends-on): Add stdint.
14694         Reported by Ozkan Sezer <sezeroz@gmail.com>.
14695
14696 2009-01-30  Eric Blake  <ebb9@byu.net>
14697
14698         fix more require-before-expand issues
14699         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
14700         expand, AC_PROG_AWK.
14701         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
14702
14703 2009-01-28  Eric Blake  <ebb9@byu.net>
14704
14705         version-etc: use consistent URL formatting
14706         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
14707         Improve formatting.  Use fputs for string without %.
14708
14709 2009-01-28  Jim Meyering  <meyering@redhat.com>
14710
14711         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
14712         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
14713         "underquoted definition of NAME" from autoconf-2.59.
14714
14715 2009-01-28  Bruno Haible  <bruno@clisp.org>
14716
14717         * doc/gnulib.texi: Add "Obsolete modules" to index.
14718
14719 2009-01-28  Jim Meyering  <meyering@redhat.com>
14720
14721         useless-if-before-free: recognize more variants
14722         * build-aux/useless-if-before-free: Also recognize e.g.,
14723         if (NULL != p) free (p);
14724
14725 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
14726
14727         test-getaddrinfo: skip (don't fail) this test when there's no network
14728         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
14729         on the presumption that it means you lack network access.
14730
14731 2009-01-26  Jim Meyering  <meyering@redhat.com>
14732
14733         fflush: avoid warnings on modern systems
14734         * lib/fflush.c (rpl_fflush): Move declarations of locals,
14735         pos and result, into scopes where they're used.
14736
14737 2009-01-26  Eric Blake  <ebb9@byu.net>
14738
14739         Silence warning reintroduced by recent extensions patch.
14740         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
14741         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
14742         autoconf.
14743
14744         Backport improved autoconf semantics of AC_DEFUN_ONCE.
14745         * m4/00gnulib.m4: New file.
14746         * gnulib-tool (func_get_filelist): Always use it.
14747         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
14748         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
14749
14750 2009-01-25  Bruno Haible  <bruno@clisp.org>
14751
14752         Make test-quotearg work on MacOS X and AIX.
14753         * tests/test-quotearg.sh: New file.
14754         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
14755         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
14756         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
14757         include <libintl.h>.
14758         (fake_locale): Remove variable.
14759         (gettext, dgettext, dcgettext): Remove functions.
14760         (main): Instead of setting a fake locale, set a real locale. Call
14761         textdomain and bindtextdomain.
14762         * modules/quotearg-tests (Files): Add the new files.
14763         (Depends-on): Add gettext, setenv, unsetenv.
14764         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14765         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
14766         Augment TESTS_ENVIRONMENT.
14767
14768 2009-01-25  Bruno Haible  <bruno@clisp.org>
14769
14770         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
14771         fr_FR.ISO8859-1 locale on MacOS X.
14772         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
14773         ja_JP.eucJP locale on MacOS X.
14774         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
14775         zh_CN.GB18030 locale on MacOS X.
14776
14777 2009-01-25  Bruno Haible  <bruno@clisp.org>
14778
14779         Avoid link errors on MacOS X 10.3.
14780         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
14781         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14782
14783 2009-01-25  Bruno Haible  <bruno@clisp.org>
14784
14785         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14786         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
14787         * modules/pipe (Files): Remove m4/posix_spawn.m4.
14788         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14789         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
14790         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14791         posix_spawnattr_init, posix_spawnattr_setsigmask,
14792         posix_spawnattr_setflags, posix_spawnattr_destroy.
14793
14794         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14795         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
14796         * modules/execute (Files): Remove m4/posix_spawn.m4.
14797         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14798         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14799         posix_spawnattr_init, posix_spawnattr_setsigmask,
14800         posix_spawnattr_setflags, posix_spawnattr_destroy.
14801
14802 2009-01-25  Bruno Haible  <bruno@clisp.org>
14803
14804         * lib/glthread/threadlib.c: Include <stdlib.h>.
14805
14806 2009-01-25  Bruno Haible  <bruno@clisp.org>
14807
14808         * lib/glthread/threadlib.c (dummy): New declaration.
14809
14810 2009-01-25  Bruno Haible  <bruno@clisp.org>
14811
14812         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
14813         multibyte characters also for the GB18030 encoding. Don't crash when
14814         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
14815
14816 2009-01-25  Bruno Haible  <bruno@clisp.org>
14817
14818         Avoid redefining 'struct random_data' on OSF/1 5.1.
14819         * lib/stdlib.in.h: Include <random.h> if it exists.
14820         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
14821         HAVE_RANDOM_H. Include <random.h> when testing whether
14822         'struct random_data' exists.
14823         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
14824
14825 2009-01-25  Bruno Haible  <bruno@clisp.org>
14826
14827         Don't install charset.alias on MacOS X >= 10.3.
14828         * lib/localcharset.c (DARWIN7): New macro.
14829         (get_charset_aliases): Hardcode the result for Darwin7.
14830         * modules/localcharset (install-exec-local): Don't install
14831         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
14832
14833 2009-01-25  Bruno Haible  <bruno@clisp.org>
14834
14835         Don't install charset.alias on mingw and Cygwin.
14836         * modules/localcharset (install-exec-local): Don't install
14837         charset.alias on mingw and Cygwin, if the file does not yet exist.
14838         The result for these platforms is hardcoded in localcharset.c.
14839
14840 2009-01-25  Bruno Haible  <bruno@clisp.org>
14841
14842         Make it possible again to use AC_GNU_SOURCE together with gnulib.
14843         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
14844         before requiring AC_USE_SYSTEM_EXTENSIONS.
14845
14846 2009-01-25  Jim Meyering  <meyering@redhat.com>
14847
14848         c-strtod: avoid warnings
14849         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
14850         "assignment discards qualifiers from pointer target type" warnings.
14851
14852 2009-01-24  Bruno Haible  <bruno@clisp.org>
14853
14854         Add support for non-UTF-8 locales on MacOS X.
14855         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
14856         canonical encodings. For Darwin 7 and newer, don't map traditional
14857         encodings to UTF-8.
14858         Reported by Vincent Lefevre <vincent@vinc17.org>
14859         at <http://savannah.gnu.org/bugs/?25235>.
14860
14861 2009-01-24  Bruno Haible  <bruno@clisp.org>
14862
14863         * doc/gnulib.texi (Obsolete modules): New section.
14864         Reported by Mike Frysinger <vapier@gentoo.org>.
14865
14866 2009-01-24  Bruno Haible  <bruno@clisp.org>
14867
14868         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
14869         (%.dvi): New rule.
14870
14871 2009-01-24  Bruno Haible  <bruno@clisp.org>
14872
14873         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
14874         Reported by Eric Blake.
14875
14876 2009-01-24  Bruno Haible  <bruno@clisp.org>
14877
14878         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
14879         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
14880         Reported by Gary V. Vaughan <gary@gnu.org>.
14881
14882 2009-01-24  Bruno Haible  <bruno@clisp.org>
14883
14884         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
14885
14886 2009-01-23  Bruno Haible  <bruno@clisp.org>
14887
14888         Make c-strtod, c-strtold usable in libraries.
14889         * lib/c-strtod.c: Include string.h instead of xalloc.h.
14890         (C_STRTOD): Call strdup instead of xstrdup.
14891         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
14892         * modules/c-strtold (Depends-on): Likewise.
14893         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
14894         * NEWS: Mention the change.
14895         Reported by Michael Gold <mgold@ncf.ca>.
14896
14897 2009-01-23  Jim Meyering  <meyering@redhat.com>
14898
14899         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
14900         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
14901         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
14902
14903 2009-01-23  Simon Josefsson  <simon@josefsson.org>
14904
14905         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
14906         GNU CoreUtils.
14907         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
14908         * modules/version-etc (Description): Update.
14909
14910 2009-01-22  Bruno Haible  <bruno@clisp.org>
14911
14912         Cache the C locale object.
14913         * lib/c-strtod.c (c_locale_cache): New variable.
14914         (c_locale): New function.
14915         (C_STRTOD): Use it, and don't call freelocale.
14916         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
14917         Suggested by Paolo Bonzini.
14918
14919 2009-01-21  Bruno Haible  <bruno@clisp.org>
14920
14921         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
14922         conditions other than overflow.
14923
14924 2009-01-21  Bruno Haible  <bruno@clisp.org>
14925
14926         * lib/c-strtod.c: Include errno.h.
14927         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
14928         value from STRTOD_L and STRTOD.
14929
14930 2009-01-21  Bruno Haible  <bruno@clisp.org>
14931         and Jim Meyering  <meyering@redhat.com>
14932
14933         nanosleep: skip configure test (fail it) for apple universal builds
14934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
14935         universal builds, assume that nanosleep does not work.
14936         * modules/nanosleep (Depends-on): Add multiarch.
14937
14938         mktime: skip configure test (fail it) for apple universal builds
14939         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
14940         universal builds, assume that mktime does not work.
14941         * modules/mktime (Depends-on): Add multiarch.
14942
14943 2009-01-21  Eric Blake  <ebb9@byu.net>
14944
14945         multiarch: avoid expand-before-require warning
14946         * modules/multiarch (configure.ac): Require, rather than expand,
14947         gl_MULTIARCH.
14948         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
14949         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
14950         enforce that all clients require it.  Partial reversion of
14951         2008-12-29 patch.
14952
14953         error: avoid expand-before-require warning
14954         * modules/errno (configure.ac): Require, rather than expand,
14955         gl_HEADER_ERRNO_H.
14956         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
14957         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
14958         enforce that all clients require it.
14959
14960         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
14961         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
14962         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
14963         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
14964
14965 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
14966
14967         Revert:
14968         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
14969
14970         regex: do not depend on obsolete modules.
14971         * modules/regex: Remove memcmp and memmove.
14972
14973 2009-01-20  Bruno Haible  <bruno@clisp.org>
14974
14975         Make the 'link' module link on Windows NT 4.
14976         * lib/link.c (_WIN32_WINNT): Don't define.
14977         (CreateHardLinkFuncType): New type.
14978         (CreateHardLinkFunc, initialized): New variables.
14979         (initialize): New function.
14980         (link): Invoke CreateHardLink indirectly through the function pointer.
14981
14982 2009-01-20  Bruno Haible  <bruno@clisp.org>
14983
14984         Fix compilation failure on mingw.
14985         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
14986
14987 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
14988
14989         * doc/c-strtod.texi: Mention a couple of restrictions.
14990
14991 2009-01-20  Jim Meyering  <meyering@redhat.com>
14992
14993         gettimeofday: move more declarations out of functions
14994         * lib/gettimeofday.c: Move extern declarations of tzset and
14995         gmtime out of containing functions.  Prompted by Bruno Haible.
14996
14997 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
14998
14999         regex: do not depend on obsolete modules.
15000         * modules/regex: Remove memcmp and memmove.
15001
15002 2009-01-19  Bruno Haible  <bruno@clisp.org>
15003
15004         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15005         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15006         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15007         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15008         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15009
15010 2009-01-19  Bruno Haible  <bruno@clisp.org>
15011
15012         * tests/test-link.c: Include <errno.h>.
15013         (main): Exit with code 77 when a hard link cannot be created due to
15014         the file system.
15015         * tests/test-link.sh: Skip test when a hard link cannot be created due
15016         to the file system.
15017         Suggested by Eric Blake.
15018
15019 2009-01-19  Martin Lambers  <marlam@marlam.de>
15020
15021         * modules/link-tests: New file.
15022         * tests/test-link.sh: New file.
15023         * tests/test-link.c: New file.
15024
15025 2009-01-19  Eric Blake  <ebb9@byu.net>
15026
15027         doc: mention another function added in cygwin 1.7.0
15028         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15029         Another new function in cygwin 1.7.
15030
15031 2009-01-19  Bruno Haible  <bruno@clisp.org>
15032
15033         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15034         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15035         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15036         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15037         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15038         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15039         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15040         * m4/md4.m4 (gl_MD4): Likewise.
15041         * m4/md5.m4 (gl_MD5): Likewise.
15042         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15043         * m4/sha1.m4 (gl_SHA1): Likewise.
15044         * m4/sha256.m4 (gl_SHA256): Likewise.
15045         * m4/sha512.m4 (gl_SHA512): Likewise.
15046
15047 2009-01-19  Bruno Haible  <bruno@clisp.org>
15048
15049         * modules/uniname/uniname-tests (Depends-on): Add progname.
15050         * tests/uniname/test-uninames.c: Include progname.h.
15051         (main): Call set_program_name.
15052
15053         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15054         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15055         (main): Call set_program_name.
15056
15057         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15058         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15059         (main): Call set_program_name.
15060
15061         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15062         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15063         (main): Call set_program_name.
15064
15065         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15066         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15067         (main): Call set_program_name.
15068
15069         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15070         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15071         (main): Call set_program_name.
15072
15073         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15074         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15075         (main): Call set_program_name.
15076
15077         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15078         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15079         (main): Call set_program_name.
15080
15081         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15082         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15083         (main): Call set_program_name.
15084
15085 2009-01-19  Eric Blake  <ebb9@byu.net>
15086
15087         test-unistd: test previous patch
15088         * tests/test-unistd.c: Test *_FILENO macros.
15089
15090         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15091         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15092         Guarantee a definition.
15093         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15094         * modules/unistd-safer (Depends-on): Add dependency on unistd.
15095         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15096         * lib/dup-safer.c (STDERR_FILENO): Likewise.
15097         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15098         Likewise.
15099         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15100         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15101         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15102         Likewise.
15103         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15104         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15105         (STDERR_FILENO): Likewise.
15106         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15107         (STDERR_FILENO): Likewise.
15108         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15109         (STDERR_FILENO): Likewise.
15110         Reported by Elbert Pol.
15111
15112 2009-01-19  Eric Blake  <ebb9@byu.net>
15113
15114         doc: mention more functions added in cygwin 1.7.0
15115         * doc/posix-functions/abort.texi (abort): Update wording related
15116         to cygwin.
15117         * doc/posix-functions/daylight.texi (daylight): Likewise.
15118         * doc/posix-functions/optarg.texi (optarg): Likewise.
15119         * doc/posix-functions/optarg.texi (opterr): Likewise.
15120         * doc/posix-functions/optarg.texi (optind): Likewise.
15121         * doc/posix-functions/optarg.texi (optopt): Likewise.
15122         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15123         worked in 1.5.x, and was withdrawn in 1.7.
15124         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15125         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15126         cygwin versions.
15127         * doc/posix-functions/perror.texi (perror): Likewise.
15128         * doc/posix-functions/printf.texi (printf): Likewise.
15129         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15130         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15131         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15132         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15133         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15134         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15135         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15136         Likewise.
15137         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15138         Likewise.
15139         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15140         this function.
15141         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15142         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15143         Likewise.
15144         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15145         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15146         * doc/posix-functions/confstr.texi (confstr): Likewise.
15147         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15148         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15149         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15150         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15151         * doc/posix-functions/fputws.texi (fputws): Likewise.
15152         * doc/posix-functions/fwide.texi (fwide): Likewise.
15153         * doc/posix-functions/getwc.texi (getwc): Likewise.
15154         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15155         * doc/posix-functions/putwc.texi (putwc): Likewise.
15156         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15157         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15158         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15159         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15160         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15161         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15162         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15163         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15164         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15165         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15166         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15167
15168 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15169
15170         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15171         * lib/ioctl.c: Include <sys/ioctl.h>.
15172
15173 2009-01-19  Simon Josefsson  <simon@josefsson.org>
15174
15175         * modules/getdate-tests (Depends-on): Add progname.
15176         * tests/test-getdate.c: Use progname module, to avoid link errors
15177         on non-glibc systems.
15178
15179 2009-01-18  Simon Josefsson  <simon@josefsson.org>
15180
15181         * modules/filenamecat-tests (Depends-on): Add progname.
15182         * modules/fstrcmp-tests (Depends-on): Likewise.
15183
15184         * tests/test-filenamecat.c: Use progname module, to avoid link
15185         errors on non-glibc systems.
15186         * tests/test-fstrcmp.c: Likewise.
15187
15188 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15189
15190         gettimeofday: avoid warning: nested extern declaration of 'localtime'
15191         * lib/gettimeofday.c: Move extern declaration out of function.
15192
15193 2009-01-18  Bruno Haible  <bruno@clisp.org>
15194
15195         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15196         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15197         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15198
15199 2009-01-18  Bruno Haible  <bruno@clisp.org>
15200
15201         * lib/strftime.c (MEMPCPY): Remove unused macro.
15202         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15203
15204 2009-01-18  Martin Lambers  <marlam@marlam.de>
15205
15206         New module 'link'.
15207         * lib/unistd.in.h (link): New declaration.
15208         * lib/link.c: New file.
15209         * m4/link.m4: New file.
15210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15211         HAVE_LINK.
15212         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15213         * modules/link: New file.
15214         * doc/posix-functions/link.texi: Mention the new module.
15215
15216 2009-01-18  Bruno Haible  <bruno@clisp.org>
15217
15218         * tests/test-avltree_list.c (main): Call set_program_name.
15219         * tests/test-avltree_oset.c (main): Likewise.
15220         * tests/test-obstack-printf.c: Include progname.h.
15221         (main): Call set_program_name.
15222         * tests/test-quotearg.c: Include progname.h.
15223         (main): Call set_program_name.
15224         * tests/test-xmemdup0.c: Include progname.h.
15225         (main): Call set_program_name.
15226
15227 2009-01-18  Bruno Haible  <bruno@clisp.org>
15228
15229         New module 'alphasort'.
15230         * lib/dirent.in.h (alphasort): New declaration.
15231         * lib/alphasort.c: New file, from glibc with modifications.
15232         * m4/alphasort.m4: New file.
15233         * modules/alphasort: New file.
15234         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15235         HAVE_ALPHASORT.
15236         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15237         HAVE_ALPHASORT.
15238         * doc/posix-functions/alphasort.texi: Mention the new module and the
15239         portability problems.
15240
15241 2009-01-18  Bruno Haible  <bruno@clisp.org>
15242
15243         New module 'scandir'.
15244         * lib/dirent.in.h (scandir): New declaration.
15245         * lib/scandir.c: New file, from glibc with modifications.
15246         * m4/scandir.m4: New file.
15247         * modules/scandir: New file.
15248         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15249         HAVE_SCANDIR.
15250         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15251         HAVE_SCANDIR.
15252         * doc/posix-functions/scandir.texi: Mention the new module and the
15253         portability problems.
15254
15255 2009-01-17  Bruno Haible  <bruno@clisp.org>
15256
15257         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15258         Update documentation.
15259         (func_remove_suffix): Escape all dots in the suffix. Update
15260         documentation.
15261         (func_filter_filelist): Update documentation.
15262         Reported by Ralf Wildenhues.
15263
15264 2009-01-17  Bruno Haible  <bruno@clisp.org>
15265
15266         * modules/dprintf-posix-tests: New file.
15267         * tests/test-dprintf-posix.sh: New file.
15268         * tests/test-dprintf-posix.c: New file.
15269
15270         New modules 'dprintf', 'dprintf-posix'.
15271         * lib/stdio.in.h (dprintf): New declaration.
15272         * lib/dprintf.c: New file.
15273         * m4/dprintf.m4: New file.
15274         * m4/dprintf-posix.m4: New file.
15275         * modules/dprintf: New file.
15276         * modules/dprintf-posix: New file.
15277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15278         HAVE_DPRINTF, REPLACE_DPRINTF.
15279         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15280         HAVE_DPRINTF, REPLACE_DPRINTF.
15281         * doc/posix-functions/dprintf.texi: Mention the new modules.
15282
15283 2009-01-17  Bruno Haible  <bruno@clisp.org>
15284
15285         * modules/vdprintf-posix-tests: New file.
15286         * tests/test-vdprintf-posix.sh: New file.
15287         * tests/test-vdprintf-posix.c: New file.
15288
15289         New modules 'vdprintf', 'vdprintf-posix'.
15290         * lib/stdio.in.h (vdprintf): New declaration.
15291         * lib/vdprintf.c: New file.
15292         * m4/vdprintf.m4: New file.
15293         * m4/vdprintf-posix.m4: New file.
15294         * modules/vdprintf: New file.
15295         * modules/vdprintf-posix: New file.
15296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
15297         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15298         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
15299         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15300         * doc/posix-functions/vdprintf.texi: Mention the new modules.
15301
15302 2009-01-17  Bruno Haible  <bruno@clisp.org>
15303
15304         Fix replacement of fopen on mingw.
15305         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
15306         mingw.
15307
15308 2009-01-17  Bruno Haible  <bruno@clisp.org>
15309
15310         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
15311         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
15312
15313 2009-01-17  Bruno Haible  <bruno@clisp.org>
15314
15315         Avoid test-fflush2.sh failure on mingw.
15316         * tests/test-fflush2.c: Include binary-io.h.
15317         (main): Put standard input into binary mode.
15318         * modules/fflush-tests (Depends-on): Add binary-io.
15319
15320 2009-01-17  Bruno Haible  <bruno@clisp.org>
15321
15322         * lib/wchar.in.h: In another particular situation, include only the
15323         system's <wchar.h> file.
15324         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
15325         Reported by Albert Chin-A-Young <china@thewrittenword.com>
15326         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
15327
15328 2009-01-17  Bruno Haible  <bruno@clisp.org>
15329
15330         Support for stripping executables in --enable-relocatable.
15331         * build-aux/install-reloc: Expect one more argument, or an environment
15332         variable RELOC_STRIP_PROG. If set, strip the destination program and
15333         its wrapper.
15334         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
15335         RELOC_STRIP_PROG.
15336         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
15337         to set RELOCATABLE_STRIP.
15338         * NEWS: Mention the new Makefile requirement.
15339
15340 2009-01-17  Bruno Haible  <bruno@clisp.org>
15341
15342         * build-aux/install-reloc: Remove debugging information left over by
15343         C compiler on MacOS X.
15344
15345 2009-01-17  Bruno Haible  <bruno@clisp.org>
15346
15347         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
15348         * lib/progreloc.c (find_executable): Fix type of pointer passed to
15349         _NSGetExecutablePath.
15350
15351 2009-01-16  Jim Meyering  <meyering@redhat.com>
15352
15353         strerror: avoid warnings about discarding "const"
15354         * lib/strerror.c (rpl_strerror): Instead of returning a const
15355         string from each and every "case", use a variable, and add a single
15356         cast after the switch.
15357
15358 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
15359
15360         * lib/arpa_inet.in.h: Add extern "C" block for C++.
15361
15362 2009-01-16  Bruno Haible  <bruno@clisp.org>
15363
15364         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
15365         array initializer syntax that also works in C++ mode.
15366         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15367
15368 2009-01-16  Jim Meyering  <meyering@redhat.com>
15369
15370         poll: suppress a warning
15371         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
15372         to ignore "...unsigned expression < 0 is always false" warnings.
15373
15374 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
15375
15376         poll: remove declarations of unused variables
15377         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
15378         sockbuf and optlen.
15379
15380 2009-01-15  Bruno Haible  <bruno@clisp.org>
15381
15382         Make fflush-after-ungetc POSIX compliant on BSD systems.
15383         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
15384         (clear_ungetc_buffer): Implement also for other systems.
15385         (rpl_fflush): On glibc systems, invoke
15386         clear_ungetc_buffer_preserving_position. Otherwise, invoke
15387         clear_ungetc_buffer after fetching the stream's position, not before.
15388
15389 2009-01-15  Bruno Haible  <bruno@clisp.org>
15390
15391         Make fflush-after-ungetc POSIX compliant on glibc systems.
15392         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
15393         after ungetc.
15394         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
15395         (rpl_fflush): On glibc systems, simply call the system's fflush
15396         function after clearing the ungetc buffer.
15397         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
15398         Instead, lseek only to the end of file, then use the system's fseeko
15399         for the rest. On glibc systems, reset the EOF indicator bit.
15400
15401 2009-01-15  Jim Meyering  <meyering@redhat.com>
15402
15403         openmp.m4: revert quote-adding change, for portability to older autoconf
15404         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
15405         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
15406         Simon Josefsson noticed the problem when using autoconf-2.61.
15407
15408 2009-01-15  Bruno Haible  <bruno@clisp.org>
15409
15410         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
15411         * tests/test-fflush2.c (ASSERT): Always fail.
15412         (main): Add two tests for fflush() after ungetc(), taking into account
15413         the Austin Group's clarification.
15414         Suggested by Eric Blake.
15415
15416 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
15417
15418         mktime.m4: remove K&R-style function prototypes
15419         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
15420         for the Sun C++ compiler.
15421
15422 2009-01-14  Bruno Haible  <bruno@clisp.org>
15423
15424         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
15425         while including <wchar.h>.
15426         * lib/wchar.in.h: In two particular situations on HP-UX, include only
15427         the system's <wchar.h> file.
15428         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15429
15430 2009-01-14  Bruno Haible  <bruno@clisp.org>
15431
15432         * m4/csharp.m4: Don't mention gettext on the serial number line.
15433         * m4/csharpexec.m4: Likewise.
15434         * m4/eaccess.m4: Likewise.
15435         * m4/javaexec.m4: Likewise.
15436         * m4/sig_atomic_t.m4: Likewise.
15437         * m4/tmpdir.m4: Likewise.
15438         * m4/intldir.m4: Bump gettext version.
15439         * m4/lib-ld.m4: Likewise.
15440
15441 2009-01-14  Bruno Haible  <bruno@clisp.org>
15442
15443         * lib/progname.c (set_program_name): Add more comments.
15444         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15445
15446 2009-01-14  Simon Josefsson  <simon@josefsson.org>
15447
15448         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
15449         were sys/stat.h does not define it.
15450
15451 2009-01-14  Jim Meyering  <meyering@redhat.com>
15452
15453         many *.m4 files: improve m4 quoting
15454         99% of this change was performed by running the following commands:
15455         git ls-files | grep '\.m4$' | xargs perl -pi \
15456           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
15457           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15458           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15459           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
15460         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
15461         The remainder were to add Copyright dates, increment serial numbers,
15462         undo some changes in comments, exclude m4/intl.m4, and add quotes
15463         around the "1" in ",1" where the unusual spacing prohibited the
15464         above regexps from doing the job.  For more details, see
15465         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
15466         * m4/acl.m4: Modified.
15467         * m4/afs.m4: Likewise.
15468         * m4/alloca.m4: Likewise.
15469         * m4/argp.m4: Likewise.
15470         * m4/argz.m4: Likewise.
15471         * m4/atexit.m4: Likewise.
15472         * m4/bison-i18n.m4: Likewise.
15473         * m4/bison.m4: Likewise.
15474         * m4/byteswap.m4: Likewise.
15475         * m4/c-stack.m4: Likewise.
15476         * m4/c-strtod.m4: Likewise.
15477         * m4/calloc.m4: Likewise.
15478         * m4/canonicalize-lgpl.m4: Likewise.
15479         * m4/chown.m4: Likewise.
15480         * m4/clock_time.m4: Likewise.
15481         * m4/codeset.m4: Likewise.
15482         * m4/copy-file.m4: Likewise.
15483         * m4/csharp.m4: Likewise.
15484         * m4/csharpcomp.m4: Likewise.
15485         * m4/csharpexec.m4: Likewise.
15486         * m4/d-ino.m4: Likewise.
15487         * m4/d-type.m4: Likewise.
15488         * m4/dirfd.m4: Likewise.
15489         * m4/double-slash-root.m4: Likewise.
15490         * m4/eaccess.m4: Likewise.
15491         * m4/eealloc.m4: Likewise.
15492         * m4/environ.m4: Likewise.
15493         * m4/errno_h.m4: Likewise.
15494         * m4/euidaccess.m4: Likewise.
15495         * m4/execute.m4: Likewise.
15496         * m4/fatal-signal.m4: Likewise.
15497         * m4/fchdir.m4: Likewise.
15498         * m4/fcntl_h.m4: Likewise.
15499         * m4/fileblocks.m4: Likewise.
15500         * m4/filenamecat.m4: Likewise.
15501         * m4/findprog.m4: Likewise.
15502         * m4/flexmember.m4: Likewise.
15503         * m4/fnmatch.m4: Likewise.
15504         * m4/fopen.m4: Likewise.
15505         * m4/fpending.m4: Likewise.
15506         * m4/fprintf-posix.m4: Likewise.
15507         * m4/free.m4: Likewise.
15508         * m4/frexp.m4: Likewise.
15509         * m4/frexpl.m4: Likewise.
15510         * m4/fsusage.m4: Likewise.
15511         * m4/ftruncate.m4: Likewise.
15512         * m4/gc-camellia.m4: Likewise.
15513         * m4/gc-random.m4: Likewise.
15514         * m4/gc.m4: Likewise.
15515         * m4/getaddrinfo.m4: Likewise.
15516         * m4/getcwd-abort-bug.m4: Likewise.
15517         * m4/getcwd-path-max.m4: Likewise.
15518         * m4/getdate.m4: Likewise.
15519         * m4/getdomainname.m4: Likewise.
15520         * m4/getgroups.m4: Likewise.
15521         * m4/gethostname.m4: Likewise.
15522         * m4/gethrxtime.m4: Likewise.
15523         * m4/getline.m4: Likewise.
15524         * m4/getloadavg.m4: Likewise.
15525         * m4/getndelim2.m4: Likewise.
15526         * m4/getpass.m4: Likewise.
15527         * m4/gettext.m4: Likewise.
15528         * m4/gettime.m4: Likewise.
15529         * m4/gettimeofday.m4: Likewise.
15530         * m4/gnulib-common.m4: Likewise.
15531         * m4/group-member.m4: Likewise.
15532         * m4/host-os.m4: Likewise.
15533         * m4/iconv.m4: Likewise.
15534         * m4/iconv_open.m4: Likewise.
15535         * m4/inet_ntop.m4: Likewise.
15536         * m4/inet_pton.m4: Likewise.
15537         * m4/inline.m4: Likewise.
15538         * m4/intldir.m4: Likewise.
15539         * m4/intlmacosx.m4: Likewise.
15540         * m4/intmax.m4: Likewise.
15541         * m4/intmax_t.m4: Likewise.
15542         * m4/inttypes.m4: Likewise.
15543         * m4/inttypes_h.m4: Likewise.
15544         * m4/inttypes-pri.m4: Likewise.
15545         * m4/isapipe.m4: Likewise.
15546         * m4/isnand.m4: Likewise.
15547         * m4/isnanf.m4: Likewise.
15548         * m4/isnanl.m4: Likewise.
15549         * m4/javacomp.m4: Likewise.
15550         * m4/javaexec.m4: Likewise.
15551         * m4/jm-winsz1.m4: Likewise.
15552         * m4/jm-winsz2.m4: Likewise.
15553         * m4/lchown.m4: Likewise.
15554         * m4/lcmessage.m4: Likewise.
15555         * m4/ldexpl.m4: Likewise.
15556         * m4/lib-ld.m4: Likewise.
15557         * m4/lib-link.m4: Likewise.
15558         * m4/libsigsegv.m4: Likewise.
15559         * m4/link-follow.m4: Likewise.
15560         * m4/localcharset.m4: Likewise.
15561         * m4/locale-fr.m4: Likewise.
15562         * m4/locale-ja.m4: Likewise.
15563         * m4/locale-tr.m4: Likewise.
15564         * m4/locale-zh.m4: Likewise.
15565         * m4/lock.m4: Likewise.
15566         * m4/longlong.m4: Likewise.
15567         * m4/ls-mntd-fs.m4: Likewise.
15568         * m4/lstat.m4: Likewise.
15569         * m4/malloc.m4: Likewise.
15570         * m4/mathl.m4: Likewise.
15571         * m4/mbrtowc.m4: Likewise.
15572         * m4/mbstate_t.m4: Likewise.
15573         * m4/mbswidth.m4: Likewise.
15574         * m4/memchr.m4: Likewise.
15575         * m4/memcmp.m4: Likewise.
15576         * m4/memcpy.m4: Likewise.
15577         * m4/memmem.m4: Likewise.
15578         * m4/memmove.m4: Likewise.
15579         * m4/mempcpy.m4: Likewise.
15580         * m4/memrchr.m4: Likewise.
15581         * m4/memset.m4: Likewise.
15582         * m4/minmax.m4: Likewise.
15583         * m4/mkdir-slash.m4: Likewise.
15584         * m4/mkdtemp.m4: Likewise.
15585         * m4/mktime.m4: Likewise.
15586         * m4/mmap-anon.m4: Likewise.
15587         * m4/mountlist.m4: Likewise.
15588         * m4/nanosleep.m4: Likewise.
15589         * m4/nls.m4: Likewise.
15590         * m4/nocrash.m4: Likewise.
15591         * m4/open.m4: Likewise.
15592         * m4/openat.m4: Likewise.
15593         * m4/openmp.m4: Likewise.
15594         * m4/pathmax.m4: Likewise.
15595         * m4/perl.m4: Likewise.
15596         * m4/physmem.m4: Likewise.
15597         * m4/pipe.m4: Likewise.
15598         * m4/po.m4: Likewise.
15599         * m4/poll.m4: Likewise.
15600         * m4/posixtm.m4: Likewise.
15601         * m4/posixver.m4: Likewise.
15602         * m4/printf-frexp.m4: Likewise.
15603         * m4/printf-frexpl.m4: Likewise.
15604         * m4/printf-posix.m4: Likewise.
15605         * m4/printf-posix-rpl.m4: Likewise.
15606         * m4/printf.m4: Likewise.
15607         * m4/progtest.m4: Likewise.
15608         * m4/putenv.m4: Likewise.
15609         * m4/readline.m4: Likewise.
15610         * m4/readlink.m4: Likewise.
15611         * m4/readutmp.m4: Likewise.
15612         * m4/realloc.m4: Likewise.
15613         * m4/regex.m4: Likewise.
15614         * m4/relocatable.m4: Likewise.
15615         * m4/relocatable-lib.m4: Likewise.
15616         * m4/rename-dest-slash.m4: Likewise.
15617         * m4/rename.m4: Likewise.
15618         * m4/rmdir-errno.m4: Likewise.
15619         * m4/rmdir.m4: Likewise.
15620         * m4/roundf.m4: Likewise.
15621         * m4/roundl.m4: Likewise.
15622         * m4/rpmatch.m4: Likewise.
15623         * m4/save-cwd.m4: Likewise.
15624         * m4/selinux-selinux-h.m4: Likewise.
15625         * m4/setenv.m4: Likewise.
15626         * m4/settime.m4: Likewise.
15627         * m4/sig2str.m4: Likewise.
15628         * m4/sig_atomic_t.m4: Likewise.
15629         * m4/signalblocking.m4: Likewise.
15630         * m4/signbit.m4: Likewise.
15631         * m4/sigpipe.m4: Likewise.
15632         * m4/sockets.m4: Likewise.
15633         * m4/sockpfaf.m4: Likewise.
15634         * m4/st_dm_mode.m4: Likewise.
15635         * m4/stat-time.m4: Likewise.
15636         * m4/stdbool.m4: Likewise.
15637         * m4/stdint.m4: Likewise.
15638         * m4/stdint_h.m4: Likewise.
15639         * m4/stpcpy.m4: Likewise.
15640         * m4/stpncpy.m4: Likewise.
15641         * m4/strcase.m4: Likewise.
15642         * m4/strchrnul.m4: Likewise.
15643         * m4/strcspn.m4: Likewise.
15644         * m4/strdup.m4: Likewise.
15645         * m4/strftime.m4: Likewise.
15646         * m4/strndup.m4: Likewise.
15647         * m4/strnlen.m4: Likewise.
15648         * m4/strpbrk.m4: Likewise.
15649         * m4/strptime.m4: Likewise.
15650         * m4/strsep.m4: Likewise.
15651         * m4/strtod.m4: Likewise.
15652         * m4/strtoimax.m4: Likewise.
15653         * m4/strtok_r.m4: Likewise.
15654         * m4/strtol.m4: Likewise.
15655         * m4/strtoll.m4: Likewise.
15656         * m4/strtoul.m4: Likewise.
15657         * m4/strtoull.m4: Likewise.
15658         * m4/strtoumax.m4: Likewise.
15659         * m4/strverscmp.m4: Likewise.
15660         * m4/threadlib.m4: Likewise.
15661         * m4/timegm.m4: Likewise.
15662         * m4/tm_gmtoff.m4: Likewise.
15663         * m4/tmpdir.m4: Likewise.
15664         * m4/tmpfile.m4: Likewise.
15665         * m4/tzset.m4: Likewise.
15666         * m4/uintmax_t.m4: Likewise.
15667         * m4/unlinkdir.m4: Likewise.
15668         * m4/unlocked-io.m4: Likewise.
15669         * m4/uptime.m4: Likewise.
15670         * m4/userspec.m4: Likewise.
15671         * m4/utimbuf.m4: Likewise.
15672         * m4/utime.m4: Likewise.
15673         * m4/utimes-null.m4: Likewise.
15674         * m4/utimes.m4: Likewise.
15675         * m4/vararrays.m4: Likewise.
15676         * m4/vasnprintf.m4: Likewise.
15677         * m4/vfprintf-posix.m4: Likewise.
15678         * m4/vprintf-posix.m4: Likewise.
15679         * m4/wait-process.m4: Likewise.
15680         * m4/wchar_t.m4: Likewise.
15681         * m4/wint_t.m4: Likewise.
15682         * m4/write-any-file.m4: Likewise.
15683         * m4/yield.m4: Likewise.
15684
15685 2009-01-13  Bruno Haible  <bruno@clisp.org>
15686
15687         Avoid test-copy-file.sh failures when ACL support insufficient.
15688         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
15689         TESTS_ENVIRONMENT.
15690         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
15691         Reported by Jim Meyering.
15692
15693 2009-01-13  Bruno Haible  <bruno@clisp.org>
15694
15695         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
15696         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
15697         * modules/unistdio/u8-printf-parse (Files): Likewise.
15698         * modules/unistdio/u32-printf-parse (Files): Likewise.
15699         * modules/unistdio/ulc-printf-parse (Files): Likewise.
15700
15701 2009-01-13  Simon Josefsson  <simon@josefsson.org>
15702
15703         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
15704         and m4/inttypes_h.m4 too.
15705
15706 2009-01-12  Eric Blake  <ebb9@byu.net>
15707
15708         tests: IRIX 6.2 cc can't compile -0.0 into .data
15709         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
15710         rather than at compile-time.
15711         * tests/test-floorl.c (minus_zero): Likewise.
15712         * tests/test-frexpl.c (minus_zero): Likewise.
15713         * tests/test-isnan.c (minus_zerol): Likewise.
15714         * tests/test-isnanl.h (minus_zero): Likewise.
15715         * tests/test-ldexpl.c (minus_zero): Likewise.
15716         * tests/test-roundl.c (minus_zero): Likewise.
15717         * tests/test-signbit.c (minus_zerol): Likewise.
15718         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
15719         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
15720         * tests/test-truncl.c (minus_zero): Likewise.
15721         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
15722         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
15723         Reported by Tom G. Christensen and Nelson H. F. Beebe.
15724
15725 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15726
15727         regex: fix glibc bug 9697
15728         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
15729         handling.
15730
15731 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15732
15733         regex: fix glibc bug 697
15734         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
15735         being NULL also if there are no backreferences.
15736
15737 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15738
15739         regex: merge glibc changes
15740         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
15741         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
15742         re_string_skip_chars, re_string_reconstruct): Likewise.
15743         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
15744
15745 2009-01-07  Jim Meyering  <meyering@redhat.com>
15746
15747         poll: filter through cppi
15748         * lib/poll.c: Indent cpp directives to reflect nesting.
15749
15750 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
15751
15752         poll: don't return uninitialized
15753         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
15754
15755 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
15756
15757         avoid compile failure on AIX 6.1
15758         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
15759         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
15760
15761 2009-01-04  Jim Meyering  <meyering@redhat.com>
15762
15763         remove duplicate inclusion of <stdio.h>
15764         * tests/test-fprintf-posix.c: Likewise.
15765         * tests/test-printf-posix.c: Likewise.
15766         * tests/test-snprintf-posix.c: Likewise.
15767         * tests/test-sprintf-posix.c: Likewise.
15768         * tests/test-vasprintf-posix.c: Likewise.
15769         * tests/test-vfprintf-posix.c: Likewise.
15770         * tests/test-vprintf-posix.c: Likewise.
15771         * tests/test-vsnprintf-posix.c: Likewise.
15772         * tests/test-vsprintf-posix.c: Likewise.
15773
15774 2009-01-03  Jim Meyering  <meyering@redhat.com>
15775
15776         gnulib-tool: fix sed-based filtering
15777         * gnulib-tool (func_filter_filelist): Remove extra backslash
15778         in sed_fff_filter definition.
15779
15780 2009-01-02  Jim Meyering  <meyering@redhat.com>
15781
15782         strftime: avoid compilation failure on Solaris 2.6
15783         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
15784         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
15785         Don't #define mbrlen or mbsinit, since now they're guaranteed to
15786         be available.  Reported by Tom G. Christensen.  Details in
15787         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
15788
15789 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15790             Bruno Haible  <bruno@clisp.org>
15791
15792         Speed up gnulib-tool by doing more string processing through shell
15793         built-ins.
15794         * gnulib-tool (fast_func_append): New variable.
15795         (func_remove_prefix, func_remove_suffix): New functions.
15796         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
15797         (func_filter_filelist): New function.
15798         (func_get_dependencies): Use func_remove_suffix instead of sed.
15799         (func_get_automake_snippet): Use func_filter_filelist instead of a
15800         subshell and sed invocation.
15801
15802 2009-01-01  Bruno Haible  <bruno@clisp.org>
15803
15804         Fix a security bug.
15805         * gnulib-tool (func_import, import, update): Don't allow the characters
15806         '"', '$', '`', '\' in macro arguments that become part of commands that
15807         are evaluated.
15808
15809 2009-01-01  Bruno Haible  <bruno@clisp.org>
15810
15811         * gnulib-tool (func_reset_sigpipe): Add more comments.
15812
15813 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15814
15815         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
15816         func_emit_tests_Makefile_am, func_import): Abort loops early if we
15817         already know the answer.
15818
15819 2009-01-01  Jim Meyering  <meyering@redhat.com>
15820
15821         * lib/version-etc.c (version_etc_va): Update copyright year.
15822
15823 2008-12-30  Bruno Haible  <bruno@clisp.org>
15824
15825         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
15826         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
15827         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
15828
15829 2008-12-29  Eric Blake  <ebb9@byu.net>
15830
15831         multiarch: avoid autoconf AC_REQUIRE bug
15832         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
15833         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
15834         2.63 and older.
15835         Reported by Bruno Haible, and analyzed in
15836         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
15837
15838 2008-12-29  Bruno Haible  <bruno@clisp.org>
15839
15840         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
15841         files in subdirectories correctly.
15842         Reported by Ralf Wildenhues.
15843
15844 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15845
15846         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
15847         rather than 'join FILE -', for Solaris join.
15848
15849 2008-12-29  Bruno Haible  <bruno@clisp.org>
15850
15851         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
15852         quoting.
15853         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15854         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15855         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15856         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
15857         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15858         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15859         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15860         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15861         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15862         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15863         * m4/nls.m4 (AM_NLS): Likewise.
15864         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
15865         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15866         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15867         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15868         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15869         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15870         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
15871         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15872         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15873         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15874         * m4/xsize.m4 (gl_XSIZE): Likewise.
15875         Suggested by Jim Meyering.
15876
15877 2008-11-17  Bruce Korb  <bkorb@gnu.org>
15878
15879         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
15880         * lib/parse-duration.c: use a switch instead of cascading if's.
15881
15882 2008-12-29  Eric Blake  <ebb9@byu.net>
15883
15884         wchar.h: supply WEOF on Irix 5.3
15885         * lib/wchar.in.h (wint_t): Also supply WEOF.
15886         * lib/wctype.in.h (wint_t): Likewise.
15887         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
15888         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
15889         Reported by Tom G. Christensen.
15890
15891 2008-12-26  Bruno Haible  <bruno@clisp.org>
15892
15893         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
15894         i486, i586, i686.
15895
15896 2008-12-26  Bruno Haible  <bruno@clisp.org>
15897
15898         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
15899
15900 2008-12-26  Bruno Haible  <bruno@clisp.org>
15901
15902         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
15903         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
15904         not __STDC_CONSTANT_MACROS.
15905         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
15906
15907 2008-12-25  Bruno Haible  <bruno@clisp.org>
15908
15909         Add support for universal builds to vasnprintf.
15910         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
15911         universal builds, guess no.
15912         * modules/vasnprintf-posix (Depends-on): Add multiarch.
15913         * modules/vasprintf-posix (Depends-on): Likewise.
15914         * modules/fprintf-posix (Depends-on): Likewise.
15915         * modules/vfprintf-posix (Depends-on): Likewise.
15916         * modules/snprintf-posix (Depends-on): Likewise.
15917         * modules/vsnprintf-posix (Depends-on): Likewise.
15918         * modules/sprintf-posix (Depends-on): Likewise.
15919         * modules/vsprintf-posix (Depends-on): Likewise.
15920         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15921         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15922         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15923         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15924         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15925         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15926         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15927
15928         Add support for universal builds to <inttypes.h>.
15929         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
15930         _SCNu64_PREFIX): In Apple
15931         universal builds, define directly, using _LP64.
15932         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
15933         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
15934         * modules/inttypes (Depends-on): Add multiarch.
15935         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
15936
15937         Add support for universal builds to <stdint.h>.
15938         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
15939         universal builds, define directly, using _LP64.
15940         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
15941         Apple universal builds, don't test for the size and suffix of ptrdiff_t
15942         and size_t.
15943         * modules/stdint (Depends-on): Add multiarch.
15944         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
15945
15946         New module 'multiarch'.
15947         * modules/multiarch: New file.
15948         * m4/multiarch.m4: New file.
15949
15950 2008-12-25  Bruno Haible  <bruno@clisp.org>
15951
15952         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
15953
15954 2008-12-25  Bruno Haible  <bruno@clisp.org>
15955
15956         * modules/btowc (License): Relicense under LGPLv2+.
15957         * modules/mbsinit (License): Likewise.
15958         * modules/mbrtowc (License): Likewise.
15959         * modules/wcrtomb (License): Likewise.
15960         * modules/streq (License): Likewise.
15961         Reported by David Lutterkort <lutter@redhat.com>.
15962
15963 2008-12-23  Bruno Haible  <bruno@clisp.org>
15964
15965         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
15966
15967 2008-12-23  Bruno Haible  <bruno@clisp.org>
15968
15969         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
15970         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
15971         GETADDRINFO_LIB, not in LIBS.
15972         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
15973         * modules/canon-host (Link): Likewise.
15974         * NEWS: Mention the change.
15975         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
15976         GETADDRINFO_LIB.
15977
15978 2008-12-22  Bruno Haible  <bruno@clisp.org>
15979
15980         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
15981         * doc/posix-functions/iswalpha_l.texi: Likewise.
15982         * doc/posix-functions/iswblank_l.texi: Likewise.
15983         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15984         * doc/posix-functions/iswctype_l.texi: Likewise.
15985         * doc/posix-functions/iswdigit_l.texi: Likewise.
15986         * doc/posix-functions/iswgraph_l.texi: Likewise.
15987         * doc/posix-functions/iswlower_l.texi: Likewise.
15988         * doc/posix-functions/iswprint_l.texi: Likewise.
15989         * doc/posix-functions/iswpunct_l.texi: Likewise.
15990         * doc/posix-functions/iswspace_l.texi: Likewise.
15991         * doc/posix-functions/iswupper_l.texi: Likewise.
15992         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15993         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
15994         * doc/posix-functions/open_wmemstream.texi: Likewise.
15995         * doc/posix-functions/swscanf.texi: Likewise.
15996         * doc/posix-functions/towctrans_l.texi: Likewise.
15997         * doc/posix-functions/towlower.texi: Likewise.
15998         * doc/posix-functions/towlower_l.texi: Likewise.
15999         * doc/posix-functions/towupper.texi: Likewise.
16000         * doc/posix-functions/towupper_l.texi: Likewise.
16001         * doc/posix-functions/vfwprintf.texi: Likewise.
16002         * doc/posix-functions/vfwscanf.texi: Likewise.
16003         * doc/posix-functions/vswscanf.texi: Likewise.
16004         * doc/posix-functions/vwprintf.texi: Likewise.
16005         * doc/posix-functions/vwscanf.texi: Likewise.
16006         * doc/posix-functions/wcpcpy.texi: Likewise.
16007         * doc/posix-functions/wcpncpy.texi: Likewise.
16008         * doc/posix-functions/wcscasecmp.texi: Likewise.
16009         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16010         * doc/posix-functions/wcscoll_l.texi: Likewise.
16011         * doc/posix-functions/wcsdup.texi: Likewise.
16012         * doc/posix-functions/wcsncasecmp.texi: Likewise.
16013         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16014         * doc/posix-functions/wcsnlen.texi: Likewise.
16015         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16016         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16017         * doc/posix-functions/wctrans_l.texi: Likewise.
16018         * doc/posix-functions/wctype_l.texi: Likewise.
16019         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16020         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16021         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16022         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16023         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16024         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16025         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16026         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16027         * doc/glibc-functions/wcschrnul.texi: Likewise.
16028         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16029         * doc/glibc-functions/wcstod_l.texi: Likewise.
16030         * doc/glibc-functions/wcstof_l.texi: Likewise.
16031         * doc/glibc-functions/wcstol_l.texi: Likewise.
16032         * doc/glibc-functions/wcstold_l.texi: Likewise.
16033         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16034         * doc/glibc-functions/wcstoq.texi: Likewise.
16035         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16036         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16037         * doc/glibc-functions/wcstouq.texi: Likewise.
16038         * doc/glibc-functions/wmempcpy.texi: Likewise.
16039
16040 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
16041             Eric Blake  <ebb9@byu.net>
16042             Paolo Bonzini  <bonzini@gnu.org>
16043             Bruno Haible  <bruno@clisp.org>
16044
16045         Make c-stack work on Haiku.
16046         * lib/c-stack.c (SA_ONSTACK): Define fallback.
16047         (c_stack_action): Use SA_ONSTACK flag.
16048
16049 2008-12-22  Bruno Haible  <bruno@clisp.org>
16050
16051         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16052
16053 2008-12-22  Bruno Haible  <bruno@clisp.org>
16054
16055         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16056         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16057         being overridden.
16058         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16059         New macros.
16060         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16062         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16063         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16064
16065 2008-12-22  Bruno Haible  <bruno@clisp.org>
16066
16067         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16068         from test code.
16069
16070 2008-12-22  Eric Blake  <ebb9@byu.net>
16071
16072         Avoid gcc warnings on cygwin.
16073         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16074         Avoid unused variable.
16075         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16076         Likewise.
16077
16078 2008-12-22  Bruno Haible  <bruno@clisp.org>
16079
16080         Remove HAVE_MBRTOWC conditionals.
16081         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16082         (mbscasecmp): Assume mbrtowc function.
16083         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16084         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16085         * lib/mbschr.c: Include mbuiter.h unconditionally.
16086         (mbschr): Assume mbrtowc function.
16087         * lib/mbscspn.c: Include mbuiter.h unconditionally.
16088         (mbscspn): Assume mbrtowc function.
16089         * lib/mbslen.c: Include mbuiter.h unconditionally.
16090         (mbslen): Assume mbrtowc function.
16091         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16092         (mbsncasecmp): Assume mbrtowc function.
16093         * lib/mbsnlen.c: Include mbiter.h unconditionally.
16094         (mbsnlen): Assume mbrtowc function.
16095         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16096         (mbspbrk): Assume mbrtowc function.
16097         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16098         (mbspcasecmp): Assume mbrtowc function.
16099         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16100         (mbsrchr): Assume mbrtowc function.
16101         * lib/mbssep.c: Include mbuiter.h unconditionally.
16102         (mbssep): Assume mbrtowc function.
16103         * lib/mbsspn.c: Include mbuiter.h unconditionally.
16104         (mbsspn): Assume mbrtowc function.
16105         * lib/mbsstr.c: Include mbuiter.h unconditionally.
16106         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16107         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16108         (mbstok_r): Assume mbrtowc function.
16109         * lib/propername.c: Include mbuiter.h unconditionally.
16110         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16111         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16112         (trim2): Assume mbrtowc function.
16113         * lib/mbswidth.c (mbsinit): Remove fallback definition.
16114         (mbsnwidth): Assume mbrtowc function.
16115         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16116         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16117         fallback definitions.
16118         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16119
16120 2008-12-22  Bruno Haible  <bruno@clisp.org>
16121
16122         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16123
16124 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
16125
16126         * modules/regex: Request emulations for the mb*/wc* functions we need.
16127         * m4/regex.m4: Don't look for those functions here.
16128         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16129
16130 2008-12-22  Bruno Haible  <bruno@clisp.org>
16131
16132         * modules/fnmatch (Depends-on): Remove duplicated dependency.
16133
16134 2008-12-21  Bruno Haible  <bruno@clisp.org>
16135
16136         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16137         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16138         (Include): Remove conditionalization.
16139         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16140         (Include): Remove conditionalization.
16141         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16142         (Include): Remove conditionalization.
16143         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16144         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16145         * NEWS: Mention the change.
16146         Reported by Alan Hourihane <alanh@fairlite.co.uk>
16147         via Sergey Poznyakoff <gray@gnu.org.ua>.
16148
16149 2008-12-21  Bruno Haible  <bruno@clisp.org>
16150
16151         * MODULES.html.sh (Extended multibyte and wide character utilities
16152         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16153         wcrtomb, wcsrtombs.
16154         (Support for systems lacking POSIX:2008): Add accept, bind, close,
16155         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16156         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16157         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16158
16159 2008-12-21  Bruno Haible  <bruno@clisp.org>
16160
16161         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16162
16163 2008-12-21  Bruno Haible  <bruno@clisp.org>
16164
16165         * modules/wcsnrtombs-tests: New file.
16166         * tests/test-wcsnrtombs1.sh: New file.
16167         * tests/test-wcsnrtombs2.sh: New file.
16168         * tests/test-wcsnrtombs3.sh: New file.
16169         * tests/test-wcsnrtombs4.sh: New file.
16170         * tests/test-wcsnrtombs.c: New file.
16171
16172         New module 'wcsnrtombs'.
16173         * lib/wchar.in.h (wcsnrtombs): New declaration.
16174         * lib/wcsnrtombs.c: New file.
16175         * lib/wcsrtombs-state.c: New file.
16176         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16177         (internal_state): Remove variable.
16178         * m4/wcsnrtombs.m4: New file.
16179         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16180         compilation units.
16181         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16182         HAVE_WCSNRTOMBS.
16183         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16184         HAVE_WCSNRTOMBS.
16185         * modules/wcsnrtombs: New file.
16186         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16187         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16188
16189 2008-12-21  Bruno Haible  <bruno@clisp.org>
16190
16191         * modules/wcsrtombs-tests: New file.
16192         * tests/test-wcsrtombs1.sh: New file.
16193         * tests/test-wcsrtombs2.sh: New file.
16194         * tests/test-wcsrtombs3.sh: New file.
16195         * tests/test-wcsrtombs4.sh: New file.
16196         * tests/test-wcsrtombs.c: New file.
16197
16198         New module 'wcsrtombs'.
16199         * lib/wchar.in.h (wcsrtombs): New declaration.
16200         * lib/wcsrtombs.c: New file.
16201         * m4/wcsrtombs.m4: New file.
16202         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16203         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16204         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16205         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16206         * modules/wcsrtombs: New file.
16207         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16208         bugs.
16209
16210 2008-12-21  Bruno Haible  <bruno@clisp.org>
16211
16212         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16213         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16214         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16215         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16216         if not correct.
16217         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16218         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16219         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16220         m4/locale-zh.m4, m4/codeset.m4.
16221         * doc/posix-functions/wcrtomb.texi: Document the bug.
16222
16223 2008-12-21  Bruno Haible  <bruno@clisp.org>
16224
16225         Work around a btowc() bug on IRIX 6.5.
16226         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16227         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16228         REPLACE_WTOBC if not.
16229         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16230         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16231         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16232
16233 2008-12-21  Bruno Haible  <bruno@clisp.org>
16234
16235         * modules/wcrtomb-tests: New file.
16236         * tests/test-wcrtomb.sh: New file.
16237         * tests/test-wcrtomb.c: New file.
16238
16239         New module 'wcrtomb'.
16240         * lib/wchar.in.h (wcrtomb): New declaration.
16241         * lib/wcrtomb.c: New file.
16242         * m4/wcrtomb.m4: New file.
16243         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16244         HAVE_WCRTOMB.
16245         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16246         HAVE_WCRTOMB.
16247         * modules/wcrtomb: New file.
16248         * doc/posix-functions/wcrtomb.texi: Mention the new module.
16249
16250 2008-12-21  Bruno Haible  <bruno@clisp.org>
16251
16252         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16253         * modules/mbsrtowcs (Files): Likewise.
16254         * modules/wctob (Files): Likewise.
16255         * modules/c-strcase-tests (Files): Likewise.
16256         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16257         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16258         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16259         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16260         * modules/vasnprintf-posix-tests (Files): Likewise.
16261
16262 2008-12-21  William Pursell  <bill.pursell@gmail.com>
16263
16264         gitlog-to-changelog: pass all command-line arguments to git-log
16265         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16266         it is sometimes convenient to filter the commits in various ways.
16267         gitlog-to-changelog only allows --since to specify a start date,
16268         but git-log itself supports many other filtering mechanisms.
16269         At the moment, I want to filter by branch name.  Rather than
16270         adding a --branch option to gitlog-to-changelog, it seems more
16271         flexible to simply pass all options directly to git-log and let
16272         git do the work.  Notice that this effectively makes --since a
16273         redundant option for gitlog-to-changelog, but removing it would
16274         require current usage to change since calls would then require
16275         an additional '--'.
16276
16277 2008-12-21  Bruno Haible  <bruno@clisp.org>
16278
16279         * modules/mbsnrtowcs-tests: New file.
16280         * tests/test-mbsnrtowcs1.sh: New file.
16281         * tests/test-mbsnrtowcs2.sh: New file.
16282         * tests/test-mbsnrtowcs3.sh: New file.
16283         * tests/test-mbsnrtowcs4.sh: New file.
16284         * tests/test-mbsnrtowcs.c: New file.
16285
16286         New module 'mbsnrtowcs'.
16287         * lib/wchar.in.h (mbsnrtowcs): New declaration.
16288         * lib/mbsnrtowcs.c: New file.
16289         * lib/mbsrtowcs-state.c: New file.
16290         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16291         (internal_state): Remove variable.
16292         * m4/mbsnrtowcs.m4: New file.
16293         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
16294         compilation units.
16295         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
16296         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16297         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
16298         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16299         * modules/mbsnrtowcs: New file.
16300         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
16301         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
16302         portability problem.
16303
16304 2008-12-21  Bruno Haible  <bruno@clisp.org>
16305
16306         Work around mbsrtowcs bug.
16307         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
16308         (gl_FUNC_MBSRTOWCS): Invoke it.
16309         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16310         m4/locale-zh.m4.
16311         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
16312
16313 2008-12-21  Bruno Haible  <bruno@clisp.org>
16314
16315         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
16316
16317 2008-12-21  Bruno Haible  <bruno@clisp.org>
16318
16319         Update doc for AIX.
16320         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
16321         16-bit wchar_t type.
16322         * doc/posix-functions/btowc.texi: Likewise.
16323         * doc/posix-functions/fgetwc.texi: Likewise.
16324         * doc/posix-functions/fgetws.texi: Likewise.
16325         * doc/posix-functions/fputwc.texi: Likewise.
16326         * doc/posix-functions/fputws.texi: Likewise.
16327         * doc/posix-functions/fwide.texi: Likewise.
16328         * doc/posix-functions/fwprintf.texi: Likewise.
16329         * doc/posix-functions/fwscanf.texi: Likewise.
16330         * doc/posix-functions/getwchar.texi: Likewise.
16331         * doc/posix-functions/getwc.texi: Likewise.
16332         * doc/posix-functions/iswalnum.texi: Likewise.
16333         * doc/posix-functions/iswalpha.texi: Likewise.
16334         * doc/posix-functions/iswblank.texi: Likewise.
16335         * doc/posix-functions/iswcntrl.texi: Likewise.
16336         * doc/posix-functions/iswctype.texi: Likewise.
16337         * doc/posix-functions/iswdigit.texi: Likewise.
16338         * doc/posix-functions/iswgraph.texi: Likewise.
16339         * doc/posix-functions/iswlower.texi: Likewise.
16340         * doc/posix-functions/iswprint.texi: Likewise.
16341         * doc/posix-functions/iswpunct.texi: Likewise.
16342         * doc/posix-functions/iswspace.texi: Likewise.
16343         * doc/posix-functions/iswupper.texi: Likewise.
16344         * doc/posix-functions/iswxdigit.texi: Likewise.
16345         * doc/posix-functions/mbrtowc.texi: Likewise.
16346         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16347         * doc/posix-functions/mbstowcs.texi: Likewise.
16348         * doc/posix-functions/mbtowc.texi: Likewise.
16349         * doc/posix-functions/putwchar.texi: Likewise.
16350         * doc/posix-functions/putwc.texi: Likewise.
16351         * doc/posix-functions/swprintf.texi: Likewise.
16352         * doc/posix-functions/tolower.texi: Likewise.
16353         * doc/posix-functions/toupper.texi: Likewise.
16354         * doc/posix-functions/towctrans.texi: Likewise.
16355         * doc/posix-functions/ungetwc.texi: Likewise.
16356         * doc/posix-functions/vswprintf.texi: Likewise.
16357         * doc/posix-functions/wcrtomb.texi: Likewise.
16358         * doc/posix-functions/wcscat.texi: Likewise.
16359         * doc/posix-functions/wcschr.texi: Likewise.
16360         * doc/posix-functions/wcscmp.texi: Likewise.
16361         * doc/posix-functions/wcscoll.texi: Likewise.
16362         * doc/posix-functions/wcscpy.texi: Likewise.
16363         * doc/posix-functions/wcscspn.texi: Likewise.
16364         * doc/posix-functions/wcsftime.texi: Likewise.
16365         * doc/posix-functions/wcslen.texi: Likewise.
16366         * doc/posix-functions/wcsncat.texi: Likewise.
16367         * doc/posix-functions/wcsncmp.texi: Likewise.
16368         * doc/posix-functions/wcsncpy.texi: Likewise.
16369         * doc/posix-functions/wcspbrk.texi: Likewise.
16370         * doc/posix-functions/wcsrchr.texi: Likewise.
16371         * doc/posix-functions/wcsrtombs.texi: Likewise.
16372         * doc/posix-functions/wcsspn.texi: Likewise.
16373         * doc/posix-functions/wcsstr.texi: Likewise.
16374         * doc/posix-functions/wcstod.texi: Likewise.
16375         * doc/posix-functions/wcstof.texi: Likewise.
16376         * doc/posix-functions/wcstoimax.texi: Likewise.
16377         * doc/posix-functions/wcstok.texi: Likewise.
16378         * doc/posix-functions/wcstold.texi: Likewise.
16379         * doc/posix-functions/wcstoll.texi: Likewise.
16380         * doc/posix-functions/wcstol.texi: Likewise.
16381         * doc/posix-functions/wcstombs.texi: Likewise.
16382         * doc/posix-functions/wcstoull.texi: Likewise.
16383         * doc/posix-functions/wcstoul.texi: Likewise.
16384         * doc/posix-functions/wcstoumax.texi: Likewise.
16385         * doc/posix-functions/wcswidth.texi: Likewise.
16386         * doc/posix-functions/wcsxfrm.texi: Likewise.
16387         * doc/posix-functions/wctob.texi: Likewise.
16388         * doc/posix-functions/wctomb.texi: Likewise.
16389         * doc/posix-functions/wctrans.texi: Likewise.
16390         * doc/posix-functions/wctype.texi: Likewise.
16391         * doc/posix-functions/wcwidth.texi: Likewise.
16392         * doc/posix-functions/wmemchr.texi: Likewise.
16393         * doc/posix-functions/wmemcmp.texi: Likewise.
16394         * doc/posix-functions/wmemcpy.texi: Likewise.
16395         * doc/posix-functions/wmemmove.texi: Likewise.
16396         * doc/posix-functions/wmemset.texi: Likewise.
16397         * doc/posix-functions/wprintf.texi: Likewise.
16398         * doc/posix-functions/wscanf.texi: Likewise.
16399
16400 2008-12-21  Bruno Haible  <bruno@clisp.org>
16401
16402         Update doc for HP-UX 11.11.
16403         * doc/posix-functions/btowc.texi: Clarify that the function is missing
16404         in HP-UX version 11.00, not in all versions of HP-UX 11.
16405         * doc/posix-functions/fwide.texi: Likewise.
16406         * doc/posix-functions/fwprintf.texi: Likewise.
16407         * doc/posix-functions/fwscanf.texi: Likewise.
16408         * doc/posix-functions/inet_ntop.texi: Likewise.
16409         * doc/posix-functions/inet_pton.texi: Likewise.
16410         * doc/posix-functions/mbrlen.texi: Likewise.
16411         * doc/posix-functions/mbrtowc.texi: Likewise.
16412         * doc/posix-functions/mbsinit.texi: Likewise.
16413         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16414         * doc/posix-functions/swprintf.texi: Likewise.
16415         * doc/posix-functions/swscanf.texi: Likewise.
16416         * doc/posix-functions/towctrans.texi: Likewise.
16417         * doc/posix-functions/vfwprintf.texi: Likewise.
16418         * doc/posix-functions/vswprintf.texi: Likewise.
16419         * doc/posix-functions/vwprintf.texi: Likewise.
16420         * doc/posix-functions/wcrtomb.texi: Likewise.
16421         * doc/posix-functions/wcsrtombs.texi: Likewise.
16422         * doc/posix-functions/wcsstr.texi: Likewise.
16423         * doc/posix-functions/wctob.texi: Likewise.
16424         * doc/posix-functions/wctrans.texi: Likewise.
16425         * doc/posix-functions/wmemchr.texi: Likewise.
16426         * doc/posix-functions/wmemcmp.texi: Likewise.
16427         * doc/posix-functions/wmemcpy.texi: Likewise.
16428         * doc/posix-functions/wmemmove.texi: Likewise.
16429         * doc/posix-functions/wmemset.texi: Likewise.
16430         * doc/posix-functions/wprintf.texi: Likewise.
16431         * doc/posix-functions/wscanf.texi: Likewise.
16432
16433 2008-12-21  Bruno Haible  <bruno@clisp.org>
16434
16435         Work around a portability problem.
16436         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
16437         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
16438
16439 2008-12-20  Bruno Haible  <bruno@clisp.org>
16440
16441         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
16442         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
16443         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
16444         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
16445         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
16446
16447         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
16448         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
16449         set.
16450         (GNULIB_defined_mbstate_t): New macro.
16451         (mbsinit): Redefine if REPLACE_MBSINIT is set.
16452         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
16453         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
16454         reuses the system's mbrtowc function but works around the bugs.
16455         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
16456         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
16457         macros.
16458         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
16459         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
16460         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
16461         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
16462         REPLACE_MBSINIT if mbsinit needs to be overridden.
16463         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
16464         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16465         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
16466         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16467         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16468         m4/locale-zh.m4.
16469         (Depends): Add mbsinit.
16470         * modules/mbsinit (Depends): Add mbrtowc.
16471         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
16472
16473 2008-12-20  Bruno Haible  <bruno@clisp.org>
16474
16475         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
16476         so that there are no conversion errors on AIX.
16477         * tests/test-mbsrtowcs.c (main): LIkewise.
16478
16479 2008-12-20  Bruno Haible  <bruno@clisp.org>
16480
16481         Work around wctob bug on Solaris <= 9.
16482         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
16483         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
16484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
16485         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
16486         * modules/wctob (Files): Add m4/locale-fr.m4.
16487         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
16488
16489 2008-12-20  Bruno Haible  <bruno@clisp.org>
16490
16491         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
16492         /dev/null.
16493         * tests/test-select-in.sh: Likewise.
16494         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16495
16496 2008-12-20  Bruno Haible  <bruno@clisp.org>
16497
16498         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
16499         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
16500         Cygwin 1.5.x.
16501
16502 2008-12-20  Bruno Haible  <bruno@clisp.org>
16503
16504         Ensure mbstate_t is defined on HP-UX 11.11.
16505         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
16506         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
16507         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
16508         AC_USE_SYSTEM_EXTENSIONS.
16509         * modules/fnmatch (Depends-on): Add extensions.
16510         * modules/mbrlen (Depends-on): Likewise.
16511         * modules/mbrtowc (Depends-on): Likewise.
16512         * modules/mbsinit (Depends-on): Likewise.
16513         * modules/mbsrtowcs (Depends-on): Likewise.
16514         * modules/mbswidth (Depends-on): Likewise.
16515         * modules/quotearg (Depends-on): Likewise.
16516         * modules/strftime (Depends-on): Likewise.
16517
16518 2008-12-20  Bruno Haible  <bruno@clisp.org>
16519
16520         Ensure wctob is declared on IRIX 6.5.
16521         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
16522         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
16523         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
16524         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
16525         of HAVE_WCTOB.
16526         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
16527         HAVE_WCTOB.
16528         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
16529
16530 2008-12-19  Bruno Haible  <bruno@clisp.org>
16531
16532         * modules/mbsrtowcs-tests: New file.
16533         * tests/test-mbsrtowcs1.sh: New file.
16534         * tests/test-mbsrtowcs2.sh: New file.
16535         * tests/test-mbsrtowcs3.sh: New file.
16536         * tests/test-mbsrtowcs4.sh: New file.
16537         * tests/test-mbsrtowcs.c: New file.
16538
16539         New module 'mbsrtowcs'.
16540         * lib/wchar.in.h (mbsrtowcs): New declaration.
16541         * lib/mbsrtowcs.c: New file.
16542         * m4/mbsrtowcs.m4: New file.
16543         * modules/mbsrtowcs: New file.
16544         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
16545         HAVE_MBSRTOWCS.
16546         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
16547         HAVE_MBSRTOWCS.
16548         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
16549
16550 2008-12-19  Bruno Haible  <bruno@clisp.org>
16551
16552         New module 'mbrlen'.
16553         * lib/wchar.in.h (mbrlen): New declaration.
16554         * lib/mbrlen.c: New file.
16555         * m4/mbrlen.m4: New file.
16556         * modules/mbrlen: New file.
16557         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
16558         HAVE_MBRLEN.
16559         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
16560         HAVE_MBRLEN.
16561         * doc/posix-functions/mbrlen.texi: Document the new module.
16562
16563 2008-12-19  Bruno Haible  <bruno@clisp.org>
16564
16565         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
16566         * modules/mbrtowc (Depends-on): Add verify.
16567         Suggested by Paul Eggert.
16568
16569 2008-12-18  Bruno Haible  <bruno@clisp.org>
16570
16571         * modules/mbsinit-tests: New file.
16572         * tests/test-mbsinit.sh: New file.
16573         * tests/test-mbsinit.c: New file.
16574
16575 2008-12-18  Bruno Haible  <bruno@clisp.org>
16576
16577         * modules/mbrtowc-tests: New file.
16578         * tests/test-mbrtowc1.sh: New file.
16579         * tests/test-mbrtowc2.sh: New file.
16580         * tests/test-mbrtowc3.sh: New file.
16581         * tests/test-mbrtowc4.sh: New file.
16582         * tests/test-mbrtowc.c: New file.
16583
16584         New module 'mbrtowc'.
16585         * lib/wchar.in.h (mbstate_t): Override when the system does not have
16586         mbsinit and mbrtowc.
16587         (mbrtowc): New declaration.
16588         * lib/mbrtowc.c: New file.
16589         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
16590         * modules/mbrtowc: New file.
16591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
16592         HAVE_MBRTOWC.
16593         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
16594         HAVE_MBRTOWC.
16595         * doc/posix-functions/mbrtowc.texi: Document the new module.
16596
16597 2008-12-18  Bruno Haible  <bruno@clisp.org>
16598
16599         New module 'wctob'.
16600         * lib/wchar.in.h (wctob): New declaration.
16601         * lib/wctob.c: New file.
16602         * m4/wctob.m4: New file.
16603         * modules/wctob: New file.
16604         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
16605         HAVE_WCTOB.
16606         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
16607         * doc/posix-functions/wctob.texi: Document the new module.
16608
16609 2008-12-18  Bruno Haible  <bruno@clisp.org>
16610
16611         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
16612         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
16613
16614 2008-12-18  Simon Josefsson  <simon@josefsson.org>
16615
16616         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
16617         G. Christensen" <tgc@jupiterrise.com>.
16618
16619         * lib/flock.c: Need to include errno.h.  Reported by "Tom
16620         G. Christensen" <tgc@jupiterrise.com>.
16621
16622         * lib/flock.c: Need to include string.h.  Reported by "Tom
16623         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
16624         <ebb9@byu.net>.
16625
16626 2008-12-18  Bruno Haible  <bruno@clisp.org>
16627
16628         * m4/locale-ja.m4: New file, from GNU gettext.
16629
16630 2008-12-17  Bruno Haible  <bruno@clisp.org>
16631
16632         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
16633         Suggested by Eric Blake.
16634
16635 2008-12-17  Bruno Haible  <bruno@clisp.org>
16636
16637         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
16638
16639 2008-12-17  Bruno Haible  <bruno@clisp.org>
16640
16641         * lib/mbsinit.c: Include verify.h. Verify an assumption.
16642         * modules/mbsinit (Depends-on): Add verify.
16643         Suggested by Paul Eggert.
16644
16645 2008-12-17  Bruno Haible  <bruno@clisp.org>
16646
16647         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
16648         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
16649         gl_FUNC_MBRTOWC.
16650         * m4/mbiter.m4 (gl_MBITER): LIkewise.
16651         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
16652         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
16653         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
16654         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
16655         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
16656         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
16657         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
16658         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
16659         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
16660         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
16661         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
16662         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
16663         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
16664         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
16665         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16666         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
16667         * modules/trim (configure.ac): Likewise.
16668
16669 2008-12-17  Bruno Haible  <bruno@clisp.org>
16670
16671         * modules/btowc-tests: New file.
16672         * tests/test-btowc1.sh: New file.
16673         * tests/test-btowc2.sh: New file.
16674         * tests/test-btowc.c: New file.
16675
16676         New module 'btowc'.
16677         * lib/wchar.in.h (btowc): New declaration.
16678         * lib/btowc.c: New file.
16679         * m4/btowc.m4: New file.
16680         * modules/btowc: New file.
16681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
16682         HAVE_BTOWC.
16683         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
16684         * doc/posix-functions/btowc.texi: Document the new module.
16685
16686 2008-12-17  Bruno Haible  <bruno@clisp.org>
16687
16688         New module 'mbsinit'.
16689         * lib/wchar.in.h (mbsinit): New declaration.
16690         * lib/mbsinit.c: New file.
16691         * m4/mbsinit.m4: New file.
16692         * modules/mbsinit: New file.
16693         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
16694         HAVE_MBSINIT.
16695         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
16696         HAVE_MBSINIT.
16697         * doc/posix-functions/mbsinit.texi: Document the new module.
16698
16699 2008-12-16  Bruno Haible  <bruno@clisp.org>
16700
16701         * lib/unistd.in.h: Add comment.
16702         * tests/test-environ.c: Don't include <stdlib.h>.
16703
16704 2008-12-16  Bruno Haible  <bruno@clisp.org>
16705
16706         * lib/parse-duration.h (parse_duration): Document return value
16707         convention.
16708         * lib/parse-duration.c: Include specification header first. Add
16709         comments.
16710         (_): Remove macro.
16711         (parse_year_month_day, parse_hour_minute_second): Move side effects
16712         outside of strchr call.
16713         (parse_non_iso8601): Move side effects outside of isspace call.
16714         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
16715         call.
16716
16717 2008-12-16  Bruno Haible  <bruno@clisp.org>
16718
16719         * tests/test-parse-duration.sh: Produce no output when the test
16720         succeeds.
16721
16722 2008-12-16  Bruno Haible  <bruno@clisp.org>
16723
16724         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
16725         expressions.
16726
16727 2008-12-15  Bruno Haible  <bruno@clisp.org>
16728
16729         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
16730         * doc/glibc-functions/flistxattr.texi: Likewise.
16731         * doc/glibc-functions/fopencookie.texi: Likewise.
16732         * doc/glibc-functions/fremovexattr.texi: Likewise.
16733         * doc/glibc-functions/fsetxattr.texi: Likewise.
16734         * doc/glibc-functions/getxattr.texi: Likewise.
16735         * doc/glibc-functions/lgetxattr.texi: Likewise.
16736         * doc/glibc-functions/listxattr.texi: Likewise.
16737         * doc/glibc-functions/llistxattr.texi: Likewise.
16738         * doc/glibc-functions/lremovexattr.texi: Likewise.
16739         * doc/glibc-functions/lsetxattr.texi: Likewise.
16740         * doc/glibc-functions/removexattr.texi: Likewise.
16741         * doc/glibc-functions/setxattr.texi: Likewise.
16742         * doc/posix-functions/open_memstream.texi: Likewise.
16743
16744 2008-12-15  Eric Blake  <ebb9@byu.net>
16745
16746         Update doc for cygwin 1.7.
16747         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
16748         functions.
16749         * doc/posix-functions/fchmodat.texi: Likewise.
16750         * doc/posix-functions/fchownat.texi: Likewise.
16751         * doc/posix-functions/fdopendir.texi: Likewise.
16752         * doc/posix-functions/fmemopen.texi: Likewise.
16753         * doc/posix-functions/freeaddrinfo.texi: Likewise.
16754         * doc/posix-functions/fstatat.texi: Likewise.
16755         * doc/posix-functions/futimens.texi: Likewise.
16756         * doc/posix-functions/gai_strerror.texi: Likewise.
16757         * doc/posix-functions/getaddrinfo.texi: Likewise.
16758         * doc/posix-functions/getnameinfo.texi: Likewise.
16759         * doc/posix-functions/if_freenameindex.texi: Likewise.
16760         * doc/posix-functions/if_indextoname.texi: Likewise.
16761         * doc/posix-functions/if_nameindex.texi: Likewise.
16762         * doc/posix-functions/if_nametoindex.texi: Likewise.
16763         * doc/posix-functions/insque.texi: Likewise.
16764         * doc/posix-functions/linkat.texi: Likewise.
16765         * doc/posix-functions/llrint.texi: Likewise.
16766         * doc/posix-functions/llrintf.texi: Likewise.
16767         * doc/posix-functions/llrintl.texi: Likewise.
16768         * doc/posix-functions/lockf.texi: Likewise.
16769         * doc/posix-functions/lrintl.texi: Likewise.
16770         * doc/posix-functions/mkdirat.texi: Likewise.
16771         * doc/posix-functions/mkfifoat.texi: Likewise.
16772         * doc/posix-functions/mknodat.texi: Likewise.
16773         * doc/posix-functions/mq_close.texi: Likewise.
16774         * doc/posix-functions/mq_getattr.texi: Likewise.
16775         * doc/posix-functions/mq_notify.texi: Likewise.
16776         * doc/posix-functions/mq_open.texi: Likewise.
16777         * doc/posix-functions/mq_receive.texi: Likewise.
16778         * doc/posix-functions/mq_send.texi: Likewise.
16779         * doc/posix-functions/mq_setattr.texi: Likewise.
16780         * doc/posix-functions/mq_timedreceive.texi: Likewise.
16781         * doc/posix-functions/mq_timedsend.texi: Likewise.
16782         * doc/posix-functions/mq_unlink.texi: Likewise.
16783         * doc/posix-functions/open_memstream.texi: Likewise.
16784         * doc/posix-functions/openat.texi: Likewise.
16785         * doc/posix-functions/posix_fadvise.texi: Likewise.
16786         * doc/posix-functions/posix_fallocate.texi: Likewise.
16787         * doc/posix-functions/posix_madvise.texi: Likewise.
16788         * doc/posix-functions/posix_memalign.texi: Likewise.
16789         * doc/posix-functions/posix_openpt.texi: Likewise.
16790         * doc/posix-functions/readlinkat.texi: Likewise.
16791         * doc/posix-functions/remque.texi: Likewise.
16792         * doc/posix-functions/renameat.texi: Likewise.
16793         * doc/posix-functions/rintl.texi: Likewise.
16794         * doc/posix-functions/sem_unlink.texi: Likewise.
16795         * doc/posix-functions/shm_open.texi: Likewise.
16796         * doc/posix-functions/shm_unlink.texi: Likewise.
16797         * doc/posix-functions/signgam.texi: Likewise.
16798         * doc/posix-functions/sigset.texi: Likewise.
16799         * doc/posix-functions/stpcpy.texi: Likewise.
16800         * doc/posix-functions/stpncpy.texi: Likewise.
16801         * doc/posix-functions/strerror.texi: Likewise.
16802         * doc/posix-functions/strtod.texi: Likewise.
16803         * doc/posix-functions/symlinkat.texi: Likewise.
16804         * doc/posix-functions/unlinkat.texi: Likewise.
16805         * doc/posix-functions/utimensat.texi: Likewise.
16806         * doc/glibc-functions/bindresvport.texi: Likewise.
16807         * doc/glibc-functions/dn_expand.texi: Likewise.
16808         * doc/glibc-functions/exp10.texi: Likewise.
16809         * doc/glibc-functions/exp10f.texi: Likewise.
16810         * doc/glibc-functions/fgetxattr.texi: Likewise.
16811         * doc/glibc-functions/flistxattr.texi: Likewise.
16812         * doc/glibc-functions/fopencookie.texi: Likewise.
16813         * doc/glibc-functions/freeifaddrs.texi: Likewise.
16814         * doc/glibc-functions/fremovexattr.texi: Likewise.
16815         * doc/glibc-functions/fsetxattr.texi: Likewise.
16816         * doc/glibc-functions/getifaddrs.texi: Likewise.
16817         * doc/glibc-functions/getxattr.texi: Likewise.
16818         * doc/glibc-functions/lgetxattr.texi: Likewise.
16819         * doc/glibc-functions/listxattr.texi: Likewise.
16820         * doc/glibc-functions/llistxattr.texi: Likewise.
16821         * doc/glibc-functions/lremovexattr.texi: Likewise.
16822         * doc/glibc-functions/lsetxattr.texi: Likewise.
16823         * doc/glibc-functions/pow10.texi: Likewise.
16824         * doc/glibc-functions/pow10f.texi: Likewise.
16825         * doc/glibc-functions/rcmd_af.texi: Likewise.
16826         * doc/glibc-functions/removexattr.texi: Likewise.
16827         * doc/glibc-functions/res_init.texi: Likewise.
16828         * doc/glibc-functions/res_mkquery.texi: Likewise.
16829         * doc/glibc-functions/res_query.texi: Likewise.
16830         * doc/glibc-functions/res_querydomain.texi: Likewise.
16831         * doc/glibc-functions/res_send.texi: Likewise.
16832         * doc/glibc-functions/rresvport_af.texi: Likewise.
16833         * doc/glibc-functions/setxattr.texi: Likewise.
16834         * doc/glibc-functions/strcasestr.texi: Likewise.
16835
16836 2008-12-15  Bruno Haible  <bruno@clisp.org>
16837
16838         Fix compilation error on OSF/1 4.0.
16839         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
16840         <sys/time.h>, simply delegate to the system header.
16841         Reported by Daniel Richard G. <oss@teragram.com>.
16842
16843 2008-12-15  Bruno Haible  <bruno@clisp.org>
16844
16845         * doc/posix-functions/openat.texi: Mention the 'openat' module.
16846         * doc/posix-functions/fchmodat.texi: Likewise.
16847         * doc/posix-functions/fchownat.texi: Likewise.
16848         * doc/posix-functions/fdopendir.texi: Likewise.
16849         * doc/posix-functions/fstatat.texi: Likewise.
16850         * doc/posix-functions/mkdirat.texi: Likewise.
16851         * doc/posix-functions/unlinkat.texi: Likewise.
16852
16853 2008-12-14  Bruno Haible  <bruno@clisp.org>
16854
16855         Update doc for POSIX:2008.
16856         * doc/posix-functions/faccessat.texi: New file.
16857         * doc/posix-functions/fchmodat.texi: New file.
16858         * doc/posix-functions/fchownat.texi: New file.
16859         * doc/posix-functions/fdopendir.texi: New file.
16860         * doc/posix-functions/fstatat.texi: New file.
16861         * doc/posix-functions/futimens.texi: New file.
16862         * doc/posix-functions/linkat.texi: New file.
16863         * doc/posix-functions/mkdirat.texi: New file.
16864         * doc/posix-functions/mkfifoat.texi: New file.
16865         * doc/posix-functions/mknodat.texi: New file.
16866         * doc/posix-functions/open_wmemstream.texi: New file.
16867         * doc/posix-functions/openat.texi: New file.
16868         * doc/posix-functions/psiginfo.texi: New file.
16869         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
16870         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
16871         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
16872         * doc/posix-functions/readlinkat.texi: New file.
16873         * doc/posix-functions/renameat.texi: New file.
16874         * doc/posix-functions/strerror_l.texi: New file.
16875         * doc/posix-functions/symlinkat.texi: New file.
16876         * doc/posix-functions/unlinkat.texi: New file.
16877         * doc/posix-functions/utimensat.texi: New file.
16878         * doc/gnulib.texi (Function Substitutes): Add these subsections.
16879
16880 2008-12-14  Bruno Haible  <bruno@clisp.org>
16881
16882         Update doc for POSIX:2008.
16883         * doc/posix-functions/alphasort.texi: Renamed from
16884         doc/glibc-functions/alphasort.texi.
16885         * doc/posix-functions/dirfd.texi: Renamed from
16886         doc/glibc-functions/dirfd.texi.
16887         * doc/posix-functions/dprintf.texi: Renamed from
16888         doc/glibc-functions/dprintf.texi.
16889         * doc/posix-functions/duplocale.texi: Renamed from
16890         doc/glibc-functions/duplocale.texi.
16891         * doc/posix-functions/fexecve.texi: Renamed from
16892         doc/glibc-functions/fexecve.texi.
16893         * doc/posix-functions/fmemopen.texi: Renamed from
16894         doc/glibc-functions/fmemopen.texi.
16895         * doc/posix-functions/freelocale.texi: Renamed from
16896         doc/glibc-functions/freelocale.texi.
16897         * doc/posix-functions/getdate_err.texi: Renamed from
16898         doc/glibc-functions/getdate_err.texi.
16899         * doc/posix-functions/isalnum_l.texi: Renamed from
16900         doc/glibc-functions/isalnum_l.texi.
16901         * doc/posix-functions/isalpha_l.texi: Renamed from
16902         doc/glibc-functions/isalpha_l.texi.
16903         * doc/posix-functions/isblank_l.texi: Renamed from
16904         doc/glibc-functions/isblank_l.texi.
16905         * doc/posix-functions/iscntrl_l.texi: Renamed from
16906         doc/glibc-functions/iscntrl_l.texi.
16907         * doc/posix-functions/isdigit_l.texi: Renamed from
16908         doc/glibc-functions/isdigit_l.texi.
16909         * doc/posix-functions/isgraph_l.texi: Renamed from
16910         doc/glibc-functions/isgraph_l.texi.
16911         * doc/posix-functions/islower_l.texi: Renamed from
16912         doc/glibc-functions/islower_l.texi.
16913         * doc/posix-functions/isprint_l.texi: Renamed from
16914         doc/glibc-functions/isprint_l.texi.
16915         * doc/posix-functions/ispunct_l.texi: Renamed from
16916         doc/glibc-functions/ispunct_l.texi.
16917         * doc/posix-functions/isspace_l.texi: Renamed from
16918         doc/glibc-functions/isspace_l.texi.
16919         * doc/posix-functions/isupper_l.texi: Renamed from
16920         doc/glibc-functions/isupper_l.texi.
16921         * doc/posix-functions/iswalnum_l.texi: Renamed from
16922         doc/glibc-functions/iswalnum_l.texi.
16923         * doc/posix-functions/iswalpha_l.texi: Renamed from
16924         doc/glibc-functions/iswalpha_l.texi.
16925         * doc/posix-functions/iswblank_l.texi: Renamed from
16926         doc/glibc-functions/iswblank_l.texi.
16927         * doc/posix-functions/iswcntrl_l.texi: Renamed from
16928         doc/glibc-functions/iswcntrl_l.texi.
16929         * doc/posix-functions/iswctype_l.texi: Renamed from
16930         doc/glibc-functions/iswctype_l.texi.
16931         * doc/posix-functions/iswdigit_l.texi: Renamed from
16932         doc/glibc-functions/iswdigit_l.texi.
16933         * doc/posix-functions/iswgraph_l.texi: Renamed from
16934         doc/glibc-functions/iswgraph_l.texi.
16935         * doc/posix-functions/iswlower_l.texi: Renamed from
16936         doc/glibc-functions/iswlower_l.texi.
16937         * doc/posix-functions/iswprint_l.texi: Renamed from
16938         doc/glibc-functions/iswprint_l.texi.
16939         * doc/posix-functions/iswpunct_l.texi: Renamed from
16940         doc/glibc-functions/iswpunct_l.texi.
16941         * doc/posix-functions/iswspace_l.texi: Renamed from
16942         doc/glibc-functions/iswspace_l.texi.
16943         * doc/posix-functions/iswupper_l.texi: Renamed from
16944         doc/glibc-functions/iswupper_l.texi.
16945         * doc/posix-functions/iswxdigit_l.texi: Renamed from
16946         doc/glibc-functions/iswxdigit_l.texi.
16947         * doc/posix-functions/isxdigit_l.texi: Renamed from
16948         doc/glibc-functions/isxdigit_l.texi.
16949         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
16950         doc/glibc-functions/mbsnrtowcs.texi.
16951         * doc/posix-functions/mkdtemp.texi: Renamed from
16952         doc/glibc-functions/mkdtemp.texi.
16953         * doc/posix-functions/newlocale.texi: Renamed from
16954         doc/glibc-functions/newlocale.texi.
16955         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
16956         doc/glibc-functions/nl_langinfo_l.texi.
16957         * doc/posix-functions/open_memstream.texi: Renamed from
16958         doc/glibc-functions/open_memstream.texi.
16959         * doc/posix-functions/opterr.texi: Renamed from
16960         doc/glibc-functions/opterr.texi.
16961         * doc/posix-functions/optind.texi: Renamed from
16962         doc/glibc-functions/optind.texi.
16963         * doc/posix-functions/optopt.texi: Renamed from
16964         doc/glibc-functions/optopt.texi.
16965         * doc/posix-functions/psignal.texi: Renamed from
16966         doc/glibc-functions/psignal.texi.
16967         * doc/posix-functions/scandir.texi: Renamed from
16968         doc/glibc-functions/scandir.texi.
16969         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
16970         doc/glibc-functions/sched_get_priority_min.texi.
16971         * doc/posix-functions/signgam.texi: Renamed from
16972         doc/glibc-functions/signgam.texi.
16973         * doc/posix-functions/stpcpy.texi: Renamed from
16974         doc/glibc-functions/stpcpy.texi.
16975         * doc/posix-functions/stpncpy.texi: Renamed from
16976         doc/glibc-functions/stpncpy.texi.
16977         * doc/posix-functions/strcasecmp_l.texi: Renamed from
16978         doc/glibc-functions/strcasecmp_l.texi.
16979         * doc/posix-functions/strcoll_l.texi: Renamed from
16980         doc/glibc-functions/strcoll_l.texi.
16981         * doc/posix-functions/strfmon_l.texi: Renamed from
16982         doc/glibc-functions/strfmon_l.texi.
16983         * doc/posix-functions/strftime_l.texi: Renamed from
16984         doc/glibc-functions/strftime_l.texi.
16985         * doc/posix-functions/strncasecmp_l.texi: Renamed from
16986         doc/glibc-functions/strncasecmp_l.texi.
16987         * doc/posix-functions/strndup.texi: Renamed from
16988         doc/glibc-functions/strndup.texi.
16989         * doc/posix-functions/strnlen.texi: Renamed from
16990         doc/glibc-functions/strnlen.texi.
16991         * doc/posix-functions/strsignal.texi: Renamed from
16992         doc/glibc-functions/strsignal.texi.
16993         * doc/posix-functions/strxfrm_l.texi: Renamed from
16994         doc/glibc-functions/strxfrm_l.texi.
16995         * doc/posix-functions/timer_gettime.texi: Renamed from
16996         doc/glibc-functions/timer_gettime.texi.
16997         * doc/posix-functions/tolower_l.texi: Renamed from
16998         doc/glibc-functions/tolower_l.texi.
16999         * doc/posix-functions/toupper_l.texi: Renamed from
17000         doc/glibc-functions/toupper_l.texi.
17001         * doc/posix-functions/towctrans_l.texi: Renamed from
17002         doc/glibc-functions/towctrans_l.texi.
17003         * doc/posix-functions/towlower_l.texi: Renamed from
17004         doc/glibc-functions/towlower_l.texi.
17005         * doc/posix-functions/towupper_l.texi: Renamed from
17006         doc/glibc-functions/towupper_l.texi.
17007         * doc/posix-functions/uselocale.texi: Renamed from
17008         doc/glibc-functions/uselocale.texi.
17009         * doc/posix-functions/vdprintf.texi: Renamed from
17010         doc/glibc-functions/vdprintf.texi.
17011         * doc/posix-functions/wcpcpy.texi:
17012         Renamed from doc/glibc-functions/wcpcpy.texi.
17013         * doc/posix-functions/wcpncpy.texi: Renamed from
17014         doc/glibc-functions/wcpncpy.texi.
17015         * doc/posix-functions/wcscasecmp.texi: Renamed from
17016         doc/glibc-functions/wcscasecmp.texi.
17017         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17018         doc/glibc-functions/wcscasecmp_l.texi.
17019         * doc/posix-functions/wcscoll_l.texi: Renamed from
17020         doc/glibc-functions/wcscoll_l.texi.
17021         * doc/posix-functions/wcsdup.texi: Renamed from
17022         doc/glibc-functions/wcsdup.texi.
17023         * doc/posix-functions/wcsncasecmp.texi: Renamed from
17024         doc/glibc-functions/wcsncasecmp.texi.
17025         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17026         doc/glibc-functions/wcsncasecmp_l.texi.
17027         * doc/posix-functions/wcsnlen.texi: Renamed from
17028         doc/glibc-functions/wcsnlen.texi.
17029         * doc/posix-functions/wcsnrtombs.texi: Renamed from
17030         doc/glibc-functions/wcsnrtombs.texi.
17031         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17032         doc/glibc-functions/wcsxfrm_l.texi.
17033         * doc/posix-functions/wctrans_l.texi: Renamed from
17034         doc/glibc-functions/wctrans_l.texi.
17035         * doc/posix-functions/wctype_l.texi: Renamed from
17036         doc/glibc-functions/wctype_l.texi.
17037         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17038         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17039         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17040         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17041         these subsections.
17042         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17043         Remove sections.
17044
17045 2008-12-14  Bruno Haible  <bruno@clisp.org>
17046
17047         Update doc for POSIX:2008.
17048         * doc/posix-functions/*.texi: Update URL of POSIX specification.
17049
17050 2008-12-14  Bruno Haible  <bruno@clisp.org>
17051
17052         Update doc for POSIX:2008.
17053         * doc/pastposix-functions/bcmp.texi: Renamed from
17054         doc/posix-functions/bcmp.texi.
17055         * doc/pastposix-functions/bcopy.texi: Renamed from
17056         doc/posix-functions/bcopy.texi.
17057         * doc/pastposix-functions/bsd_signal.texi: Renamed from
17058         doc/posix-functions/bsd_signal.texi.
17059         * doc/pastposix-functions/bzero.texi: Renamed from
17060         doc/posix-functions/bzero.texi.
17061         * doc/pastposix-functions/ecvt.texi: Renamed from
17062         doc/posix-functions/ecvt.texi.
17063         * doc/pastposix-functions/fcvt.texi: Renamed from
17064         doc/posix-functions/fcvt.texi.
17065         * doc/pastposix-functions/ftime.texi: Renamed from
17066         doc/posix-functions/ftime.texi.
17067         * doc/pastposix-functions/gcvt.texi: Renamed from
17068         doc/posix-functions/gcvt.texi.
17069         * doc/pastposix-functions/getcontext.texi: Renamed from
17070         doc/posix-functions/getcontext.texi.
17071         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17072         doc/posix-functions/gethostbyaddr.texi.
17073         * doc/pastposix-functions/gethostbyname.texi: Renamed from
17074         doc/posix-functions/gethostbyname.texi.
17075         * doc/pastposix-functions/getwd.texi: Renamed from
17076         doc/posix-functions/getwd.texi.
17077         * doc/pastposix-functions/h_errno.texi: Renamed from
17078         doc/posix-functions/h_errno.texi.
17079         * doc/pastposix-functions/index.texi: Renamed from
17080         doc/posix-functions/index.texi.
17081         * doc/pastposix-functions/makecontext.texi: Renamed from
17082         doc/posix-functions/makecontext.texi.
17083         * doc/pastposix-functions/mktemp.texi: Renamed from
17084         doc/posix-functions/mktemp.texi.
17085         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17086         doc/posix-functions/pthread_attr_getstackaddr.texi.
17087         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17088         doc/posix-functions/pthread_attr_setstackaddr.texi.
17089         * doc/pastposix-functions/rindex.texi: Renamed from
17090         doc/posix-functions/rindex.texi.
17091         * doc/pastposix-functions/scalb.texi: Renamed from
17092         doc/posix-functions/scalb.texi.
17093         * doc/pastposix-functions/setcontext.texi: Renamed from
17094         doc/posix-functions/setcontext.texi.
17095         * doc/pastposix-functions/swapcontext.texi: Renamed from
17096         doc/posix-functions/swapcontext.texi.
17097         * doc/pastposix-functions/ualarm.texi: Renamed from
17098         doc/posix-functions/ualarm.texi.
17099         * doc/pastposix-functions/usleep.texi: Renamed from
17100         doc/posix-functions/usleep.texi.
17101         * doc/pastposix-functions/vfork.texi: Renamed from
17102         doc/posix-functions/vfork.texi.
17103         * doc/pastposix-functions/wcswcs.texi: Renamed from
17104         doc/posix-functions/wcswcs.texi.
17105         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17106         (Function Substitutes): Update.
17107
17108 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17109
17110         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17111         m4/strerror.m4.
17112
17113 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17114             Bruno Haible  <bruno@clisp.org>
17115
17116         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17117
17118 2008-12-13  Bruno Haible  <bruno@clisp.org>
17119
17120         * modules/strtoull (Depends-on): Remove unistd.
17121
17122 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17123
17124         * modules/strtoull (Depends-on): Add stdlib.
17125
17126 2008-12-11  Simon Josefsson  <simon@josefsson.org>
17127
17128         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17129
17130 2008-12-10  Jim Meyering  <meyering@redhat.com>
17131
17132         gl_ASSERT: don't say assertions are disabled when they're not
17133         * m4/assert.m4 (gl_ASSERT): Do not make configure report
17134         "checking whether to enable assertions... no", when they are in
17135         fact enabled.  This is solely a bug in the output of configure.
17136         In spite of saying "no", NDEBUG was not defined in that case.
17137         Also, as noted by Eric Blake, leave assertions enabled upon
17138         --enable-assert=INVALID.
17139
17140 2008-12-10  Bruno Haible  <bruno@clisp.org>
17141
17142         Change MODULES.html to refer to POSIX:2008 where possible.
17143         * MODULES.html.sh (POSIX2008_URL): New variable.
17144         (posix_headers): Remove sys/timeb, ucontext.
17145         (posix2001_headers): New variable.
17146         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17147         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17148         index, makecontext, mktemp, pthread_attr_getstackaddr,
17149         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17150         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17151         (posix2001_functions): New variable.
17152         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17153         otherwise.
17154
17155 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17156
17157         add missing include to parse-duration.c
17158         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17159         * modules/parse-duration (Depends-on): Add xalloc.
17160
17161         fix sed script reading maint.mk
17162         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17163         (syntax-check-rules): Use it.
17164
17165 2008-12-09  Bruno Haible  <bruno@clisp.org>
17166
17167         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17168         MacOS X 10.4/PowerPC.
17169         Reported by Simon Josefsson.
17170
17171 2008-12-08  Jim Meyering  <meyering@redhat.com>
17172
17173         work around mingw's lack of some S_IF definitions
17174         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17175         Reported by Simon Josefsson.
17176
17177 2008-12-08  Bruno Haible  <bruno@clisp.org>
17178
17179         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17180         applied to variables. Needed on MacOS X 10.4/PowerPC.
17181         Reported by Simon Josefsson.
17182
17183 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
17184         and Eric Blake  <ebb9@byu.net>
17185
17186         assert: honor --enable-assert
17187         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17188         order to honor --enable-assert, rather than treating it as a
17189         synonym for --disable-assert.
17190
17191 2008-12-08  Jim Meyering  <meyering@redhat.com>
17192
17193         * lib/posixtm.c: Remove now-useless declaration of mktime.
17194
17195         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17196
17197 2008-12-07  Bruno Haible  <bruno@clisp.org>
17198
17199         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17200         test_once): Mark functions as static.
17201         * tests/test-tls.c (test_tls): Likewise.
17202
17203 2008-12-07  Bruno Haible  <bruno@clisp.org>
17204
17205         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17206         iconv_register_autodetect.
17207
17208 2008-12-07  Jim Meyering  <meyering@redhat.com>
17209
17210         posixtm.c: avoid a warning
17211         * lib/posixtm.c (posixtime): Don't initialize tm0.
17212         It's no longer needed to placate gcc4's -Wuninitialized,
17213         and the attempt to placate would elicit a new warning.
17214
17215         unicodeio.c: mark unused parameters
17216         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17217         (fallback_failure_callback): Likewise.
17218
17219 2008-12-07  Bruno Haible  <bruno@clisp.org>
17220
17221         * gnulib-tool (func_create_testdir): When building the tests
17222         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17223         Reported by Simon Josefsson.
17224
17225 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17226
17227         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17228
17229 2008-12-06  Bruno Haible  <bruno@clisp.org>
17230
17231         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17232         Suggested by Eric Blake.
17233
17234 2008-12-06  Bruno Haible  <bruno@clisp.org>
17235
17236         Fix a c-stack test failure on MacOS X.
17237         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17238         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17239         handler for SIGBUS as well.
17240         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17241         install a signal handler for SIGBUS as well.
17242         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17243
17244 2008-12-06  Bruno Haible  <bruno@clisp.org>
17245
17246         Advocacy documentation.
17247         * doc/gnulib-intro.texi (Benefits): New section.
17248         * doc/gnulib.texi: Update.
17249
17250 2008-12-06  Bruno Haible  <bruno@clisp.org>
17251
17252         Document the 'manywarnings' module.
17253         * doc/manywarnings.texi: New file.
17254         * doc/gnulib.texi: Include it.
17255
17256 2008-12-05  Eric Blake  <ebb9@byu.net>
17257
17258         tests: silence some gcc warnings
17259         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17260         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17261         type mismatches.
17262
17263 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17264             Bruno Haible  <bruno@clisp.org>
17265
17266         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17267
17268 2008-11-29  Jim Meyering  <meyering@redhat.com>
17269
17270         unicodeio.c: mark unused parameters
17271         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17272         (fallback_failure_callback): Likewise.
17273
17274         fts: fix a thinko
17275         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
17276         (set_stat_type): Return S_IF*-valued "type" directly.
17277         Prompted by James Youngman's spotting a related bug.
17278         Confirmed by further testing through find.
17279
17280         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17281         * lib/fts.c (D_TYPE): Define.
17282         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17283         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17284         (s_ifmt_shift_bits): New function.
17285         (set_stat_type): New function.
17286         (fts_build): When not calling fts_stat, call set_stat_type
17287         to propagate dirent.d_type info to fts_read caller.
17288         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17289         fts_statp->st_mode type information may be valid.
17290
17291 2008-11-28  Simon Josefsson  <simon@josefsson.org>
17292
17293         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
17294         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
17295         <sds@gnu.org>.
17296
17297 2008-11-20  Bruno Haible  <bruno@clisp.org>
17298
17299         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
17300         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
17301         INCLUDE_NEXT.
17302         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
17303         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
17304         * modules/math (Makefile.am): Substitute
17305         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
17306         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17307
17308 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17309             Bruno Haible  <bruno@clisp.org>
17310
17311         * lib/stdint.in.h: Define all type macros so that their expansion is
17312         a single typedef'ed token. Fixes a compilation failure in Boost which
17313         does "using ::int8_t;".
17314
17315 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17316
17317         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
17318         gl_MANYWARN_ALL_GCC.
17319         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
17320         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
17321         * modules/manywarnings: New file.
17322         * MODULES.html.sh: Mention manywarnings module.
17323
17324 2008-11-18  Bruno Haible  <bruno@clisp.org>
17325
17326         * doc/gnulib-tool.texi (Unit tests): New section.
17327
17328 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17329
17330         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
17331         paths like 'lib/po/foo.po'.
17332
17333 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17334
17335         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
17336         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
17337
17338 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17339
17340         * m4/warnings.m4: Use CPPFLAGS to really check whether the
17341         parameter works.
17342
17343 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17344
17345         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
17346
17347 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17348
17349         * modules/parse-duration-tests: New file.
17350         * tests/test-parse-duration.sh: New file.
17351         * tests/test-parse-duration.c: New file.
17352
17353         New module 'parse-duration'.
17354         * lib/parse-duration.h: New file.
17355         * lib/parse-duration.c: New file.
17356         * modules/parse-duration: New file.
17357
17358 2008-11-17  Bruno Haible  <bruno@clisp.org>
17359
17360         * tests/test-select-out.sh: Comment out the first pipe test.
17361         Reported by Simon Josefsson.
17362
17363 2008-11-17  Bruno Haible  <bruno@clisp.org>
17364
17365         * modules/getaddrinfo (Depends-on): Add servent, hostent.
17366         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
17367         gl_HOSTENT.
17368
17369 2008-11-17  Bruno Haible  <bruno@clisp.org>
17370
17371         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
17372         -lnetwork and -lnet. Needed for Haiku and BeOS.
17373
17374 2008-11-16  Bruno Haible  <bruno@clisp.org>
17375
17376         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
17377
17378 2008-11-16  Bruno Haible  <bruno@clisp.org>
17379
17380         Avoid test failure on Haiku.
17381         * tests/test-fsync.c: Include <errno.h>.
17382         (main): Don't require that fsync (0) fails.
17383
17384 2008-11-15  Bruno Haible  <bruno@clisp.org>
17385
17386         New module 'hostent'.
17387         * modules/hostent: New file.
17388         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
17389
17390 2008-11-15  Bruno Haible  <bruno@clisp.org>
17391
17392         New module 'servent'.
17393         * modules/servent: New file.
17394         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
17395
17396 2008-11-15  Bruno Haible  <bruno@clisp.org>
17397
17398         Avoid generating same test program with two different rules.
17399         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
17400         test-frexp to test-frexp-nolibm.
17401         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
17402         test-frexpl to test-frexpl-nolibm.
17403
17404 2008-11-15  Bruno Haible  <bruno@clisp.org>
17405
17406         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
17407         $(FREXPL_LIBM).
17408
17409 2008-11-15  Bruno Haible  <bruno@clisp.org>
17410
17411         * lib/netdb.in.h: Activate the definitions also when the system's
17412         <netdb.h> has 'struct addrinfo'.
17413         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
17414         EAI_OVERFLOW or AI_NUMERICSERV.
17415         * doc/posix-headers/netdb.texi: Document the problem.
17416
17417 2008-11-15  Bruno Haible  <bruno@clisp.org>
17418
17419         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
17420
17421         Make the 'sched' module work on platforms where <sched.h> exists but
17422         is incomplete (such as Haiku).
17423         * lib/sched.in.h; Include the system's <sched.h> if it exists.
17424         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
17425         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
17426         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
17427         HAVE_STRUCT_SCHED_PARAM.
17428         * modules/sched (Depends-on): Add include_next.
17429         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
17430         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
17431         * doc/posix-headers/sched.texi: Document the issue.
17432
17433 2008-11-13  Jim Meyering  <meyering@redhat.com>
17434
17435         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
17436         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
17437         test would fail due to the difference in the Report bugs to ...
17438         line.  The expected address is empty, "<>", while the actual
17439         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
17440
17441 2008-11-12  Bruno Haible  <bruno@clisp.org>
17442
17443         lstat: don't compile lstat.c on systems lacking lstat
17444         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
17445         which don't have lstat; this is handled by lib/sys_stat.in.h already.
17446         Reported by Daniel P. Berrange via Jim Meyering.
17447
17448 2008-11-12  Jim Meyering  <meyering@redhat.com>
17449
17450         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
17451
17452 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17453
17454         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
17455         instead.
17456
17457 2008-11-12  Bruno Haible  <bruno@clisp.org>
17458
17459         * lib/unicodeio.c: Include unistr.h.
17460         (utf8_wctomb): Remove function.
17461         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
17462
17463 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17464
17465         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
17466         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
17467         <bruno@clisp.org>.
17468         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
17469
17470 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17471
17472         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
17473         * doc/gnulib.texi: Add section for warnings.
17474
17475 2008-11-11  Bruno Haible  <bruno@clisp.org>
17476
17477         * lib/sockets.h: Add a comment.
17478
17479 2008-11-11  Karl Berry  <karl@gnu.org>
17480
17481         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
17482
17483 2008-11-11  Eric Blake  <ebb9@byu.net>
17484
17485         fdl.texi: avoid git symlinks
17486         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
17487
17488 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17489
17490         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
17491
17492 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17493
17494         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
17495         (gl_WARN_ADD): Substitute $2 if literal.
17496
17497 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17498
17499         * m4/warning.m4: Remove.
17500
17501 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17502
17503         * m4/warnings.m4: Almost complete rewrite. :-)
17504
17505 2008-11-10  Simon Josefsson  <simon@josefsson.org>
17506
17507         * modules/warnings: New module.
17508         * m4/warnings.m4: New file.
17509         * MODULES.html.sh: Mention warnings module.
17510         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
17511         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17512
17513 2008-11-10  Eric Blake  <ebb9@byu.net>
17514
17515         fdl.texi: make a symlink to the latest version
17516         * doc/standards.texi: Revert today's earlier change.
17517         * doc/fdl-1.2.texi: Rename from old fdl.texi...
17518         * doc/fdl.texi: ...and replace this with a symlink to the newer
17519         fdl-1.3.texi.
17520
17521 2008-11-10  Bruno Haible  <bruno@clisp.org>
17522
17523         * tests/test-select-fd.c (main): Accept the result file name as fourth
17524         argument.
17525         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
17526         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
17527
17528 2008-11-10  Bruno Haible  <bruno@clisp.org>
17529
17530         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
17531         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
17532         as autoconf-substituted macros.
17533         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
17534         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
17535         gl_NETDB_H_DEFAULTS. Set these variables.
17536         * modules/netdb (Makefile.am): Substitute these variables.
17537
17538 2008-11-10  Eric Blake  <ebb9@byu.net>
17539
17540         standards.texi: include correct file for FDL 1.3
17541         * doc/standards.texi (GNU Free Documentation License): Change
17542         include file to pull in FDL 1.3, not 1.2.
17543
17544         fdl.texi: revert accidental change to license
17545         * doc/fdl.texi: This is FDL 1.2, not 1.3.
17546
17547 2008-11-10  Bruno Haible  <bruno@clisp.org>
17548
17549         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
17550         cross-compiling guesses also when the native compile gives no result.
17551
17552 2008-11-10  Bruno Haible  <bruno@clisp.org>
17553
17554         * lib/spawni.c (__spawni): Force variable into the stack.
17555
17556 2008-11-10  Bruno Haible  <bruno@clisp.org>
17557
17558         Add support for Haiku.
17559         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
17560         glibc and BeOS, but also on Haiku.
17561         * lib/fpurge.c (fpurge): Likewise.
17562         * lib/freadable.c (freadable): Likewise.
17563         * lib/freadahead.c (freadahead): Likewise.
17564         * lib/freading.c (freading): Likewise.
17565         * lib/freadptr.c (freadptr): Likewise.
17566         * lib/freadseek.c (freadptrinc): Likewise.
17567         * lib/fseeko.c (rpl_fseeko): Likewise.
17568         * lib/fseterr.c (fseterr): Likewise.
17569         * lib/fwritable.c (fwritable): Likewise.
17570         * lib/fwriting.c (fwriting): Likewise.
17571         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
17572
17573 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17574
17575         * lib/config.charset: Treat Haiku like BeOS.
17576
17577 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17578
17579         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
17580         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
17581
17582 2008-11-08  Bruno Haible  <bruno@clisp.org>
17583
17584         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
17585         AC_CACHE_CHECK.
17586
17587 2008-11-08  Bruno Haible  <bruno@clisp.org>
17588
17589         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
17590
17591 2008-11-08  Bruno Haible  <bruno@clisp.org>
17592
17593         * tests/test-select-fd.c: New file.
17594         * tests/test-select-in.sh: New file.
17595         * tests/test-select-out.sh: New file.
17596         * tests/test-select-stdin.c: New file.
17597         * modules/select-tests (Files): Add the new files.
17598         (Depends-on): Add gettimeofday.
17599         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
17600         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
17601         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
17602
17603 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
17604             Bruno Haible  <bruno@clisp.org>
17605
17606         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
17607
17608 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
17609
17610         * build-aux/pmccabe2html: Added support for C++ source files.
17611
17612 2008-11-05  Ben Pfaff  <blp@gnu.org>
17613
17614         Fix lib/close.c build on Windows.
17615         * modules/close (Files): Add lib/w32sock.h.
17616
17617 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
17618
17619         Accept Bison's NEWS format.
17620         * build-aux/announce-gen (print_news_deltas): Tweak
17621         $re_prefix.
17622
17623 2008-11-04  Bruno Haible  <bruno@clisp.org>
17624
17625         * modules/random_r (Maintainer): Add glibc.
17626
17627 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17628
17629         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
17630         by karl@freefriends.org (Karl Berry).
17631         * doc/alloca.texi: Likewise.
17632         * doc/c-ctype.texi: Likewise.
17633         * doc/c-strcase.texi: Likewise.
17634         * doc/c-strcaseeq.texi: Likewise.
17635         * doc/c-strcasestr.texi: Likewise.
17636         * doc/c-strstr.texi: Likewise.
17637         * doc/c-strtod.texi: Likewise.
17638         * doc/c-strtold.texi: Likewise.
17639         * doc/ctime.texi: Likewise.
17640         * doc/error.texi: Likewise.
17641         * doc/fdl.texi: Likewise.
17642         * doc/gcd.texi: Likewise.
17643         * doc/getdate.texi: Likewise.
17644         * doc/gnulib-intro.texi: Likewise.
17645         * doc/gnulib-tool.texi: Likewise.
17646         * doc/gnulib.texi: Likewise.
17647         * doc/inet_ntoa.texi: Likewise.
17648         * doc/maintain.texi: Likewise.
17649         * doc/make-stds.texi: Likewise.
17650         * doc/quote.texi: Likewise.
17651         * doc/regexprops-generic.texi: Likewise.
17652         * doc/standards.texi: Likewise.
17653         * doc/verify.texi: Likewise.
17654         * doc/visibility.texi: Likewise.
17655         * doc/gnulib.texi (GNU Free Documentation License): Include
17656         fdl-1.3.texi instead of fdl.texi.
17657
17658 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17659
17660         * doc/fdl-1.3.texi: New file, from
17661         <http://www.gnu.org/licenses/fdl-1.3.texi>.
17662         * modules/fdl-1.3: Add.
17663         * MODULES.html.sh: Add fdl-1.3.
17664
17665 2008-11-03  Bruno Haible  <bruno@clisp.org>
17666
17667         Make determination of absolute name of header file work with AIX xlc.
17668         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
17669         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
17670         preprocessing.
17671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17672         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
17673
17674 2008-11-03  Simon Josefsson  <simon@josefsson.org>
17675
17676         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
17677         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
17678         <ludo@gnu.org>.
17679
17680 2008-11-02  Bruno Haible  <bruno@clisp.org>
17681
17682         Mark 'strpbrk' obsolete.
17683         * modules/strpbrk (Status, Notice): New sections.
17684         * modules/strtok_r (Depends-on): Add strpbrk.
17685
17686 2008-11-02  Bruno Haible  <bruno@clisp.org>
17687
17688         Mark 'strdup' obsolete.
17689         * modules/strdup (Status, Notice): New sections.
17690         * modules/findprog (Depends-on): Add strdup.
17691         * modules/getaddrinfo (Depends-on): Likewise.
17692         * modules/localename (Depends-on): Likewise.
17693         * modules/relocatable-lib (Depends-on): Likewise.
17694         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
17695         * modules/relocatable-prog (Depends-on): Likewise.
17696         * modules/trim (Depends-on): Likewise.
17697         * modules/unictype/gen-ctype (Depends-on): Likewise.
17698         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17699
17700 2008-11-02  Bruno Haible  <bruno@clisp.org>
17701
17702         Mark 'strcspn' obsolete.
17703         * modules/strcspn (Status, Notice): New sections.
17704
17705 2008-11-02  Bruno Haible  <bruno@clisp.org>
17706
17707         Mark 'rmdir' obsolete.
17708         * modules/rmdir (Status, Notice): New sections.
17709         * modules/clean-temp (Depends-on): Add rmdir.
17710         * modules/openat (Depends-on): Likewise.
17711
17712 2008-11-02  Bruno Haible  <bruno@clisp.org>
17713
17714         Mark 'raise' obsolete.
17715         * modules/raise (Status, Notice): New sections.
17716         (Include): Specify <signal.h>.
17717         * modules/stdio (Depends-on): Add raise.
17718         * modules/write (Depends-on): Likewise.
17719
17720 2008-11-02  Bruno Haible  <bruno@clisp.org>
17721
17722         Mark 'memset' obsolete.
17723         * modules/memset (Status, Notice): New sections.
17724
17725 2008-11-02  Bruno Haible  <bruno@clisp.org>
17726
17727         Mark 'memmove' obsolete.
17728         * modules/memmove (Status, Notice): New sections.
17729         * modules/argp (Depends-on): Add memmove.
17730         * modules/argz (Depends-on): Likewise.
17731         * modules/canonicalize (Depends-on): Likewise.
17732         * modules/canonicalize-lgpl (Depends-on): Likewise.
17733         * modules/fts (Depends-on): Likewise.
17734         * modules/getcwd (Depends-on): Likewise.
17735         * modules/human (Depends-on): Likewise.
17736         * modules/regex (Depends-on): Likewise.
17737         * modules/striconveh (Depends-on): Likewise.
17738         * modules/trim (Depends-on): Likewise.
17739         * modules/unistr/u8-move (Depends-on): Likewise.
17740         * modules/unistr/u16-move (Depends-on): Likewise.
17741         * modules/unistr/u32-move (Depends-on): Likewise.
17742
17743 2008-11-02  Bruno Haible  <bruno@clisp.org>
17744
17745         Mark 'memcpy' obsolete.
17746         * modules/memcpy (Status, Notice): New sections.
17747
17748 2008-11-02  Bruno Haible  <bruno@clisp.org>
17749
17750         Mark 'memcmp' obsolete.
17751         * modules/memcmp (Status, Notice): New sections.
17752         * modules/argmatch (Depends-on): Add memchr.
17753         * modules/backupfile (Depends-on): Likewise.
17754         * modules/c-strcasestr (Depends-on): Likewise.
17755         * modules/crypto/des (Depends-on): Likewise.
17756         * modules/csharpcomp (Depends-on): Likewise.
17757         * modules/fnmatch (Depends-on): Likewise.
17758         * modules/git-merge-changelog (Depends-on): Likewise.
17759         * modules/isnand (Depends-on): Likewise.
17760         * modules/isnand-nolibm (Depends-on): Likewise.
17761         * modules/isnanf (Depends-on): Likewise.
17762         * modules/isnanf-nolibm (Depends-on): Likewise.
17763         * modules/isnanl (Depends-on): Likewise.
17764         * modules/isnanl-nolibm (Depends-on): Likewise.
17765         * modules/mbchar (Depends-on): Likewise.
17766         * modules/memcoll (Depends-on): Likewise.
17767         * modules/quotearg (Depends-on): Likewise.
17768         * modules/regex (Depends-on): Likewise.
17769         * modules/relocatable-prog (Depends-on): Likewise.
17770         * modules/same (Depends-on): Likewise.
17771         * modules/signbit (Depends-on): Likewise.
17772         * modules/strcasestr-simple (Depends-on): Likewise.
17773         * modules/unictype/gen-ctype (Depends-on): Likewise.
17774         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17775         * modules/uniname/uniname (Depends-on): Likewise.
17776         * modules/unistr/u8-cmp (Depends-on): Likewise.
17777
17778 2008-11-02  Bruno Haible  <bruno@clisp.org>
17779
17780         Mark 'memchr' obsolete.
17781         * modules/memchr (Status, Notice): New sections.
17782         * modules/argp (Depends-on): Add memchr.
17783         * modules/base64 (Depends-on): Likewise.
17784         * modules/c-strcasestr (Depends-on): Likewise.
17785         * modules/chdir-long (Depends-on): Likewise.
17786         * modules/fnmatch (Depends-on): Likewise.
17787         * modules/getsubopt (Depends-on): Likewise.
17788         * modules/git-merge-changelog (Depends-on): Likewise.
17789         * modules/glob (Depends-on): Likewise.
17790         * modules/strcasestr-simple (Depends-on): Likewise.
17791         * modules/strnlen (Depends-on): Likewise.
17792
17793 2008-11-02  Bruno Haible  <bruno@clisp.org>
17794
17795         Mark 'atexit' obsolete.
17796         * modules/atexit (Status, Notice): New sections.
17797         * modules/chdir-long (Depends-on): Add atexit.
17798         * modules/wait-process (Depends-on): Likewise.
17799
17800 2008-11-02  Bruno Haible  <bruno@clisp.org>
17801
17802         * gnulib-tool: New option --with-obsolete.
17803         (func_usage): Document it.
17804         (func_modules_transitive_closure): Drop obsolete dependencies if
17805         incobsolete is not true.
17806         (func_import): Read and save the incobsolete variable to the cache.
17807
17808 2008-11-02  Bruno Haible  <bruno@clisp.org>
17809
17810         * modules/TEMPLATE-EXTENDED: New field 'Status'.
17811         * gnulib-tool: New option --extract-status.
17812         (func_usage): Document it.
17813         (sed_extract_prog): Recognize it.
17814         (func_get_status): New function.
17815
17816 2008-10-30  Simon Josefsson  <simon@josefsson.org>
17817
17818         * modules/sockets (License): Change from LGPL to LGPLv2+.
17819
17820 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17821
17822         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
17823
17824 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17825
17826         * MODULES.html.sh (Support for systems lacking POSIX:2001):
17827         Mention times and sys_times.
17828         * modules/sys_times, modules/sys_times-tests: New modules.
17829         * modules/times, modules/times-tests: Likewise
17830         * m4/sys_times_h.m4: New file.
17831         * lib/sys_times.in.h: Likewise
17832         * lib/times.c: Likewise.
17833         * tests/test-sys_times.c: Likewise.
17834         * tests/test-times.c: Likewise.
17835         * doc/posix-headers/sys_times.texi: Update.
17836         * doc/posix-functions/times.texi: Update.
17837
17838 2008-10-28  Jim Meyering  <meyering@redhat.com>
17839
17840         * modules/tempname (Depends-on): Add lstat.
17841
17842         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
17843
17844 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17845
17846         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
17847         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
17848         using idiom used elsewhere in gnulib.
17849
17850 2008-10-27  Jim Meyering  <meyering@redhat.com>
17851
17852         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
17853
17854 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17855
17856         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
17857         TESTS_ENVIRONMENT, for shell scripts that needs to call built
17858         programs.
17859         * tests/test-argp-2.sh: Use $EXEEXT when needed.
17860
17861 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17862
17863         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
17864
17865 2008-10-27  Bruno Haible  <bruno@clisp.org>
17866
17867         * tests/test-lstat.c: Include <stdio.h>.
17868
17869 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17870
17871         * modules/lstat-tests: New module.
17872         * tests/test-lstat.c: New file.
17873
17874 2008-10-26  Jim Meyering  <meyering@redhat.com>
17875
17876         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
17877
17878 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17879             Bruno Haible  <bruno@clisp.org>
17880
17881         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
17882         * modules/configmake (Include): Add a note that the include must come
17883         after all system headers.
17884         * lib/javaversion.c: Include configmake.h after all other includes.
17885
17886 2008-10-26  Bruno Haible  <bruno@clisp.org>
17887
17888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
17889         HAVE_STRUCT_RANDOM_DATA to 1.
17890         (gl_STDLIB_H): Simplify.
17891
17892 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17893
17894         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
17895         substitute HAVE_STRUCT_RANDOM_DATA.
17896         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
17897         random_data.
17898         * modules/stdlib (Makefile.am): Substitute
17899         HAVE_STRUCT_RANDOM_DATA.
17900
17901 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17902
17903         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
17904         * doc/gnulib-intro.texi (Copyright): Likewise.
17905
17906 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17907
17908         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
17909         findings.
17910
17911 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
17912             Bruno Haible  <bruno@clisp.org>
17913
17914         * lib/unistd.in.h: Include <winsock2.h>.
17915         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
17916         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
17917         Provide dummy declarations.
17918         (gethostname): Override.
17919         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
17920         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
17921         gl_PREREQ_SYS_H_WINSOCK2.
17922         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
17923         * doc/posix-functions/gethostname.texi: More details.
17924
17925 2008-10-25  Bruno Haible  <bruno@clisp.org>
17926
17927         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17928         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
17929         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
17930
17931         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
17932         here ...
17933         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
17934         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
17935         gl_UNISTD_H_DEFAULTS.
17936
17937 2008-10-25  Eric Blake  <ebb9@byu.net>
17938
17939         signbit: avoid spurious compiler failure
17940         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
17941         declarations inside function.
17942
17943 2008-10-24  Simon Josefsson  <simon@josefsson.org>
17944             Bruno Haible  <bruno@clisp.org>
17945
17946         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
17947         * modules/random_r (Depends-on): Add stdint.
17948
17949 2008-10-24  Bruno Haible  <bruno@clisp.org>
17950
17951         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
17952         Eggert.
17953         * modules/strerror (License): Likewise.
17954
17955 2008-10-24  Jim Meyering  <meyering@redhat.com>
17956
17957         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
17958         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
17959
17960 2008-10-24  Eric Blake  <ebb9@byu.net>
17961
17962         getgroups: fix compilation when getgroups is available
17963         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
17964         but with <config.h> override of getgroups disabled.
17965
17966 2008-10-24  Simon Josefsson  <simon@josefsson.org>
17967
17968         * doc/gnulib.texi (Header files): Add note about C++ problems.
17969         Explained by Bruno Haible <bruno@clisp.org>.
17970
17971 2008-10-23  Bruno Haible  <bruno@clisp.org>
17972
17973         Define a dummy SA_NODEFER macro on Interix.
17974         * lib/signal.in.h (SA_NODEFER): Define fallback.
17975         Reported by Aleksey Cheusov <cheusov@tut.by> via
17976         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
17977
17978 2008-10-23  Bruno Haible  <bruno@clisp.org>
17979
17980         * modules/freadahead (License): Change to LGPLv2+.
17981         Suggested by Simon Josefsson.
17982
17983 2008-10-23  Jim Meyering  <meyering@redhat.com>
17984
17985         random_r: new module
17986         * modules/random_r: New file.
17987         * m4/random_r.m4: New file.
17988         * lib/random_r.c: New file, from glibc.
17989         * modules/random_r-tests: New file.
17990         * tests/test-random_r.c: New file.
17991         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
17992          Declare.
17993         (RAND_MAX): Define.
17994         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
17995         * modules/stdlib: Substitute them, too.
17996         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
17997         * doc/glibc-functions/initstate_r.texi: Mention the new module.
17998         * doc/glibc-functions/random_r.texi: Likewise.
17999         * doc/glibc-functions/setstate_r.texi: Likewise.
18000         * doc/glibc-functions/srandom_r.texi: Likewise.
18001         * config/srclist.txt: Mention it.
18002
18003 2008-10-23  David Lutterkort  <lutter@redhat.com>
18004
18005         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18006         link requirement
18007
18008 2008-10-23  Jim Meyering  <meyering@redhat.com>
18009
18010         selinux-h: mark parameters of stub functions as intentionally unused
18011         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18012         * lib/se-context.in.h: Likewise.
18013
18014 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18015
18016         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18017
18018 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18019
18020         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18021
18022 2008-10-22  Eric Blake  <ebb9@byu.net>
18023
18024         glthread/thread: avoid compiler warning
18025         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18026         Add unreachable abort to silence compiler.
18027
18028 2008-10-22  Eric Blake  <ebb9@byu.net>
18029
18030         netdb: also supply struct addrinfo for cygwin 1.5.x
18031         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18032         older cygwin.
18033         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18034         cygwin.
18035         * doc/posix-headers/netdb.texi (netdb.h): Document this.
18036
18037 2008-10-22  Bruno Haible  <bruno@clisp.org>
18038
18039         * users.txt: Update entry about pspp.
18040
18041 2008-10-21  Bruno Haible  <bruno@clisp.org>
18042
18043         Simplification.
18044         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18045         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18046
18047         Simplification.
18048         * lib/ioctl.c (ioctl): Don't undefine.
18049         * lib/socket.c (socket): Don't undefine.
18050
18051         Remove unused module indicator macros.
18052         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18053         GNULIB_$1 as a C macro.
18054
18055         * doc/posix-functions/close.texi: Undo last change.
18056         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18057         Windows platforms.
18058
18059 2008-10-21  Bruno Haible  <bruno@clisp.org>
18060
18061         Add gethostname() declaration to <unistd.h>.
18062         * lib/unistd.in.h (gethostname): New declaration.
18063         * lib/gethostname.c: Include <unistd.h>.
18064         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18065         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18067         and HAVE_GETHOSTNAME.
18068         * modules/gethostname (Depends-on): Add unistd.
18069         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18070         (Include): Specify <unistd.h>.
18071         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18072         HAVE_GETHOSTNAME.
18073         * tests/test-gethostname.c: Include <unistd.h> first.
18074
18075 2008-10-21  Bruno Haible  <bruno@clisp.org>
18076
18077         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18078         * modules/select-tests (Depends-on): Likewise.
18079         Reported by Simon Josefsson.
18080
18081 2008-10-21  Simon Josefsson  <simon@josefsson.org>
18082
18083         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18084         * lib/accept.c: New file, based on winsock.c.
18085         * lib/bind.c: New file, based on winsock.c.
18086         * lib/connect.c: New file, based on winsock.c.
18087         * lib/getpeername.c: New file, based on winsock.c.
18088         * lib/getsockname.c: New file, based on winsock.c.
18089         * lib/getsockopt.c: New file, based on winsock.c.
18090         * lib/ioctl.c: New file, based on winsock.c.
18091         * lib/listen.c: New file, based on winsock.c.
18092         * lib/recv.c: New file, based on winsock.c.
18093         * lib/recvfrom.c: New file, based on winsock.c.
18094         * lib/send.c: New file, based on winsock.c.
18095         * lib/sendto.c: New file, based on winsock.c.
18096         * lib/setsockopt.c: New file, based on winsock.c.
18097         * lib/shutdown.c: New file, based on winsock.c.
18098         * lib/socket.c: New file, based on winsock.c.
18099         * lib/w32sock.h: New file, based on winsock.c.
18100         * lib/winsock.c: Remove file.
18101         * modules/accept: Likewise.
18102         * modules/bind: Likewise.
18103         * modules/connect: Likewise.
18104         * modules/getpeername: Likewise.
18105         * modules/getsockname: Likewise.
18106         * modules/getsockopt: Likewise.
18107         * modules/ioctl: Likewise.
18108         * modules/listen: Likewise.
18109         * modules/recv: Likewise.
18110         * modules/recvfrom: Likewise.
18111         * modules/send: Likewise.
18112         * modules/sendto: Likewise.
18113         * modules/setsockopt: Likewise.
18114         * modules/shutdown: Likewise.
18115         * modules/socket: Use socket.c instead of winsock.c.
18116         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18117         * doc/posix-functions/accept.texi: Doc fix.
18118         * doc/posix-functions/bind.texi: Doc fix.
18119         * doc/posix-functions/close.texi: Doc fix.
18120         * doc/posix-functions/connect.texi: Doc fix.
18121         * doc/posix-functions/getpeername.texi: Doc fix.
18122         * doc/posix-functions/getsockname.texi: Doc fix.
18123         * doc/posix-functions/getsockopt.texi: Doc fix.
18124         * doc/posix-functions/ioctl.texi: Doc fix.
18125         * doc/posix-functions/listen.texi: Doc fix.
18126         * doc/posix-functions/recv.texi: Doc fix.
18127         * doc/posix-functions/recvfrom.texi: Doc fix.
18128         * doc/posix-functions/send.texi: Doc fix.
18129         * doc/posix-functions/sendto.texi: Doc fix.
18130         * doc/posix-functions/setsockopt.texi: Doc fix.
18131         * doc/posix-functions/shutdown.texi: Doc fix.
18132         * doc/posix-functions/socket.texi: Doc fix.
18133
18134 2008-10-20  Bruno Haible  <bruno@clisp.org>
18135
18136         Take into account the role of SIGABRT_COMPAT on Windows 2008.
18137         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18138         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18139         as an alias for SIGABRT.
18140         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18141         (sigaction): Map it to SIGABRT.
18142         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18143
18144 2008-10-20  Bruno Haible  <bruno@clisp.org>
18145
18146         * lib/fts.c: Don't include lstat.h.
18147         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18148
18149         Move the lstat() declaration to <sys/stat.h>.
18150         * lib/lstat.h: Remove file.
18151         * lib/sys_stat.in.h: Add special invocation convention.
18152         (lstat): New declaration.
18153         * lib/lstat.c (orig_lstat): New function.
18154         (rpl_lstat): Use orig_lstat instead of lstat.
18155         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18156         AC_C_INLINE. Set REPLACE_LSTAT.
18157         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18158         and REPLACE_LSTAT.
18159         * modules/lstat (Files): Remove lib/lstat.h.
18160         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18161         (Include): Specify <sys/stat.h> instead of lstat.h.
18162         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18163         REPLACE_LSTAT.
18164         * NEWS: Mention the change.
18165
18166 2008-10-20  Bruno Haible  <bruno@clisp.org>
18167
18168         * modules/posix_spawn-tests: New file.
18169         * tests/test-posix_spawn3.c: New file.
18170
18171 2008-10-20  Bruno Haible  <bruno@clisp.org>
18172
18173         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18174         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18175         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18176         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18177         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18178
18179 2008-10-20  Bruno Haible  <bruno@clisp.org>
18180
18181         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18182         of posix_spawn on AIX 5.3.
18183
18184 2008-10-20  Bruno Haible  <bruno@clisp.org>
18185
18186         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18187
18188 2008-10-20  Bruno Haible  <bruno@clisp.org>
18189
18190         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18191         of AC_LANG_PROGRAM.
18192
18193 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18194
18195         * lib/netdb.in.h: Don't define GNU specific constants until they
18196         are supported or needed.  Reported by Bruno Haible
18197         <bruno@clisp.org>.
18198
18199 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18200
18201         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18202
18203 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18204
18205         * lib/getaddrinfo.h: Remove file.
18206         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18207         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
18208         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18209         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18210         * modules/netdb: Substitute GNULIB_GETADDRINFO.
18211         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18212         * tests/test-getaddrinfo.c: Likewise.
18213         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
18214         * NEWS: Mention change.
18215
18216 2008-10-19  Bruno Haible  <bruno@clisp.org>
18217
18218         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18219
18220 2008-10-19  Bruno Haible  <bruno@clisp.org>
18221
18222         * lib/wait-process.c: Include simply <sys/wait.h>.
18223         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18224         WIFSTOPPED): Remove fallback definitions.
18225         * modules/wait-process (Depends-on): Add sys_wait.
18226
18227         New module 'sys_wait'.
18228         * modules/sys_wait: New file.
18229         * lib/sys_wait.in.h: New file, partially copied from
18230         lib/wait-process.c.
18231         * m4/sys_wait_h.m4: New file.
18232         * doc/posix-headers/sys_wait.texi: Mention the new module.
18233
18234 2008-10-19  Bruno Haible  <bruno@clisp.org>
18235
18236         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18237
18238 2008-10-19  Bruno Haible  <bruno@clisp.org>
18239
18240         Assume that waitpid() fills an 'int' status, not a 'union wait'.
18241         * lib/wait-process.c (WAIT_T): Remove type.
18242         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18243         (wait_subprocess): Update.
18244
18245 2008-10-19  Bruno Haible  <bruno@clisp.org>
18246
18247         New module 'atoll'.
18248         * modules/atoll: New file.
18249         * lib/stdlib.in.h (atoll): New declaration.
18250         * lib/atoll.c: New file, from glibc with modifications.
18251         * m4/atoll.m4: New file.
18252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18253         HAVE_ATOLL.
18254         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18255         * doc/posix-functions/atoll.texi: Mention the new module.
18256
18257 2008-10-19  Bruno Haible  <bruno@clisp.org>
18258
18259         Add strtoull() declaration to <stdlib.h>.
18260         * lib/stdlib.in.h (strtoull): New declaration.
18261         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18262         Set HAVE_STRTOULL.
18263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18264         HAVE_STRTOULL.
18265         * modules/strtoull (Depends-on): Add stdlib.
18266         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18267         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18268         HAVE_STRTOULL.
18269
18270 2008-10-19  Bruno Haible  <bruno@clisp.org>
18271
18272         Add strtoll() declaration to <stdlib.h>.
18273         * lib/stdlib.in.h (strtoll): New declaration.
18274         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18275         Set HAVE_STRTOLL.
18276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18277         HAVE_STRTOLL.
18278         * modules/strtoll (Depends-on): Add stdlib.
18279         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18280         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18281
18282 2008-10-19  Bruno Haible  <bruno@clisp.org>
18283
18284         * modules/bcopy (Depends-on): Add strings.
18285         (Include): Specify <strings.h>.
18286
18287 2008-10-19  Bruno Haible  <bruno@clisp.org>
18288
18289         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18290
18291 2008-10-19  Bruno Haible  <bruno@clisp.org>
18292
18293         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
18294         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
18295         mingw.
18296
18297 2008-10-19  Bruno Haible  <bruno@clisp.org>
18298
18299         * lib/atanl.c: Don't include isnanl.h.
18300         * lib/cosl.c: Likewise.
18301         * lib/ldexpl.c: Likewise.
18302         * lib/logl.c: Likewise.
18303         * lib/sinl.c: Likewise.
18304         * lib/sqrtl.c: Likewise.
18305         * lib/tanl.c: Likewise.
18306
18307         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
18308         * lib/isnanf.h: Remove file.
18309         * lib/isnand.h: Remove file.
18310         * lib/isnanl.h: Remove file.
18311         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
18312         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
18313         macros.
18314         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
18315         HAVE_ISNANF, don't define it as a C macro.
18316         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
18317         HAVE_ISNAND, don't define it as a C macro.
18318         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
18319         HAVE_ISNANL, don't define it as a C macro.
18320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
18321         HAVE_ISNAN[FDL].
18322         * modules/isnanf (Files): Remove lib/isnanf.h.
18323         (Depends-on): Add math.
18324         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18325         (Include): Specify <math.h> instead of isnanf.h.
18326         * modules/isnand (Files): Remove lib/isnand.h.
18327         (Depends-on): Add math.
18328         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18329         (Include): Specify <math.h> instead of isnand.h.
18330         * modules/isnanl (Files): Remove lib/isnanl.h.
18331         (Depends-on): Add math.
18332         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18333         (Include): Specify <math.h> instead of isnanl.h.
18334         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
18335         HAVE_ISNAN[FDL].
18336         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
18337         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
18338         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
18339         * NEWS: Mention the change.
18340
18341 2008-10-18  Bruno Haible  <bruno@clisp.org>
18342
18343         Add getusershell(), setusershell(), endusershell() declarations to
18344         <unistd.h>.
18345         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
18346         declarations.
18347         * lib/getusershell.c: Include unistd.h.
18348         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
18349         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18350         HAVE_GETUSERSHELL.
18351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
18352         and HAVE_GETUSERSHELL.
18353         * modules/getusershell (Depends-on): Add unistd, extensions.
18354         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18355         (Include): Specify <unistd.h>.
18356         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
18357         HAVE_GETUSERSHELL.
18358
18359 2008-10-18  Bruno Haible  <bruno@clisp.org>
18360
18361         Add a getloadavg() declaration to <stdlib.h>.
18362         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
18363         getloadavg declaration.
18364         (getloadavg): New declaration.
18365         * lib/getloadavg.c: Include <stdlib.h> first.
18366         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
18367         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
18368         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
18369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
18370         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18371         * modules/getloadavg (Depends-on): Add stdlib, extensions.
18372         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18373         (Include): Specify <stdlib.h>.
18374         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
18375         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18376
18377 2008-10-18  Bruno Haible  <bruno@clisp.org>
18378
18379         * lib/dirchownmod.c: Don't include lchmod.h.
18380
18381         Move the lchmod() declaration to <sys/stat.h>.
18382         * lib/lchmod.h: Remove file.
18383         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
18384         (lchmod): New declaration, moved here from lib/lchown.h.
18385         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
18386         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
18387         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
18388         and HAVE_LCHMOD.
18389         * modules/lchmod (Files): Remove lib/lchmod.h.
18390         (Depends-on): Add sys_stat, extensions.
18391         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18392         (Include): Specify <sys/stat.h> instead of lchmod.h.
18393         * modules/sys_stat (Depends-on): Add link-warning.
18394         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
18395         definition of GL_LINK_WARNING.
18396         * NEWS: Mention the change.
18397
18398 2008-10-18  Bruno Haible  <bruno@clisp.org>
18399
18400         * lib/fchdir.c: Don't include dirfd.h.
18401         * lib/fts.c: Likewise.
18402         * lib/getcwd.c: Likewise.
18403         * lib/glob.c: Likewise.
18404
18405         Move the dirfd() declaration to <dirent.h>.
18406         * lib/dirfd.h: Remove file.
18407         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
18408         (dirfd): New declaration.
18409         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
18410         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
18411         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
18412         HAVE_DECL_DIRFD.
18413         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
18414         HAVE_DECL_DIRFD.
18415         * modules/dirfd (Files): Remove lib/dirfd.h.
18416         (Depends-on): Add dirent, extensions.
18417         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
18418         (Include): Specify <dirent.h> instead of dirfd.h.
18419         * modules/dirent (Depends-on): Add link-warning.
18420         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
18421         definition of GL_LINK_WARNING.
18422         * NEWS: Mention the change.
18423
18424 2008-10-18  Bruno Haible  <bruno@clisp.org>
18425
18426         Move the euidaccess() declaration to <unistd.h>.
18427         * lib/euidaccess.h: Remove file.
18428         * lib/unistd.in.h (euidaccess): New declaration.
18429         * lib/euidaccess.c: Don't include euidaccess.h.
18430         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
18431         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
18432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
18433         and HAVE_EUIDACCESS.
18434         * modules/euidaccess (Files): Remove lib/euidaccess.h.
18435         (Depends-on): Add unistd.
18436         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18437         (Include): Specify <unistd.h> instead of euidaccess.h.
18438         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
18439         HAVE_EUIDACCESS.
18440         * NEWS: Mention the change.
18441
18442 2008-10-18  Bruno Haible  <bruno@clisp.org>
18443
18444         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
18445
18446         Move the getdomainname() declaration to <unistd.h>.
18447         * lib/getdomainname.h: Remove file.
18448         * lib/unistd.in.h (getdomainname): New declaration.
18449         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
18450         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18451         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18452         HAVE_GETDOMAINNAME.
18453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18454         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
18455         * modules/getdomainname (Files): Remove lib/getdomainname.h.
18456         (Depends-on): Add unistd, extensions.
18457         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18458         (Includes): Specify <unistd.h> instead of getdomainname.h.
18459         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
18460         HAVE_GETDOMAINNAME.
18461         * NEWS: Mention the change.
18462
18463 2008-10-18  Bruno Haible  <bruno@clisp.org>
18464
18465         * modules/dirent: New file.
18466         * m4/dirent_h.m4: New file.
18467         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
18468         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
18469         * modules/fchdir (Files): Remove lib/dirent.in.h.
18470         (Depends-on): Add dirent.
18471         (Makefile.am): Move rules to modules/dirent.
18472         * doc/posix-headers/dirent.texi: Mention the new module.
18473
18474 2008-10-18  Bruno Haible  <bruno@clisp.org>
18475
18476         Avoid -Wunused-parameter warnings in public gnulib header files.
18477         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
18478         macro.
18479         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
18480
18481 2008-10-18  Bruno Haible  <bruno@clisp.org>
18482
18483         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
18484         * doc/glibc-functions/error.texi: Mention the module 'error'.
18485         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
18486         * doc/glibc-functions/getdomainname.texi: Mention the module
18487         'getdomainname'.
18488         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
18489         * doc/glibc-functions/getpagesize.texi: Mention the module
18490         'getpagesize'.
18491         * doc/glibc-functions/getusershell.texi: Mention the module
18492         'getusershell'.
18493         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
18494         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
18495         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
18496         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
18497         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
18498         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
18499         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
18500         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
18501         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
18502         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
18503         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
18504         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
18505         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
18506         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
18507
18508 2008-10-17  Bruno Haible  <bruno@clisp.org>
18509
18510         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
18511         HP-UX and IRIX, use -0.0L.
18512         * tests/test-ceill.c (minus_zero): Likewise.
18513         * tests/test-floorl.c (minus_zero): Likewise.
18514         * tests/test-frexpl.c (minus_zero): Likewise.
18515         * tests/test-isnan.c (minus_zerol): Likewise.
18516         * tests/test-isnanl.h (minus_zero): Likewise.
18517         * tests/test-ldexpl.c (minus_zero): Likewise.
18518         * tests/test-roundl.c (minus_zero): Likewise.
18519         * tests/test-signbit.c (minus_zerol): Likewise.
18520         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18521         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18522         * tests/test-truncl.c (minus_zero): Likewise.
18523         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18524         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18525         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
18526         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18527
18528 2008-10-17  Bruno Haible  <bruno@clisp.org>
18529
18530         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
18531         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
18532         that it gets activated only for gcc >= 3.0.
18533         * lib/dirent.in.h: Likewise.
18534         * lib/errno.in.h: Likewise.
18535         * lib/fcntl.in.h: Likewise.
18536         * lib/float.in.h: Likewise.
18537         * lib/iconv.in.h: Likewise.
18538         * lib/inttypes.in.h: Likewise.
18539         * lib/locale.in.h: Likewise.
18540         * lib/math.in.h: Likewise.
18541         * lib/netdb.in.h: Likewise.
18542         * lib/netinet_in.in.h: Likewise.
18543         * lib/search.in.h: Likewise.
18544         * lib/signal.in.h: Likewise.
18545         * lib/spawn.in.h: Likewise.
18546         * lib/stdarg.in.h: Likewise.
18547         * lib/stdint.in.h: Likewise.
18548         * lib/stdio.in.h: Likewise.
18549         * lib/stdlib.in.h: Likewise.
18550         * lib/string.in.h: Likewise.
18551         * lib/strings.in.h: Likewise.
18552         * lib/sys_file.in.h: Likewise.
18553         * lib/sys_ioctl.in.h: Likewise.
18554         * lib/sys_select.in.h: Likewise.
18555         * lib/sys_socket.in.h: Likewise.
18556         * lib/sys_stat.in.h: Likewise.
18557         * lib/sys_time.in.h: Likewise.
18558         * lib/sysexits.in.h: Likewise.
18559         * lib/time.in.h: Likewise.
18560         * lib/unistd.in.h: Likewise.
18561         * lib/wchar.in.h: Likewise.
18562         * lib/wctype.in.h: Likewise.
18563         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18564
18565 2008-10-17  Jim Meyering  <meyering@redhat.com>
18566
18567         ignore-value: don't depend on inline module
18568         * modules/ignore-value (Depends-on): Remove 'inline'.
18569         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
18570         Suggestion from Bruno Haible.
18571
18572 2008-10-17  Bruno Haible  <bruno@clisp.org>
18573
18574         New implementation of condition variables for Win32.
18575         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
18576         (gl_linked_waitqueue_t): New type.
18577         (gl_cond_t): Use it.
18578         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
18579         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
18580         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
18581         (glthread_cond_init_func, glthread_cond_wait_func,
18582         glthread_cond_timedwait_func, glthread_cond_signal_func,
18583         glthread_cond_broadcast_func, glthread_cond_destroy_func):
18584         Reimplemented on the basis of gl_linked_waitqueue_t.
18585         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
18586         gl_waitqueue_t.
18587         (gl_rwlock_t): Update.
18588         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
18589
18590 2008-10-17  Simon Josefsson  <simon@josefsson.org>
18591
18592         * modules/recvfrom (Depends-on): Add dependency on getpeername.
18593         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18594
18595 2008-10-17  Jim Meyering  <meyering@redhat.com>
18596
18597         ignore-value: new module
18598         * modules/ignore-value: New file.
18599         * lib/ignore-value.h: New file.
18600         * MODULES.html.sh (Compiler warning management): New section,
18601         just for this module.  More to come.
18602
18603 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18604
18605         open-safer.c: avoid 'signed and unsigned in conditional...' warning
18606         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
18607         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
18608
18609 2008-10-16  Jim Meyering  <meyering@redhat.com>
18610
18611         openat-die.c: avoid 'no previous prototype' warning
18612         * lib/openat-die.c: Include "openat.h".
18613         Reported by Reuben Thomas <rrt@sc3d.org>.
18614
18615 2008-10-16  Simon Josefsson  <simon@josefsson.org>
18616
18617         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
18618         * lib/netdb.in.h: Fix typo.
18619         Reported by Bruno Haible  <bruno@clisp.org>
18620
18621         * lib/netdb.in.h: Include sys/socket.h for platforms without
18622         netdb.h, to get structures like hostent on MinGW.
18623         * modules/netdb (Depends-on): Add sys_socket.
18624
18625 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18626
18627         * modules/netdb, modules/netdb-tests: New file.
18628         * m4/netdb_h.m4: New file.
18629         * lib/netdb.in.h: Add, currently just an empty file pending
18630         definitions.
18631         * tests/test-netdb.c: New file.
18632         * doc/posix-headers/netdb.texi: Mention that we replace it if
18633         needed.
18634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18635         netdb.
18636
18637 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18638
18639         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
18640         with code.
18641
18642 2008-10-13  Bruno Haible  <bruno@clisp.org>
18643
18644         * lib/glthread/cond.c (glthread_cond_wait_func,
18645         glthread_cond_timedwait_func): Add a comment.
18646
18647 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18648
18649         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
18650         * tests/test-select.c: Likewise,
18651
18652 2008-10-13  Bruno Haible  <bruno@clisp.org>
18653
18654         * lib/glthread/cond.c (glthread_cond_wait_func,
18655         glthread_cond_timedwait_func): Fix variable name.
18656         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18657
18658 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
18659
18660         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
18661         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
18662         struct sockaddr.sa_len.
18663         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
18664
18665 2008-10-13  Simon Josefsson  <simon@josefsson.org>
18666
18667         * build-aux/pmccabe2html: Add css and css_url parameters.
18668
18669 2008-10-12  Bruno Haible  <bruno@clisp.org>
18670
18671         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
18672         calling aclx_get.
18673         Reported by Rainer Tammer <tammer@tammer.net>.
18674
18675 2008-10-12  Bruno Haible  <bruno@clisp.org>
18676
18677         Use msvcrt aware primitives for creation/termination of Win32 threads.
18678         * lib/glthread/thread.c: Include <process.h>.
18679         (glthread_create_func): Use _beginthreadex instead of CreateThread.
18680         (wrapper_func): Update signature.
18681         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
18682
18683 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18684             Bruno Haible  <bruno@clisp.org>
18685
18686         Provide a Win32 implementation of the 'cond' module.
18687         * lib/glthread/cond.h [USE_WIN32]: New implementation.
18688         * lib/glthread/cond.c (glthread_cond_init_func,
18689         glthread_cond_wait_func, glthread_cond_timedwait_func,
18690         glthread_cond_signal_func, glthread_cond_broadcast_func,
18691         glthread_cond_destroy_func) [USE_WIN32]: New functions.
18692         * modules/cond (Dependencies): Add gettimeofday.
18693
18694 2008-10-11  Bruno Haible  <bruno@clisp.org>
18695
18696         Make sleep work on older versions of mingw.
18697         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
18698         only whether it exists.
18699         * doc/posix-functions/sleep.texi: Mention the problem with older
18700         versions of mingw.
18701
18702 2008-10-11  Bruno Haible  <bruno@clisp.org>
18703
18704         New module 'shutdown'.
18705         * modules/shutdown: New file.
18706         * lib/sys_socket.in.h (shutdown): New declaration.
18707         * lib/winsock.c (shutdown): New function.
18708         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18709         GNULIB_SHUTDOWN.
18710         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
18711         * doc/posix-functions/shutdown.texi: Document the new module.
18712
18713 2008-10-11  Jim Meyering  <meyering@redhat.com>
18714
18715         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
18716
18717 2008-10-11  Bruno Haible  <bruno@clisp.org>
18718
18719         New module 'fclose'.
18720         * modules/fclose: New file.
18721         * lib/stdio.in.h (fclose): New declaration.
18722         * lib/fclose.c: New file.
18723         * m4/fclose.m4: New file.
18724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
18725         REPLACE_FCLOSE.
18726         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
18727         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
18728         REPLACE_FCLOSE.
18729         * modules/close (Depends-on): fclose.
18730         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
18731
18732 2008-10-11  Bruno Haible  <bruno@clisp.org>
18733
18734         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
18735         set errno and don't call _close.
18736
18737 2008-10-10  Bruno Haible  <bruno@clisp.org>
18738
18739         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
18740         ACL, not afterwards. Fixes test failure on Cygwin.
18741
18742 2008-10-09  Ben Pfaff  <blp@gnu.org>
18743
18744         * build-aux/announce-gen: Fix gnulib version related part of usage
18745         message.  Die with a useful error message if no tarballs are
18746         found.
18747
18748 2008-10-10  Jim Meyering  <meyering@redhat.com>
18749
18750         bootstrap: use git's --depth=N option only if it's supported
18751         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
18752         recognize the --depth option.  Reported by Pádraig Brady.
18753
18754 2008-10-09  Bruno Haible  <bruno@clisp.org>
18755
18756         New module 'ioctl'.
18757         * modules/ioctl: New file.
18758         * lib/sys_socket.in.h (ioctl): Remove declaration.
18759         * lib/winsock.c: Include <sys/ioctl.h>.
18760         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
18761         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18762         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
18763         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
18764         * doc/posix-functions/ioctl.texi: Mention the new module.
18765
18766 2008-10-09  Bruno Haible  <bruno@clisp.org>
18767
18768         New module 'sys_ioctl'.
18769         * lib/sys_ioctl.in.h: New file.
18770         * m4/sys_ioctl_h.m4: New file.
18771         * modules/sys_ioctl: New file.
18772         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
18773
18774 2008-10-09  Bruno Haible  <bruno@clisp.org>
18775
18776         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
18777         * lib/winsock.c: Include <stdarg.h>.
18778         (rpl_ioctl): Change to second argument 'int' and then varargs.
18779
18780 2008-10-09  Bruno Haible  <bruno@clisp.org>
18781
18782         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
18783         when the sys_socket module is present and the system has <winsock2.h>.
18784
18785 2008-10-09  Bruno Haible  <bruno@clisp.org>
18786
18787         * doc/posix-functions/close.texi: Mention module 'close' instead of
18788         module 'sys_socket'.
18789
18790 2008-10-09  Bruno Haible  <bruno@clisp.org>
18791
18792         * doc/glibc-headers/sys_ioctl.texi: New file.
18793         * doc/gnulib.texi: Include it.
18794
18795 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18796             Bruno Haible  <bruno@clisp.org>
18797
18798         Combine the two replacements of 'close'.
18799         * lib/sys_socket.in.h (close): Define to a reminder to include
18800         <unistd.h>.
18801         (_gl_close_fd_maybe_socket): New declaration.
18802         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
18803         * lib/winsock.c (close): Remove undefinition.
18804         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
18805         needed for the gnulib module 'close'.
18806         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
18807         define to an error symbol or to a warning, if suitable.
18808         * lib/close.c: Include <sys/socket.h>.
18809         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
18810         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
18811         UNISTD_H_HAVE_WINSOCK2_H.
18812         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
18813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18814         UNISTD_H_HAVE_WINSOCK2_H.
18815         * modules/sys_socket (Files): Add m4/unistd_h.m4.
18816         (configure.ac): Set a module indicator.
18817         (Makefile.am): Substitute GNULIB_CLOSE.
18818         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
18819         * modules/poll-tests (Depends-on): Add close.
18820         * modules/select-tests (Depends-on): Likewise.
18821
18822 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18823             Bruno Haible  <bruno@clisp.org>
18824
18825         New module 'close'.
18826         * modules/close: New file.
18827         * lib/unistd.in.h (close): Move declaration out of the
18828         FCHDIR_REPLACEMENT scope.
18829         (_gl_unregister_fd): New declaration.
18830         * lib/close.c: New file.
18831         * lib/fchdir.c (rpl_close): Remove function.
18832         * m4/close.m4: New file.
18833         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18834         close.
18835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
18836         REPLACE_CLOSE.
18837         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
18838         REPLACE_CLOSE.
18839         * modules/fchdir (Depends-on): Add close.
18840
18841 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18842             Bruno Haible  <bruno@clisp.org>
18843
18844         * lib/fcntl.in.h (open): Simplify conditionals.
18845         (_gl_register_fd): New declaration.
18846         * lib/fchdir.c (rpl_open): Remove function.
18847         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
18848         also.
18849         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
18850         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18851         open.
18852
18853 2008-10-09  Jim Meyering  <meyering@redhat.com>
18854
18855         GNUmakefile: use the more name-space-friendly "_version"
18856         * top/GNUmakefile (_dummy): Update.
18857         (_version): Rename from "version".
18858
18859 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18860             Bruno Haible  <bruno@clisp.org>
18861
18862         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
18863         rpl_close.
18864         (_gl_register_fd): New function, extracted from rpl_open.
18865         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
18866         (rpl_open, rpl_opendir): Use _gl_register_fd.
18867
18868 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18869
18870         Fix organization of 'open' replacement.
18871         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
18872         (gl_FUNC_OPEN): Use it.
18873         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
18874
18875 2008-10-08  Bruno Haible  <bruno@clisp.org>
18876
18877         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
18878
18879 2008-10-08  Simon Josefsson  <simon@josefsson.org>
18880
18881         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
18882         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
18883         listen).
18884
18885 2008-10-08  Eric Blake  <ebb9@byu.net>
18886
18887         GNUmakefile: add 'make version' target
18888         * top/GNUmakefile (_curr-ver): Split version update rules...
18889         (version): ...into a target.
18890
18891 2008-10-07  Bruno Haible  <bruno@clisp.org>
18892
18893         Use a more portable replacement expression for -0.0L.
18894         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
18895         instead of -0.0L. Fix m4 quotation.
18896
18897         * tests/test-signbit.c: Include <float.h>.
18898         (minus_zero): New variable.
18899         (test_signbitl): Use minus_zero instead of -zero.
18900         * modules/signbit-tests (Depends-on): Add float.
18901
18902         * tests/test-ceill.c: Include <float.h>.
18903         (zero): Remove variable.
18904         (minus_zero): New variable.
18905         (main): Use minus_zero instead of -zero.
18906         * modules/ceill-tests (Depends-on): Add float.
18907
18908         * tests/test-floorl.c: Include <float.h>.
18909         (zero): Remove variable.
18910         (minus_zero): New variable.
18911         (main): Use minus_zero instead of -zero.
18912         * modules/floorl-tests (Depends-on): Add float.
18913
18914         * tests/test-roundl.c: Include <float.h>.
18915         (zero): Remove variable.
18916         (minus_zero): New variable.
18917         (main): Use minus_zero instead of -zero.
18918         * modules/roundl-tests (Depends-on): Add float.
18919
18920         * tests/test-truncl.c: Include <float.h>.
18921         (zero): Remove variable.
18922         (minus_zero): New variable.
18923         (main): Use minus_zero instead of -zero.
18924         * modules/truncl-tests (Depends-on): Add float.
18925
18926         * tests/test-frexpl.c (zero): Remove variable.
18927         (minus_zero): New variable.
18928         (main): Use minus_zero instead of -zero.
18929         * modules/frexpl-tests (Depends-on): Add float.
18930
18931         * tests/test-isnan.c (zerol): Remove variable.
18932         (minus_zerol): New variable.
18933         (test_long_double): Use minus_zerol instead of -zerol.
18934         * modules/isnan-tests (Depends-on): Add float.
18935
18936         * tests/test-isnanl.h (zero): Remove variable.
18937         (minus_zero): New variable.
18938         (main): Use minus_zero instead of -zero.
18939         * modules/isnanl-nolibm-tests (Depends-on): Add float.
18940         * modules/isnanl-tests (Depends-on): Add float.
18941
18942         * tests/test-ldexpl.c (zero): Remove variable.
18943         (minus_zero): New variable.
18944         (main): Use minus_zero instead of -zero.
18945         * modules/ldexpl-tests (Depends-on): Add float.
18946
18947         * tests/test-snprintf-posix.h (zerol): Remove variable.
18948         (minus_zerol): New variable.
18949         (test_function): Use minus_zerol instead of -zerol.
18950         * modules/snprintf-posix-tests (Depends-on): Add float.
18951         * modules/vsnprintf-posix-tests (Depends-on): Add float.
18952
18953         * tests/test-sprintf-posix.h (zerol): Remove variable.
18954         (minus_zerol): New variable.
18955         (test_function): Use minus_zerol instead of -zerol.
18956         * modules/sprintf-posix-tests (Depends-on): Add float.
18957         * modules/vsprintf-posix-tests (Depends-on): Add float.
18958
18959         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
18960         (minus_zerol): New variable.
18961         (test_function): Use minus_zerol instead of -zerol.
18962         * modules/vasnprintf-posix-tests (Depends-on): Add float.
18963
18964         * tests/test-vasprintf-posix.c (zerol): Remove variable.
18965         (minus_zerol): New variable.
18966         (test_function): Use minus_zerol instead of -zerol.
18967         * modules/vasprintf-posix-tests (Depends-on): Add float.
18968
18969 2008-10-07  Simon Josefsson  <simon@josefsson.org>
18970
18971         * MODULES.html.sh (Support for building documentation): Mention
18972         pmccabe2html.  Sort entries.
18973
18974         Add pmccabe2html module, from gnupdf.
18975         * build-aux/pmccabe.css: New file.
18976         * build-aux/pmccabe2html: New file.
18977         * m4/pmccabe2html.m4: New file.
18978         * modules/pmccabe2html: New file.
18979
18980 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
18981
18982         flock: new module
18983         * MODULES.html.sh: Add to list of modules.
18984         * lib/flock.c: flock implementation for Windows and Unix systems
18985         which have fcntl.
18986         * doc/glibc-functions/flock.texi: Update documentation.
18987         * lib/sys_file.in.h: <sys/file.h> header file.
18988         * m4/flock.m4: M4 macros.
18989         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
18990         * modules/flock: flock module.
18991         * modules/flock-tests: flock tests module.
18992         * modules/sys_file: sys/file.h module.
18993         * tests/test-flock.c: test suite for flock.
18994
18995 2008-10-06  Jim Meyering  <meyering@redhat.com>
18996
18997         bootstrap: check for LT_INIT more portably still ;-)
18998         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
18999         Spotted by Bruno Haible.
19000
19001 2008-10-06  Eric Blake  <ebb9@byu.net>
19002
19003         test-signbit: avoid tripping Irix cc bug on -0.0L
19004         * tests/test-signbit.c (minus_zerol): Delete, and replace with
19005         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
19006         entire testsuite consistent and avoids an Irix 6.2 bug.
19007
19008 2008-10-05  Bruno Haible  <bruno@clisp.org>
19009             Jim Meyering  <jim@meyering.net>
19010
19011         Add an option for ignoring EPIPE during close_stdout.
19012         * lib/closeout.h: Include <stdbool.h>.
19013         (close_stdout_set_ignore_EPIPE): New declaration.
19014         * lib/closeout.c: Include <stdbool.h>.
19015         (ignore_EPIPE): New variable.
19016         (close_stdout_set_ignore_EPIPE): New function.
19017         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19018         * lib/close-stream.c (close_stream): Mention the possible EPIPE
19019         failure.
19020         * modules/closeout (Depends-on): Add stdbool.
19021
19022 2008-10-05  Bruno Haible  <bruno@clisp.org>
19023
19024         * modules/accept: New file.
19025         * modules/bind: New file.
19026         * modules/connect: New file.
19027         * modules/getpeername: New file.
19028         * modules/getsockname: New file.
19029         * modules/getsockopt: New file.
19030         * modules/listen: New file.
19031         * modules/recv: New file.
19032         * modules/recvfrom: New file.
19033         * modules/send: New file.
19034         * modules/sendto: New file.
19035         * modules/setsockopt: New file.
19036         * modules/socket: New file.
19037         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19038         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19039         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19040         the particular module is requested. Add a link warning when the
19041         particular module is not requested.
19042         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19043         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19044         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19045         the particular module is requested.
19046         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19047         gl_SYS_SOCKET_H_DEFAULTS): New macros.
19048         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19049         * modules/sys_socket (Depends-on): Add link-warning.
19050         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19051         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19052         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19053         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19054         GL_LINK_WARNING.
19055         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19056         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19057         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19058         * doc/posix-functions/getpeername.texi: Mention the new module
19059         'getpeername'.
19060         * doc/posix-functions/getsockname.texi: Mention the new module
19061         'getsockname'.
19062         * doc/posix-functions/getsockopt.texi: Mention the new module
19063         'getsockopt'.
19064         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19065         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19066         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19067         * doc/posix-functions/send.texi: Mention the new module 'send'.
19068         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19069         * doc/posix-functions/setsockopt.texi: Mention the new module
19070         'setsockopt'.
19071         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19072         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19073         listen, connect, accept.
19074         * modules/select-tests (Depends-on): Likewise.
19075
19076 2008-10-05  Bruno Haible  <bruno@clisp.org>
19077
19078         * lib/winsock.c (strerror): Remove unused #undef.
19079         (rpl_close): Remove unused local variable.
19080
19081         * modules/sys_socket (Depends-on); Add errno.
19082
19083 2008-10-05  Bruno Haible  <bruno@clisp.org>
19084
19085         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19086         (select): Add a link warning when the 'select' module is not used.
19087         * modules/sys_select (Depends-on): Add link-warning.
19088         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19089         Suggested by Paolo Bonzini.
19090
19091 2008-10-05  Jim Meyering  <meyering@redhat.com>
19092
19093         bootstrap: check for LT_INIT more portably
19094         * build-aux/bootstrap: Avoid using grep -E, since it's not
19095         portable enough.  Suggestion from Bruno Haible.
19096
19097 2008-10-05  Bruno Haible  <bruno@clisp.org>
19098
19099         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19100         as being fixed by gnulib.
19101
19102 2008-10-05  Bruno Haible  <bruno@clisp.org>
19103
19104         * modules/select-tests: New file, mostly copied from
19105         modules/sys_select-tests.
19106         * tests/test-select.c: New file, mostly copied from
19107         tests/test-sys_select.c.
19108         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19109         * modules/sys_select-tests (Depends-on): Remove all dependencies.
19110         (Makefile.am): Remove test_sys_select_LDADD.
19111
19112         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19113         to an undefined symbol, for an error message.
19114         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19115         (gl_SYS_SELECT_H_DEFAULTS): New macro.
19116         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19117         winsock-select.c here.
19118         * modules/sys_select (Files): Remove lib/winsock-select.c.
19119         (Depends-on): Remove alloca.
19120         (Makefile.am): Substitute GNULIB_SELECT.
19121         * modules/select: New file.
19122         * doc/posix-functions/select.texi: Update.
19123
19124 2008-10-05  Bruno Haible  <bruno@clisp.org>
19125
19126         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19127         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19128         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19129         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19130         getdtablesize.
19131         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19132         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19133
19134 2008-10-05  Bruno Haible  <bruno@clisp.org>
19135
19136         * modules/getdtablesize-tests: New file.
19137         * tests/test-getdtablesize.c: New file.
19138
19139         New module 'getdtablesize'.
19140         * lib/unistd.in.h (getdtablesize): New declaration.
19141         * lib/getdtablesize.c: New file.
19142         * m4/getdtablesize.m4: New file.
19143         * modules/getdtablesize: New file.
19144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19145         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19146         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19147         HAVE_GETDTABLESIZE.
19148         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19149
19150 2008-10-05  Bruno Haible  <bruno@clisp.org>
19151
19152         * modules/sched (Makefile.am): Fix typo.
19153         Reported by Simon Josefsson.
19154
19155 2008-10-05  Jim Meyering  <meyering@redhat.com>
19156
19157         bootstrap: check for LT_INIT, too
19158         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19159         are deprecated.  Suggestion from Ralf Wildenhues.
19160
19161 2008-10-05  Bruno Haible  <bruno@clisp.org>
19162
19163         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19164         overriding them by ours.
19165         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19166
19167 2008-10-05  Jim Meyering  <meyering@redhat.com>
19168
19169         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19170         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19171         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
19172
19173 2008-10-04  Bruno Haible  <bruno@clisp.org>
19174
19175         * modules/dup2 (License): Change to LGPLv2+.
19176         * modules/sleep (License): Likewise.
19177         * modules/perror (License): Likewise.
19178         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19179         Blake.
19180         * modules/signal (License): Likewise.
19181         * modules/sigprocmask (License): Likewise.
19182         * modules/raise (License): Change to LGPLv2+, with approval by Jim
19183         Meyering.
19184
19185 2008-10-04  Bruno Haible  <bruno@clisp.org>
19186
19187         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19188         Reported by Rainer Tammer <tammer@tammer.net>.
19189
19190 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
19191             Bruno Haible  <bruno@clisp.org>
19192
19193         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19194         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19195         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19196
19197 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
19198
19199         filevercmp: new module
19200         * lib/filevercmp.h: New function filevercmp comparing version strings.
19201         * lib/filevercmp.c: Implementation of filevercmp function.
19202         * modules/filevercmp: Module metadata.
19203         * tests/test-filevercmp.c: Unit test for new module.
19204         * modules/filevercmp-tests: Unit test metadata.
19205         * MODULES.html.sh: Add filevercmp module.
19206
19207 2008-10-03  Bruno Haible  <bruno@clisp.org>
19208
19209         * lib/c-ctype.h: Add comment.
19210         Reported by Jim Meyering.
19211
19212 2008-10-02  Bruno Haible  <bruno@clisp.org>
19213
19214         * modules/posix_spawn-internal (Depends-on): Add 'open'.
19215
19216 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19217
19218         * build-aux/bootstrap: Allow renaming bootstrap, and change the
19219         name of bootstrap.conf accordingly.
19220
19221 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19222
19223         * build-aux/bootstrap: Install git-merge-changelog configuration
19224         items into .gitconfig if needed.
19225
19226 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19227
19228         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19229         git repository, and initialize/update it accordingly.
19230
19231 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
19232
19233         * modules/fsync-tests: New file.
19234         * tests/test-fsync.c: New file.
19235
19236         New module 'fsync'.
19237         * lib/fsync.c: New file.
19238         * m4/fsync.m4: New file.
19239         * modules/fsync: New file.
19240         * lib/unistd.in.h (fsync): New declaration.
19241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19242         GNULIB_FSYNC and HAVE_FSYNC.
19243         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19244         * MODULES.html.sh (posix_functions): Add fsync.
19245         * doc/posix-functions/fsync.texi: Mention the new module.
19246
19247 2008-10-02  Jim Meyering  <meyering@redhat.com>
19248
19249         fts.c: sync with similar code from coreutils' remove.c
19250         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19251         Guard also with "#if defined __linux__", since for now at least,
19252         this code is Linux-kernel-specific.
19253
19254 2008-10-02  Jim Meyering  <meyering@redhat.com>
19255
19256         fts: bug fixes
19257         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19258         Include <sys/vfs.h>, not <sys/statfs.h>.
19259
19260         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19261         Include <sys/vfs.h>, not <sys/statfs.h>.
19262
19263 2008-10-01  Bruno Haible  <bruno@clisp.org>
19264
19265         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19266         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19267         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19268         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19269         * doc/posix-functions/posix_spawnp.texi: Likewise.
19270         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19271         whether posix_spawn actually works.
19272         * m4/pipe.m4 (gl_PIPE): Likewise.
19273         * modules/execute (Files): Add m4/posix_spawn.m4.
19274         * modules/pipe (Files): Add m4/posix_spawn.m4.
19275         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19276
19277 2008-10-01  Jim Meyering  <meyering@redhat.com>
19278
19279         remove trailing spaces
19280         * NEWS: Likewise.
19281         * lib/poll.c (poll): Likewise.
19282         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19283         * lib/winsock.c (rpl_close): Likewise.
19284         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19285         * modules/yield: Likewise.
19286         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19287         * tests/test-sys_select.c (connect_to_socket): Likewise.
19288
19289         fts.c: adjust a new interface to be more generally useful
19290         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19291         (fts_build): Adjust caller.
19292
19293 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19294
19295         * modules/cond-tests: New file.
19296         * tests/test-cond.c: New file.
19297
19298 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19299             Bruno Haible  <bruno@clisp.org>
19300
19301         * modules/cond (Dependencies): Add errno, time.
19302         * lib/glthread/cond.h: Include <time.h>.
19303         (gl_cond_define, gl_cond_define_initialized): Use the same definition
19304         across platforms.
19305
19306 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19307             Bruno Haible  <bruno@clisp.org>
19308
19309         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
19310
19311 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19312             Bruno Haible  <bruno@clisp.org>
19313
19314         * modules/tls-tests (Depends-on): Add thread, yield.
19315         (configure.ac): Remove all checks.
19316         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
19317         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19318         gl_thread_self): Remove definitions. Include glthread/thread.h and
19319         glthread/yield.h instead.
19320         (test_tls): Pass an additional NULL argument to gl_thread_join.
19321
19322 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19323             Bruno Haible  <bruno@clisp.org>
19324
19325         * modules/lock-tests (Depends-on): Add thread, yield.
19326         (configure.ac): Remove all checks.
19327         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
19328         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19329         gl_thread_self): Remove definitions. Include glthread/thread.h and
19330         glthread/yield.h instead.
19331         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
19332         additional NULL argument to gl_thread_join.
19333
19334 2008-09-30  Bruno Haible  <bruno@clisp.org>
19335
19336         Fix the Win32 implementation of the 'thread' module.
19337         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
19338         pointer type.
19339         (gl_thread_self): Invoke gl_thread_self_func.
19340         (gl_thread_self_func): New declaration.
19341         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
19342         (do_init_self_key, init_self_key): New functions.
19343         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
19344         Remove some fields.
19345         (running_threads, running_lock): Remove variables.
19346         (get_current_thread_handle): New function.
19347         (gl_thread_self_func, wrapper_func, glthread_create_func,
19348         glthread_join_func, gl_thread_exit_func): Largely rewritten and
19349         simplified.
19350
19351 2008-09-30  Bruno Haible  <bruno@clisp.org>
19352
19353         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
19354         files.
19355
19356 2008-09-30  Jim Meyering  <meyering@redhat.com>
19357
19358         fts.m4: correct the test for statfs.f_type
19359         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
19360         when checking for statfs.f_type.
19361
19362 2008-09-15  Simon Josefsson  <simon@josefsson.org>
19363
19364         tests: avoid some compiler warnings
19365         * tests/test-memchr.c (main): Pass NULL indirectly.
19366         * tests/test-getdate.c (main): Remove unused variable 'ret'.
19367
19368 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
19369
19370         getdate.y: disallow countable dayshifts like "4 yesterday ago"
19371         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
19372         exactly specified dayshifts.
19373         (dayshift): New rule.
19374         (rel): Add dayshift.
19375         (relative_time_table) [tomorrow, yesterday, today, now]:
19376         Use tDAY_SHIFT in place of tDAY_UNIT.
19377         * tests/test-getdate.c: Add tests for now-disallowed countable
19378         dayshifts, e.g., "4 yesterday ago".
19379
19380 2008-09-29  Bruno Haible  <bruno@clisp.org>
19381
19382         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
19383         * tests/test-posix_spawn1.in.sh: Renamed from
19384         tests/test-posix_spawn.in.sh.
19385         * tests/test-posix_spawn2.c: New file.
19386         * tests/test-posix_spawn2.in.sh: New file.
19387         * modules/posix_spawnp-tests (Files): Update.
19388         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
19389
19390 2008-09-29  Bruno Haible  <bruno@clisp.org>
19391
19392         Propagate effects of putenv/setenv/unsetenv to child processes.
19393         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
19394         * lib/pipe.c (create_pipe): Likewise.
19395
19396 2008-09-29  Bruno Haible  <bruno@clisp.org>
19397
19398         Enable use of shell scripts as executables in mingw.
19399         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
19400         run the program as a shell script.
19401         * lib/pipe.c (create_pipe): Likewise.
19402         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
19403         resulting array.
19404
19405 2008-09-29  Eric Blake  <ebb9@byu.net>
19406
19407         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
19408
19409 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
19410
19411         * doc/posix-functions/accept.texi: Update mingw problems.
19412         * doc/posix-functions/bind.texi: Update mingw problems.
19413         * doc/posix-functions/close.texi: Update mingw problems.
19414         * doc/posix-functions/connect.texi: Update mingw problems.
19415         * doc/posix-functions/getpeername.texi: Update mingw problems.
19416         * doc/posix-functions/getsockname.texi: Update mingw problems.
19417         * doc/posix-functions/getsockopt.texi: Update mingw problems.
19418         * doc/posix-functions/ioctl.texi: Update mingw problems.
19419         * doc/posix-functions/listen.texi: Update mingw problems.
19420         * doc/posix-functions/recv.texi: Update mingw problems.
19421         * doc/posix-functions/recvfrom.texi: Update mingw problems.
19422         * doc/posix-functions/select.texi: Update mingw problems.
19423         * doc/posix-functions/send.texi: Update mingw problems.
19424         * doc/posix-functions/sendto.texi: Update mingw problems.
19425         * doc/posix-functions/setsockopt.texi: Update mingw problems.
19426         * doc/posix-functions/socket.texi: Update mingw problems.
19427
19428 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
19429             Bruno Haible  <bruno@clisp.org>
19430
19431         * lib/sys_select.in.h: Include sys/time.h.
19432         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
19433         * modules/sys_select: Depend on sys_time.
19434         * tests/test-sys_select.c: Test that sys/select.h defines struct
19435         timeval fully.
19436
19437 2008-09-29  Bruno Haible  <bruno@clisp.org>
19438
19439         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
19440         * lib/sys_select.in.h: Likewise.
19441
19442 2008-09-29  Bruno Haible  <bruno@clisp.org>
19443
19444         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
19445
19446 2008-09-29  Bruno Haible  <bruno@clisp.org>
19447
19448         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
19449         Set LIBSOCKET instead of augmenting LIBS.
19450         * modules/sockets (Link): New section.
19451         * modules/sockets-tests (test_sockets_LDADD): New variable.
19452         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
19453         * modules/poll-tests (test_poll_LDADD): New variable.
19454         * NEWS: Document the change.
19455
19456 2008-09-29  Bruno Haible  <bruno@clisp.org>
19457
19458         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
19459         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
19460         ARPA_INET_H directly.
19461         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19462
19463 2008-09-28  Bruno Haible  <bruno@clisp.org>
19464
19465         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
19466         from gl_HEADER_SYS_SOCKET.
19467         (gl_HEADER_SYS_SOCKET): Invoke it.
19468         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19469
19470 2008-09-28  Bruno Haible  <bruno@clisp.org>
19471
19472         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
19473         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
19474         Needed on OSF/1 4.0.
19475
19476 2008-09-28  Bruno Haible  <bruno@clisp.org>
19477
19478         Override open more carefully.
19479         * lib/open.c (orig_open): New function.
19480         (rpl_open): Use orig_open instead of open.
19481         * lib/fcntl.in.h: Add special invocation convention.
19482         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
19483         (gl_FUNC_OPEN): Invoke it.
19484
19485         Override freopen more carefully.
19486         * lib/freopen.c (orig_freopen): New function.
19487         (rpl_freopen): Use orig_freopen instead of freopen.
19488         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
19489         (gl_FUNC_FREOPEN): Invoke it.
19490
19491         Override fopen more carefully.
19492         * lib/fopen.c (orig_fopen): New function.
19493         (rpl_fopen): Use orig_fopen instead of fopen.
19494         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
19495         (gl_FUNC_FOPEN): Invoke it.
19496         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
19497
19498 2008-09-28  Bruno Haible  <bruno@clisp.org>
19499
19500         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
19501         SIGPIPE.
19502
19503 2008-09-28  Bruno Haible  <bruno@clisp.org>
19504
19505         * tests/test-sigaction.c (handler, main): Disable the check whether
19506         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
19507         glibc systems with LinuxThreads.
19508
19509 2008-09-28  Bruno Haible  <bruno@clisp.org>
19510
19511         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
19512
19513         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
19514         with AIX xlc.
19515         * lib/fcntl.in.h (open): Likewise.
19516         Reported by Rainer Tammer <tammer@tammer.net>.
19517
19518 2008-09-28  Bruno Haible  <bruno@clisp.org>
19519
19520         * modules/posix_spawnp-tests: New file.
19521         * tests/test-posix_spawn.c: New file.
19522         * tests/test-posix_spawn.in.sh: New file.
19523
19524         New module 'posix_spawnp'.
19525         * modules/posix_spawnp: New file.
19526         * lib/spawnp.c: New file, from GNU libc with modifications.
19527         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
19528
19529         New module 'posix_spawn'.
19530         * modules/posix_spawn: New file.
19531         * lib/spawn.c: New file, from GNU libc with modifications.
19532         * doc/posix-functions/posix_spawn.texi: Mention the new module.
19533
19534         New module 'posix_spawnattr_destroy'.
19535         * modules/posix_spawnattr_destroy: New file.
19536         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
19537         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
19538         module.
19539
19540         New module 'posix_spawnattr_setsigmask'.
19541         * modules/posix_spawnattr_setsigmask: New file.
19542         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
19543         modifications.
19544         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
19545         new module.
19546
19547         New module 'posix_spawnattr_getsigmask'.
19548         * modules/posix_spawnattr_getsigmask: New file.
19549         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
19550         modifications.
19551         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
19552         new module.
19553
19554         New module 'posix_spawnattr_setsigdefault'.
19555         * modules/posix_spawnattr_setsigdefault: New file.
19556         * lib/spawnattr_setdefault.c: New file, from GNU libc with
19557         modifications.
19558         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
19559         new module.
19560
19561         New module 'posix_spawnattr_getsigdefault'.
19562         * modules/posix_spawnattr_getsigdefault: New file.
19563         * lib/spawnattr_getdefault.c: New file, from GNU libc with
19564         modifications.
19565         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
19566         new module.
19567
19568         New module 'posix_spawnattr_setschedpolicy'.
19569         * modules/posix_spawnattr_setschedpolicy: New file.
19570         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
19571         modifications.
19572         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
19573         new module.
19574
19575         New module 'posix_spawnattr_getschedpolicy'.
19576         * modules/posix_spawnattr_getschedpolicy: New file.
19577         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
19578         modifications.
19579         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
19580         new module.
19581
19582         New module 'posix_spawnattr_setschedparam'.
19583         * modules/posix_spawnattr_setschedparam: New file.
19584         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
19585         modifications.
19586         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
19587         new module.
19588
19589         New module 'posix_spawnattr_getschedparam'.
19590         * modules/posix_spawnattr_getschedparam: New file.
19591         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
19592         modifications.
19593         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
19594         new module.
19595
19596         New module 'posix_spawnattr_setpgroup'.
19597         * modules/posix_spawnattr_setpgroup: New file.
19598         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
19599         modifications.
19600         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
19601         module.
19602
19603         New module 'posix_spawnattr_getpgroup'.
19604         * modules/posix_spawnattr_getpgroup: New file.
19605         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
19606         modifications.
19607         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
19608         module.
19609
19610         New module 'posix_spawnattr_setflags'.
19611         * modules/posix_spawnattr_setflags: New file.
19612         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
19613         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
19614         module.
19615
19616         New module 'posix_spawnattr_getflags'.
19617         * modules/posix_spawnattr_getflags: New file.
19618         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
19619         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
19620         module.
19621
19622         New module 'posix_spawnattr_init'.
19623         * modules/posix_spawnattr_init: New file.
19624         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
19625         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
19626         module.
19627
19628         New module 'posix_spawn_file_actions_destroy'.
19629         * modules/posix_spawn_file_actions_destroy: New file.
19630         * lib/spawn_faction_destroy.c: New file, from GNU libc with
19631         modifications.
19632         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
19633         the new module.
19634
19635         New module 'posix_spawn_file_actions_addopen'.
19636         * modules/posix_spawn_file_actions_addopen: New file.
19637         * lib/spawn_faction_addopen.c: New file, from GNU libc with
19638         modifications.
19639         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
19640         the new module.
19641
19642         New module 'posix_spawn_file_actions_adddup2'.
19643         * modules/posix_spawn_file_actions_adddup2: New file.
19644         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
19645         modifications.
19646         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
19647         the new module.
19648
19649         New module 'posix_spawn_file_actions_addclose'.
19650         * modules/posix_spawn_file_actions_addclose: New file.
19651         * lib/spawn_faction_addclose.c: New file, from GNU libc with
19652         modifications.
19653         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
19654         the new module.
19655
19656         New module 'posix_spawn_file_actions_init'.
19657         * modules/posix_spawn_file_actions_init: New file.
19658         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
19659         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
19660         new module.
19661
19662         New module 'posix_spawn-internal'.
19663         * modules/posix_spawn-internal: New file.
19664         * lib/spawn_int.h: New file, from GNU libc with modifications.
19665         * lib/spawni.c: New file, from GNU libc with modifications.
19666         * m4/posix_spawn.m4: New file.
19667
19668         New module 'spawn'.
19669         * modules/spawn: New file.
19670         * lib/spawn.in.h: New file, from GNU libc with modifications.
19671         * m4/spawn_h.m4: New file.
19672         * doc/posix-headers/spawn.texi: Mention the new module.
19673
19674 2008-09-28  Bruno Haible  <bruno@clisp.org>
19675
19676         * modules/sched-tests: New file.
19677         * tests/test-sched.c: New file.
19678
19679         New module 'sched'.
19680         * modules/sched: New file.
19681         * lib/sched.in.h: New file.
19682         * m4/sched_h.m4: New file.
19683         * doc/posix-headers/sched.texi: Mention the new module.
19684
19685 2008-09-27  Eric Blake  <ebb9@byu.net>
19686
19687         Fix previous patch, and tweak references to $0.
19688         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
19689         (func_version, func_gnulib_dir): Don't call this program
19690         gnulib-tool.
19691         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
19692         with using $0 in function.
19693         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
19694         (func_fatal_error): Reuse the name the user invoked us with.
19695
19696 2008-09-27  Bruno Haible  <bruno@clisp.org>
19697
19698         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
19699         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
19700         (gl_ICONV_H): Not here.
19701         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19702         instead of assigning ICONV_H directly.
19703
19704         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
19705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
19706         WCHAR_H directly.
19707
19708 2008-09-27  Bruno Haible  <bruno@clisp.org>
19709
19710         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
19711         * modules/arpa_inet (Depends-on): Add link-warning.
19712         (Makefile.am): Insert the definition of GL_LINK-WARNING.
19713         * modules/unistd (Makefile.am): Likewise.
19714
19715 2008-09-26  Bruno Haible  <bruno@clisp.org>
19716
19717         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
19718         variables.
19719         (func_version): Essentially copied from gnulib-tool.
19720         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
19721         func_readlink): Copied from gnulib-tool.
19722
19723 2008-09-26  Bruno Haible  <bruno@clisp.org>
19724
19725         * gnulib-tool (func_version): Change directory to $gnulib_dir before
19726         invoking git-version-gen.
19727
19728 2008-09-26  Bruno Haible  <bruno@clisp.org>
19729
19730         * posix-modules: Update to directory names changed on 2008-01-19.
19731         Remove commas in output before splitting into words. No more need to
19732         avoid 'ftruncate' since 2007-02-19.
19733
19734 2008-09-26  Bruno Haible  <bruno@clisp.org>
19735
19736         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
19737
19738 2008-09-26  Bruno Haible  <bruno@clisp.org>
19739
19740         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
19741         * modules/fwriteerror (Depends-on): Add errno.
19742
19743 2008-09-26  Bruno Haible  <bruno@clisp.org>
19744
19745         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
19746         * tests/test-vc-list-files-cvs.sh: Likewise.
19747
19748 2008-09-26  Bruno Haible  <bruno@clisp.org>
19749
19750         * doc/posix-headers/sys_resource.texi: Reorder items.
19751
19752 2008-09-26  Jim Meyering  <meyering@redhat.com>
19753
19754         fts: tweak inode comparison function
19755         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
19756         inode numbers, as documented.
19757
19758         fts: sort dirent entries on inode number before traversing
19759         This avoids a quadratic, seek-related performance penalty when
19760         operating on a directory containing many entries (measurable at 10k;
19761         3.5 hours at 2 million entries with a cold cache) on certain types
19762         of file systems, including ext3 and ext4, but not tmpfs.
19763         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
19764         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
19765         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
19766         (fs_handles_readdir_ordered_dirents_efficiently): New function.
19767         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
19768         (fts_build): Set the stat.st_ino member from D_INO.
19769         If it is likely to be useful, sort dirent entries on inode number.
19770
19771         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
19772         and the struct statfs.f_type member.
19773         * modules/fts (Depends-on): Add d-ino.
19774
19775 2008-09-26  Bruno Haible  <bruno@clisp.org>
19776
19777         * modules/sigpipe-die (Depends-on): Add sigpipe.
19778
19779         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
19780         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
19781         and GNULIB_STDIO_H_SIGPIPE are set.
19782         * lib/stdio-write.c: New file.
19783         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
19784         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19785         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19786         REPLACE_STDIO_WRITE_FUNCS.
19787         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
19788         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19789         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19790         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19791         * modules/stdio (Files): Add lib/stdio-write.c.
19792         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
19793         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19794         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19795         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19796         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
19797         REPLACE_FPRINTF_POSIX.
19798         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
19799         REPLACE_PRINTF_POSIX.
19800         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
19801         REPLACE_VFPRINTF_POSIX.
19802         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
19803         REPLACE_VPRINTF_POSIX.
19804         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
19805         SIGPIPE issue.
19806         * doc/posix-functions/fputc.texi: Likewise.
19807         * doc/posix-functions/fputs.texi: Likewise.
19808         * doc/posix-functions/fwrite.texi: Likewise.
19809         * doc/posix-functions/printf.texi: Likewise.
19810         * doc/posix-functions/putc.texi: Likewise.
19811         * doc/posix-functions/putchar.texi: Likewise.
19812         * doc/posix-functions/puts.texi: Likewise.
19813         * doc/posix-functions/vfprintf.texi: Likewise.
19814         * doc/posix-functions/vprintf.texi: Likewise.
19815
19816         * modules/safe-write (Depends-on): Add write.
19817
19818         * modules/sigpipe-tests: New file.
19819         * tests/test-sigpipe.c: New file.
19820         * tests/test-sigpipe.sh: New file.
19821
19822         * modules/write: New file.
19823         * lib/unistd.in.h: Include <sys/types.h>.
19824         (write): New declaration.
19825         * lib/write.c: New file.
19826         * m4/write.m4: New file.
19827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19828         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
19829         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
19830         GNULIB_WRITE, REPLACE_WRITE.
19831         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
19832         and the SIGPIPE issue.
19833
19834         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
19835         (raise): New declaration.
19836         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
19837         (ext_signal): New function.
19838         (rpl_raise): New function.
19839         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
19840         GNULIB_SIGNAL_H_SIGPIPE.
19841         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
19842         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
19843
19844         * modules/sigpipe: New file.
19845         * m4/sigpipe.m4: New file.
19846
19847 2008-09-25  Derek Price  <derek@ximbiot.com>
19848             Bruno Haible  <bruno@clisp.org>
19849
19850         * gnulib-tool (func_import): Report all license incompatibilities, not
19851         just the first one.
19852
19853 2008-09-25  Bruno Haible  <bruno@clisp.org>
19854
19855         * gnulib-tool (func_import): When computing the edits, consider not
19856         only the Makefile.ams that exist but also those that will be generated.
19857
19858 2008-09-25  Simon Josefsson  <simon@josefsson.org>
19859
19860         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
19861         fixes gnulib-tool --test warning about duplicate dependency.
19862
19863 2008-09-25  Bruno Haible  <bruno@clisp.org>
19864
19865         * gnulib-tool: Don't ask the user to perform edits in the generated
19866         Makefile.ams.
19867         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
19868         apply to the Makefile.am being generated.
19869         (func_emit_tests_Makefile_am): Execute edits that apply to the
19870         Makefile.am being generated.
19871         (func_import): Setup list of Makefile.am edits before emitting the
19872         Makefile.ams, not at the end.
19873         (func_create_testdir): Update.
19874         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19875
19876 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19877
19878         * gnulib-tool (func_import): Store the --tests-base option in the
19879         comment in gnulib-cache.m4.
19880
19881 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
19882
19883         * NEWS: Document increased portability that sys_select now provides.
19884
19885         * lib/sys_select.in.h: Install select wrapper.
19886         * lib/sys_socket.in.h: Use more descriptive name when there is no
19887         select wrapper.
19888         * lib/winsock-select.c: New.
19889         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
19890         Require gl_HEADER_SYS_SOCKET.
19891         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
19892         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
19893         * tests/test-sys_select.c: Add functional tests.
19894
19895 2008-09-24  Eric Blake  <ebb9@byu.net>
19896
19897         open, fopen: close fd leak in last patch
19898         * lib/open.c (rpl_open): Close fd before returning error.
19899         * lib/fopen.c (rpl_fopen): Close fd before returning error.
19900         * doc/posix-functions/open.texi (open): Document that Irix also
19901         has the bug.
19902         * doc/posix-functions/fopen.texi (fopen): Likewise.
19903         Reported by Paolo Bonzini.
19904
19905 2008-09-24  Bruno Haible  <bruno@clisp.org>
19906
19907         Ensure that a filename ending in a slash cannot be used to access a
19908         non-directory.
19909         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
19910         to check whether it's really a directory.
19911         * lib/fopen.c: Include fcntl.h, unistd.h.
19912         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
19913         and fdopen().
19914         * modules/fopen (Depends-on): Add unistd.
19915         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
19916         * tests/test-fopen.c (main): Likewise.
19917         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
19918         * doc/posix-functions/fopen.texi: Likewise.
19919         Reported by Eric Blake.
19920
19921 2008-09-23  Eric Blake  <ebb9@byu.net>
19922
19923         c-stack: avoid compiler optimizations when provoking overflow
19924         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
19925         recursion harder to optimize, to ensure a stack overflow occurs.
19926         * tests/test-c-stack.c (recurse): Likewise.
19927         Borrowed from libsigsegv.
19928
19929         c-stack: work around Irix sigaltstack bug
19930         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
19931         whether sigaltstack uses wrong end of stack_t (copied in part from
19932         libsigsegv).
19933         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
19934         Irix bug, without requiring an over-allocation.
19935         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
19936         bug.
19937
19938         fopen: document mingw bug on directories
19939         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
19940         not allowing a stream visiting a directory, even though reading
19941         from such a stream is not portable.
19942
19943 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19944
19945         * lib/poll.c: Rewrite.
19946         * modules/poll: Depend on alloca.
19947
19948 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19949
19950         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
19951         instead define prototypes for a full set of wrappers.  Ensure
19952         that Cygwin does not use the compatibility code, which is only
19953         for MinGW.
19954         * lib/winsock.c: New.
19955         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
19956         * modules/sys_socket: Add lib/winsock.c.
19957
19958         * modules/poll-tests: Add errno and perror.
19959         * tests/test-poll.c: Use ioctl, not ioctlsocket.
19960
19961 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19962
19963         * tests/test-poll.c: Downgrade minimum needed Winsock version.
19964
19965 2008-09-23  Bruno Haible  <bruno@clisp.org>
19966
19967         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
19968         * doc/glibc-functions/*: Likewise.
19969
19970 2008-09-23  Simon Josefsson  <simon@josefsson.org>
19971
19972         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
19973         success.
19974
19975 2008-09-22  Eric Blake  <ebb9@byu.net>
19976             Bruno Haible  <bruno@clisp.org>
19977
19978         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
19979         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
19980         supply %A but mishandle pseudo-NaN.
19981         Reported by Simon Josefsson.
19982
19983 2008-09-21  Bruno Haible  <bruno@clisp.org>
19984
19985         * tests/test-lock.c (main): Tweak skip message.
19986         * tests/test-tls.c (main): Likewise.
19987
19988 2008-09-21  Bruno Haible  <bruno@clisp.org>
19989
19990         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
19991         whether 'struct sigaction' has sa_sigaction here...
19992         (gl_PREREQ_SIG_HANDLER_H): ... not here.
19993         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
19994
19995 2008-09-21  Bruno Haible  <bruno@clisp.org>
19996
19997         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
19998         section.
19999         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20000         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20001         the new section.
20002         (Support for obsolete systems lacking POSIX:2001): New section.
20003         (String handling <string.h>): Move strdup to the new section.
20004         Suggested by Simon Josefsson and Paolo Bonzini.
20005
20006 2008-09-21  Bruno Haible  <bruno@clisp.org>
20007
20008         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20009         exponents in %e and %g results on 'long double'. Needed for mingw's
20010         improved *printf functions.
20011         * tests/test-vasprintf-posix.c (test_function): Likewise.
20012         * tests/test-snprintf-posix.h (test_function): Likewise.
20013         * tests/test-sprintf-posix.h (test_function): Likewise.
20014         Reported by Eric Blake.
20015
20016 2008-09-21  Bruno Haible  <bruno@clisp.org>
20017
20018         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20019         * tests/test-sprintf-posix.h (test_function): Likewise.
20020
20021 2008-09-21  Bruno Haible  <bruno@clisp.org>
20022
20023         * modules/getpass (Depends-on): Add strdup-posix.
20024
20025         New module 'strdup-posix'.
20026         * modules/strdup-posix: New file.
20027         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20028         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20029         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20030         REPLACE_STRDUP.
20031         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20032         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20033         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20034         strdup-posix.
20035
20036         * modules/strdup (Depends-on): Remove malloc-posix.
20037
20038 2008-09-20  Bruno Haible  <bruno@clisp.org>
20039
20040         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20041         Wildenhues.
20042
20043 2008-09-20  Bruno Haible  <bruno@clisp.org>
20044
20045         Ensure that wint_t gets defined on IRIX 5.3.
20046         * lib/wchar.in.h (wint_t): Define if not defined by the system.
20047         * lib/wctype.in.h (wint_t): Likewise.
20048         (__wctype_wint_t): Remove type.
20049         (isw*): Use wint_t instead of __wctype_wint_t.
20050         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20051         * modules/wchar (Files): Add m4/wint_t.m4.
20052         (Makefile.am): Substitute HAVE_WINT_T.
20053         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20054         * tests/test-wctype.c: Check that wint_t is defined.
20055         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20056         * doc/posix-headers/wctype.texi: Likewise.
20057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20058
20059 2008-09-18  Bruno Haible  <bruno@clisp.org>
20060
20061         * gnulib-tool (func_exit): Update comment.
20062
20063 2008-09-18  Simon Josefsson  <simon@josefsson.org>
20064
20065         * modules/getaddrinfo (Depends-on): Remove strdup, this module
20066         assumes strdup exists and does not depend on strdup to return
20067         ENOMEM on out of memory conditions.
20068
20069 2008-09-18  Bruno Haible  <bruno@clisp.org>
20070
20071         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
20072         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20073         digits for the exponent.
20074
20075 2008-09-18  Jim Meyering  <meyering@redhat.com>
20076             Bruno Haible  <bruno@clisp.org>
20077
20078         * lib/vasnprintf.c (decimal_point_char): Define also if
20079         NEED_PRINTF_INFINITE_LONG_DOUBLE.
20080
20081 2008-09-16  Bruno Haible  <bruno@clisp.org>
20082         and Eric Blake  <ebb9@byu.net>
20083
20084         vasnprintf: support Irix 5.3
20085         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20086         that mishandle long double infinity.
20087         Reported by Tom G. Christensen.
20088
20089 2008-09-16  Bruno Haible  <bruno@clisp.org>
20090
20091         * doc/glibc-functions/scandir.texi: Mention the function is missing on
20092         Solaris 9.
20093         * doc/glibc-functions/alphasort.texi: Likewise.
20094         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20095
20096 2008-09-16  Jim Meyering  <meyering@redhat.com>
20097
20098         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20099         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20100         a umask modification leak out of a subshell.  Otherwise, the
20101         opensolaris /bin/sh would be accepted and thus cause unwarranted
20102         failures in the coreutils test suite.
20103
20104 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
20105
20106         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20107         to succeed.
20108
20109 2008-09-16  Jim Meyering  <meyering@redhat.com>
20110
20111         avoid spurious test failure when library is built without ACL support
20112         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20113         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20114         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20115         * tests/test-copy-acl.sh: Likewise.
20116
20117 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20118
20119         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20120         based on character occurrence counts.
20121
20122 2008-09-15  Eric Blake  <ebb9@byu.net>
20123
20124         tests: avoid some compiler warnings
20125         * tests/test-memchr.c (main): Pass NULL indirectly.
20126         * tests/test-closein.c (main): Avoid unused variable.
20127
20128 2008-09-15  Bruno Haible  <bruno@clisp.org>
20129
20130         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20131         are missing on OpenBSD 4.0 individually.
20132         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20133
20134 2008-09-15  Bruno Haible  <bruno@clisp.org>
20135
20136         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20137         * doc/posix-functions/strerror.texi: Mention also Cygwin.
20138         * doc/posix-functions/perror.texi: Likewise.
20139         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20140         is missing.
20141         Reported by Eric Blake.
20142
20143         * lib/errno.in.h: Use replacement values >= 2000.
20144         Reported by Eric Blake.
20145
20146 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20147
20148         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20149         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20150         limit.
20151         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20152         compareseq was aborted.
20153
20154 2008-09-14  Bruno Haible  <bruno@clisp.org>
20155
20156         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20157         yvec_edit_count.
20158         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20159         (fstrcmp_bounded): Simplify result computation accordingly.
20160
20161 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20162
20163         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20164         (fstrcmp): Define in terms of fstrcmp_bounded.
20165         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20166         lower_bound argument.
20167         Return quickly if the result is certainly < lower_bound.
20168         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20169
20170 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20171
20172         * lib/diffseq.h (EARLY_ABORT): New macro.
20173         (compareseq): Change return type to bool. Return true when EARLY_ABORT
20174         evaluates to true.
20175
20176 2008-09-14  Bruno Haible  <bruno@clisp.org>
20177
20178         * modules/perror-tests: New file.
20179         * tests/test-perror.sh: New file.
20180         * tests/test-perror.c: New file.
20181
20182         New module 'perror'.
20183         * lib/stdio.in.h (perror): New declaration.
20184         * lib/perror.c: New file.
20185         * m4/perror.m4: New file.
20186         * modules/perror: New file.
20187         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20188         * doc/posix-functions/perror.texi: Mention the perror module.
20189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20190         REPLACE_PERROR.
20191         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20192         REPLACE_PERROR.
20193
20194 2008-09-14  Bruno Haible  <bruno@clisp.org>
20195
20196         * modules/stdio (Makefile.am): Reorder to match the order in
20197         lib/stdio.in.h.
20198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20199
20200 2008-09-13  Bruno Haible  <bruno@clisp.org>
20201
20202         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20203
20204 2008-09-13  Bruno Haible  <bruno@clisp.org>
20205
20206         Extend strerror to cover the added errno values.
20207         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20208         (rpl_strerror): Provide error messages for the added errno values and
20209         for the WSA* values.
20210         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20211         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20212         strerror.
20213         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20214         * modules/strerror (Depends-on): Add errno.
20215         * doc/posix-functions/strerror.texi: Document the change.
20216         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20217         and EOVERFLOW.
20218
20219 2008-09-13  Bruno Haible  <bruno@clisp.org>
20220
20221         * modules/EOVERFLOW: Remove file.
20222         * m4/eoverflow.m4: Remove file.
20223         * modules/EOVERFLOW-tests: Remove file.
20224         * tests/test-EOVERFLOW.c: Remove file.
20225         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20226         * modules/ftell (Depends-on): Likewise.
20227         * modules/getdelim (Depends-on): Likewise.
20228         * modules/getugroups (Depends-on): Likewise.
20229         * modules/poll (Depends-on): Likewise.
20230         * modules/snprintf (Depends-on): Likewise.
20231         * modules/sprintf-posix (Depends-on): Likewise.
20232         * modules/vasnprintf (Depends-on): Likewise.
20233         * modules/vasprintf (Depends-on): Likewise.
20234         * modules/vfprintf-posix (Depends-on): Likewise.
20235         * modules/vsnprintf (Depends-on): Likewise.
20236         * modules/vsprintf-posix (Depends-on): Likewise.
20237         * modules/xvasprintf (Depends-on): Likewise.
20238         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20239         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20240         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20241         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20242         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20243         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20244         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20245         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20246         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20247         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20248         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20249         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20250         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20251         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20252         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20253         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20254         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20255         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20256         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20257         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20258         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20259         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20260         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20261         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20262         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20263         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20264         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20265         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20266         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20267         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20268         * MODULES.html.sh: Remove EOVERFLOW.
20269         * NEWS: Mention the change.
20270
20271 2008-09-13  Bruno Haible  <bruno@clisp.org>
20272
20273         * modules/errno-tests: New file.
20274         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20275
20276         * lib/errno.in.h: New file.
20277         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20278         * modules/errno: New file.
20279         * doc/posix-headers/errno.texi: Update documentation.
20280         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20281
20282 2008-09-13  Bruno Haible  <bruno@clisp.org>
20283
20284         * tests/test-poll.c: Use #if for native Windows, rather than testing
20285         __MSVCRT__.
20286
20287 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20288             Bruno Haible  <bruno@clisp.org>
20289
20290         * lib/glob.c: Don't include <pwd.h> on native Windows.
20291         (WINDOWS32): New macro.
20292         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20293
20294 2008-09-13  Bruno Haible  <bruno@clisp.org>
20295
20296         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
20297         (ETIMEDOUT): Remove macro.
20298         (glthread_cond_timedwait_multithreaded): New declaration.
20299         (glthread_cond_timedwait): Use it.
20300         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
20301         (glthread_cond_timedwait_multithreaded): New function.
20302
20303 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20304
20305         * modules/poll-tests: Do not check for io.h.
20306         * tests/test-poll.c: Check for __MSVCRT__ instead.
20307
20308 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20309
20310         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
20311         * modules/poll-tests: Add inet_pton, stdbool, sockets.
20312         * tests/test-poll.c: Use them.  Use _pipe on Windows.
20313
20314 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20315
20316         * modules/poll-tests: New.
20317         * tests/test-poll.c: New.
20318
20319 2008-09-12  Eric Blake  <ebb9@byu.net>
20320
20321         frexp: test for NetBSD failure on -0.0
20322         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
20323         not all, bugs from NetBSD 3.0 have been fixed.
20324         * doc/posix-functions/frexp.texi (frexp): Document bug.
20325         Reported by Thomas Klausner.
20326
20327         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
20328         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
20329         literal -0.0.
20330         Reported by Jonathan C. Patschke <jp@centtech.com>.
20331
20332 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20333
20334         * lib/glthread/cond.h: Use dummy implementation also if
20335         USE_WIN32_THREADS.
20336
20337 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20338
20339         * modules/fnmatch-posix (License): Change to LGPLv2+.
20340         * modules/fnmatch-gnu (License): Likewise.
20341
20342 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20343
20344         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
20345
20346 2008-09-11  Jim Meyering  <meyering@redhat.com>
20347
20348         * users.txt: Add gtk-vnc.
20349
20350 2008-09-08  Simon Josefsson  <simon@josefsson.org>
20351
20352         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
20353         rotate amounts.
20354
20355         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
20356         required for 16-bit and 8-bit rotates.
20357         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
20358         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
20359         UINT8_MAX instead of hard-coded constants.
20360         Suggested by Paul Eggert.
20361
20362 2008-09-07  Bruno Haible  <bruno@clisp.org>
20363
20364         * tests/test-striconveh.c (main): Check behaviour when converting from
20365         UTF-7.
20366
20367         Make striconveh work better with stateful encodings.
20368         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
20369         that iconv does not increment the inptr when returning -1/EINVAL.
20370
20371 2008-09-07  Bruno Haible  <bruno@clisp.org>
20372
20373         * build-aux/config.rpath: Update according to libtool-2.2.6.
20374         * build-aux/config.libpath: Likewise.
20375
20376 2008-09-06  Bruno Haible  <bruno@clisp.org>
20377
20378         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
20379         * lib/freadptr.c (freadptr): Likewise.
20380         * lib/freadseek.c (freadptrinc): Likewise.
20381         Reported by Simon Josefsson.
20382
20383 2008-09-06  Bruno Haible  <bruno@clisp.org>
20384
20385         * modules/freadptr (License): Change to LGPLv2+.
20386         * modules/freadseek (License): Likewise.
20387         Suggested by Eric Blake.
20388
20389         * modules/memchr2 (License): Change to LGPLv2+.
20390         Approved by Eric Blake.
20391
20392 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20393             Bruno Haible  <bruno@clisp.org>
20394
20395         Make gnulib-tool work with native 'sed' on AIX.
20396         * gnulib-tool (sed_noop): New variable.
20397         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
20398         func_add_or_update, func_create_testdir): Use it to initialize sed
20399         script variables.
20400         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20401
20402 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
20403             Bruno Haible  <bruno@clisp.org>
20404
20405         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
20406         also works after #include directives.
20407
20408 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
20409
20410         getdate.y: reject an out-of-range timezone value
20411         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
20412         the range [-24...+24].  When specified with only one or two digits,
20413         * tests/test-getdate.c: Tests for the fix.
20414         * doc/getdate.texi: Document this change.
20415
20416 2008-09-03  Bruno Haible  <bruno@clisp.org>
20417
20418         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
20419
20420 2008-09-02  Simon Josefsson  <simon@josefsson.org>
20421
20422         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
20423         <bruce.korb@gmail.com> with ideas from Ben Pfaff
20424         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
20425         Blake <ebb9@byu.net>.
20426
20427         * tests/test-bitrotate.c: Add more test vectors.
20428
20429 2008-09-02  Eric Blake  <ebb9@byu.net>
20430
20431         vasnprintf-posix: handle large precision via %.*d
20432         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
20433         when handling it ourselves.
20434         * tests/test-vasnprintf-posix.c (test_function): Add test.
20435         * tests/test-snprintf-posix.h (test_function): Likewise.
20436         * tests/test-sprintf-posix.h (test_function): Likewise.
20437         * tests/test-vasprintf-posix.c (test_function): Likewise.
20438         Reported by Alain Guibert.
20439
20440 2008-09-01  Eric Blake  <ebb9@byu.net>
20441
20442         c-stack: make configure-time check more robust
20443         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
20444         successful sigaction call.
20445         Reported by Tom G. Christensen.
20446
20447 2008-09-01  Bruno Haible  <bruno@clisp.org>
20448
20449         New module 'findprog-lgpl'.
20450         * modules/findprog-lgpl: New file.
20451         * lib/findprog-lgpl.c: New file.
20452         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
20453         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
20454         to decide whether to use strdup or xstrdup, concatenated_filename or
20455         xconcatenated_filename.
20456
20457 2008-09-01  Bruno Haible  <bruno@clisp.org>
20458
20459         Split module 'concat-filename' into 'concat-filename' (LGPL) and
20460         'xconcat-filename' (GPL).
20461         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
20462         (License): Change to LGPLv2+.
20463         * modules/xconcat-filename: New file.
20464         * lib/concat-filename.h (concatenated_filename): Change specification.
20465         (xconcatenated_filename): New declaration.
20466         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
20467         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
20468         memory situations.
20469         * lib/xconcat-filename.c: New file.
20470         * NEWS: Mention the change.
20471         * lib/findprog.c: Include concat-filename.h, not filename.h.
20472         (find_in_path): Use xconcatenated_filename instead of
20473         concatenated_filename.
20474         * lib/javacomp.c: Include concat-filename.h, not filename.h.
20475         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
20476         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
20477         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
20478         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
20479         instead of concatenated_filename.
20480         * lib/javaexec.c: Include concat-filename.h, not filename.h.
20481         (execute_java_class): Use xconcatenated_filename instead of
20482         concatenated_filename.
20483         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
20484         * modules/javacomp (Depends-on): Likewise.
20485         * modules/javaexec (Depends-on): Likewise.
20486
20487 2008-09-01  Bruno Haible  <bruno@clisp.org>
20488
20489         Split module 'filename' into 'filename' and 'concat-filename'.
20490         * modules/filename: Keep only lib/filename.h.
20491         (License): Change to LGPLv2+.
20492         * modules/concat-filename: New file, extracted from modules/filename.
20493         * lib/filename.h (concatenated_filename): Remove declaration.
20494         * lib/concat-filename.h: New file, extracted from lib/filename.h.
20495         * lib/concat-filename.c: Include concat-filename.h.
20496         * NEWS: Mention the change.
20497
20498 2008-09-01  Simon Josefsson  <simon@josefsson.org>
20499
20500         * lib/bitrotate.h (rotl8, rotr8): Add.
20501
20502         * modules/bitrotate (configure.ac): Need
20503         AC_REQUIRE([AC_C_INLINE]).
20504         (Description): Mention stdint.h.  Reported by Bruno Haible
20505         <bruno@clisp.org>.
20506
20507         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
20508         Paolo Bonzini <bonzini@gnu.org>.
20509
20510 2008-08-31  Bruno Haible  <bruno@clisp.org>
20511
20512         Assume Solaris specific bi-arch conventions on Solaris systems.
20513         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
20514         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
20515         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
20516         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
20517         like acl_libdirstem.
20518         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
20519         acl_libdirstem.
20520         * NEWS: Mention the change.
20521         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
20522
20523 2008-08-31  Jim Meyering  <meyering@redhat.com>
20524
20525         * lib/strftime.h: Add comments describing the two added arguments.
20526
20527         remove duplicate #include directives
20528         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
20529         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
20530
20531 2008-08-31  Bruno Haible  <bruno@clisp.org>
20532
20533         New module 'sigpipe-die'.
20534         * modules/sigpipe-die: New file.
20535         * lib/sigpipe-die.h: New file.
20536         * lib/sigpipe-die.c: New file.
20537         * MODULES.html.sh (Signal handling): Add sigpipe-die.
20538
20539 2008-08-31  Bruno Haible  <bruno@clisp.org>
20540
20541         Don't override previously installed signal handlers.
20542         * lib/fatal-signal.c (saved_sigactions): New variable.
20543         (uninstall_handlers): Reset the signal to the saved handler, not
20544         to SIG_DFL (except when ignored).
20545         (install_handlers): Save the previous handlers.
20546
20547 2008-08-30  Bruno Haible  <bruno@clisp.org>
20548
20549         * gnulib-tool (func_reset_sigpipe): New function.
20550         (func_get_automake_snippet, func_modules_transitive_closure,
20551         func_import): Invoke it before a join command that reads from stdin,
20552         to avoid "echo: write error: Broken pipe" error messages on stderr.
20553         Reported by Sam Steingold <sds@gnu.org>.
20554
20555 2008-08-30  Bruno Haible  <bruno@clisp.org>
20556
20557         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
20558         Code copied from m4/open.m4.
20559         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
20560         access and the filename ends in a slash. Code copied from lib/open.c.
20561         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
20562         * tests/test-fopen.c (main): Check against bug with trailing slash.
20563
20564 2008-08-29  Bruno Haible  <bruno@clisp.org>
20565
20566         Avoid some "gcc -pedantic" warnings.
20567         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
20568         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
20569         * lib/dirent.in.h: Likewise.
20570         * lib/fcntl.in.h: Likewise.
20571         * lib/float.in.h: Likewise.
20572         * lib/iconv.in.h: Likewise.
20573         * lib/inttypes.in.h: Likewise.
20574         * lib/locale.in.h: Likewise.
20575         * lib/math.in.h: Likewise.
20576         * lib/netinet_in.in.h: Likewise.
20577         * lib/search.in.h: Likewise.
20578         * lib/signal.in.h: Likewise.
20579         * lib/stdarg.in.h: Likewise.
20580         * lib/stdint.in.h: Likewise.
20581         * lib/stdio.in.h: Likewise.
20582         * lib/stdlib.in.h: Likewise.
20583         * lib/string.in.h: Likewise.
20584         * lib/strings.in.h: Likewise.
20585         * lib/sys_select.in.h: Likewise.
20586         * lib/sys_socket.in.h: Likewise.
20587         * lib/sys_stat.in.h: Likewise.
20588         * lib/sys_time.in.h: Likewise.
20589         * lib/sysexits.in.h: Likewise.
20590         * lib/time.in.h: Likewise.
20591         * lib/unistd.in.h: Likewise.
20592         * lib/wchar.in.h: Likewise.
20593         * lib/wctype.in.h: Likewise.
20594         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
20595         * modules/fchdir (Makefile.am): Likewise.
20596         * modules/fcntl (Makefile.am): Likewise.
20597         * modules/float (Makefile.am): Likewise.
20598         * modules/iconv_open (Makefile.am): Likewise.
20599         * modules/inttypes (Makefile.am): Likewise.
20600         * modules/locale (Makefile.am): Likewise.
20601         * modules/math (Makefile.am): Likewise.
20602         * modules/netinet_in (Makefile.am): Likewise.
20603         * modules/search (Makefile.am): Likewise.
20604         * modules/signal (Makefile.am): Likewise.
20605         * modules/stdarg (Makefile.am): Likewise.
20606         * modules/stdint (Makefile.am): Likewise.
20607         * modules/stdio (Makefile.am): Likewise.
20608         * modules/stdlib (Makefile.am): Likewise.
20609         * modules/string (Makefile.am): Likewise.
20610         * modules/strings (Makefile.am): Likewise.
20611         * modules/sys_select (Makefile.am): Likewise.
20612         * modules/sys_socket (Makefile.am): Likewise.
20613         * modules/sys_stat (Makefile.am): Likewise.
20614         * modules/sys_time (Makefile.am): Likewise.
20615         * modules/sysexits (Makefile.am): Likewise.
20616         * modules/time (Makefile.am): Likewise.
20617         * modules/unistd (Makefile.am): Likewise.
20618         * modules/wchar (Makefile.am): Likewise.
20619         * modules/wctype (Makefile.am): Likewise.
20620         Reported by Reuben Thomas <rrt@sc3d.org>.
20621
20622 2008-08-29  Bruno Haible  <bruno@clisp.org>
20623
20624         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
20625         any more.
20626
20627 2008-08-29  Simon Josefsson  <simon@josefsson.org>
20628
20629         * MODULES.html.sh (Misc): Add bitrotate.
20630
20631         * modules/bitrotate: New file.
20632
20633         * lib/bitrotate.h: New file.
20634
20635         * modules/bitrotate-tests: New file.
20636
20637         * tests/test-bitrotate.c: New file.
20638
20639         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
20640         on the bitrotate module.
20641
20642         * lib/arctwo.c: Use new bitrotate module.
20643
20644 2008-08-29  Jim Meyering  <meyering@redhat.com>
20645
20646         bootstrap: merge changes from coreutils
20647         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
20648         of copied files.  Remove a kludge, now that this is fixed.
20649         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
20650         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
20651         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
20652
20653 2008-08-29  Bruno Haible  <bruno@clisp.org>
20654
20655         * MODULES.html.sh: Remove --cvs-urls option.
20656
20657 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
20658
20659         maint.mk: adjust to file name change
20660         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
20661
20662 2008-08-28  Jim Meyering  <meyering@redhat.com>
20663
20664         * modules/getndelim2 (License): Relicense to LGPLv2+.
20665         Approved by Richard Stallman for the version of 1995, and by
20666         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
20667
20668 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
20669
20670         * lib/getdelim.c (flockfile, funlockfile): Make all of them
20671         dummy if one is not available.  Do not touch them if
20672         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
20673         (getc_maybe_unlocked): New.
20674         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
20675
20676 2008-08-26  Eric Blake  <ebb9@byu.net>
20677
20678         doc/INSTALL: resync from autoconf
20679         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
20680         (INSTALL_PRELUDE): Delete; this is done more efficiently by
20681         moving...
20682         * install.texi [!autoconf]: ...here.  Resync from autoconf.
20683         * INSTALL: Regenerate.
20684         * INSTALL.ISO: New file.
20685         * INSTALL.UTF-8: Likewise.
20686
20687 2008-08-26  Jim Meyering  <meyering@redhat.com>
20688
20689         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
20690         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
20691         these definitions conditional, so that they may be overridden, too.
20692
20693 2008-08-26  Bruno Haible  <bruno@clisp.org>
20694
20695         Generate INSTALL file variants with prettier quotes.
20696         * doc/Makefile (INSTALL_PRELUDE): New macro.
20697         (INSTALL): Use it.
20698         (INSTALL.ISO, INSTALL.UTF-8): New rules.
20699
20700 2008-08-26  Bruno Haible  <bruno@clisp.org>
20701
20702         Run makeinfo in an English locale.
20703         * doc/Makefile (MAKEINFO): New variable.
20704
20705 2008-08-26  Bruno Haible  <bruno@clisp.org>
20706
20707         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
20708         Suggested by Eric Blake.
20709
20710 2008-08-25  Bruno Haible  <bruno@clisp.org>
20711
20712         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
20713
20714 2008-08-25  Eric Blake  <ebb9@byu.net>
20715
20716         c-stack: test that stack overflow can be caught
20717         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
20718         that platform allows handling stack overflow; at least OS/2 EMX
20719         has sigaltstack, but crashes before transferring control to
20720         handler on stack overflow.
20721         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
20722         check for HAVE_STACK_OVERFLOW_HANDLING.
20723         Reported by Elbert Pol.
20724
20725 2008-08-25  Bruno Haible  <bruno@clisp.org>
20726
20727         * doc/posix-functions/strftime.texi: Fix description of strftime
20728         module.
20729
20730 2008-08-24  Bruno Haible  <bruno@clisp.org>
20731
20732         * tests/uniwidth/test-uc_width2.c: New file.
20733         * tests/uniwidth/test-uc_width2.sh: New file.
20734         * modules/uniwidth/width-tests (Files): Add the new files.
20735         (TESTS): Add uniwidth/test-uc_width2.sh.
20736         (TESTS_ENVIRONMENT): New variable.
20737         (check_PROGRAMS): Add test-uc_width2.
20738         (test_uc_width2_SOURCES): New variable.
20739
20740         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
20741         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
20742         not 0x00AB.
20743         Reported by Alexander V. Lukyanov <lav@netis.ru>.
20744
20745 2008-08-22  Eric Blake  <ebb9@byu.net>
20746
20747         test-lock, test-tls: mention why a test is skipped
20748         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
20749         skipped.
20750         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
20751
20752         count-one-bits: relax license
20753         * modules/count-one-bits (License): Relicense to LGPLv2+.
20754         Suggested by Ludovic Courtès, approved by Ben Pfaff.
20755
20756 2008-08-22  Andreas Schwab  <schwab@suse.de>
20757
20758         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20759         Remove spurious space in assignment.
20760
20761 2008-08-21  Simon Josefsson  <simon@josefsson.org>
20762
20763         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
20764         Paul Eggert <eggert@CS.UCLA.EDU>.
20765
20766 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
20767
20768         * modules/gettext: Add m4/threadlib.m4.
20769
20770 2008-08-19  Eric Blake  <ebb9@byu.net>
20771
20772         test-c-stack: fix compilation failure on FreeBSD 5.0
20773         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
20774         headers before <sys/resource.h>.
20775         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
20776         the bug.
20777         Reported by Nelson H. F. Beebe.
20778
20779         strverscmp: migrate from "strverscmp.h" to <string.h>
20780         * modules/string (Makefile.am): Add new hooks.
20781         * modules/strverscmp (Files): Remove strverscmp.h.
20782         (Depends-on): Add string.
20783         (configure.ac): Add indicator.
20784         (Include): Mention new header.
20785         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
20786         defaults.
20787         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
20788         results.
20789         * lib/strverscmp.h: Delete.
20790         * lib/string.in.h (strverscmp): Provide declaration, when needed.
20791         * tests/test-strverscmp.c (includes): Adjust client.
20792         * lib/check-version.c (includes): Likewise.
20793         * NEWS: Document the change.
20794
20795         strverscmp: add unit test
20796         * modules/strverscmp-tests: New file.
20797         * tests/test-strverscmp.c: Likewise.
20798
20799 2008-08-19  Simon Josefsson  <simon@josefsson.org>
20800
20801         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
20802         regarding Windows crypto stuff, from Mono.
20803
20804 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
20805
20806         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
20807         if present, for intel RND.  Return error on failures.
20808
20809 2008-08-18  Ben Pfaff  <blp@gnu.org>
20810
20811         gitlog-to-changelog: give better diagnostic for failed pipe-open
20812         * build-aux/gitlog-to-changelog: Improve error message: suggest
20813         that the version of Git may be too old.
20814
20815 2008-08-18  Simon Josefsson  <simon@josefsson.org>
20816
20817         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
20818         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
20819
20820 2008-08-18  Bruno Haible  <bruno@clisp.org>
20821
20822         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
20823         pthread_in_use().
20824
20825 2008-08-18  Bruno Haible  <bruno@clisp.org>
20826
20827         * lib/glthread/threadlib.c: Include <pthread.h>.
20828
20829 2008-08-18  Bruno Haible  <bruno@clisp.org>
20830
20831         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
20832         glthread_recursive_lock_* macros.
20833         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
20834         Fix syntax error.
20835
20836 2008-08-18  Bruno Haible  <bruno@clisp.org>
20837
20838         * lib/glthread/thread.c: Avoid forcing a context switch right after
20839         thread creation.
20840
20841 2008-08-17  Bruno Haible  <bruno@clisp.org>
20842
20843         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
20844         * lib/glthread/thread.h: Provide Win32 specific implementation.
20845         * modules/thread (Files): Add lib/glthread/thread.c.
20846         (Depends-on): Add lock.
20847         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
20848
20849 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20850
20851         New module 'yield'.
20852         * modules/yield: New file.
20853         * lib/glthread/yield.h: New file.
20854         * m4/yield.m4: New file.
20855         * MODULES.html.sh (Multithreading): Add yield.
20856
20857 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20858
20859         New module 'thread'.
20860         * modules/thread: New file.
20861         * lib/glthread/thread.h: New file.
20862         * m4/thread.m4: New file.
20863         * MODULES.html.sh (Multithreading): Add thread.
20864
20865 2008-08-17  Bruno Haible  <bruno@clisp.org>
20866
20867         * lib/glthread/lock.h: Include <stdlib.h> always.
20868         * lib/glthread/tls.h: Likewise.
20869         * lib/glthread/cond.h: Likewise.
20870
20871 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20872
20873         New module 'cond'.
20874         * modules/cond: New file.
20875         * lib/glthread/cond.h: New file.
20876         * lib/glthread/cond.c: New file.
20877         * m4/cond.m4: New file.
20878         * MODULES.html.sh (Multithreading): Add cond.
20879
20880 2008-08-16  Eric Blake  <ebb9@byu.net>
20881
20882         c-stack: fix regression on Irix 5.3 from 2008-06-21
20883         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
20884         sa_sigaction...
20885         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
20886         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
20887         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
20888         * modules/signal (Makefile.am): Use the value.
20889         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
20890         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
20891         * doc/posix-headers/signal.texi (signal.h): Document this
20892         portability issue.
20893         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
20894         Reported by Tom G. Christensen.
20895
20896 2008-08-17  Bruno Haible  <bruno@clisp.org>
20897
20898         New module 'threadlib'.
20899         * modules/threadlib: New file.
20900         * lib/glthread/threadlib.c: New file, extracted from
20901         lib/glthread/lock.c.
20902         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
20903         functions.
20904         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
20905         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
20906         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
20907         macros.
20908         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
20909         (gl_DISABLE_THREADS): Remove macro.
20910         * modules/lock (Files): Remove build-aux/config.rpath.
20911         (Depends-on): Remove havelib. Add threadlib.
20912         (configure.ac-early): Remove section.
20913         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
20914         * modules/tls (Depends-on): Remove lock. Add threadlib.
20915         (Link): New section, copied from threadlib.
20916         * MODULES.html.sh (Multithreading): Add threadlib.
20917
20918 2008-08-14  Bruno Haible  <bruno@clisp.org>
20919
20920         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
20921         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
20922         glthread_rwlock_unlock, glthread_rwlock_destroy,
20923         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
20924         glthread_recursive_lock_destroy): Define as macros always.
20925         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
20926         glthread_lock_lock.
20927         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
20928         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
20929         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
20930         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
20931         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
20932         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
20933         (glthread_recursive_lock_lock_func): Renamed from
20934         glthread_recursive_lock_lock.
20935         (glthread_recursive_lock_unlock_func): Renamed from
20936         glthread_recursive_lock_unlock.
20937         (glthread_recursive_lock_destroy_func): Renamed from
20938         glthread_recursive_lock_destroy.
20939
20940 2008-08-14  Bruno Haible  <bruno@clisp.org>
20941
20942         * lib/glthread/lock.h: Renamed from lib/lock.h.
20943         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
20944         * lib/glthread/tls.h: Renamed from lib/tls.h.
20945         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
20946         * lib/fstrcmp.c: Update includes.
20947         * lib/strsignal.c: Update includes.
20948         * modules/lock (Files, Makefile.am): Update.
20949         (Include): Change to "glthread/lock.h".
20950         * modules/tls (Files, Makefile.am): Update.
20951         (Include): Change to "glthread/tls.h".
20952         * tests/test-lock.c: Update includes.
20953         * tests/test-tls.c: Update includes.
20954         * NEWS: Mention the renamed header files.
20955
20956 2008-08-11  Jim Meyering  <meyering@redhat.com>
20957
20958         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
20959
20960 2008-08-11  Eric Blake  <ebb9@byu.net>
20961
20962         test-c-stack: avoid C99-ism
20963         * tests/test-c-stack.c (main): Fix whitespace, move declaration
20964         before statement.
20965         Reported by Alain Guibert.
20966
20967 2008-08-10  Jim Meyering  <meyering@redhat.com>
20968
20969         ensure that return value of uinttostr et al are not ignored
20970         * lib/inttostr.h (__GNUC_PREREQ): Define.
20971         (__attribute_warn_unused_result__): Define.
20972         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
20973
20974 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
20975
20976         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
20977         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
20978
20979 2008-08-07  Jim Meyering  <meyering@redhat.com>
20980
20981         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
20982
20983         * modules/mkstemp (License): Relicense under LGPLv2+.
20984         * modules/tempname (License): Likewise.
20985
20986 2008-08-06  Bruno Haible  <bruno@clisp.org>
20987
20988         * lib/poll.c (poll): Further micro-optimization.
20989
20990 2008-08-06  Jim Meyering  <meyering@redhat.com>
20991
20992         inet_pton.c: use locale-independent tolower
20993         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
20994         (inet_pton6): Use c_tolower rather than tolower.
20995         * modules/inet_pton (Depends-on): Add c-ctype.
20996
20997 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
20998
20999         * lib/poll.c (poll): Avoid division when timeout is 0, cache
21000         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
21001
21002 2008-08-06  Jim Meyering  <meyering@redhat.com>
21003
21004         * modules/inet_pton (License): Relicense under LGPLv2+.
21005
21006 2008-08-03  Bruno Haible  <bruno@clisp.org>
21007
21008         Additional non-aborting API for lock and tls.
21009         * lib/lock.h: Include <errno.h>.
21010         (glthread_lock_init): New macro/function.
21011         (gl_lock_init): Define as wrapper around glthread_lock_init.
21012         (glthread_lock_lock): New macro/function.
21013         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21014         (glthread_lock_unlock): New macro/function.
21015         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21016         (glthread_lock_destroy): New macro/function.
21017         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21018         (glthread_rwlock_init): New macro/function.
21019         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21020         (glthread_rwlock_rdlock): New macro/function.
21021         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21022         (glthread_rwlock_wrlock): New macro/function.
21023         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21024         (glthread_rwlock_unlock): New macro/function.
21025         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21026         (glthread_rwlock_destroy): New macro/function.
21027         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21028         (glthread_recursive_lock_init): New macro/function.
21029         (gl_recursive_lock_init): Define as wrapper around
21030         glthread_recursive_lock_init.
21031         (glthread_recursive_lock_lock): New macro/function.
21032         (gl_recursive_lock_lock): Define as wrapper around
21033         glthread_recursive_lock_lock.
21034         (glthread_recursive_lock_unlock): New macro/function.
21035         (gl_recursive_lock_unlock): Define as wrapper around
21036         glthread_recursive_lock_unlock.
21037         (glthread_recursive_lock_destroy): New macro/function.
21038         (gl_recursive_lock_destroy): Define as wrapper around
21039         glthread_recursive_lock_destroy.
21040         (glthread_once): New macro/function.
21041         (gl_once): Define as wrapper around glthread_once.
21042         Update function declarations.
21043         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21044         glthread_rwlock_init. Return error code.
21045         (glthread_rwlock_rdlock_multithreaded): Renamed from
21046         glthread_rwlock_rdlock. Return error code.
21047         (glthread_rwlock_wrlock_multithreaded): Renamed from
21048         glthread_rwlock_wrlock. Return error code.
21049         (glthread_rwlock_unlock_multithreaded): Renamed from
21050         glthread_rwlock_unlock. Return error code.
21051         (glthread_rwlock_destroy_multithreaded): Renamed from
21052         glthread_rwlock_destroy. Return error code.
21053         (glthread_recursive_lock_init_multithreaded): Renamed from
21054         glthread_recursive_lock_init. Return error code.
21055         (glthread_recursive_lock_lock_multithreaded): Renamed from
21056         glthread_recursive_lock_lock. Return error code.
21057         (glthread_recursive_lock_unlock_multithreaded): Renamed from
21058         glthread_recursive_lock_unlock. Return error code.
21059         (glthread_recursive_lock_destroy_multithreaded): Renamed from
21060         glthread_recursive_lock_destroy. Return error code.
21061         (glthread_once_call): Make static.
21062         (glthread_once_multithreaded): Renamed from glthread_once.
21063         * lib/tls.h: Include <errno.h>.
21064         (glthread_tls_key_init): New macro/function.
21065         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21066         (glthread_tls_set): New macro/function.
21067         (gl_tls_set): Define as wrapper around glthread_tls_set.
21068         (glthread_tls_key_destroy): New macro/function.
21069         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21070         Update function declarations.
21071         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21072         glthread_tls_get.
21073         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21074
21075 2008-08-04  Eric Blake  <ebb9@byu.net>
21076
21077         gnumakefile: use space, not TAB, outside of targets
21078         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21079
21080 2008-08-02  Jim Meyering  <meyering@redhat.com>
21081
21082         getdate.y: avoid locale-dependent date parsing failure
21083         In Turkish locales, getdate would fail to recognize keywords
21084         containing a lowercase "i".  The solution is not to rely on
21085         locale-sensitive case-conversion.
21086         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21087         (lookup_word): Use c_toupper in place of toupper.
21088         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21089         Reported by Vefa Bicakci <bicave@superonline.com> in
21090         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21091         * modules/getdate (Depends-on): Add c-ctype.
21092
21093 2008-08-02  Bruno Haible  <bruno@clisp.org>
21094
21095         * gnulib-tool (func_import): When updating or creating a .gitignore
21096         file, prepend each added line with a slash, and ignore leading slashes
21097         from the existing lines.
21098         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21099
21100 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21101
21102         Portability fix for GNU make 3.79.1.
21103         * top/GNUmakefile: Avoid 'else COND', which older GNU make
21104         versions do not understand.
21105
21106 2008-08-01  Bruno Haible  <bruno@clisp.org>
21107
21108         Work around bug of HP-UX 10.20 cc with -0.0 literal.
21109         * tests/test-isnanf.h (zero): New variable.
21110         (main): Avoid literal -0.0f.
21111         * tests/test-isnand.h (zero): New variable.
21112         (main): Avoid literal -0.0.
21113         * tests/test-isnanl.h (zero): New variable.
21114         (main): Avoid literal -0.0L.
21115         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21116         (test_float, test_double, test_long_double): Avoid literals -0.0f,
21117         -0.0, -0.0L.
21118         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21119         (test_signbitd): Avoid literal -0.0.
21120         (test_signbitl): Avoid literal -0.0L.
21121         * tests/test-ceilf1.c (zero): New variable.
21122         (main): Avoid literal -0.0f.
21123         * tests/test-ceill.c (zero): New variable.
21124         (main): Avoid literal -0.0L.
21125         * tests/test-floorf1.c (zero): New variable.
21126         (main): Avoid literal -0.0f.
21127         * tests/test-floorl.c (zero): New variable.
21128         (main): Avoid literal -0.0L.
21129         * tests/test-roundf1.c (zero): New variable.
21130         (main): Avoid literal -0.0f.
21131         * tests/test-round1.c (zero): New variable.
21132         (main): Avoid literal -0.0.
21133         * tests/test-roundl.c (zero): New variable.
21134         (main): Avoid literal -0.0L.
21135         * tests/test-truncf1.c (zero): New variable.
21136         (main): Avoid literal -0.0f.
21137         * tests/test-trunc1.c (zero): New variable.
21138         (main): Avoid literal -0.0.
21139         * tests/test-truncl.c (zero): New variable.
21140         (main): Avoid literal -0.0L.
21141         * tests/test-frexp.c (zero): New variable.
21142         (main): Avoid literal -0.0.
21143         * tests/test-frexpl.c (zero): New variable.
21144         (main): Avoid literal -0.0L.
21145         * tests/test-ldexpl.c (zero): New variable.
21146         (main): Avoid literal -0.0L.
21147         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21148         (zerod, zerol): New variables.
21149         (test_function): Avoid literals -0.0, -0.0L.
21150         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21151         (zerod, zerol): New variables.
21152         (test_function): Avoid literals -0.0, -0.0L.
21153         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21154         (zerod, zerol): New variables.
21155         (test_function): Avoid literals -0.0, -0.0L.
21156         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21157         (zerod, zerol): New variables.
21158         (test_function): Avoid literals -0.0, -0.0L.
21159         * tests/test-strtod.c (zero): New variable.
21160         (main): Avoid literal -0.0.
21161         Reported by Jonathan C. Patschke <jp@centtech.com>.
21162
21163 2008-07-31  Jim Meyering  <meyering@redhat.com>
21164
21165         sha256.h: correct definition of SHA224_DIGEST_SIZE
21166         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21167         Reported by Paulie Pena IV <paulie4@gmail.com>.
21168         Define as 224 / 8, rather than as a literal.
21169         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21170         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21171         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21172
21173 2008-07-31  Bruno Haible  <bruno@clisp.org>
21174
21175         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21176         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21177         Reported by Jonathan Patschke <jp@centtech.com>.
21178
21179 2008-07-31  Bruno Haible  <bruno@clisp.org>
21180
21181         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21182         Reported by Paolo Bonzini <bonzini@gnu.org>.
21183
21184 2008-07-30  Eric Blake  <ebb9@byu.net>
21185
21186         test-strtod: allow compilation without -lm
21187         * tests/test-strtod.c (main): Avoid link dependence on fabs.
21188         Reported by Dennis Clarke <blastwave@gmail.com>.
21189
21190 2008-07-28  Jim Meyering  <meyering@redhat.com>
21191
21192         bootstrap: work also when there are no .po files in po/
21193         * build-aux/bootstrap (update_po_files): Complete the change
21194         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21195
21196 2008-07-27  Jim Meyering  <meyering@redhat.com>
21197
21198         * users.txt: Add zile.
21199
21200 2008-07-26  Ben Pfaff  <blp@gnu.org>
21201
21202         Add missing dependencies on new m4/exponent[fdl].m4 files.
21203         * modules/isnanf-nolibm: Add m4/exponentf.m4.
21204         * modules/isnand-nolibm: Add m4/exponentd.m4.
21205         * modules/isnanl-nolibm: Add m4/exponentl.m4.
21206         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21207         m4/isnan[fdl].m4, because the macros actually used moved.
21208         Reported by Jim Meyering.
21209
21210 2008-07-14  Ben Pfaff  <blp@gnu.org>
21211
21212         Add isinf module.
21213         * lib/isinf.c: New file.
21214         * lib/math.in.h: Define isinf macro if we have decided to replace
21215         it.
21216         * m4/isinf.m4: New file.
21217         * m4/math_h.m4: Initialize and substitute variables for isinf
21218         module.
21219         * modules/isinf: New file.
21220         * modules/isinf-tests: New file.
21221         * modules/math: Add substitutions for new module.
21222         * tests/test-isinf.c: New file.
21223         * doc/posix-functions/isinf.texi: Mention new module.
21224         * MODULES.html.sh: Mention new module.
21225
21226 2008-07-14  Ben Pfaff  <blp@gnu.org>
21227
21228         Factor out some macros for use by additional modules.
21229         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21230         exponentf.m4.
21231         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21232         exponentd.m4.
21233         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21234         file exponentl.m4.
21235         * m4/exponentf.m4: New file.
21236         * m4/exponentd.m4: New file.
21237         * m4/exponentl.m4: New file.
21238         * modules/isnanf: Use new file m4/exponentf.m4.
21239         * modules/isnand: Use new file m4/exponentd.m4.
21240         * modules/isnanl: Use new file m4/exponentl.m4.
21241
21242 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
21243
21244         mktime.c: normalize tp->tm_isdst value to -1/0/1.
21245         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21246         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21247         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21248
21249         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21250         readlink on platforms without PATH_MAX.
21251
21252 2008-07-21  Eric Blake  <ebb9@byu.net>
21253
21254         Warn, not fail, on stale version.
21255         * top/GNUmakefile (_curr-ver): Tone down previous patch.
21256
21257         Don't allow installation with stale devel version number.
21258         * top/GNUmakefile (_is-install-target): New macro.
21259         (_curr-ver): Forbid installation with stale version number.
21260
21261 2008-07-20  Bruno Haible  <bruno@clisp.org>
21262
21263         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21264         TESTS_ENVIRONMENT.
21265         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21266
21267 2008-07-20  Bruno Haible  <bruno@clisp.org>
21268
21269         * lib/c-stack.h (c_stack_action): Add documentation.
21270         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21271
21272 2008-07-20  Bruno Haible  <bruno@clisp.org>
21273
21274         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21275         * modules/readlink (License): Likewise.
21276
21277 2008-07-17  Eric Blake  <ebb9@byu.net>
21278
21279         * modules/c-stack (Link): Fix typo.
21280
21281         Make c-stack use libsigsegv, when available.
21282         * modules/c-stack (Depends-on): Add libsigsegv.
21283         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21284         needed.
21285         * lib/c-stack.c (SIGSTKSZ): Define fallback.
21286         (segv_handler, overflow_handler, c_stack_action)
21287         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21288         implementation when libsigsegv is available, but only when using
21289         the library is necessary.
21290         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21291         comment, explaining why XSI check fails on Linux.
21292         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
21293         * tests/test-c-stack2.sh: Tweak skip message.
21294         * NEWS: Document new link-time requirements.
21295
21296 2008-07-16  Eric Blake  <ebb9@byu.net>
21297
21298         c-stack: Expose false positives when not using libsigsegv.
21299         * modules/c-stack-tests (Files): Expand test.
21300         * tests/test-c-stack.c (main): Add means to conditionally trigger
21301         non-overflow SIGSEGV.
21302         * tests/test-c-stack2.sh: New file.
21303
21304 2008-07-14  Bruno Haible  <bruno@clisp.org>
21305
21306         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
21307         Reported by Eric Blake.
21308
21309 2008-07-14  Sam Steingold  <sds@gnu.org>
21310             Bruno Haible  <bruno@clisp.org>
21311
21312         New module libsigsegv.
21313         * modules/libsigsegv: New file.
21314         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
21315         modifications.
21316         * MODULES.html.sh (Signal handling): New section.
21317
21318 2008-07-14  Bruno Haible  <bruno@clisp.org>
21319
21320         * modules/unictype/ctype-* (Description): Add the word "function".
21321         Improves the resulting doc in MODULES.html.
21322
21323 2008-07-12  Ben Pfaff  <blp@gnu.org>
21324
21325         Add longlong module.
21326         * modules/longlong: New file.
21327
21328 2008-07-12  Bruno Haible  <bruno@clisp.org>
21329
21330         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
21331         to empty.
21332
21333 2008-07-10  Ben Pfaff  <blp@gnu.org>
21334
21335         Add isnan module.
21336         * doc/posix-functions/isnan.texi: Mention new module.
21337         * lib/math.in.h: Define isnan macro if we have decided to replace
21338         it.
21339         * m4/isnan.m4: New file.
21340         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
21341         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
21342         also.
21343         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
21344         redundancy.
21345         * m4/math_h.m4: Initialize and substitute variables for isnan
21346         module.
21347         * modules/isnan: New file.
21348         * modules/isnan-tests: New file.
21349         * modules/math: Add substitutions for new module.
21350         * tests/test-isnan.c: New file.
21351         * MODULES.html.sh: Mention new module.
21352
21353 2008-07-10  Ben Pfaff  <blp@gnu.org>
21354
21355         Add isnanf module.
21356         * lib/isnanf.m4: New file.
21357         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
21358         (gl_HAVE_ISNANF_IN_LIBM): New macro.
21359         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
21360         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
21361         * modules/isnanf: New file.
21362         * modules/isnanf-tests: New file.
21363         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
21364         files.
21365         * tests/test-isnanf-nolibm.c: factored most of its contents into
21366         new file tests/test-isnanf.h.
21367         * tests/test-isnanf.h: New file.
21368         * tests/test-isnanf.c: New file.
21369         * MODULES.html.sh: Mention new module.
21370         * doc/glibc-functions/isnanf.texi: Mention new module.
21371
21372 2008-07-10  Ben Pfaff  <blp@gnu.org>
21373
21374         Add isnand module.
21375         * lib/isnand.h: New file.
21376         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
21377         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
21378         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
21379         functionality also.
21380         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
21381         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
21382         (gl_HAVE_ISNAND_IN_LIBM): New macro.
21383         * modules/isnand: New file.
21384         * modules/isnand-tests: New file.
21385         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
21386         files.
21387         * tests/test-isnand-nolibm.c: factored most of its contents into
21388         new file tests/test-isnand.h.
21389         * tests/test-isnand.h: New file.
21390         * tests/test-isnand.c: New file.
21391         * MODULES.html.sh: Mention new module.
21392
21393 2008-07-10  Ben Pfaff  <blp@gnu.org>
21394
21395         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
21396         * lib/isnand.h: Rename lib/isnand-nolibm.h.
21397         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
21398         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
21399         * modules/isnanf-nolibm: Update references to renamed files.
21400         * modules/isnand-nolibm: Likewise.
21401         * modules/isnanf-nolibm-tests: Likewise.
21402         * modules/isnand-nolibm-tests: Likewise.
21403         * lib/frexp.c: Likewise.
21404         * lib/isfinite.c: Likewise.
21405         * lib/signbitd.c: Likewise.
21406         * lib/signbitf.c: Likewise.
21407         * lib/vasnprintf.c: Likewise.
21408         * tests/test-ceilf1.c: Likewise.
21409         * tests/test-ceilf2.c: Likewise.
21410         * tests/test-floorf1.c: Likewise.
21411         * tests/test-floorf2.c: Likewise.
21412         * tests/test-frexp.c: Likewise.
21413         * tests/test-round1.c: Likewise.
21414         * tests/test-round2.c: Likewise.
21415         * tests/test-roundf1.c: Likewise.
21416         * tests/test-strtod.c: Likewise.
21417         * tests/test-trunc1.c: Likewise.
21418         * tests/test-trunc2.c: Likewise.
21419         * tests/test-truncf1.c: Likewise.
21420         * tests/test-truncf2.c: Likewise.
21421         * NEWS: Mention the renamed header files.
21422
21423 2008-07-11  Jim Meyering  <meyering@redhat.com>
21424
21425         vc-list-files: make the last-resort awk code more portable
21426         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
21427         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
21428         does not support it.
21429
21430 2008-07-10  Eric Blake  <ebb9@byu.net>
21431
21432         Work with tar's bootstrap.
21433         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
21434         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
21435         an m4 comment.
21436
21437 2008-07-09  Jim Meyering  <meyering@redhat.com>
21438
21439         posix-shell.m4: fix typo that made this test malfunction
21440         * m4/posix-shell.m4: Remove capitalization in variable name.
21441
21442 2008-07-08  Bruno Haible  <bruno@clisp.org>
21443
21444         * m4/onceonly.m4: Update comments.
21445         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21446
21447 2008-07-04  Jim Meyering  <meyering@redhat.com>
21448
21449         * users.txt: Add vc-dwim.
21450         (bison, coreutils): Use the gitweb URL.
21451
21452 2008-07-03  Jim Meyering  <meyering@redhat.com>
21453
21454         * users.txt: Add libffcall.  From Sam Steingold.
21455
21456 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
21457
21458         getdate.y: do not ignore TZ with relative day, month or year offset
21459         * lib/getdate.y (get_date): Move the tz-handling block to follow the
21460         relative-date-handling, since otherwise, the latter would clobber the
21461         sole output (an updated Start value) of the tz-handling block.
21462         * tests/test-getdate.c: Tests for the fix
21463
21464 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21465
21466         Recognize 'foo_LIBRARIES += libgnu.a'.
21467         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
21468         makefile snippet has already specified an installation location,
21469         also using '+='.
21470
21471 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
21472
21473         getdate.y: factor out common actions
21474         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
21475         Use them in place of open-coded actions.
21476
21477 2008-07-01  Simon Josefsson  <simon@josefsson.org>
21478
21479         Add self-test for getdate module.
21480         * modules/getdate-tests: New file.
21481         * tests/test-getdate.c: New file.
21482
21483 2008-06-29  Bruno Haible  <bruno@clisp.org>
21484
21485         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
21486         .gitignore.
21487         Reported by Sylvain Beucler <beuc@beuc.net>.
21488
21489 2008-06-29  Bruno Haible  <bruno@clisp.org>
21490
21491         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
21492         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
21493
21494 2008-06-29  Bruno Haible  <bruno@clisp.org>
21495
21496         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
21497         EXTRA_DIST.
21498         Reported by Sylvain Beucler <beuc@beuc.net>.
21499
21500 2008-06-26  Jim Meyering  <meyering@redhat.com>
21501
21502         make several modules depend on the "open" module
21503         This provides slightly increased consistency when opening-for-write
21504         the name of a non-directory spelled with a trailing slash.
21505         * modules/chdir-safer: Likewise.
21506         * modules/chown: Likewise.
21507         * modules/clean-temp: Likewise.
21508         * modules/copy-file: Likewise.
21509         * modules/fchdir: Likewise.
21510         * modules/fcntl-safer: Likewise.
21511         * modules/pipe: Likewise.
21512         * modules/utime: Likewise.
21513         Prompted by Eric Blake and Bruno Haible.
21514
21515 2008-06-24  Andreas Schwab  <schwab@suse.de>
21516
21517         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
21518         literals can be used as initializers for global variables.
21519
21520 2008-06-23  Eric Blake  <ebb9@byu.net>
21521
21522         Make gnulib-cache.m4 easier to diff.
21523         * gnulib-tool (func_import): Allow newlines when reading cached
21524         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
21525
21526 2008-06-23  Bruno Haible  <bruno@clisp.org>
21527
21528         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
21529         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
21530         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
21531         m4/signalblocking.m4.
21532         (gl_PREREQ_SIGACTION): Don't invoke it.
21533         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
21534         gl_PREREQ_SIG_HANDLER_H.
21535         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21536         Don't check for sigaction here.
21537
21538 2008-06-23  Bruno Haible  <bruno@clisp.org>
21539
21540         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
21541         (install_handlers): Don't set the SA_RESETHAND flag.
21542
21543 2008-06-23  Bruno Haible  <bruno@clisp.org>
21544
21545         * m4/sigaction.m4: Comment fixes.
21546         * lib/signal.in.h: Likewise.
21547
21548 2008-06-23  Eric Blake  <ebb9@byu.net>
21549
21550         Fix typo.
21551         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
21552
21553         Avoid SA_ namespace.
21554         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
21555         Reported by Ralf Wildenhues.
21556
21557         Avoid test failure due to SA_RESTORER.
21558         * tests/test-sigaction.c (SA_MASK): New macro.
21559         (main): Avoid failing due to extension flags being set.
21560         Reported by Jim Meyering.
21561
21562         Revert use of sig-handler.h in sigprocmask.c.
21563         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
21564         it requires the existence of struct sigaction.
21565         * lib/sigprocmask.c (handler_t): Restore typedef.
21566         (rpl_signal, old_handlers): Use local type.
21567
21568 2008-06-22  Bruno Haible  <bruno@clisp.org>
21569
21570         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
21571         conditionally.
21572         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21573
21574 2008-06-22  Bruno Haible  <bruno@clisp.org>
21575
21576         * doc/posix-functions/siginterrupt.texi: Move note.
21577
21578         * lib/signal.in.h (SA_RESTART): New macro.
21579         * lib/sigaction.c: Update comment.
21580
21581         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
21582
21583         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
21584         (gl_PREREQ_SIGPROCMASK): Invoke it.
21585         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
21586
21587         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
21588
21589         * lib/sigprocmask.c: Update a comment.
21590
21591 2008-06-21  Eric Blake  <ebb9@byu.net>
21592
21593         Use sigaction module rather than signal().
21594         * modules/c-stack (Depends-on): Add sigaction.
21595         * modules/fatal-signal (Depends-on): Likewise.
21596         * modules/nanosleep (Depends-on): Likewise.
21597         * modules/sigprocmask (Files): Add sig-handler.h.
21598         * modules/sigaction (Files): Likewise.
21599         * lib/sig-handler.h (get_handler): New file, suggested by Paul
21600         Eggert.
21601         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
21602         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
21603         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
21604         (init_fatal_signals): Likewise.
21605         * lib/nanosleep.c (rpl_nanosleep): Likewise.
21606         (siginterrupt): Delete fallback.
21607         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
21608         instead.
21609         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
21610         siginterrupt.
21611
21612         New module sigaction, for mingw.
21613         * modules/sigaction: New module...
21614         * modules/sigaction-tests: ...and its test.
21615         * m4/sigaction.m4: New file.
21616         * lib/sigaction.c: Likewise.
21617         * tests/test-sigaction.c: Likewise.
21618         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
21619         * modules/signal (Makefile.am): Likewise.
21620         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
21621         needed.
21622         * doc/posix-headers/signal.texi (signal.h): Mention provided
21623         types.
21624         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
21625         that sigaction is preferable.
21626         * doc/posix-functions/sigaction.texi (sigaction): Mention new
21627         module.
21628         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21629         sigaction.
21630
21631         Improve robustness of sigprocmask by overriding signal.
21632         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
21633         is in use.
21634         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
21635         (SIGKILL, SIGSTOP): Provide fallbacks.
21636         (rpl_signal): Implement.
21637         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
21638         signal can be called inside handlers.
21639
21640         Fix nanosleep module on mingw.
21641         * modules/nanosleep (Depends-on): Add sys_select.
21642         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
21643
21644         Fix licensing of sigprocmask.
21645         * modules/raise (License): Relicense as LGPL.
21646
21647 2008-06-21  Bruno Haible  <bruno@clisp.org>
21648
21649         * lib/propername.c (proper_name_utf8): Don't use the transliterated
21650         result if it contains question marks.
21651         Reported by Michael Geng <linux@michaelgeng.de>.
21652
21653 2008-06-19  Bruno Haible  <bruno@clisp.org>
21654
21655         Fix CVS-ism.
21656         * doc/gnulib.texi: Include updated-stamp.texi.
21657         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
21658         (updated-stamp.texi): New rule.
21659         (gnulib.info): Depend on it.
21660         * doc/.gitignore: Add updated-stamp.texi.
21661         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
21662
21663 2008-06-19  Bruno Haible  <bruno@clisp.org>
21664
21665         * doc/Makefile (gnulib.info): Update and simplify dependencies.
21666         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21667
21668 2008-06-19  Eric Blake  <ebb9@byu.net>
21669
21670         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
21671         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
21672         Reported by Stepan Kasal.
21673
21674 2008-06-18  Bruno Haible  <bruno@clisp.org>
21675
21676         * lib/fatal-signal.c (init_fatal_signals): Add comment.
21677         Reported by Eric Blake.
21678
21679 2008-06-18  Eric Blake  <ebb9@byu.net>
21680
21681         Work around cygwin 1.5.25 strsignal bug.
21682         * tests/test-strsignal.c: Allow for const char *.
21683         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
21684
21685 2008-06-18  Simon Josefsson  <simon@josefsson.org>
21686
21687         * users.txt: Update URL to article and add author/date
21688         information.
21689
21690 2008-06-17  Bruno Haible  <bruno@clisp.org>
21691
21692         New macro gl_DISABLE_THREADS.
21693         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
21694         if the user did not pass --enable-threads or --disable-threads option.
21695         (gl_DISABLE_THREADS): New macro.
21696         Reported by Eric Blake <ebb9@byu.net>.
21697
21698 2008-06-17  Bruno Haible  <bruno@clisp.org>
21699
21700         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
21701         when the macro ignores it.
21702         Based on a patch by Eric Blake <ebb9@byu.net>.
21703
21704 2008-06-17  Bruno Haible  <bruno@clisp.org>
21705
21706         * modules/tls (License): Change to LGPLv2+.
21707         Reported by Eric Blake.
21708
21709 2008-06-17  Eric Blake  <ebb9@byu.net>
21710
21711         Simplify c-stack prerequisites.
21712         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
21713         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
21714         no longer requires <ucontext.h> to exist.  Optimize setrlimit
21715         check.
21716         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
21717         <sys/resource.h>.
21718
21719         Move c-stack test into testsuite.
21720         * modules/c-stack-tests: New file.
21721         * lib/c-stack.c [DEBUG]: Move test program...
21722         * tests/test-c-stack.c: ...into this new file.  Skip rather than
21723         fail test if sigaltstack is lacking.
21724         * tests/test-c-stack.sh: New driver file.
21725
21726 2008-06-16  Eric Blake  <ebb9@byu.net>
21727
21728         Use raise module consistently.
21729         * modules/fatal-signal (Depends-on): Add raise.
21730         * modules/sigprocmask (Depends-on): Likewise.
21731         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
21732         * lib/sigprocmask.c (sigprocmask): Likewise.
21733         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21734         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
21735
21736         Fix compliance bug in sigpending.
21737         * lib/sigprocmask.c (sigpending): Return pending array via
21738         parameter, not return value.
21739
21740 2008-06-14  Eric Blake  <ebb9@byu.net>
21741
21742         Improve obstack-printf test code.
21743         * tests/test-obstack-printf.c (test_function): Fix comment, and
21744         simplify usage of obstack_* in macros.  Add a test for coverage.
21745         Reported by Bruno Haible.
21746
21747 2008-06-14  Bruno Haible  <bruno@clisp.org>
21748
21749         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
21750         array size as a constant, not as a const variable.
21751         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
21752         AC_USE_SYSTEM_EXTENSIONS.
21753         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21754         Test whether the obstack_printf function actually exists.
21755         * modules/obstack-printf (Depends-on): Add extensions.
21756         (Include): Remove obstack.h.
21757         * modules/obstack-printf-posix (Depends-on): Add extensions.
21758         (Include): Remove obstack.h.
21759
21760 2008-06-13  Eric Blake  <ebb9@byu.net>
21761
21762         Add obstack-printf and obstack-printf-posix modules.
21763         * modules/obstack-printf: New file.
21764         * modules/obstack-printf-posix: Likewise.
21765         * MODULES.html.sh (Misc): Mention them.
21766         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21767         Likewise.
21768         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21769         Likewise.
21770         * modules/stdio (Makefile.am): Accomodate new modules.
21771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21772         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
21773         Declare.
21774         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
21775         functions.
21776         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
21777         (gl_REPLACE_OBSTACK_PRINTF): New macros
21778         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
21779         * tests/test-obstack-printf.c: New file.
21780         * modules/obstack-printf-tests: Likewise.
21781         * modules/obstack-printf-posix-tests: Likewise.
21782
21783 2008-06-11  Bruno Haible  <bruno@clisp.org>
21784
21785         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
21786         * lib/open.c: Include errno.h.
21787         (open): Fail when attempting to write to a file that has a trailing
21788         slash.
21789         * tests/test-open.c (main): Test against trailing slash bug.
21790         * doc/posix-functions/open.texi: Mention the trailing slash bug.
21791
21792 2008-06-10  Bruno Haible  <bruno@clisp.org>
21793
21794         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
21795         for $? to work inside the trap command, with various /bin/sh-s.
21796         * tests/test-vc-list-files-cvs.sh: Likewise.
21797
21798 2008-06-10  Bruno Haible  <bruno@clisp.org>
21799
21800         * lib/acl-internal.h: Don't include gettext.h here.
21801         * lib/set-mode-acl.c: Include gettext.h here.
21802         * lib/copy-acl.c: Likewise.
21803
21804 2008-06-10  Bruno Haible  <bruno@clisp.org>
21805
21806         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
21807         * lib/wait-process.c (wait_subprocess): Likewise.
21808         * lib/execute.h (execute): Add termsigp argument.
21809         * lib/execute.c (execute): Likewise.
21810         * lib/csharpcomp.c (compile_csharp_using_pnet,
21811         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
21812         * lib/csharpexec.c (execute_csharp_using_pnet,
21813         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
21814         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
21815         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
21816         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
21817         is_jikes_present): Update.
21818         * lib/javaexec.c (execute_java_class): Update.
21819         * lib/javaversion.c (execute_and_read_line): Update.
21820         * NEWS: Document the changes.
21821         Reported by Eric Blake.
21822
21823 2008-06-10  Eric Blake  <ebb9@byu.net>
21824
21825         Add missing include.
21826         * tests/test-strstr.c (includes): Add <signal.h>.
21827         * tests/test-strcasestr.c (includes): Likewise.
21828         * tests/test-memmem.c (includes): Likewise.
21829
21830 2008-06-10  Bruno Haible  <bruno@clisp.org>
21831
21832         * lib/wait-process.c (wait_subprocess): Add an assertion.
21833
21834 2008-06-10  Bruno Haible  <bruno@clisp.org>
21835
21836         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
21837
21838 2008-06-10  Bruno Haible  <bruno@clisp.org>
21839
21840         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
21841         using alarm().
21842         * tests/test-strcasestr.c (main): Likewise.
21843         * tests/test-strstr.c (main): Likewise.
21844
21845 2008-06-09  Bruno Haible  <bruno@clisp.org>
21846
21847         Work around the Solaris 10 ACE ACLs ABI change.
21848         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
21849         declare if ACL_NO_TRIVIAL is present.
21850         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
21851         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
21852         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
21853         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
21854         define if ACL_NO_TRIVIAL is present.
21855         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
21856         and use the current ABI.
21857         (file_has_acl): Use same #if condition as elsewhere.
21858         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
21859         in use, and use the current ABI.
21860         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
21861         Reported by Jim Meyering.
21862
21863 2008-06-09  Eric Blake  <ebb9@byu.net>
21864
21865         Work around environments that (stupidly) ignore SIGALRM.
21866         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
21867         before using alarm().
21868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21869         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21870         Reported by Ian Beckwith <ianb@erislabs.net>.
21871
21872         Produce autobuild blurb earlier in log.
21873         * modules/autobuild (configure.ac-early): Move AB_INIT here.
21874
21875 2008-06-09  Jim Meyering  <meyering@redhat.com>
21876         and Ondřej Vašík  <ovasik@redhat.com>
21877
21878         utimens.c: correct kernel bug work-around
21879         Ondřej Vašík found that the invalid return value of 280 indicates
21880         failure, not success, and the kernel bug we're trying to work
21881         around affects not just the utimensat call, but also the fallback
21882         futimens call.
21883         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
21884         not success.
21885         [HAVE_FUTIMENS]: Use the same work-around, here.
21886
21887 2008-06-09  Jim Meyering  <meyering@redhat.com>
21888
21889         add more guards around definition of ACE_-related code
21890         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
21891         ALLOW and ACE_OWNER are also defined.
21892
21893 2008-06-08  Bruno Haible  <bruno@clisp.org>
21894
21895         * lib/acl-internal.h: Add me as co-author.
21896         * lib/file-has-acl.c: Likewise.
21897         * lib/set-mode-acl.c: Likewise.
21898         * lib/copy-acl.c: Likewise.
21899
21900 2008-06-08  Bruno Haible  <bruno@clisp.org>
21901
21902         Add support for AIX ACLs.
21903         * lib/acl-internal.h (acl_nontrivial): New declaration.
21904         * lib/file-has-acl.c (acl_nontrivial): New function.
21905         (file_has_acl): Add implementation using AIX 4 ACL API.
21906         * lib/set-mode-acl.c (qset_acl): Likewise.
21907         * lib/copy-acl.c (qcopy_acl): Likewise.
21908
21909 2008-06-08  Bruno Haible  <bruno@clisp.org>
21910
21911         Add support for HP-UX ACLs.
21912         * lib/acl-internal.h (acl_nontrivial): New declaration.
21913         * lib/file-has-acl.c (acl_nontrivial): New function.
21914         (file_has_acl): Add implementation using HP-UX 11 ACL API.
21915         * lib/set-mode-acl.c (qset_acl): Likewise.
21916         * lib/copy-acl.c (qcopy_acl): Likewise.
21917
21918 2008-06-08  Bruno Haible  <bruno@clisp.org>
21919
21920         Add support for Cygwin ACLs.
21921         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
21922         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
21923         the chmod_or_fchmod call.
21924         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
21925
21926 2008-06-08  Bruno Haible  <bruno@clisp.org>
21927
21928         Fix bug with setuid modes in Solaris 10+ code.
21929         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
21930         succeeded, when the mode contains some special bits.
21931
21932 2008-06-08  Bruno Haible  <bruno@clisp.org>
21933
21934         Add support for Solaris 7..10 ACLs.
21935         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
21936         declarations.
21937         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
21938         functions.
21939         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
21940         * lib/set-mode-acl.c (qset_acl): Likewise.
21941         * lib/copy-acl.c (qcopy_acl): Likewise.
21942
21943 2008-06-08  Bruno Haible  <bruno@clisp.org>
21944
21945         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
21946         declaration.
21947         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
21948         (acl_access_nontrivial): Remove MacOS X case.
21949         (file_has_acl): Use acl_extended_nontrivial.
21950         * lib/copy-acl.c (qcopy_acl): Likewise.
21951
21952 2008-06-08  Bruno Haible  <bruno@clisp.org>
21953
21954         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
21955
21956 2008-06-08  Jim Meyering  <meyering@redhat.com>
21957
21958         * modules/acl (Maintainer): Add Bruno Haible.
21959
21960 2008-06-07  Bruno Haible  <bruno@clisp.org>
21961
21962         Improve support for Tru64 ACLs.
21963         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
21964         ACL on OSF/1.
21965
21966 2008-06-07  Bruno Haible  <bruno@clisp.org>
21967
21968         Add support for MacOS X ACLs.
21969         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
21970         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
21971         * lib/set-mode-acl.c (qset_acl): Likewise.
21972         * lib/copy-acl.c (qcopy_acl): Likewise.
21973
21974 2008-06-07  Bruno Haible  <bruno@clisp.org>
21975
21976         Fix memory leak introduced on 2008-05-22.
21977         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
21978         use.
21979
21980 2008-06-07  Bruno Haible  <bruno@clisp.org>
21981
21982         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
21983         to construct an empty ACL.
21984
21985 2008-06-07  Bruno Haible  <bruno@clisp.org>
21986
21987         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
21988         precisely.
21989         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
21990
21991 2008-06-07  Bruno Haible  <bruno@clisp.org>
21992
21993         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
21994         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
21995
21996 2008-06-07  Bruno Haible  <bruno@clisp.org>
21997
21998         * doc/posix-functions/_setjmp.texi: Explain the use of this function
21999         regardless of POSIX.
22000         * doc/posix-functions/_longjmp.texi: Likewise.
22001         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22002         SystemV platform in this case.
22003
22004 2008-06-06  Eric Blake  <ebb9@byu.net>
22005
22006         Document abort() bugs.
22007         * doc/posix-functions/abort.texi (abort): Mention anomalies.
22008
22009         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22010         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22011         sigsetjmp.
22012         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22013         siglongjmp, but only as a macro.
22014         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22015         is obsolete.
22016         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22017
22018         Tweak documentation to cover cygwin argz bugs.
22019         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22020         argz bug fix; no code change needed since no cygwin releases
22021         occurred between the last fix and the bug being tested.
22022         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22023         module and recently fixed cygwin bugs.
22024         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22025         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22026         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22027         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22028         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22029         Likewise.
22030         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22031         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22032         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22033         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22034         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22035         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22036         Likewise.
22037
22038         Avoid gcc warning on cygwin.
22039         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22040         !ACL_NO_TRIVIAL]: Avoid unused variable.
22041
22042 2008-06-05  Eric Blake  <ebb9@byu.net>
22043
22044         Be tolerant of UNKNOWN version in gnulib-tool test dir.
22045         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22046         git-version-gen fails to come up with a version.
22047         Reported by Simon Josefsson.
22048
22049 2008-06-05  Jim Meyering  <meyering@redhat.com>
22050             Paul Eggert  <eggert@cs.ucla.edu>
22051
22052         utimens.c: work around a probable Linux kernel bug
22053         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22054         appears to be a kernel bug that causes utimensat to return 280
22055         instead of 0, indicating success.
22056
22057 2008-06-04  Bruno Haible  <bruno@clisp.org>
22058
22059         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22060         2008-06-01 commit.
22061
22062 2008-06-04  Bruno Haible  <bruno@clisp.org>
22063
22064         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22065         * lib/file-has-acl.c (acl_access_nontrivial): New function.
22066         (file_has_acl): Use it. Save errno afterwards.
22067         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22068
22069 2008-06-03  Bruno Haible  <bruno@clisp.org>
22070
22071         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22072         draft code. Simplify #ifs.
22073         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22074         Put Solaris code after POSIX-draft code. Fix comments regarding
22075         Solaris 10, HP-UX. Mention Cygwin.
22076         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22077
22078 2008-06-03  Eric Blake  <ebb9@byu.net>
22079
22080         Provide fallback for older kernels.
22081         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22082         Provide runtime fallback if kernel lacks support.
22083         Reported by Mike Frysinger.
22084
22085 2008-06-02  Bruno Haible  <bruno@clisp.org>
22086
22087         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22088         it exists.
22089
22090 2008-06-02  Bruno Haible  <bruno@clisp.org>
22091
22092         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22093         * lib/copy-acl.c (qcopy_acl): Update comment.
22094
22095 2008-06-02  Bruno Haible  <bruno@clisp.org>
22096
22097         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22098         like ACL APIs.
22099
22100 2008-06-02  Bruno Haible  <bruno@clisp.org>
22101
22102         * tests/test-file-has-acl.sh: Use different code for Cygwin.
22103         * tests/test-set-mode-acl.sh: Likewise.
22104         * tests/test-copy-acl.sh: Likewise.
22105         * tests/test-copy-file.sh: Likewise.
22106
22107 2008-06-02  Bruno Haible  <bruno@clisp.org>
22108
22109         * tests/test-file-has-acl.sh: Remove unused code.
22110
22111 2008-06-01  Bruno Haible  <bruno@clisp.org>
22112
22113         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22114         (copy_acl): Just a wrapper around qcopy_acl that emits the error
22115         messages.
22116         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22117
22118 2008-06-01  Bruno Haible  <bruno@clisp.org>
22119
22120         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22121         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22122         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22123         APIs.
22124         * modules/acl-tests (configure.ac): Remove tests now contained in
22125         m4/acl.m4.
22126
22127 2008-06-02  Jim Meyering  <meyering@redhat.com>
22128
22129         announce-gen: use a better key-server host name
22130         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22131         it may be more consistently reliable.  Suggested by Werner Koch
22132         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22133
22134 2008-06-01  Bruno Haible  <bruno@clisp.org>
22135
22136         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22137         Reported by Voroskoi Andras <voroskoi@gmail.com>.
22138
22139 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
22140
22141         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22142
22143 2008-06-01  Bruno Haible  <bruno@clisp.org>
22144
22145         New ACL tests.
22146         * tests/test-file-has-acl.sh: New file.
22147         * tests/test-file-has-acl.c: New file.
22148         * tests/test-set-mode-acl.sh: New file.
22149         * tests/test-set-mode-acl.c: New file.
22150         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22151         * tests/test-copy-acl.c: New file.
22152         * modules/acl-tests: New file, based on modules/copy-file-tests.
22153         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22154         (Depends-on): Add acl-tests.
22155         (configure.ac): Remove checks.
22156         (Makefile.am): Don't create test-sameacls program here any more.
22157
22158 2008-06-01  Bruno Haible  <bruno@clisp.org>
22159
22160         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22161         * tests/test-sameacls.c: Include progname.h.
22162         (main): Invoke set_program_name. Portability fixes for MacOS X,
22163         Solaris, HP-UX.
22164
22165 2008-06-01  Bruno Haible  <bruno@clisp.org>
22166
22167         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22168         function.
22169         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22170
22171 2008-06-01  Bruno Haible  <bruno@clisp.org>
22172
22173         * modules/rpmatch (Depends-on): Add strdup.
22174
22175 2008-06-01  Bruno Haible  <bruno@clisp.org>
22176
22177         * lib/pipe.c: Include unistd-safer.h.
22178         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22179         * modules/pipe (Depends-on): Add unistd-safer.
22180
22181 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22182
22183         * modules/autobuild (configure.ac): Call AB_INIT.
22184
22185 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22186
22187         * tests/test-getaddrinfo.c: Don't print debug messages by default.
22188         Suggested by Bruno Haible <bruno@clisp.org>.
22189
22190 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22191
22192         * tests/test-base64.c: Cast size_t to unsigned long when invoking
22193         printf.  Use %lu instead of %d.  Reported by Bruno Haible
22194         <bruno@clisp.org>.
22195
22196 2008-05-29  Eric Blake  <ebb9@byu.net>
22197
22198         Prefer new POSIX 200x interfaces over futimesat.
22199         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22200         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22201         when available.
22202         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22203
22204 2008-05-28  Bruno Haible  <bruno@clisp.org>
22205
22206         * modules/stpcpy (License): Change to LGPLv2+.
22207         Requested by David Lutterkort <dlutter@redhat.com>.
22208
22209 2008-05-27  Bruno Haible  <bruno@clisp.org>
22210
22211         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22212         current mingw.
22213         Reported by Jose E. Marchesi <jemarch@gnu.org>.
22214
22215 2008-05-27  Bruno Haible  <bruno@clisp.org>
22216
22217         * modules/iconv_open (Link): New section, from module 'iconv'.
22218         * modules/striconv (Link): Likewise.
22219         * modules/striconveh (Link): Likewise.
22220         * modules/xstriconv (Link): Likewise.
22221         * modules/unicodeio (Link): Likewise.
22222         * modules/propername (Link): Likewise.
22223         Reported by Jim Meyering.
22224
22225 2008-05-26  Jim Meyering  <meyering@redhat.com>
22226
22227         sha256: do not artificially restrict buffer length to be < 2^32
22228         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22229         uint32_t to size_t.
22230         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22231         to match.
22232
22233         avoid unaligned access errors, e.g., on sparc
22234         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22235         direct access through a possibly-unaligned uint64* pointer.
22236         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22237         direct access through a possibly-unaligned uint32* pointer.
22238         Prompted by this patch from Tom "spot" Callaway:
22239         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22240
22241         sha512.c: fix typo in comment
22242         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22243
22244 2008-05-25  Bruno Haible  <bruno@clisp.org>
22245
22246         * lib/set-mode-acl.c: Renamed from lib/acl.c.
22247         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22248         (Makefile.am): Update lib_SOURCES.
22249
22250 2008-05-25  Bruno Haible  <bruno@clisp.org>
22251
22252         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22253
22254 2008-05-25  Jim Meyering  <meyering@redhat.com>
22255
22256         useless-if-before-free: freed expr may have white-space differences
22257         * build-aux/useless-if-before-free: Recognize cases in which the
22258         freed expression differs from the tested one in embedded white
22259         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
22260         $1 was used, so we can't make any regexp shy.  Improved tests now
22261         detect this.
22262
22263         useless-if-before-free: accept white space in the expression.
22264         * build-aux/useless-if-before-free: For now, any white space
22265         in the expression must be identical in the free argument.
22266
22267         useless-if-before-free: efficiency tweak
22268         * build-aux/useless-if-before-free: Make the expression-matching
22269         regexp "shy".
22270         Make the *outer* regexp shy, not the expr-matching one.
22271
22272         update code-in-comment to accept cast of free arg
22273         * build-aux/useless-if-before-free: Update regexp.
22274
22275 2008-05-25  Bruno Haible  <bruno@clisp.org>
22276
22277         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22278         * modules/copy-file-tests (Files, Makefile.am): Update.
22279         * tests/test-copy-file.c (func_test_copy): Update.
22280
22281 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
22282
22283         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22284
22285 2008-05-23  Bruno Haible  <bruno@clisp.org>
22286
22287         Improve support for ACLs on OSF/1.
22288         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22289         Remove fallback for unknown flavors of ACLs.
22290
22291 2008-05-22  Bruno Haible  <bruno@clisp.org>
22292
22293         Add support for ACLs on OSF/1.
22294         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
22295         replacements.
22296         (acl_free_text): New macro fallback.
22297         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
22298         acl_free.
22299         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
22300         acl_free_text function. Require AC_C_INLINE.
22301
22302 2008-05-22  Bruno Haible  <bruno@clisp.org>
22303
22304         Make copy_acl work on MacOS X 10.5.
22305         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
22306         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
22307         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
22308         If MODE_INSIDE_ACL, don't assume that every system has the same text
22309         representation for ACLs as FreeBSD.
22310         * lib/copy-acl.c (copy_acl): Add support for platforms with
22311         !MODE_INSIDE_ACL.
22312         * lib/file-has-acl.c (file_has_acl): Likewise.
22313         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
22314         FreeBSD, MacOS X, or IRIX, respectively.
22315
22316 2008-05-22  Bruno Haible  <bruno@clisp.org>
22317
22318         * lib/acl.h: Don't include <sys/acl.h>.
22319         (GETACLCNT): Move fallback to lib/acl-internal.h.
22320         * lib/acl-internal.h: Include <sys/acl.h> here.
22321         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
22322
22323 2008-05-22  Bruno Haible  <bruno@clisp.org>
22324
22325         Split off copy_acl function to separate file.
22326         * lib/copy-acl.c: New file, extracted from lib/acl.c.
22327         * lib/acl.c (copy_acl): Moved function to separate file.
22328         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
22329         * modules/acl (Files): Add lib/copy-acl.c.
22330         (Makefiles.am): Augment lib_SOURCES.
22331
22332 2008-05-22  Bruno Haible  <bruno@clisp.org>
22333
22334         * modules/copy-file-tests: New file.
22335         * tests/test-copy-file.sh: New file.
22336         * tests/test-copy-file.c: New file.
22337         * tests/test-copy-file-sameacls.c: New file.
22338
22339 2008-05-22  Eric Blake  <ebb9@byu.net>
22340
22341         Avoid gcc warning.
22342         * tests/test-memcmp.c (main): Pass NULL indirectly.
22343
22344 2008-05-21  Bruno Haible  <bruno@clisp.org>
22345
22346         Add reference doc about ACLs.
22347         * doc/acl-resources.txt: New file.
22348         * doc/acl-cygwin.txt: New file.
22349
22350 2008-05-21  Bruno Haible  <bruno@clisp.org>
22351
22352         Avoid one more warning from gcc.
22353         * lib/vasnprintf.c (IF_LINT): Update comments.
22354         (VASNPRINTF): Use it also for the 'prefix' array initializer.
22355
22356 2008-05-21  Jim Meyering  <meyering@redhat.com>
22357
22358         avoid a warning from gcc
22359         * lib/vasnprintf.c (IF_LINT): Define.
22360         (scale10_round_decimal_long_double):
22361         Use it to avoid a "may be used uninitialized" warning.
22362         (scale10_round_decimal_double): Likewise.
22363
22364 2008-05-21  Simon Josefsson  <simon@josefsson.org>
22365
22366         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
22367         declared.
22368
22369 2008-05-20  Bruno Haible  <bruno@clisp.org>
22370
22371         * tests/test-memcmp.c (main): Test also the sign of the result. Test
22372         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
22373
22374 2008-05-20  Simon Josefsson  <simon@josefsson.org>
22375
22376         * modules/memcmp-tests: New file.
22377         * tests/test-memcmp.c: New file.
22378
22379 2008-05-19  Bruno Haible  <bruno@clisp.org>
22380
22381         * modules/propername (Notice, configure.ac): Put quoted "..." into
22382         --keyword option.
22383         * lib/propername.h: Update comments accordingly.
22384         Reported by Eric Blake.
22385
22386 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
22387
22388         * modules/getpass-gnu (Depends-on): Add fseeko.
22389
22390 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22391
22392         * modules/base64-tests: New file.
22393
22394 2008-05-19  Bo Borgerson <gigabo@gmail.com>
22395
22396         * lib/base64.c (base64_decode_ctx): If a decode context structure
22397         was passed in use it to ignore newlines.  If a context structure
22398         was _not_ passed in, continue to treat newlines as garbage (this
22399         is the historical behavior).  Formerly base64_decode.
22400         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22401         takes a decode context structure.
22402         * lib/base64.h (base64_decode): Macro for four-argument calls.
22403         (base64_decode_alloc): Likewise.
22404         * lib/base64.c (base64_decode_ctx): If a decode context structure
22405         was passed in use it to ignore newlines.  If a context structure
22406         was _not_ passed in, continue to treat newlines as garbage (this
22407         is the historical behavior).  Formerly base64_decode.
22408         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22409         takes a decode context structure.
22410         * lib/base64.h (base64_decode): Macro for four-argument calls.
22411         (base64_decode_alloc): Likewise.
22412
22413 2008-05-19  Jim Meyering  <meyering@redhat.com>
22414
22415         avoid a warning from gcc
22416         * lib/trim.c (IF_LINT): Define.
22417         (trim2): Use it to avoid a "may be used uninitialized" warning.
22418
22419         Fix doc typo.
22420         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
22421
22422 2008-05-19  Bruno Haible  <bruno@clisp.org>
22423
22424         * doc/glibc-functions/getpass.texi: Document limits of other
22425         implementations.
22426
22427 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22428             Bruno Haible <bruno@clisp.org>
22429
22430         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
22431
22432 2008-05-18  Bruno Haible  <bruno@clisp.org>
22433
22434         * modules/propername: New file, from GNU gettext.
22435         * lib/propername.h: New file, from GNU gettext.
22436         * lib/propername.c: New file, from GNU gettext.
22437         * MODULES.html.sh (Internationalization functions): Add propername.
22438
22439 2008-05-16  Jim Meyering  <meyering@redhat.com>
22440             Bruno Haible  <bruno@clisp.org>
22441
22442         Avoid some warnings from "gcc -Wshadow".
22443         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
22444
22445 2008-05-15  Eric Blake  <ebb9@byu.net>
22446
22447         Extend previous patch to cygwin 1.7.0.
22448         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
22449         fast implementation in cygwin >= 1.7.0.
22450         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22451         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22452
22453 2008-05-15  Bruno Haible  <bruno@clisp.org>
22454
22455         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
22456         implementation in glibc >= 2.9.
22457         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22459
22460 2008-05-15  Bruno Haible  <bruno@clisp.org>
22461
22462         * MODULES.html.sh (Internationalization functions): Remove linebreak.
22463         (Unicode string functions): Add unilbrk/*.
22464         Reported by Karl Berry.
22465
22466 2008-05-15  Eric Blake  <ebb9@byu.net>
22467
22468         Fix violation of <stdbool.h> replacement in regex.
22469         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
22470         * lib/regexec.c (re_search_internal): Likewise.
22471         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
22472
22473 2008-05-15  Jim Meyering  <meyering@redhat.com>
22474
22475         avoid distracting test output when git or cvs is not found
22476         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
22477         * tests/test-vc-list-files-git.sh: Likewise.
22478
22479 2008-05-15  Eric Blake  <ebb9@byu.net>
22480
22481         Glibc finally accepted the memmem speedup code, bugzilla #5514.
22482         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
22483         glibc version.
22484         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22485         * doc/posix-functions/strstr.texi (strstr): Likewise.
22486         * lib/str-two-way.h (MAX): Sychronize with glibc.
22487
22488 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
22489
22490         * lib/regcomp.c (optimize_utf8): Add a note on why we test
22491         opr.ctx_type.
22492         (calc_first): Initialize constraint field.
22493         (duplicate_node_closure): Use it instead of special casing ANCHORS.
22494         Fix grammar.
22495         (duplicate_node): Merge constraint field for all node types.
22496         (calc_eclosure_iter): Look at constraint field for all node types.
22497         * lib/regex_internal.c (create_cd_newstate): Don't look at
22498         opr.ctx_type.
22499
22500 2008-05-14  Bruno Haible  <bruno@clisp.org>
22501
22502         Help GCC to do better code generation.
22503         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
22504         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22505         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
22506         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
22507         Declare with attribute 'malloc' if supported.
22508
22509 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
22510
22511         use "echo STR|wc -c" rather than unportable "expr length STR"
22512         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
22513         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
22514
22515 2008-05-14  Jim Meyering  <meyering@redhat.com>
22516
22517         use dd ibs=$n count=1 ... rather than less-portable head -c$n
22518         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
22519         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
22520         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
22521         via Collin Lasse.
22522
22523 2008-05-14  Eric Blake  <ebb9@byu.net>
22524
22525         Avoid quadratic growth in gl_LIBSOURCES.
22526         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
22527         Suggested by Bruno Haible.
22528
22529         Test xmemdup0.
22530         * modules/xmemdup0-tests: New file.
22531         * tests/test-xmemdup0.c: Likewise.
22532
22533 2008-05-13  Eric Blake  <ebb9@byu.net>
22534
22535         Split xmemdup0 into its own module.
22536         * modules/xmemdup0: New file.
22537         * lib/xmemdup0.h: Likewise.
22538         * lib/xmemdup0.c: Likewise.
22539         * MODULES.html.sh (Memory management functions): Add xmemdup0.
22540         * lib/xalloc.h (xmemdup0): Remove.
22541         * lib/xmalloc.c (xmemdup0): Likewise.
22542
22543 2008-05-13  Eric Blake  <ebb9@byu.net>
22544             Bruno Haible  <bruno@clisp.org>
22545
22546         Reduce number of forks required during autoconf.
22547         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
22548         and gl_LIBSOURCES_DIR.
22549         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
22550         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
22551         m4_syscmd per file.
22552         <m4_foreach_w>: Move...
22553         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
22554
22555 2008-05-13  Eric Blake  <ebb9@byu.net>
22556
22557         * gnulib-tool: Fix various comment typos.
22558
22559 2008-05-12  Bruno Haible  <bruno@clisp.org>
22560
22561         Tailor the linebreaking algorithm.
22562         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
22563
22564 2008-05-12  Bruno Haible  <bruno@clisp.org>
22565
22566         Update to Unicode 5.0.0.
22567         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22568         LBP_JV, LBP_JT. Redistribute values.
22569         (unilbrk_table): Change size.
22570         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
22571         Unicode TR#14 rev. 22.
22572         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22573         LBP_JV, LBP_JT. Redistribute values.
22574         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
22575         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
22576         Update.
22577         * lib/unilbrk/lbrkprop1.h: Regenerated.
22578         * lib/unilbrk/lbrkprop2.h: Regenerated.
22579         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
22580         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
22581         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
22582         Likewise.
22583         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
22584         Likewise.
22585         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
22586         result.
22587         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22588         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22589         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22590         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
22591         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
22592         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
22593
22594 2008-05-11  Bruno Haible  <bruno@clisp.org>
22595
22596         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
22597
22598 2008-05-11  Bruno Haible  <bruno@clisp.org>
22599
22600         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
22601         * modules/unilbrk/gen-lbrk: New file.
22602
22603 2008-05-11  Bruno Haible  <bruno@clisp.org>
22604
22605         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
22606         * m4/sha512.m4 (gl_SHA512): Likewise.
22607
22608 2008-05-11  Jim Meyering  <meyering@redhat.com>
22609
22610         New modules: crypto/sha256, crypto/sha512 (from coreutils)
22611         * modules/crypto/sha256: New file.
22612         * modules/crypto/sha512: Likewise.
22613         * lib/sha256.c: Likewise.
22614         * lib/sha256.h: Likewise.
22615         * lib/sha512.c: Likewise.
22616         * lib/sha512.h: Likewise.
22617         * lib/u64.h: Likewise.
22618         * m4/sha256.m4: Likewise.
22619         * m4/sha512.m4: Likewise.
22620         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
22621
22622 2008-05-10  Bruno Haible  <bruno@clisp.org>
22623
22624         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
22625         (Input/Output <stdio.h>): Add xprintf.
22626         (Signal handling <signal.h>): Add strsignal.
22627         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
22628         (Core language properties): Add func.
22629         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
22630         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
22631         strings.
22632         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
22633         (Input/output): New section.
22634         (File system functions): Add openat-die, stat-macros.
22635         (Networking functions): Add sockets.
22636         (Unicode string functions): Add unictype/*.
22637         (Support for building libraries and executables): Add gperf.
22638         (Support for building documentation): Add agpl-3.0.
22639         (Misc): Add nocrash.
22640
22641 2008-05-10  Bruno Haible  <bruno@clisp.org>
22642
22643         * modules/unictype/gen-ctype: New file.
22644
22645 2008-05-10  Jim Meyering  <meyering@redhat.com>
22646
22647         Make chdir-safer.c more efficient on a system with no symlinks.
22648         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
22649         also if ELOOP is zero.  Suggested by Bruno Haible.
22650
22651         Make chdir-safer.c slightly safer.
22652         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
22653         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
22654
22655         Avoid compile failure on systems without ELOOP (like mingw).
22656         * lib/chdir-safer.c (ELOOP): Define if not already defined.
22657         Reported by Bruno Haible.
22658
22659 2008-05-10  Bruno Haible  <bruno@clisp.org>
22660
22661         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
22662         (is_utf8_encoding): Use a case-insensitive comparison.
22663         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
22664         streq.
22665
22666 2008-05-10  Bruno Haible  <bruno@clisp.org>
22667
22668         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
22669         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
22670         * lib/unilbrk/ulc-common.h (iconv_string_length,
22671         iconv_string_keeping_offsets): Remove declarations.
22672         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
22673         Don't include <iconv.h>, streq.h, xsize.h.
22674         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
22675         conversion.
22676         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
22677         <iconv.h>, streq.h, xsize.h.
22678         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
22679         conversion.
22680         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
22681         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
22682         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
22683         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
22684
22685 2008-05-10  Bruno Haible  <bruno@clisp.org>
22686
22687         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
22688         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
22689
22690         * modules/unilbrk/u32-width-linebreaks-tests: New file.
22691         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
22692
22693         * modules/unilbrk/u16-width-linebreaks-tests: New file.
22694         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
22695
22696         * modules/unilbrk/u8-width-linebreaks-tests: New file.
22697         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
22698
22699         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
22700         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
22701
22702         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
22703         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
22704
22705         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
22706         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
22707
22708         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
22709         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
22710
22711 2008-05-10  Bruno Haible  <bruno@clisp.org>
22712
22713         Split up 'linebreak' module.
22714         * lib/unilbrk.h: New file, based on lib/linebreak.h.
22715         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
22716         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
22717         modifications.
22718         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
22719         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
22720         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
22721         lib/linebreak.c.
22722         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
22723         lib/linebreak.c.
22724         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
22725         lib/linebreak.c.
22726         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
22727         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
22728         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
22729         lib/linebreak.c.
22730         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
22731         lib/linebreak.c.
22732         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
22733         lib/linebreak.c.
22734         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
22735         lib/linebreak.c.
22736         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
22737         lib/linebreak.c.
22738         * modules/unilbrk/base: New file.
22739         * modules/unilbrk/tables: New file.
22740         * modules/unilbrk/u8-possible-linebreaks: New file.
22741         * modules/unilbrk/u16-possible-linebreaks: New file.
22742         * modules/unilbrk/u32-possible-linebreaks: New file.
22743         * modules/unilbrk/ulc-common: New file.
22744         * modules/unilbrk/ulc-possible-linebreaks: New file.
22745         * modules/unilbrk/u8-width-linebreaks: New file.
22746         * modules/unilbrk/u16-width-linebreaks: New file.
22747         * modules/unilbrk/u32-width-linebreaks: New file.
22748         * modules/unilbrk/ulc-width-linebreaks: New file.
22749         * lib/linebreak.h: Remove file.
22750         * lib/linebreak.c: Remove file.
22751         * m4/linebreak.m4: Remove file.
22752         * modules/linebreak: Remove file.
22753         * NEWS: Mention the changes.
22754
22755 2008-05-09  Eric Blake  <ebb9@byu.net>
22756
22757         Add xmemdup0.
22758         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
22759         implementation.
22760         * lib/xmalloc.c (xmemdup0): New C implementation.
22761
22762 2008-05-08  Bruno Haible  <bruno@clisp.org>
22763
22764         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
22765
22766 2008-05-07  Eric Blake  <ebb9@byu.net>
22767
22768         Support cross-compilation of <wctype.h>.
22769         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
22770         AC_CACHE_CHECK.
22771
22772 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
22773
22774         * build-aux/vc-list-files: Add support for bzr.
22775
22776 2008-05-03  Jim Meyering  <meyering@redhat.com>
22777
22778         avoid failed assertion with tight malloc
22779         * tests/test-getndelim2.c: Correct an off-by-one assertion.
22780
22781 2008-05-03  Simon Josefsson  <simon@josefsson.org>
22782
22783         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
22784         are needed from arpa/inet.h.
22785         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
22786         Reported by Bruno Haible.
22787
22788 2008-05-02  Jim Meyering  <meyering@redhat.com>
22789
22790         avoid compilation error on FreeBSD 6
22791         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
22792
22793 2008-05-01  Jim Meyering  <meyering@redhat.com>
22794
22795         useless-if-before-free: correct --help's exit status description
22796         * build-aux/useless-if-before-free (usage): Like grep, exit 0
22797         for one or more matches, etc.  Reported by Bruno Haible.
22798
22799         vc-list-files: make the stand-alone gnulib test work
22800         * modules/vc-list-files-tests (configure.ac):
22801         Define and AC_SUBST abs_aux_dir.
22802         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
22803         $(abs_top_srcdir) to each script and having each of them
22804         duplicate the work of setting PATH, set PATH here, using
22805         the new variable, abs_aux_dir instead.
22806         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
22807         * tests/test-vc-list-files-git.sh: Likewise.
22808         Reported by Bruno Haible.
22809
22810 2008-05-01  Bruno Haible  <bruno@clisp.org>
22811
22812         * lib/getndelim2.c (getndelim2): Fix newsize computation during
22813         reallocation. Rename 'done' to 'found_delimiter'.
22814
22815 2008-05-01  Jim Meyering  <meyering@redhat.com>
22816
22817         vc-list-files: accommodate /bin/sh like the one from Solaris 10
22818         * build-aux/vc-list-files: Use `...`, not $(...).
22819
22820 2008-04-30  Jim Meyering  <meyering@redhat.com>
22821
22822         add tests for vc-list-files
22823         * modules/vc-list-files-tests: New module.
22824         * tests/test-vc-list-files-cvs.sh: New file.
22825         * tests/test-vc-list-files-git.sh: New file.
22826
22827         avoid a warning from gcc
22828         * lib/getndelim2.c (IF_LINT): Define.
22829         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
22830
22831         vc-list-files: work properly with build-aux/cvsu, too
22832         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
22833         to all cvs-based clauses.
22834
22835         vc-list-files: work properly in the CVS+awk case, too
22836         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
22837
22838         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
22839         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
22840         take more than one file argument, so .  Add quotes, just in case $dir
22841         ever contains a shell meta-character.  Prompted by Soren Hansen in
22842         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
22843
22844 2008-04-29  Eric Blake  <ebb9@byu.net>
22845
22846         Optimize getndelim2 to use block operations when possible.
22847         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
22848         freadseek, and memchr2.
22849         * lib/getndelim2.c (getndelim2): Use them for block reads.
22850
22851 2008-04-29  Bruno Haible  <bruno@clisp.org>
22852
22853         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
22854         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22855         * modules/inet_ntop (Depends-on): Add extensions.
22856         * modules/inet_pton (Depends-on): Likewise.
22857         Reported by Simon Josefsson.
22858
22859 2008-04-29  Jim Meyering  <meyering@redhat.com>
22860
22861         When the is more than one match in a block, match all of them.
22862         * build-aux/useless-if-before-free: Iterate through each block
22863         until there are no more matches.
22864
22865         Fix broken useless-if-before-free script.
22866         * build-aux/useless-if-before-free: Fix typo: missing "?" after
22867         the expression to match cast of argument to free-like function.
22868
22869 2008-04-29  Eric Blake  <ebb9@byu.net>
22870
22871         Use new header.
22872         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
22873
22874 2008-04-29  Jim Meyering  <meyering@redhat.com>
22875
22876         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
22877         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
22878         by gnulib to exist and to declare e.g., inet_ntop.
22879         Don't include "inet_ntop.h", now removed.
22880
22881         * m4/arpa_inet_h.m4: Remove trailing blanks.
22882
22883 2008-04-29  Eric Blake  <ebb9@byu.net>
22884
22885         Silence valgrind on safe reads beyond potential array bounds.
22886         * lib/rawmemchr.valgrind: New file.
22887         * lib/strchrnul.valgrind: Likewise.
22888         * modules/rawmemchr (Files): Distribute new file.
22889         * modules/strchrnul (Files): Likewise.
22890         Suggested by Bruno Haible.
22891
22892 2008-04-29  Bruno Haible  <bruno@clisp.org>
22893
22894         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
22895         (inet_ntop, inet_pton): Change portability warning's wording.
22896         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
22897         Invoke gl_CHECK_NEXT_HEADERS.
22898         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
22899         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
22900         set ARPA_INET_H.
22901         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22902         * modules/arpa_inet (Description): No longer only for systems that
22903         lack it.
22904         (Depends-on): Add include_next.
22905         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
22906         HAVE_ARPA_INET_H.
22907
22908 2008-04-29  Jim Meyering  <meyering@redhat.com>
22909
22910         * modules/mkdir (License): Re-license as LGPLv2+.
22911
22912 2008-04-29  Bruno Haible  <bruno@clisp.org>
22913
22914         * modules/rawmemchr (Maintainer): Set to Eric.
22915         * modules/strchrnul (Maintainer): Likewise.
22916
22917 2008-04-29  Simon Josefsson  <simon@josefsson.org>
22918
22919         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
22920         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
22921
22922         * modules/arpa_inet (arpa/inet.h): Use them.
22923
22924 2008-04-28  Eric Blake  <ebb9@byu.net>
22925
22926         Test getndelim2.
22927         * modules/getndelim2-tests: New file.
22928         * tests/test-getndelim2.c: Likewise.
22929         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
22930         stream.
22931         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
22932
22933         * MODULES.html.sh: Document new module.
22934
22935 2008-04-20  Bruno Haible  <bruno@clisp.org>
22936
22937         * lib/c-stack.c (die): Use raise.
22938         * modules/c-stack (Depends-on): Add raise.
22939
22940 2008-04-28  Bruno Haible  <bruno@clisp.org>
22941
22942         Expect rpmatch to be declared.
22943         * lib/yesno.c (rpmatch): Remove declaration.
22944
22945         Declare rpmatch.
22946         * lib/stdlib.in.h (rpmatch): New declaration.
22947         * lib/rpmatch.c: Include <stdlib.h> first.
22948         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
22949         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
22950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
22951         HAVE_RPMATCH.
22952         * modules/rpmatch (Depends-on): Add stdlib, extensions.
22953         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22954         (Include): Set to <stdlib.h>.
22955         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
22956         HAVE_RPMATCH.
22957         * NEWS: Document the change.
22958
22959 2008-04-28  Bruno Haible  <bruno@clisp.org>
22960
22961         Change rpmatch to use nl_langinfo when appropriate.
22962         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
22963         (N_): New macro.
22964         (localized_pattern): New function/macro.
22965         (try): Remove match, nomatch arguments. Copy the pattern into safe
22966         memory before caching it.
22967         (rpmatch): Use localized_pattern. Add translator comments.
22968         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
22969         Suggested by Eric Blake.
22970         * modules/rpmatch (Depends-on): Add stdbool.
22971
22972 2008-04-28  Eric Blake  <ebb9@byu.net>
22973
22974         Add rawmemchr module, matching glibc.
22975         * modules/string (Makefile.am): New indicator.
22976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
22977         * lib/string.in.h (rawmemchr): Declare when appropriate.
22978         * modules/rawmemchr: New file.
22979         * m4/rawmemchr.m4: Likewise.
22980         * lib/rawmemchr.c: Likewise.
22981         * modules/rawmemchr-tests: Likewise.
22982         * tests/test-rawmemchr.c: Likewise.
22983         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
22984         module.
22985         * modules/strchrnul (Depends-on): Add rawmemchr.
22986         * lib/strchrnul.c (strchrnul): Optimize a corner case.
22987
22988         Whitespace cleanup.
22989         * tests/test-strchrnul.c: Reindent.
22990         * lib/strchrnul.c: Likewise.
22991
22992         Optimize and test strchrnul.
22993         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
22994         * modules/strchrnul-tests: New file.
22995         * tests/test-strchrnul.c: Likewise.
22996
22997         Remove intprops dependency.
22998         * modules/memchr (Depends-on): Remove intprops.
22999         * modules/memrchr (Depends-on): Likewise.
23000         * modules/memchr2 (Depends-on): Likewise.
23001         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23002         * lib/memrchr.c (__memrchr): Likewise.
23003         * lib/memrchr2.c (memchr2): Likewise.
23004         Reported by Simon Josefsson.
23005
23006 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23007
23008         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23009         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23010
23011 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23012
23013         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23014
23015         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23016
23017         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23018
23019         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23020         declarations.
23021         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23022
23023         * m4/inet_pton.m4: Don't check for header files.
23024
23025         * m4/inet_ntop.m4: Don't check for header files.
23026
23027 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23028
23029         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23030         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23031         trigger for cygwin).
23032         Reported by Bruno Haible  <bruno@clisp.org>.
23033
23034 2008-04-28  Bruno Haible  <bruno@clisp.org>
23035
23036         * doc/posix-functions/strdup.texi: Mention mingw problem.
23037
23038 2008-04-27  Bruno Haible  <bruno@clisp.org>
23039
23040         * modules/stat-time-tests (Depends-on): Add sleep.
23041         * tests/test-stat-time.c (force_unlink): New function.
23042         (cleanup): Use it.
23043         (test_mtime): Remove the ctime related tests.
23044         (test_ctime): New function, containing the ctime related tests.
23045         (main): Call test_ctime, except on native Windows platforms.
23046
23047 2008-04-27  Bruno Haible  <bruno@clisp.org>
23048
23049         * lib/rpmatch.c (rpmatch): Add some comments.
23050         Reported by James Youngman <jay@gnu.org>.
23051
23052 2008-04-27  Bruno Haible  <bruno@clisp.org>
23053
23054         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23055         quiet NaNs.
23056
23057 2008-04-27  Bruno Haible  <bruno@clisp.org>
23058
23059         Make test-yesno.sh work on mingw.
23060         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23061         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23062         (main): Set stdin to binary mode.
23063         * modules/yesno-tests (Depends-on): Add binary-io.
23064
23065 2008-04-27  Bruno Haible  <bruno@clisp.org>
23066
23067         Fix 'isfinite' on x86, x86_64, ia64 platforms.
23068         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23069         argument that lie outside the IEEE 854 domain.
23070         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23071         (gl_ISFINITE): Use it.
23072         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23073
23074 2008-04-27  Bruno Haible  <bruno@clisp.org>
23075
23076         Allow local renaming in config.h.
23077         * lib/memrchr.c (memrchr): Don't undefine outside libc.
23078
23079 2008-04-27  Bruno Haible  <bruno@clisp.org>
23080
23081         * lib/memchr.c (__memchr): Change type of 'i'.
23082         * lib/memchr2.c (memchr2): Likewise.
23083
23084 2008-04-26  Eric Blake  <ebb9@byu.net>
23085         and Bruno Haible  <bruno@clisp.org>
23086
23087         Optimize and test memrchr.
23088         * modules/memrchr (Depends-on): Add intprops.
23089         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23090         * modules/memrchr-tests: New file.
23091         * tests/test-memrchr.c: New file.
23092
23093 2008-04-26  Bruno Haible  <bruno@clisp.org>
23094
23095         Add tentative support for DragonFly BSD.
23096         * lib/stdio-impl.h: Add macros for DragonFly BSD.
23097         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23098         fp.
23099         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23100         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23101         * lib/fpurge.c (fpurge): Likewise.
23102         * lib/freadable.c (freaadable): Likewise.
23103         * lib/freadahead.c (freadahead): Likewise.
23104         * lib/freading.c (freading): Likewise.
23105         * lib/freadptr.c (freadptr): Likewise.
23106         * lib/freadseek.c (freadptrinc): Likewise.
23107         * lib/fseeko.c (fseeko): Likewise.
23108         * lib/fseterr.c (fseterr): Likewise.
23109         * lib/fwritable.c (fwritable): Likewise.
23110         * lib/fwriting.c (fwriting): Likewise.
23111
23112 2008-04-26  Bruno Haible  <bruno@clisp.org>
23113
23114         * lib/stdio-impl.h: New file.
23115         * lib/fbufmode.c: Include stdio-impl.h.
23116         (fbufmode): Use fp_, remove redundant #defines.
23117         * lib/fflush.c: Include stdio-impl.h.
23118         (clear_ungetc_buffer): Remove redundant #defines.
23119         * lib/fpurge.c: Include stdio-impl.h.
23120         (fpurge): Remove redundant #defines.
23121         * lib/freadable.c: Include stdio-impl.h.
23122         (freadable): Remove redundant #defines.
23123         * lib/freadahead.c: Include stdio-impl.h.
23124         (freadahead): Remove redundant #defines.
23125         * lib/freading.c: Include stdio-impl.h.
23126         (freading): Remove redundant #defines.
23127         * lib/freadptr.c: Include stdio-impl.h.
23128         (freadptr): Remove redundant #defines.
23129         * lib/freadseek.c: Include stdio-impl.h.
23130         (freadptrinc): Remove redundant #defines.
23131         * lib/fseeko.c: Include stdio-impl.h.
23132         (rpl_fseeko): Remove redundant #defines.
23133         * lib/fseterr.c: Include stdio-impl.h.
23134         (fseterr): Remove redundant #defines.
23135         * lib/fwritable.c: Include stdio-impl.h.
23136         (fwritable: Remove redundant #defines.
23137         * lib/fwriting.c: Include stdio-impl.h.
23138         (fwriting): Remove redundant #defines.
23139         * modules/fbufmode (Files): Add lib/stdio-impl.h.
23140         * modules/fflush (Files): Likewise.
23141         * modules/fpurge (Files): Likewise.
23142         * modules/freadable (Files): Likewise.
23143         * modules/freadahead (Files): Likewise.
23144         * modules/freading (Files): Likewise.
23145         * modules/freadptr (Files): Likewise.
23146         * modules/freadseek (Files): Likewise.
23147         * modules/fseeko (Files): Likewise.
23148         * modules/fseterr (Files): Likewise.
23149         * modules/fwritable (Files): Likewise.
23150         * modules/fwriting (Files): Likewise.
23151
23152 2008-04-26  Bruno Haible  <bruno@clisp.org>
23153
23154         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23155         restore_seek_optimization, update_fpos_cache): New functions, extracted
23156         from rpl_fflush.
23157         (rpl_fflush): Use them.
23158         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23159         (gl_REPLACE_FFLUSH): Use it.
23160
23161 2008-04-26  Bruno Haible  <bruno@clisp.org>
23162
23163         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23164         on Solaris.
23165         * tests/test-xstrtoimax.sh: Likewise.
23166         * tests/test-xstrtoumax.sh: Likewise.
23167         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23168
23169 2008-04-26  Bruno Haible  <bruno@clisp.org>
23170
23171         * modules/memchr-tests: New file.
23172         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23173
23174 2008-04-26  Eric Blake  <ebb9@byu.net>
23175             Bruno Haible  <bruno@clisp.org>
23176
23177         * lib/memchr.c: Include intprops.h.
23178         (__memchr): Optimize parallel detection of matching bytes. Rename local
23179         variables. Add explanatory comments.
23180
23181 2008-04-26  Bruno Haible  <bruno@clisp.org>
23182
23183         Fix module 'memchr', broken since 2000-10-28.
23184         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23185
23186 2008-04-26  Bruno Haible  <bruno@clisp.org>
23187
23188         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23189         comments.
23190
23191 2008-04-25  Eric Blake  <ebb9@byu.net>
23192
23193         Use native fstatat on cygwin 1.7.0.
23194         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23195         first.
23196
23197 2008-04-23  Eric Blake  <ebb9@byu.net>
23198
23199         Improve memchr2 performance.
23200         * lib/memchr2.c (memchr2): Further optimize parallel detection of
23201         NUL bytes.
23202         * modules/memchr2 (Depends-on): Use intprops.h.
23203
23204 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23205
23206         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23207         an inline function instead of a CPP macro.  Patch by Ben Pfaff
23208         <blp@cs.stanford.edu>.
23209
23210 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23211
23212         * lib/arpa_inet.in.h: New file.
23213
23214         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23215         (Makefile.am): Sed in substitute header file.
23216
23217         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23218         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
23219
23220         * modules/inet_ntop (configure.ac): Use
23221         gl_ARPA_INET_MODULE_INDICATOR.
23222
23223         * modules/inet_pton (configure.ac): Use
23224         gl_ARPA_INET_MODULE_INDICATOR.
23225
23226 2008-04-22  Jim Meyering  <meyering@redhat.com>
23227
23228         * modules/verify (License): Re-license as LGPLv2+.
23229
23230 2008-04-22  Simon Josefsson  <simon@josefsson.org>
23231
23232         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23233         parameter to void* as per POSIX standard (MinGW uses char*).
23234
23235 2008-04-21  Bruno Haible  <bruno@clisp.org>
23236
23237         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23238         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23239         Define to replacements if REPLACE_ISWCNTRL is 1.
23240         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23241         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23242         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23243         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23244         what it fixes.
23245         * doc/posix-functions/iswalpha.texi: Likewise.
23246         * doc/posix-functions/iswblank.texi: Likewise.
23247         * doc/posix-functions/iswcntrl.texi: Likewise.
23248         * doc/posix-functions/iswdigit.texi: Likewise.
23249         * doc/posix-functions/iswgraph.texi: Likewise.
23250         * doc/posix-functions/iswlower.texi: Likewise.
23251         * doc/posix-functions/iswprint.texi: Likewise.
23252         * doc/posix-functions/iswpunct.texi: Likewise.
23253         * doc/posix-functions/iswspace.texi: Likewise.
23254         * doc/posix-functions/iswupper.texi: Likewise.
23255         * doc/posix-functions/iswxdigit.texi: Likewise.
23256         Reported by Alain Guibert.
23257
23258 2008-04-21  Bruno Haible  <bruno@clisp.org>
23259
23260         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23261         Patch by Alain Guibert.
23262
23263 2008-04-21  Bruno Haible  <bruno@clisp.org>
23264
23265         Fix test failures on mingw.
23266         * tests/test-xstrtol.c (print_no_progname): New function.
23267         (main): Install it in error_print_progname hook.
23268         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23269         * tests/test-xstrtoimax.sh: Likewise.
23270         * tests/test-xstrtoumax.sh: Likewise.
23271
23272 2008-04-21  Bruno Haible  <bruno@clisp.org>
23273
23274         Fix test failure on mingw.
23275         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23276
23277 2008-04-21  Bruno Haible  <bruno@clisp.org>
23278
23279         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23280         Actually assign a value.
23281
23282 2008-04-20  Bruno Haible  <bruno@clisp.org>
23283
23284         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23285         take 2.
23286         * lib/canonicalize.c (canonicalize_file_name): Elide if the
23287         'canonicalize-lgpl' module is also used.
23288         * lib/canonicalize-lgpl.c: Undo last change.
23289         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23290
23291 2008-04-20  Bruno Haible  <bruno@clisp.org>
23292
23293         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
23294         config.h. Provide _mkdir based fallback for mingw.
23295         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
23296         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
23297         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
23298         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
23299         rather than defining mkdir in config.h.
23300         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
23301         (gl_SYS_STAT_H_DEFAULTS): New macro.
23302         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
23303         HAVE_IO_H any more.
23304         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
23305         HAVE_DECL_MKDIR and HAVE_IO_H.
23306
23307 2008-04-20  Bruno Haible  <bruno@clisp.org>
23308
23309         * lib/isapipe.c: Port to native Windows platforms.
23310
23311 2008-04-20  Bruno Haible  <bruno@clisp.org>
23312
23313         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
23314
23315 2008-04-21  Eric Blake  <ebb9@byu.net>
23316
23317         Work around preprocessors that don't handle UINTMAX_MAX.
23318         * lib/memchr2.c (memchr2): Avoid embedded #if.
23319         Reported by Alain Guibert, fix suggested by Bruno Haible.
23320
23321 2008-04-21  Simon Josefsson  <simon@josefsson.org>
23322
23323         * doc/posix-functions/strftime.texi (strftime): Explain better
23324         Windows incompatibility.  Suggested by Micah Cowan
23325         <micah@cowan.name>.
23326
23327 2008-04-20  Bruno Haible  <bruno@clisp.org>
23328
23329         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
23330         unistr/u8-mblen.
23331
23332 2008-04-20  Bruno Haible  <bruno@clisp.org>
23333
23334         Fix test failure on platforms with non-GNU iconv.
23335         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
23336         (U_TO_U8): Use it, rather than u16_to_u8.
23337         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
23338         units at the end of the input string.
23339         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
23340
23341 2008-04-20  Bruno Haible  <bruno@clisp.org>
23342
23343         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
23344         when the resulting length is 0.
23345         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
23346
23347 2008-04-20  Bruno Haible  <bruno@clisp.org>
23348
23349         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
23350         works.
23351         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
23352
23353 2008-04-20  Bruno Haible  <bruno@clisp.org>
23354
23355         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
23356         * modules/tsearch-tests (configure.ac): Test for initstate function.
23357
23358 2008-04-20  Bruno Haible  <bruno@clisp.org>
23359
23360         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
23361         for nlink_t if missing.
23362         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
23363
23364 2008-04-19  Bruno Haible  <bruno@clisp.org>
23365
23366         Work around snprintf bug on Linux libc5.
23367         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
23368         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23369         gl_SNPRINTF_SIZE1.
23370         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23371         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
23372         that test failed.
23373         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
23374         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
23375         * modules/snprintf (Files): Add m4/printf.m4.
23376         * modules/vsnprintf (Files): Likewise.
23377         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
23378         * doc/posix-functions/vsnprintf.texi: Likewise.
23379
23380 2008-04-19  Bruno Haible  <bruno@clisp.org>
23381
23382         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
23383         from 0.0058 to less than 10^-7.
23384
23385 2008-04-19  Bruno Haible  <bruno@clisp.org>
23386
23387         Fix rounding when a precision is given.
23388         * lib/vasnprintf.c (is_borderline): New function.
23389         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
23390         9...9x.
23391         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
23392         %e, %g.
23393         * tests/test-vasprintf-posix.c (test_function): Likewise.
23394         * tests/test-snprintf-posix.h (test_function): Likewise.
23395         * tests/test-sprintf-posix.h (test_function): Likewise.
23396         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
23397         * tests/test-printf-posix.h (test_function): Likewise.
23398         * tests/test-printf-posix.output: Update.
23399         Reported by John Darrington <john@darrington.wattle.id.au> via
23400         Ben Pfaff <blp@cs.stanford.edu>.
23401
23402 2008-04-18  Simon Josefsson  <simon@josefsson.org>
23403
23404         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
23405         Suggested by Bruno Haible <bruno@clisp.org>.
23406
23407 2008-04-17  Bruno Haible  <bruno@clisp.org>
23408
23409         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
23410         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
23411         implementation.
23412         Patch by Bruce Merry <bmerry@gmail.com>.
23413
23414 2008-04-17  Simon Josefsson  <simon@josefsson.org>
23415
23416         * doc/posix-functions/strftime.texi (strftime): Mention that %e
23417         doesn't work under Windows.
23418
23419 2008-04-16  Bruno Haible  <bruno@clisp.org>
23420
23421         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
23422         New macros.
23423         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
23424         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
23425         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
23426         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
23427         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
23428         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
23429         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
23430         macros.
23431         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
23432         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
23433         Northern Sotho, Uighur.
23434
23435 2008-04-16  Bruno Haible  <bruno@clisp.org>
23436
23437         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
23438         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
23439         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
23440         Reported by Daniel Bergström <daniel@octocode.com>.
23441
23442 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
23443             Bruno Haible  <bruno@clisp.org>
23444
23445         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
23446         function.
23447         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
23448         New functions, mostly extracted from gl_locale_name_default.
23449         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
23450
23451 2008-04-16  Eric Blake  <ebb9@byu.net>
23452
23453         Adjust strtod detection to catch glibc 2.7 bug.
23454         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
23455         Reported by John Gatewood Ham.
23456
23457 2008-04-16  Bruno Haible  <bruno@clisp.org>
23458
23459         Add tentative support for Linux libc5.
23460         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
23461         * lib/fpurge.c (fpurge): Likewise.
23462         * lib/freadable.c (freadable): Likewise.
23463         * lib/freadahead.c (freadahead): Likewise.
23464         * lib/freading.c (freading): Likewise.
23465         * lib/freadptr.c (freadptr): Likewise.
23466         * lib/freadseek.c (freadptrinc): Likewise.
23467         * lib/fseeko.c (rpl_fseeko): Likewise.
23468         * lib/fseterr.c (fseterr): Likewise.
23469         * lib/fwritable.c (fwritable): Likewise.
23470         * lib/fwriting.c (fwriting): Likewise.
23471         Reported by Alain Guibert <alguibert+bts@free.fr>.
23472
23473 2008-04-15  Bruno Haible  <bruno@clisp.org>
23474
23475         * modules/mathl (configure.ac): Define module indicator.
23476
23477 2008-04-15  Bruno Haible  <bruno@clisp.org>
23478
23479         * lib/logl.c (logl): Remove unused variables.
23480
23481 2008-04-15  Bruno Haible  <bruno@clisp.org>
23482
23483         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
23484         fails.
23485
23486 2008-04-15  Bruno Haible  <bruno@clisp.org>
23487
23488         * lib/trim.c (trim2): Fix argument of isspace() macro.
23489
23490 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
23491
23492         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
23493         to 0.
23494         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
23495
23496 2008-04-14  Bruno Haible  <bruno@clisp.org>
23497
23498         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
23499         AC_LANG_PROGRAM argument.
23500         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
23501         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
23502         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23503         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23504         * m4/math_h.m4 (gl_MATH_H): Likewise.
23505         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23506         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23507         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23508         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23509         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23510         * m4/regex.m4 (gl_REGEX): Likewise.
23511         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
23512         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
23513         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23514         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
23515         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
23516         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23517         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23518         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23519
23520 2008-04-14  Jim Meyering  <meyering@redhat.com>
23521
23522         test-strtod: fix typos: s/abs/fabs/
23523         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
23524
23525 2008-04-13  Bruno Haible  <bruno@clisp.org>
23526
23527         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
23528         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
23529         module is also used and while not building the reloc-wrapper.
23530
23531 2008-04-13  Bruno Haible  <bruno@clisp.org>
23532
23533         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
23534
23535 2008-04-13  Bruno Haible  <bruno@clisp.org>
23536
23537         Fix AIX compilation failure introduced on 2008-04-02.
23538         * tests/test-frexp.c (exp): Undefine before redefining.
23539         * tests/test-frexpl.c (exp): Likewise.
23540
23541 2008-04-13  Bruno Haible  <bruno@clisp.org>
23542
23543         Work around a HP-UX stdio bug.
23544         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
23545         * tests/test-ftello.c (main): Likewise.
23546         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
23547         * doc/posix-functions/ftello.texi: Likewise.
23548
23549 2008-04-13  Bruno Haible  <bruno@clisp.org>
23550
23551         Make test-signbit pass on HP-UX/hppa.
23552         * tests/test-signbit.c (minus_zerol): New variable.
23553         (test_signbitl): Use it.
23554
23555 2008-04-13  Bruno Haible  <bruno@clisp.org>
23556
23557         Make truncl work on OSF/1 4.0.
23558         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
23559         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23560         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
23562         HAVE_DECL_TRUNCL.
23563         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
23564         HAVE_DECL_TRUNCL.
23565         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
23566
23567 2008-04-13  Bruno Haible  <bruno@clisp.org>
23568
23569         * lib/unictype.h: Remove trailing comma from enumeration definitions.
23570
23571 2008-04-13  Bruno Haible  <bruno@clisp.org>
23572
23573         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
23574         expression, so as to avoid HP-UX 11 cc compiler bug.
23575
23576 2008-04-13  Bruno Haible  <bruno@clisp.org>
23577
23578         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
23579
23580 2008-04-13  Bruno Haible  <bruno@clisp.org>
23581
23582         * lib/git-merge-changelog.c: Remove empty declaration outside of
23583         functions.
23584
23585 2008-04-13  Bruno Haible  <bruno@clisp.org>
23586
23587         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
23588
23589 2008-04-13  Bruno Haible  <bruno@clisp.org>
23590
23591         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
23592         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
23593         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
23594         also if it exists but lacks definitions of the SHUT_* macros.
23595         * modules/sys_socket (Description): Update.
23596         Reported by Elbert Pol <e.pol@chello.nl>.
23597
23598 2008-04-13  Bruno Haible  <bruno@clisp.org>
23599
23600         * lib/localcharset.c (OS2): Don't redefine if already defined.
23601         Reported by Elbert Pol <e.pol@chello.nl>.
23602
23603 2008-04-13  Bruno Haible  <bruno@clisp.org>
23604
23605         * lib/binary-io.h [__EMX__]: Include <io.h>.
23606         Reported by Elbert Pol <e.pol@chello.nl>.
23607
23608 2008-04-12  Bruno Haible  <bruno@clisp.org>
23609
23610         * lib/fpucw.h: Enable the definitions also for x86_64.
23611         Needed for NetBSD/x86_64.
23612         Reported by Thomas Klausner <tk@giga.or.at>.
23613
23614 2008-04-12  Bruno Haible  <bruno@clisp.org>
23615
23616         * tests/test-strtod.c: Include isnand.h.
23617         (main): Use isnand instead of isnan.
23618         Reported by Jim Meyering.
23619
23620 2008-04-12  Bruno Haible  <bruno@clisp.org>
23621
23622         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
23623         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23624
23625 2008-04-12  Jim Meyering  <meyering@redhat.com>
23626
23627         * m4/math_h.m4 (gl_MATH_H): Fix typos.
23628
23629 2008-04-12  Bruno Haible  <bruno@clisp.org>
23630
23631         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
23632         Reported by Elbert Pol <e.pol@chello.nl>.
23633
23634 2008-04-12  Eric Blake  <ebb9@byu.net>
23635
23636         Work around Solaris 10 math.h bug.
23637         * m4/math_h.m4 (gl_MATH_H): Check for bug.
23638         (gl_MATH_H_DEFAULTS): Set up default.
23639         * modules/math (Makefile.am): Replace new indicators.
23640         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
23641         * tests/test-math.c (main): Test this.
23642         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
23643         * doc/posix-headers/math.texi (math.h): Mention bug.
23644         Reported by Nelson H. F. Beebe and Jim Meyering.
23645
23646 2008-04-11  Bruno Haible  <bruno@clisp.org>
23647
23648         Adapt to future versions of Apple GCC.
23649         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
23650         Reported by Peter O'Gorman <peter@pogma.com>.
23651
23652 2008-04-11  Bruno Haible  <bruno@clisp.org>
23653
23654         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
23655
23656 2008-04-11  Bruno Haible  <bruno@clisp.org>
23657
23658         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
23659
23660         * modules/getaddrinfo-tests (Makefile.am): Define
23661         test_getaddrinfo_LDADD.
23662
23663 2008-04-11  Bruno Haible  <bruno@clisp.org>
23664
23665         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
23666         (init): Fix syntax error.
23667         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
23668         is declared.
23669
23670 2008-04-11  Bruno Haible  <bruno@clisp.org>
23671
23672         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
23673         * modules/glob (Depends-on): Add stdbool.
23674
23675 2008-04-11  Bruno Haible  <bruno@clisp.org>
23676
23677         * lib/trim.c: Include <string.h>.
23678
23679 2008-04-11  Eric Blake  <ebb9@byu.net>
23680
23681         Avoid compile failure on OS/2.
23682         * lib/regex_internal.h (internal_function): Disable optimization
23683         on OS/2 (__EMX__), where it caused compiler error.
23684         Reported by Elbert Pol.
23685
23686 2008-04-11  Bruno Haible  <bruno@clisp.org>
23687
23688         Flush the standard error stream before aborting. Needed on mingw.
23689         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
23690         * tests/test-array_list.c (ASSERT): Likewise.
23691         * tests/test-array_oset.c (ASSERT): Likewise.
23692         * tests/test-avltree_list.c (ASSERT): Likewise.
23693         * tests/test-avltree_oset.c (ASSERT): Likewise.
23694         * tests/test-avltreehash_list.c (ASSERT): Likewise.
23695         * tests/test-binary-io.c (ASSERT): Likewise.
23696         * tests/test-byteswap.c (ASSERT): Likewise.
23697         * tests/test-c-ctype.c (ASSERT): Likewise.
23698         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
23699         * tests/test-c-strcasestr.c (ASSERT): Likewise.
23700         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
23701         * tests/test-c-strstr.c (ASSERT): Likewise.
23702         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
23703         * tests/test-canonicalize.c (ASSERT): Likewise.
23704         * tests/test-carray_list.c (ASSERT): Likewise.
23705         * tests/test-ceilf1.c (ASSERT): Likewise.
23706         * tests/test-ceilf2.c (ASSERT): Likewise.
23707         * tests/test-ceill.c (ASSERT): Likewise.
23708         * tests/test-count-one-bits.c (ASSERT): Likewise.
23709         * tests/test-fbufmode.c (ASSERT): Likewise.
23710         * tests/test-fflush2.c (ASSERT): Likewise.
23711         * tests/test-floorf1.c (ASSERT): Likewise.
23712         * tests/test-floorf2.c (ASSERT): Likewise.
23713         * tests/test-floorl.c (ASSERT): Likewise.
23714         * tests/test-fopen.c (ASSERT): Likewise.
23715         * tests/test-fpending.c (ASSERT): Likewise.
23716         * tests/test-fprintf-posix.c (ASSERT): Likewise.
23717         * tests/test-fpurge.c (ASSERT): Likewise.
23718         * tests/test-freadable.c (ASSERT): Likewise.
23719         * tests/test-freadahead.c (ASSERT): Likewise.
23720         * tests/test-freading.c (ASSERT): Likewise.
23721         * tests/test-freadptr.c (ASSERT): Likewise.
23722         * tests/test-freadptr2.c (ASSERT): Likewise.
23723         * tests/test-freadseek.c (ASSERT): Likewise.
23724         * tests/test-freopen.c (ASSERT): Likewise.
23725         * tests/test-frexp.c (ASSERT): Likewise.
23726         * tests/test-frexpl.c (ASSERT): Likewise.
23727         * tests/test-fseek.c (ASSERT): Likewise.
23728         * tests/test-fseeko.c (ASSERT): Likewise.
23729         * tests/test-fstrcmp.c (ASSERT): Likewise.
23730         * tests/test-ftell.c (ASSERT): Likewise.
23731         * tests/test-ftello.c (ASSERT): Likewise.
23732         * tests/test-func.c (ASSERT): Likewise.
23733         * tests/test-fwritable.c (ASSERT): Likewise.
23734         * tests/test-fwriting.c (ASSERT): Likewise.
23735         * tests/test-getdelim.c (ASSERT): Likewise.
23736         * tests/test-getline.c (ASSERT): Likewise.
23737         * tests/test-i-ring.c (ASSERT): Likewise.
23738         * tests/test-iconv-utf.c (ASSERT): Likewise.
23739         * tests/test-iconv.c (ASSERT): Likewise.
23740         * tests/test-isfinite.c (ASSERT): Likewise.
23741         * tests/test-isnand.c (ASSERT): Likewise.
23742         * tests/test-isnanf.c (ASSERT): Likewise.
23743         * tests/test-isnanl.h (ASSERT): Likewise.
23744         * tests/test-ldexpl.c (ASSERT): Likewise.
23745         * tests/test-linked_list.c (ASSERT): Likewise.
23746         * tests/test-linkedhash_list.c (ASSERT): Likewise.
23747         * tests/test-localename.c (ASSERT): Likewise.
23748         * tests/test-lseek.c (ASSERT): Likewise.
23749         * tests/test-mbscasecmp.c (ASSERT): Likewise.
23750         * tests/test-mbscasestr1.c (ASSERT): Likewise.
23751         * tests/test-mbscasestr2.c (ASSERT): Likewise.
23752         * tests/test-mbscasestr3.c (ASSERT): Likewise.
23753         * tests/test-mbscasestr4.c (ASSERT): Likewise.
23754         * tests/test-mbschr.c (ASSERT): Likewise.
23755         * tests/test-mbscspn.c (ASSERT): Likewise.
23756         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
23757         * tests/test-mbspbrk.c (ASSERT): Likewise.
23758         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
23759         * tests/test-mbsrchr.c (ASSERT): Likewise.
23760         * tests/test-mbsspn.c (ASSERT): Likewise.
23761         * tests/test-mbsstr1.c (ASSERT): Likewise.
23762         * tests/test-mbsstr2.c (ASSERT): Likewise.
23763         * tests/test-mbsstr3.c (ASSERT): Likewise.
23764         * tests/test-memchr2.c (ASSERT): Likewise.
23765         * tests/test-memmem.c (ASSERT): Likewise.
23766         * tests/test-open.c (ASSERT): Likewise.
23767         * tests/test-printf-frexp.c (ASSERT): Likewise.
23768         * tests/test-printf-frexpl.c (ASSERT): Likewise.
23769         * tests/test-printf-posix.c (ASSERT): Likewise.
23770         * tests/test-quotearg.c (ASSERT): Likewise.
23771         * tests/test-rbtree_list.c (ASSERT): Likewise.
23772         * tests/test-rbtree_oset.c (ASSERT): Likewise.
23773         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
23774         * tests/test-round1.c (ASSERT): Likewise.
23775         * tests/test-roundf1.c (ASSERT): Likewise.
23776         * tests/test-roundl.c (ASSERT): Likewise.
23777         * tests/test-signbit.c (ASSERT): Likewise.
23778         * tests/test-sleep.c (ASSERT): Likewise.
23779         * tests/test-snprintf-posix.c (ASSERT): Likewise.
23780         * tests/test-snprintf.c (ASSERT): Likewise.
23781         * tests/test-sprintf-posix.c (ASSERT): Likewise.
23782         * tests/test-stat-time.c (ASSERT): Likewise.
23783         * tests/test-strcasestr.c (ASSERT): Likewise.
23784         * tests/test-strerror.c (ASSERT): Likewise.
23785         * tests/test-striconv.c (ASSERT): Likewise.
23786         * tests/test-striconveh.c (ASSERT): Likewise.
23787         * tests/test-striconveha.c (ASSERT): Likewise.
23788         * tests/test-strsignal.c (ASSERT): Likewise.
23789         * tests/test-strstr.c (ASSERT): Likewise.
23790         * tests/test-strtod.c (ASSERT): Likewise.
23791         * tests/test-trunc1.c (ASSERT): Likewise.
23792         * tests/test-trunc2.c (ASSERT): Likewise.
23793         * tests/test-truncf1.c (ASSERT): Likewise.
23794         * tests/test-truncf2.c (ASSERT): Likewise.
23795         * tests/test-truncl.c (ASSERT): Likewise.
23796         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
23797         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
23798         * tests/test-vasnprintf.c (ASSERT): Likewise.
23799         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
23800         * tests/test-vasprintf.c (ASSERT): Likewise.
23801         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
23802         * tests/test-vprintf-posix.c (ASSERT): Likewise.
23803         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
23804         * tests/test-vsnprintf.c (ASSERT): Likewise.
23805         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
23806         * tests/test-wcwidth.c (ASSERT): Likewise.
23807         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
23808         * tests/test-xprintf-posix.c (ASSERT): Likewise.
23809         * tests/test-xvasprintf.c (ASSERT): Likewise.
23810         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
23811         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
23812         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
23813         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
23814         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
23815         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
23816         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
23817         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
23818         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
23819         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
23820         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
23821         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
23822         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
23823         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
23824         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
23825         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
23826         * tests/unictype/test-block_list.c (ASSERT): Likewise.
23827         * tests/unictype/test-block_of.c (ASSERT): Likewise.
23828         * tests/unictype/test-block_test.c (ASSERT): Likewise.
23829         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
23830         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
23831         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
23832         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
23833         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
23834         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
23835         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
23836         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
23837         * tests/unictype/test-combining.c (ASSERT): Likewise.
23838         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
23839         * tests/unictype/test-digit.c (ASSERT): Likewise.
23840         * tests/unictype/test-mirror.c (ASSERT): Likewise.
23841         * tests/unictype/test-numeric.c (ASSERT): Likewise.
23842         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
23843         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
23844         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
23845         * tests/unictype/test-scripts.c (ASSERT): Likewise.
23846         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
23847         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
23848         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
23849         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
23850         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
23851         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
23852         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
23853         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
23854         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
23855         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
23856         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
23857         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
23858         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
23859         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
23860         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
23861         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
23862         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
23863         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
23864         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
23865         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
23866         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
23867         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
23868         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
23869         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
23870         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
23871         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
23872         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
23873         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
23874         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
23875         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
23876         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
23877         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
23878         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
23879         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
23880         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
23881         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
23882         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
23883         Reported by Eric Blake.
23884
23885 2008-04-11  Bruno Haible  <bruno@clisp.org>
23886
23887         * lib/wchar.in.h: Tweak comment.
23888
23889 2008-04-11  Bruno Haible  <bruno@clisp.org>
23890
23891         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
23892         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
23893         gl_COMMON.
23894         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
23895
23896 2008-04-11  Bruno Haible  <bruno@clisp.org>
23897
23898         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
23899
23900 2008-04-11  Simon Josefsson  <simon@josefsson.org>
23901
23902         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
23903         of attempting to use non-existing /dev/*random.  Based on patch
23904         from Adam Strzelecki <ono@java.pl> in
23905         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
23906
23907 2008-04-08  Bruno Haible  <bruno@clisp.org>
23908
23909         Add tentative support for emx+gcc.
23910         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
23911         * lib/fpurge.c (fpurge): Likewise.
23912         * lib/freadable.c (freadable): Likewise.
23913         * lib/freadahead.c (freadahead): Likewise.
23914         * lib/freading.c (freading): Likewise.
23915         * lib/freadptr.c (freadptr): Likewise.
23916         * lib/freadseek.c (freadptrinc): Likewise.
23917         * lib/fseeko.c (rpl_fseeko): Likewise.
23918         * lib/fseterr.c (fseterr): Likewise.
23919         * lib/fwritable.c (fwritable): Likewise.
23920         * lib/fwriting.c (fwriting): Likewise.
23921         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
23922
23923 2008-04-09  Eric Blake  <ebb9@byu.net>
23924
23925         Avoid some autoconf warnings.
23926         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
23927         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
23928         * m4/afs.m4 (gl_AFS): Likewise.
23929         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
23930         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
23931         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23932         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
23933         (gl_INTEGER_TYPE_SUFFIX): Likewise.
23934         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
23935         (AC_CHECK_DECLS_ONCE): Likewise.
23936         Rename file...
23937         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
23938         gnulib-tool requires autoconf 2.59 or better.
23939         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
23940
23941 2008-04-08  Eric Blake  <ebb9@byu.net>
23942
23943         Use 'git describe --match' if present (added in git 1.5.5).
23944         * build-aux/git-version-gen: Limit result to tags that match 'v*'
23945         if possible.
23946
23947 2008-04-08  Bruno Haible  <bruno@clisp.org>
23948
23949         Add tentative support for OpenServer.
23950         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
23951         _ptr, _cnt.
23952         * lib/fpurge.c (fpurge): Likewise.
23953         * lib/freadable.c (freadable): Likewise.
23954         * lib/freadahead.c (freadahead): Likewise.
23955         * lib/freading.c (freading): Likewise.
23956         * lib/freadptr.c (freadptr): Likewise.
23957         * lib/freadseek.c (freadptrinc): Likewise.
23958         * lib/fseeko.c (rpl_fseeko): Likewise.
23959         * lib/fseterr.c (fseterr): Likewise.
23960         * lib/fwritable.c (fwritable): Likewise.
23961         * lib/fwriting.c (fwriting): Likewise.
23962         Reported by Roger Cornelius <rac@tenzing.org> and
23963         Brian K. White <brian@aljex.com>.
23964
23965 2008-04-06  Jim Meyering  <meyering@redhat.com>
23966
23967         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
23968
23969 2008-04-06  Bruno Haible  <bruno@clisp.org>
23970
23971         Avoid possible error with non-ASCII bytes in UTF-8 locales.
23972         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
23973         * tests/test-printf-posix.sh: Likewise.
23974         * tests/test-vfprintf-posix.sh: Likewise.
23975         * tests/test-vprintf-posix.sh: Likewise.
23976         * tests/test-xprintf-posix.sh: Likewise.
23977
23978 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23979
23980         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
23981         hide error from 'ls', needed on OS/2.
23982         Report by Elbert Pol <elbert.pol@gmail.com>.
23983
23984 2008-04-04  Eric Blake  <ebb9@byu.net>
23985
23986         Make test-fseeko.c failures meaningful.
23987         * tests/test-fseeko.c: Print line number on failure.
23988         * tests/test-fseek.c: Likewise.
23989         Reported by Nelson H. F. Beebe.
23990
23991         Improve strtod bug detection check.
23992         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
23993         required for Solaris 10.
23994         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
23995
23996 2008-04-04  Bruno Haible  <bruno@clisp.org>
23997
23998         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
23999         by m4/setenv.m4.
24000
24001 2008-04-03  Eric Blake  <ebb9@byu.net>
24002
24003         Ensure sane .version contents.
24004         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24005         version string.
24006         * build-aux/git-version-gen: Improve documentation.
24007
24008         Make GNU make output nicer.
24009         * top/GNUmakefile [!_have-Makefile]: Add dependency on
24010         MAKECMDGOALS to enforce message for all command line targets.  Set
24011         srcdir for use in maint.mk.
24012
24013         Another maintainer tweak.
24014         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24015         a target that regenerates version.
24016
24017 2008-04-03  Jim Meyering  <meyering@redhat.com>
24018
24019         vc-list-files: don't cause coreutils "make po-check" failure
24020         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24021
24022 2008-04-03  Eric Blake  <ebb9@byu.net>
24023
24024         Allow VPATH usage of vc-list-files.
24025         * build-aux/vc-list-files (scriptversion): Add timestamp.
24026         (options): Add --help, --version, -C.
24027         (CVS): Support installed cvsu.
24028
24029 2008-04-02  Bruno Haible  <bruno@clisp.org>
24030
24031         Avoid some "statement with no effect" warnings from gcc.
24032         * tests/test-wctype.c (main): Explicitly ignore unused values.
24033         Reported by Jim Meyering.
24034
24035 2008-04-02  Jim Meyering  <meyering@redhat.com>
24036
24037         Avoid some warnings from "gcc -Wshadow".
24038         * tests/test-frexp.c (exp): Define to a different identifier.
24039         * tests/test-frexpl.c (exp): Likewise.
24040
24041 2008-04-03  Jim Meyering  <meyering@redhat.com>
24042
24043         bootstrap: remove dangling *.[ch] symlinks from lib
24044         * build-aux/bootstrap [dangling symlink removal]: Move find's
24045         -depth option to precede all others, to avoid a warning.
24046         Remove *.[ch] files too, and from "$source_base" (usually lib/).
24047
24048 2008-04-02  Bruno Haible  <bruno@clisp.org>
24049
24050         Avoid some warnings from "gcc -Wshadow".
24051         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24052         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24053         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24054         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24055         Reported by Jim Meyering.
24056
24057 2008-04-01  Bruno Haible  <bruno@clisp.org>
24058
24059         Fix test to work on IRIX 6.5 with cc.
24060         * tests/test-math.c (numeric_equal): New function.
24061         (main): Use it.
24062
24063 2008-04-01  Bruno Haible  <bruno@clisp.org>
24064
24065         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24066
24067 2008-04-01  Bruno Haible  <bruno@clisp.org>
24068
24069         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24070         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24071         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24072         (Depends-on): Remove math.
24073
24074         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24075         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24076         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24077         (Depends-on): Remove math.
24078
24079         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24080         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24081         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24082         (Depends-on): Remove math.
24083         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24084         (Depends-on): Remove math.
24085
24086         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24087         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24088         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24089         (Depends-on): Remove math.
24090         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24091         (Depends-on): Remove math.
24092
24093         * tests/test-round1.c: Include nan.h.
24094         (main): Use NaNd instead of NAN.
24095         * modules/round-tests (Files): Add tests/nan.h.
24096
24097         * tests/test-trunc1.c: Include nan.h.
24098         (main): Use NaNd instead of NAN.
24099         * modules/trunc-tests (Files): Add tests/nan.h.
24100
24101         * tests/test-roundf1.c: Include nan.h.
24102         (main): Use NaNf instead of NAN.
24103         * modules/roundf-tests (Files): Add tests/nan.h.
24104
24105         * tests/test-truncf1.c: Include nan.h.
24106         (main): Use NaNf instead of NAN.
24107         * modules/truncf-tests (Files): Add tests/nan.h.
24108
24109         * tests/test-ceilf1.c: Include nan.h.
24110         (main): Use NaNf instead of NAN.
24111         * modules/ceilf-tests (Files): Add tests/nan.h.
24112
24113         * tests/test-floorf1.c: Include nan.h.
24114         (main): Use NaNf instead of NAN.
24115         * modules/floorf-tests (Files): Add tests/nan.h.
24116
24117         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24118         (main): Use NaNf instead of NAN.
24119         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24120
24121         * tests/test-isnand.c: Include nan.h instead of <math.h>.
24122         (main): Use NaNd instead of NAN.
24123         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24124
24125         * tests/test-frexp.c: Include nan.h.
24126         (main): Use NaNd instead of NAN.
24127         * modules/frexp-tests (Files): Add tests/nan.h.
24128
24129         * lib/isnan.c: Don't include <math.h>.
24130         (FUNC): Don't use NAN macro.
24131         * modules/isnand-nolibm (Depends-on): Remove math.
24132         * modules/isnanf-nolibm (Depends-on): Remove math.
24133         * modules/isnanl (Depends-on): Remove math.
24134         * modules/isnanl-nolibm (Depends-on): Remove math.
24135
24136         * tests/nan.h: New file.
24137
24138 2008-04-01  Eric Blake  <ebb9@byu.net>
24139
24140         Fix typos.
24141         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24142         values to be the right type.
24143
24144         For now, cater to gnulib strtod inaccuracies.
24145         * tests/test-strtod.c (main): Allow 1-ulp error on expected
24146         fractional results.  While not as nice from a QoI perspective, it
24147         is a quicker patch than correctly implementing decimal to binary
24148         rounding.
24149
24150 2008-03-31  Eric Blake  <ebb9@byu.net>
24151
24152         Guarantee a definition of NAN.
24153         * lib/math.in.h (NAN): Define if missing.
24154         * tests/test-math.c (main): Test it.
24155         * doc/posix-headers/math.texi (math.h): Document this.
24156         * lib/isnan.c (rpl_isnand): Use it.
24157         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24158         * tests/test-floorf1.c (NaN): Likewise.
24159         * tests/test-frexp.c (NaN): Likewise.
24160         * tests/test-isnand.c (NaN): Likewise.
24161         * tests/test-isnanf.c (NaN): Likewise.
24162         * tests/test-round1.c (NaN): Likewise.
24163         * tests/test-roundf1.c (NaN): Likewise.
24164         * tests/test-snprintf-posix.h (NaN): Likewise.
24165         * tests/test-sprintf-posix.h (NaN): Likewise.
24166         * tests/test-trunc1.c (NaN): Likewise.
24167         * tests/test-truncf1.c (NaN): Likewise.
24168         * tests/test-vasnprintf-posix.c (NaN): Likewise.
24169         * tests/test-vasprintf-posix.c (NaN): Likewise.
24170         * modules/isnand-nolibm (Depends-on): Add math.
24171         * modules/isnanf-nolibm (Depends-on): Likewise.
24172         * modules/isnanl (Depends-on): Likewise.
24173         * modules/isnanl-nolibm (Depends-on): Likewise.
24174         * modules/snprintf-posix-tests (Depends-on): Likewise.
24175         * modules/sprintf-posix-tests (Depends-on): Likewise.
24176         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24177         * modules/vsprintf-posix-tests (Depends-on): Likewise.
24178         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24179         * modules/vasprintf-posix-tests (Depends-on): Likewise.
24180
24181 2008-03-31  Bruno Haible  <bruno@clisp.org>
24182
24183         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24184         * doc/posix-functions/strtod.texi: Likewise.
24185
24186 2008-03-31  Bruno Haible  <bruno@clisp.org>
24187
24188         * tests/test-strtod.c (main): Don't use C99 syntax.
24189
24190 2008-03-31  Bruno Haible  <bruno@clisp.org>
24191
24192         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24193         Reported by Eric Blake.
24194
24195 2008-03-31  Jim Meyering  <meyering@redhat.com>
24196
24197         Don't compare actual signbit return values.
24198         * tests/test-strtod.c (main): Rather, compare only their
24199         zero/non-zero nature.
24200
24201 2008-03-31  Eric Blake  <ebb9@byu.net>
24202
24203         More strtod documentation.
24204         * doc/posix-functions/strtod.texi (strtod): Interpret more test
24205         failures as distinct bugs.
24206
24207 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24208
24209         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24210         Problem reported by Erik Benada in
24211         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24212
24213 2008-03-30  Bruno Haible  <bruno@clisp.org>
24214
24215         * tests/test-strtod.c: Add comments about which assertion fails on which
24216         platform.
24217         * doc/posix-functions/strtod.texi: Add info about many more platforms.
24218
24219 2008-03-30  Eric Blake  <ebb9@byu.net>
24220
24221         Test signbit behavior on zeros.
24222         * tests/test-signbit.c (test_signbitf): Add tests for zero.
24223         (test_signbitd, test_signbitl): Likewise.
24224
24225         More strtod touchups.
24226         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24227         sign of negative underflow, for now.  Use .5, not .1.
24228         * doc/posix-functions/strtod.texi (strtod): Mention these
24229         limitations.
24230         Reported by Jim Meyering.
24231
24232 2008-03-30  Bruno Haible  <bruno@clisp.org>
24233
24234         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24235         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24236
24237 2008-03-30  Bruno Haible  <bruno@clisp.org>
24238
24239         Avoid failure when attempting to return empty iconv results on some
24240         platforms.
24241         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24242         allocation, don't report ENOMEM when the resulting string is empty.
24243
24244 2008-03-30  Bruno Haible  <bruno@clisp.org>
24245
24246         Fix buffer overrun.
24247         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24248         Don't consider the width for tmp_length. Check count against tmp_length
24249         before doing the padding. Ensure enough allocation during padding.
24250
24251 2008-03-30  Eric Blake  <ebb9@byu.net>
24252
24253         strtod touchups.
24254         * lib/strtod.c (strtod): Avoid compiler warnings.
24255         Reported by Jim Meyering.
24256
24257 2008-03-30  Bruno Haible  <bruno@clisp.org>
24258
24259         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24260         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24261         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24262         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24263         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24264         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24265         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24266         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24267
24268         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24269         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24270         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24271         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24272         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24273         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24274         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24275         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24276
24277         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24278         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24279         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24280         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24281         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24282         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24283         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24284         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24285
24286         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24287         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24288
24289         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24290         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24291
24292         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
24293         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
24294
24295         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
24296         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
24297         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
24298
24299         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
24300         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
24301         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
24302
24303         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
24304         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
24305         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
24306
24307         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
24308         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
24309         * modules/vasprintf (Depends-on): Add EOVERFLOW.
24310
24311         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
24312         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
24313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
24314         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
24315         (Depends-on): Add EOVERFLOW.
24316         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
24317         (Depends-on): Add EOVERFLOW.
24318         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24319         (Depends-on): Add EOVERFLOW.
24320         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24321         (Depends-on): Add EOVERFLOW.
24322         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24323         (Depends-on): Add EOVERFLOW.
24324         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24325         (Depends-on): Add EOVERFLOW.
24326         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24327         (Depends-on): Add EOVERFLOW.
24328         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24329         (Depends-on): Add EOVERFLOW.
24330
24331         * lib/sprintf.c (EOVERFLOW): Remove fallback.
24332         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
24333         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
24334
24335         * lib/snprintf.c (EOVERFLOW): Remove fallback.
24336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
24337         * modules/snprintf (Depends-on): Add EOVERFLOW.
24338
24339         * lib/poll.c (EOVERFLOW): Remove fallback.
24340         * modules/poll (Depends-on): Add EOVERFLOW.
24341
24342         * lib/getugroups.c (EOVERFLOW): Remove fallback.
24343         * modules/getugroups (Depends-on): Add EOVERFLOW.
24344
24345         * lib/getdelim.c (EOVERFLOW): Remove fallback.
24346         * modules/getdelim (Depends-on): Add EOVERFLOW.
24347
24348         * lib/ftell.c (EOVERFLOW): Remove fallback.
24349         * modules/ftell (Depends-on): Add EOVERFLOW.
24350
24351         * lib/fprintf.c (EOVERFLOW): Remove fallback.
24352         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
24353         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
24354
24355         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
24356
24357         * modules/EOVERFLOW-tests: New file.
24358         * tests/test-EOVERFLOW.c: New file.
24359
24360         * modules/EOVERFLOW: New file.
24361         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
24362
24363 2008-03-30  Bruno Haible  <bruno@clisp.org>
24364
24365         Fix bug introduced on 2007-06-10.
24366         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
24367         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
24368
24369 2008-03-30  Bruno Haible  <bruno@clisp.org>
24370
24371         Improve freadseek's efficiency after ungetc.
24372         * lib/freadseek.c: Include freadahead.h.
24373         (freadptrinc): New function, extracted from freadseek.
24374         (freadseek): Use it in a loop. Use freadahead to determine the number
24375         of loop iterations.
24376         * modules/freadseek (Depends-on): Add freadahead.
24377         (configure.ac): Require AC_C_INLINE.
24378
24379 2008-03-30  Bruno Haible  <bruno@clisp.org>
24380
24381         * lib/freadseek.c (freadseek): Don't ignore the return value of
24382         freadptr.
24383
24384 2008-03-29  Eric Blake  <ebb9@byu.net>
24385
24386         Add hex float support.
24387         * modules/strtod (Depends-on): Add c-ctype.
24388         (Link): Mention POW_LIB.
24389         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
24390         whitespace between 'e' and exponent.
24391         * tests/test-strtod.c (main): Enable hex float tests.
24392         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
24393         now provides.
24394
24395         Document various strtod bugs, with some fixes.
24396         * doc/posix-functions/strtod.texi (strtod): Document bugs with
24397         "-0x", "inf", "nan", and hex constants.
24398         * doc/posix-functions/atof.texi (atof): Likewise.
24399         * modules/stdlib (Makefile.am): Support strtod.
24400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24401         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
24402         detect additional strtod bugs.
24403         * lib/stdlib.in.h (rpl_strtod): Add declarations.
24404         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
24405         bool where appropriate.  Parse 'inf' and 'nan'.
24406         * tests/test-strtod.c: New file.
24407         * modules/strtod (Depends-on): Add stdbool, stdlib.
24408         (configure.ac): Turn on module indicator.
24409         * modules/strtod-tests: New module.
24410
24411 2008-03-29  Eric Blake  <ebb9@byu.net>
24412
24413         Fix ftell on mingw.
24414         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
24415         * modules/ftell-tests (Depends-on): Add binary-io.
24416         * modules/ftello-tests (Depends-on): Likewise.
24417         * tests/test-ftell.c (main): Enhance test to cover behavior after
24418         ungetc.  Enforce binary mode.
24419         * tests/test-ftello.c (main): Likewise.
24420
24421         Pass test-freadseek on cygwin.
24422         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
24423         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
24424         ungetc buffer.
24425
24426         * tests/test-fflush2.c (main): Fix typo.
24427
24428 2008-03-29  Bruno Haible  <bruno@clisp.org>
24429
24430         * tests/test-fflush2.c (main): Temporarily disable the contents of
24431         this test.
24432         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
24433         Reported by Eric Blake.
24434
24435 2008-03-28  Simon Josefsson  <simon@josefsson.org>
24436
24437         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
24438         (GC_SHA224_DIGEST_SIZE): Add.
24439
24440         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
24441         (gc_hash_digest_length): Likewise.
24442         (gc_hash_buffer): Likewise.
24443
24444 2008-03-25  Bruno Haible  <bruno@clisp.org>
24445
24446         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
24447         detail which gettext release to use.
24448         Reported by Simon Josefsson.
24449
24450 2008-03-26  Jim Meyering  <meyering@redhat.com>
24451
24452         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
24453         * modules/gnumakefile (clean-GNUmakefile): Also, use
24454         test ... && ... || : syntax rather than if-then ... fi.
24455
24456         gnumakefile: Don't double-quote-expand $(VPATH) value.
24457         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
24458
24459 2008-03-24  Eric Blake  <ebb9@byu.net>
24460
24461         Alter GNUmakefile to install into top directory.
24462         * modules/maintainer-makefile: Split, and add dependency...
24463         * modules/gnumakefile: to this new module.
24464         * build-aux/GNUmakefile: Move...
24465         * top/GNUmakefile: ...here.
24466         * build-aux/maint.mk: Move...
24467         * top/maint.mk: ...here.
24468         * MODULES.html.sh (Support for maintaining...): Document new
24469         module.
24470
24471 2008-03-23  Bruno Haible  <bruno@clisp.org>
24472
24473         * gnulib-tool: New options --vc-files, --no-vc-files.
24474         (func_usage): Document them.
24475         (vc_files): New variable.
24476         (func_import): Consider vc_files.
24477         (func_create_testdir): Set vc_files to empty.
24478         Suggested by Jim Meyering and Karl Berry.
24479
24480 2008-03-23  Bruno Haible  <bruno@clisp.org>
24481
24482         Fix regex compilation error on HP-UX 11.
24483         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
24484         * modules/regex (Files): Add m4/mbstate_t.m4.
24485         Reported by Ton Voon <ton.voon@altinity.com>.
24486
24487 2008-03-23  Bruno Haible  <bruno@clisp.org>
24488
24489         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
24490
24491 2008-03-23  Eric Blake  <ebb9@byu.net>
24492             Bruno Haible  <bruno@clisp.org>
24493
24494         Install files from top/ in the destination directory.
24495         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
24496         augmentation also for the files from top/.
24497         (func_import, func_create_testdir): Rewrite file names:
24498         top/filename -> filename.
24499
24500 2008-03-23  Bruno Haible  <bruno@clisp.org>
24501
24502         Tweak "gnulib --version" output.
24503         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
24504
24505 2008-03-23  Bruno Haible  <bruno@clisp.org>
24506
24507         Tweak "gnulib --version" output.
24508         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
24509         rather than contents of ChangeLog, when possible.
24510
24511 2008-03-21  Eric Blake  <ebb9@byu.net>
24512
24513         More --version tweaks.
24514         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
24515         date of last ChangeLog entry.
24516
24517 2008-03-21  Jim Meyering  <meyering@redhat.com>
24518
24519         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
24520
24521 2008-03-20  Eric Blake  <ebb9@byu.net>
24522
24523         VPATH fix.
24524         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
24525
24526 2008-03-20  Simon Josefsson  <simon@josefsson.org>
24527
24528         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
24529         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
24530
24531 2008-03-20  Eric Blake  <ebb9@byu.net>
24532
24533         Sync GNUmakefile with coreutils.
24534         * build-aux/GNUmakefile (have-Makefile): Rename...
24535         (_have-Makefile): ...to this, for namespace consideration.
24536         (GNUmakefile.cfg): Include, if present.
24537         (_autoreconf): Define a default.
24538         (_is-dist-target): New rule for rebuilds to pick up intra-release
24539         version.
24540         (maint-cfg.mk): Rename...
24541         (cfg.mk): ...to this.
24542
24543 2008-03-18  Jim Meyering  <meyering@redhat.com>
24544
24545         New script and module: mktempd
24546         * MODULES.html.sh (maint+release support): Add mktempd.
24547         * build-aux/mktempd: New file.
24548         * modules/mktempd: New file.
24549
24550 2008-03-15  Jim Meyering  <meyering@redhat.com>
24551
24552         Undo last change.
24553         * lib/sha1.c, lib/md5.c: 63 != ~63.
24554         Reported by Andreas Schwab.
24555
24556         sha1.c, md5.c: Hoist a redundant expression.
24557         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
24558         "ctx->buflen" only once, before calling *_process_block.
24559         * lib/md5.c (md5_process_bytes): Likewise.
24560
24561 2008-03-14  Eric Blake  <ebb9@byu.net>
24562
24563         Bump copyright year in files generated by gnulib-tool.
24564         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
24565         gnulib-tool, rather than hard-coding it.
24566
24567         Fix 'gnulib-tool --version' output to work with git.
24568         * gnulib-tool (func_gnulib_dir): New function, extracted from...
24569         (startup): ...here.
24570         (func_version): Use it to invoke git-version-gen, rather than
24571         relying on CVS keyword expansion.  Modernize wording.
24572         (cvsdatestamp, last_checkin_date, version): Kill unused
24573         variables.
24574
24575 2008-03-12  Jim Meyering  <meyering@redhat.com>
24576
24577         Recognize optional cast of the argument to free.
24578         * build-aux/useless-if-before-free: Update regexps.
24579
24580         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
24581
24582 2008-03-11  Bruno Haible  <bruno@clisp.org>
24583
24584         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
24585         by a single package.
24586         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
24587         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
24588         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
24589         Reported by Sam Steingold <sds@gnu.org>.
24590
24591 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24592
24593         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
24594         repositories.
24595
24596 2008-03-11  Bruno Haible  <bruno@clisp.org>
24597
24598         Avoid conflicts between local macro definitions.
24599         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24600         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
24601
24602 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
24603             Bruno Haible  <bruno@clisp.org>
24604
24605         Make va_copy work with some version of xlc on AIX 5.1.
24606         * lib/stdarg.in.h: New file.
24607         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
24608         On AIX, use a <stdarg.h> file substitute.
24609         * modules/stdarg (Files): Add lib/stdarg.in.h.
24610         (Depends-on): Add include_next.
24611         (Makefile.am): Build a stdarg.h substitute if requested.
24612         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
24613
24614 2008-03-10  Bruno Haible  <bruno@clisp.org>
24615
24616         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
24617         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24618         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24619
24620 2008-03-10  Bruno Haible  <bruno@clisp.org>
24621
24622         * modules/stdlib (Depends-on): Add include_next, remove
24623         absolute-header.
24624
24625 2008-03-09  Bruno Haible  <bruno@clisp.org>
24626
24627         * lib/freadahead.h (freadahead): Document more precisely.
24628         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
24629         the sum of both buffer sizes.
24630         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
24631         * NEWS: Document the change.
24632
24633 2008-03-09  Bruno Haible  <bruno@clisp.org>
24634
24635         Extend freadptr to return also the buffer size.
24636         * lib/freadptr.h (freadptr): Add sizep argument.
24637         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
24638         (freadptr): Add sizep argument. Determine buffer size like freadahead
24639         does.
24640         * tests/test-freadptr.c: Don't include freadahead.h.
24641         (main): Adapt for new calling convention of freadptr.
24642         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
24643         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
24644         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
24645         tests/test-freadptr2.sh.
24646         (Depends): Remove freadahead.
24647         (TESTS): Add test-freadptr2.sh.
24648         (check_PROGRAMS): Add test-freadptr2.
24649
24650 2008-03-09  Bruno Haible  <bruno@clisp.org>
24651
24652         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
24653         Report and solution by Simon Josefsson.
24654
24655 2008-03-06  Bruno Haible  <bruno@clisp.org>
24656
24657         Make fflush after ungetc work on BSD platforms.
24658         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
24659         * tests/test-fflush2.c: New file.
24660         * tests/test-fflush2.sh: New file.
24661         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
24662         tests/test-fflush2.c.
24663         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
24664         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
24665
24666 2008-03-06  Eric Blake  <ebb9@byu.net>
24667
24668         Likewise for ftello.
24669         * modules/ftello (Dependencies): Add extensions.
24670         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
24671
24672 2008-03-06  Bruno Haible  <bruno@clisp.org>
24673
24674         * modules/fseeko (Dependencies): Add extensions.
24675         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
24676         Needed on glibc systems.
24677
24678 2008-03-06  Bruno Haible  <bruno@clisp.org>
24679
24680         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
24681         email address.
24682         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24683
24684 2008-03-06  Bruno Haible  <bruno@clisp.org>
24685
24686         * users.txt: Add libgnupdf.
24687
24688 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24689
24690         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
24691         (Header File Substitutes, Function Substitutes,
24692         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
24693         (Build robot for gnulib): Fix typo.
24694
24695 2008-03-06  Bruno Haible  <bruno@clisp.org>
24696
24697         * doc/gnulib-tool.texi (VCS Issues): Small updates.
24698         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24699
24700 2008-03-06  Bruno Haible  <bruno@clisp.org>
24701
24702         * doc/func.texi: New file, extracted from doc/gnulib.texi.
24703         * doc/gnulib.texi: Include it.
24704
24705 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24706
24707         * modules/func (License): Change license to unlimited; there was
24708         no LGPL parts in the module anyway.
24709
24710 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24711
24712         * modules/__func__: Renamed to modules/func.
24713         * modules/__func__-tests: Renamed to modules/func-tests.
24714         * tests/test-__func__.c: Renamed to tests/test-func.c.
24715         * m4/__func__.m4: Renamed to m4/func.m4.
24716         * doc/gnulib.texi (__func__): Section renamed to func.
24717         Suggested by Eric Blake <ebb9@byu.net>.
24718
24719 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24720
24721         * doc/gnulib.texi (__func__): Use C99 terminology when talking
24722         about __func__.  Make example self-contained.  Suggested by Eric
24723         Blake <ebb9@byu.net>.
24724
24725         * tests/test-__func__.c (main): Avoid extraneous () around __func.
24726         Suggested by Eric Blake <ebb9@byu.net>.
24727
24728 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24729
24730         * modules/__func__: New file.
24731         * modules/__func__-tests: New file.
24732         * tests/test-__func__.c: New file.
24733         * m4/__func__.m4: New file.
24734         * doc/gnulib.texi (__func__): Document __func__ module.
24735
24736 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24737
24738         * modules/byteswap (License): Re-license as LGPLv2+.
24739
24740 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24741
24742         * doc/Makefile: Add pdf target.
24743
24744 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24745
24746         * modules/inline (License): Use 'unlimited', since there are only
24747         *.m4 files in this module.
24748
24749 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24750             Bruno Haible  <bruno@clisp.org>
24751
24752         Add support for HP C 7.1 on OpenVMS 8.3.
24753         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
24754
24755 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24756
24757         Update VMS specifics.
24758         * lib/getopt.c [VMS]: Remove include of unixlib.h.
24759
24760 2008-03-02  Jim Meyering  <meyering@redhat.com>
24761
24762         Remove the last dependency on the "free" module.
24763         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
24764         Reported by Bob Proulx.
24765
24766         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
24767
24768         Remove useless "if" tests before free.  Deprecate "free" module.
24769         * doc/posix-functions/free.texi: Mention that this
24770         module is no longer useful.
24771         * modules/free (Notice): Say this module is obsolete.
24772         * modules/readutmp (Depends-on): Remove free.
24773         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
24774         * lib/putenv.c (putenv): Likewise.
24775         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
24776         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
24777         * tests/test-c-strcasestr.c (main): Likewise.
24778         * tests/test-c-strstr.c (main): Likewise.
24779         * tests/test-mbscasestr1.c (main): Likewise.
24780         * tests/test-mbscasestr2.c (main): Likewise.
24781         * tests/test-mbsstr1.c (main): Likewise.
24782         * tests/test-mbsstr2.c (main): Likewise.
24783         * tests/test-memmem.c (main): Likewise.
24784         * tests/test-strcasestr.c (main): Likewise.
24785         * tests/test-striconv.c (main): Likewise.
24786         * tests/test-striconveh.c (main): Likewise.
24787         * tests/test-striconveha.c (main): Likewise.
24788         * tests/test-strstr.c (main): Likewise.
24789
24790         * build-aux/git-version-gen: Adjust a comment and the Usage string.
24791
24792         bootstrap: sync from coreutils again
24793         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
24794
24795 2008-03-01  Jim Meyering  <meyering@redhat.com>
24796
24797         bootstrap: sync from coreutils
24798         * build-aux/bootstrap (update_po_files): Copy a .po file into place
24799         also when the target doesn't exist.
24800
24801 2008-03-01  Eric Blake  <ebb9@byu.net>
24802
24803         Fix bugs in last patch.
24804         * lib/memchr2.c (memchr2): Fix typo.
24805         * tests/test-memchr2.c: Test previous bug, and don't use GNU
24806         extension.
24807         Reported by Bruce Korb.
24808
24809         New module 'memchr2'.
24810         * modules/memchr2: New file.
24811         * modules/memchr2-tests: Likewise.
24812         * lib/memchr2.h: Likewise.
24813         * lib/memchr2.c: Likewise, based on memchr.c.
24814         * tests/test-memchr2.c: New test.
24815         * MODULES.html.sh (String handling): Add memchr2.
24816
24817 2008-02-29  Bruno Haible  <bruno@clisp.org>
24818
24819         * modules/freadseek-tests: New file.
24820         * tests/test-freadseek.sh: New file.
24821         * tests/test-freadseek.c: New file.
24822
24823         New module 'freadseek'.
24824         * modules/freadseek: New file.
24825         * lib/freadseek.h: New file.
24826         * lib/freadseek.c: New file.
24827         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
24828
24829 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
24830
24831         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
24832         wydawca.
24833
24834         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
24835         program_invocation_name and program_invocation_short_name are
24836         present.
24837
24838 2008-02-28  Bruno Haible  <bruno@clisp.org>
24839
24840         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
24841         * tests/test-freadptr.sh: Also test non-seekable stdin.
24842
24843 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
24844
24845         * build-aux/bootstrap (source_base, m4_base)
24846         (doc_base, tests_base): New variables.
24847         (gnulib_tool_options): Do not hardcode base directories, use
24848         the above variables instead.
24849
24850 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
24851
24852         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
24853
24854 2008-02-28  Bruno Haible  <bruno@clisp.org>
24855
24856         * modules/freadptr-tests: New file.
24857         * tests/test-freadptr.sh: New file.
24858         * tests/test-freadptr.c: New file.
24859
24860         New module 'freadptr'.
24861         * modules/freadptr: New file.
24862         * lib/freadptr.h: New file.
24863         * lib/freadptr.c: New file.
24864         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
24865
24866 2008-02-26  Karl Berry  <karl@freefriends.org>
24867
24868         Sync from Libtool:
24869         * libltdl/argz.c (argz_add, argz_count): New functions.
24870         * libltdl/argz.in.h: Declare them.
24871         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
24872
24873 2008-02-22  Bruno Haible  <bruno@clisp.org>
24874
24875         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
24876         is a pointer type.  Needed for HP-UX 10.
24877         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
24878         * doc/posix-functions/gmtime_r.texi: Likewise.
24879         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24880
24881 2008-02-24  Bruno Haible  <bruno@clisp.org>
24882
24883         * modules/environ-tests: New file.
24884         * tests/test-environ.c: New file.
24885
24886         New module 'environ'.
24887         * modules/environ: New file.
24888         * lib/unistd.in.h (environ): New declaration.
24889         * m4/environ.m4: New file.
24890         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
24891         after use.
24892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
24893         HAVE_DECL_ENVIRON.
24894         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
24895         HAVE_DECL_ENVIRON.
24896         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
24897         wrong claim that 'environ' is missing on some systems.
24898         * modules/execute (Depends-on): Add environ.
24899         * lib/execute.c (environ): Remove fallback declaration.
24900         * modules/pipe (Depends-on): Add environ.
24901         * lib/pipe.c (environ): Remove fallback declaration.
24902         * modules/setenv (Depends-on): Add environ.
24903         * lib/setenv.c (environ): Remove fallback declaration.
24904         * modules/unsetenv (Depends-on): Add environ.
24905         * lib/unsetenv.c (environ): Remove fallback declaration.
24906         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
24907         m4/environ.m4.
24908         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
24909         (gl_PREREQ_UNSETENV): Likewise.
24910
24911 2008-02-24  Bruno Haible  <bruno@clisp.org>
24912
24913         * doc/posix-functions/environ.texi: Document the MacOS X problem.
24914
24915 2008-02-20  Bob Proulx  <bob@proulx.com>
24916
24917         Enable use of older two part flavor 'git describe'.
24918         * build-aux/git-version-gen: If using the older two part flavor of
24919         git version then recreate the third part now present in the
24920         newer three part flavor of git describe.
24921
24922 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
24923
24924         * lib/fts.c (fts_build): Typo correction to comment.
24925
24926 2008-02-17  Bruno Haible  <bruno@clisp.org>
24927
24928         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
24929         generating no-op conflicts.
24930
24931 2008-02-17  Bruno Haible  <bruno@clisp.org>
24932
24933         Speed up by 10%.
24934         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
24935         result_entries, rather than an index-based loop.
24936
24937 2008-02-17  Bruno Haible  <bruno@clisp.org>
24938
24939         Speed up by 25%.
24940         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
24941         'hashcode_cached'.
24942         (entry_create): New function.
24943         (entry_hashcode): Use the cached hashcode if possible.
24944         (read_changelog_file, try_split_merged_entry): Use entry_create.
24945
24946 2008-02-17  Bruno Haible  <bruno@clisp.org>
24947
24948         Speed up from O(n^2) to O(n) for long ChangeLog files.
24949         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
24950         (read_changelog_file): Change implementation of entries_reversed list
24951         to rbtreehash.
24952         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
24953
24954 2008-02-17  Bruno Haible  <bruno@clisp.org>
24955
24956         New option --split-merged-entry.
24957         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
24958         (find_paragraph_end, try_split_merged_entry): New functions.
24959         (long_options): Add option --split-merged-entry.
24960         (usage): Document option --split-merged-entry.
24961         (main): Implement option --split-merged-entry.
24962         Reported by Eric Blake.
24963
24964 2008-02-17  Bruno Haible  <bruno@clisp.org>
24965
24966         * lib/git-merge-changelog.c: Include c-strstr.h.
24967         (main): Support the "git pull --rebase" situation.
24968         * modules/git-merge-changelog (Depends-on): Add c-strstr.
24969         Reported by Eric Blake.
24970
24971 2008-02-16  Eric Blake  <ebb9@byu.net>
24972
24973         Avoid doubling \ in common case of "c-maybe" quoting style.
24974         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
24975         eliding outer quotes.
24976         * lib/quotearg.h: Document this.
24977         * tests/test-quotearg.c (result_strings, inputs, results_g)
24978         (flag_results, locale_results): Test it by adding a new string to
24979         each test group.
24980         (compare_strings): Test new string.
24981
24982 2008-02-13  Eric Blake  <ebb9@byu.net>
24983
24984         Avoid trigraph quoting in default output.
24985         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
24986         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
24987         unless explicitly requested.
24988         * tests/test-quotearg.c (flag_results, main): Add additional tests.
24989
24990 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
24991
24992         Don't rely on signed integer overflowing to negative value.
24993         * lib/getugroups.c (getugroups): Include <limits.h>.
24994         Instead, compare against INT_MAX, and increment only if the test passes.
24995
24996 2008-02-13  Jim Meyering  <meyering@redhat.com>
24997         and Eric Blake  <ebb9@byu.net>
24998
24999         Avoid shadowing warning and compile errors on Linux.
25000         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25001         forwarding macros on Linux.
25002         (dcgettext): Define a stub, for Linux.
25003         (results_g, main): Avoid warnings.
25004
25005 2008-02-12  Eric Blake  <ebb9@byu.net>
25006
25007         Silence warning in last patch.
25008         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25009
25010         Quotearg part 4: add tests, fix c-maybe colon quoting.
25011         * lib/quotearg.h: Improve documentation.
25012         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25013         escapes when adding outer quotes.  When quoting trigraphs, use
25014         valid C notation.  When quoting NUL, omit extra characters if next
25015         character is not digit.  Alter prototype.
25016         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25017         callers.
25018         * modules/quotearg-tests: New module.
25019         * tests/test-quotearg.c: New test.
25020
25021 2008-02-07  Eric Blake  <ebb9@byu.net>
25022
25023         Quotearg part 3: add flag to control outer quote elision.
25024         * lib/quotearg.h (c_maybe_quoting_style): New style.
25025         (enum quoting_flags): Better documentation of flags.
25026         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25027         c-maybe style.
25028         (quotearg_buffer_restyled): Handle new flag to elide outer
25029         quotes.
25030
25031         Quotearg part 2: add flag that can control NUL elision.
25032         * lib/quotearg.h (set_quoting_flags): New prototype.
25033         * lib/quotearg.c (struct quoting_options): Add flag field.
25034         (set_quoting_flags): New function.
25035         (quotearg_buffer_restyled): Add flags parameter.
25036         (quotearg_alloc_mem): Set the flag if length cannot be returned.
25037         (quotearg_n_options): Set the flag, since length cannot be
25038         returned.
25039         (quoting_options_from_style): Default flags correctly.
25040
25041         Quotearg part 1: more wrappers, restore quotearg_char state.
25042         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25043         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25044         (quotearg_colon_mem): New wrappers.
25045         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25046         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25047         functions.
25048         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25049         (quotearg_colon_mem): New functions.
25050
25051 2008-02-11  Bruno Haible  <bruno@clisp.org>
25052
25053         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25054         library in the current directory: it does not work with parallel make.
25055         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25056
25057 2008-02-11  Bruno Haible  <bruno@clisp.org>
25058
25059         * .gitattributes: New file.
25060
25061 2008-02-11  Jim Meyering  <meyering@redhat.com>
25062
25063         useless-if-before-free: Fix reversed exit values.
25064         * build-aux/useless-if-before-free: Use correct values
25065         for EXIT_MATCH and EXIT_NO_MATCH.
25066
25067         * build-aux/useless-if-before-free: Close stdout carefully.
25068
25069 2008-02-10  Bruno Haible  <bruno@clisp.org>
25070
25071         New module 'git-merge-changelog'.
25072         * modules/git-merge-changelog: New file.
25073         * lib/git-merge-changelog.c: New file.
25074
25075 2008-02-10  Jim Meyering  <meyering@redhat.com>
25076
25077         useless-if-before-free: New option: --list (-l).
25078
25079         useless-if-before-free: Don't exit immediately upon open failure.
25080         * build-aux/useless-if-before-free: Exit 2 for errors.
25081         Upon failure to open a file, don't exit immediately.
25082         Rather, just warn and continue with any remaining files.
25083
25084 2008-02-10  Bruno Haible  <bruno@clisp.org>
25085
25086         New abstract list operation 'node_set_value'.
25087         * lib/gl_list.h (gl_list_node_set_value): New function.
25088         (struct gl_list_implementation): New field node_set_value.
25089         * lib/gl_list.c (gl_list_node_set_value): New function.
25090         * lib/gl_array_list.c (gl_array_node_set_value): New function.
25091         (gl_array_list_implementation): Update.
25092         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25093         (gl_carray_list_implementation): Update.
25094         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25095         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25096         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25097         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25098         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25099         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25100         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25101         Update.
25102         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25103         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25104         (gl_sublist_list_implementation): Update.
25105
25106 2008-02-10  Bruno Haible  <bruno@clisp.org>
25107
25108         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25109         Needed when ELEMENT is #defined to 'some_type *'.
25110
25111 2008-02-10  Jim Meyering  <meyering@redhat.com>
25112
25113         New script and module: useless-if-before-free
25114         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25115         * build-aux/useless-if-before-free: New file.
25116         * modules/useless-if-before-free: New file.
25117
25118         * build-aux/gitlog-to-changelog: Use committer date, not author date.
25119
25120         xstrtol_error: Fix typo.
25121         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25122         s/exit_failure/exit_status/.
25123
25124 2008-02-09  Jim Meyering  <meyering@redhat.com>
25125
25126         New script and module: gitlog-to-changelog
25127         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25128         * modules/gitlog-to-changelog: New file.
25129         * build-aux/gitlog-to-changelog: New file.
25130
25131 2008-02-08  Jim Meyering  <meyering@redhat.com>
25132
25133         Avoid two "parameter unused" warnings.
25134         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25135         Mark "st" as used.
25136
25137         Use "git COMMAND", not "git-COMMAND".
25138         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25139         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25140         * build-aux/git-version-gen: Use "git status", not "git-status".
25141
25142 2008-02-07  Bruno Haible  <bruno@clisp.org>
25143
25144         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25145         Avoids a crash on Windows Vista.
25146         Reported by Adam Strzelecki <ono@java.pl> via
25147         Simon Josefsson <simon@josefsson.org>.
25148
25149 2008-02-06  Bruno Haible  <bruno@clisp.org>
25150
25151         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25152         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25153         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25155         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25156         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25157         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25158         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25160         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25162         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25163         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25165         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25166         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25167         left-adjust flag.
25168         * tests/test-snprintf-posix.h (test_function): Likewise.
25169         * tests/test-sprintf-posix.h (test_function): Likewise.
25170         * tests/test-vasprintf-posix.c (test_function): Likewise.
25171         * doc/posix-functions/fprintf.texi: Update.
25172         * doc/posix-functions/printf.texi: Update.
25173         * doc/posix-functions/snprintf.texi: Update.
25174         * doc/posix-functions/sprintf.texi: Update.
25175         * doc/posix-functions/vfprintf.texi: Update.
25176         * doc/posix-functions/vprintf.texi: Update.
25177         * doc/posix-functions/vsnprintf.texi: Update.
25178         * doc/posix-functions/vsprintf.texi: Update.
25179         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25180
25181 2008-02-06  Bruno Haible  <bruno@clisp.org>
25182
25183         Fix bug introduced on 2008-01-26.
25184         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25185
25186 2008-02-06  Bruno Haible  <bruno@clisp.org>
25187
25188         Fix bug introduced on 2007-06-10.
25189         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25190         !NEED_PRINTF_FLAG_ZERO.
25191
25192 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
25193
25194         getloadavg: use libperfstat on AIX5
25195         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25196
25197 2008-02-03  Bruno Haible  <bruno@clisp.org>
25198
25199         * lib/diffseq.h: Add comments about required #includes.
25200         Reported by Michael Biggs <gnulib@doubleplum.net>.
25201
25202 2008-02-01  Bruno Haible  <bruno@clisp.org>
25203
25204         * users.txt: Add gnuit.
25205
25206 2008-01-31  Bruno Haible  <bruno@clisp.org>
25207
25208         * lib/md4.c (set_uint32): Mark as inline.
25209         * lib/md5.c (set_uint32): Likewise.
25210         * lib/sha1.c (set_uint32): Likewise.
25211         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25212         * m4/md5.m4 (gl_MD5): Likewise.
25213         * m4/sha1.m4 (gl_SHA1): Likewise.
25214
25215 2008-01-31  Jim Meyering  <meyering@redhat.com>
25216
25217         Use "sizeof VAR", rather than a literal "4".
25218         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25219         * lib/md4.c (md4_read_ctx): Likewise.
25220         * lib/sha1.c (sha1_read_ctx): Likewise.
25221
25222 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25223
25224         * tests/test-sha1.c: New file, based on test-md5.c.
25225
25226         * modules/crypto/sha1-tests: New file.
25227
25228 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25229
25230         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25231
25232 2008-01-31  Jim Meyering  <meyering@redhat.com>
25233
25234         Prefer "sizeof v" over the equivalent "4".
25235         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25236         * lib/md5.c (set_uint32): Likewise.
25237         * lib/sha1.c (set_uint32): Likewise.
25238
25239 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25240
25241         * lib/sha1.c (set_uint32): Mark function as static.
25242
25243 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25244
25245         md2: clarify comments to say that alignment is not required.
25246         * lib/md2.h: Remove warning about alignment in comment.
25247         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25248         never been required.
25249
25250 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25251
25252         md4: adapt alignment constraint fix from sha1.
25253         * lib/md4.c (set_uint32): New function, from sha1.c
25254         (md4_read_ctx): Use it.
25255         (md4_finish_ctx): Doc fix.
25256         * lib/md4.h: Doc fix.
25257
25258 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25259
25260         md5: adapt alignment constraint fix from sha1.
25261         * lib/md5.c (set_uint32): New function, from sha1.c
25262         (md5_read_ctx): Use it.
25263         (md5_finish_ctx): Doc fix.
25264         * lib/md5.h: Doc fix.
25265
25266 2008-01-30  Peter Palfrader  <weasel@debian.org>
25267
25268         sha1: remove the result buffer alignment constraint
25269         * lib/sha1.c (set_uint32): New function.
25270         (sha1_read_ctx): Rewrite to remove the result buffer alignment
25271         constraint.
25272         (sha1_finish_ctx): Remove comment warning about alignment constraint.
25273         * lib/sha1.h: Likewise.
25274
25275 2008-01-30  Andreas Schwab  <schwab@suse.de>
25276             Bruno Haible  <bruno@clisp.org>
25277
25278         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25279         correct definition of LDBL_MIN_EXP.
25280
25281 2008-01-30  Karl Berry  <karl@gnu.org>
25282
25283         * config/srclist-update: try to preserve x bit on updates.
25284         * config/srclistvars.sh: update for karl.
25285
25286 2008-01-29  Jim Meyering  <meyering@redhat.com>
25287
25288         vasnprintf.c: Avoid warning about unused label
25289         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25290         "overflow" label definition and associated code with the
25291         same cpp condition that guards the sole use of that label.
25292
25293 2008-01-26  Bruno Haible  <bruno@clisp.org>
25294
25295         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
25296         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
25297         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
25298         * lib/isnanl-nolibm.h (isnanl): Likewise.
25299         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25300
25301 2008-01-26  Bruno Haible  <bruno@clisp.org>
25302
25303         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
25304         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
25305
25306 2008-01-26  Bruno Haible  <bruno@clisp.org>
25307
25308         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
25309         GCC >= 4.0 built-in.
25310         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
25311
25312 2008-01-26  Bruno Haible  <bruno@clisp.org>
25313
25314         Rename isnan, applicable to 'double' only, to isnand.
25315         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
25316         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
25317         (configure.ac): Update.
25318         (Include): Replace "isnan.h" with "isnand.h".
25319         * m4/isnand.m4: Renamed from m4/isnan.m4.
25320         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
25321         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
25322         instead of isnan.c.
25323         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
25324         instead of HAVE_ISNAN_IN_LIBC.
25325         (isnand): Renamed from isnan.
25326         * lib/isnand.c: New file.
25327         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
25328         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
25329         (Makefile.am): Update.
25330         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
25331         Include isnand.h instead of isnan.h.
25332         (main): Test isnand instead of isnan.
25333         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
25334         isnan-nolibm.
25335         * modules/frexp (Depends-on): Likewise.
25336         * modules/frexp-tests (Depends-on): Likewise.
25337         * modules/frexp-nolibm (Depends-on): Likewise.
25338         * modules/frexp-nolibm-tests (Depends-on): Likewise.
25339         * modules/isfinite (Depends-on): Likewise.
25340         * modules/round-tests (Depends-on): Likewise.
25341         * modules/signbit (Depends-on): Likewise.
25342         * modules/signbit-tests (Depends-on): Likewise.
25343         * modules/snprintf-posix (Depends-on): Likewise.
25344         * modules/sprintf-posix (Depends-on): Likewise.
25345         * modules/trunc-tests (Depends-on): Likewise.
25346         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25347         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25348         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25349         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25350         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25351         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25352         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25353         * modules/vasnprintf-posix (Depends-on): Likewise.
25354         * modules/vasprintf-posix (Depends-on): Likewise.
25355         * modules/vfprintf-posix (Depends-on): Likewise.
25356         * modules/vsnprintf-posix (Depends-on): Likewise.
25357         * modules/vsprintf-posix (Depends-on): Likewise.
25358         * lib/frexp.c: Include isnand.h instead of isnan.h.
25359         (ISNAN): Set to isnand instead of isnan.
25360         * lib/isfinite.c: Include isnand.h instead of isnan.h.
25361         (gl_isfinited): Use isnand instead of isnan.
25362         * lib/signbitd.c: Include isnand.h instead of isnan.h.
25363         (gl_signbitd): Use isnand instead of isnan.
25364         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
25365         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
25366         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
25367         (main): Use isnand instead of isnan.
25368         * tests/test-round1.c: Include isnand.h.
25369         (main): Use isnand instead of isnan.
25370         * tests/test-round2.c: Include isnand.h instead of isnan.h.
25371         (ISNAN): Set to isnand instead of isnan.
25372         * tests/test-trunc1.c: Include isnand.h.
25373         (main): Use isnand instead of isnan.
25374         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
25375         (equal): Use isnand instead of isnan.
25376         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
25377         isnand-nolibm.
25378         * NEWS: Mention the change.
25379
25380 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25381             Bruno Haible  <bruno@clisp.org>
25382
25383         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
25384         the GCC builtins for signbits are present and set
25385         REPLACE_SIGNBIT_USING_GCC if so.
25386         * lib/math.in.h (signbit): Define using GCC builtins if
25387         REPLACE_SIGNBIT_USING_GCC is set.
25388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
25389         REPLACE_SIGNBIT_USING_GCC.
25390         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
25391
25392 2008-01-25  Jim Meyering  <meyering@redhat.com>
25393
25394         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
25395         * lib/poll.c: Include <config.h>, not "config.h".
25396         * tests/test-getaddrinfo.c: Likewise.
25397
25398 2008-01-25  Simon Josefsson  <simon@josefsson.org>
25399
25400         * modules/sockets-tests: New file.
25401
25402 2008-01-24  Simon Josefsson  <simon@josefsson.org>
25403
25404         * modules/sockets: New module, can be used to call WSA_Startup and
25405         WSA_Cleanup when needed.
25406
25407         * lib/sockets.h, lib/sockets.c: New files.
25408
25409         * m4/sockets.m4: New file.
25410
25411         * tests/test-sockets.c: New file.
25412
25413 2008-01-19  Bruno Haible  <bruno@clisp.org>
25414
25415         * doc/posix-headers: Renamed from doc/headers.
25416         * doc/posix-functions: Renamed from doc/functions.
25417         * doc/gnulib.texi: Update.
25418
25419 2008-01-19  Bruno Haible  <bruno@clisp.org>
25420
25421         * doc/glibc-functions/strcasestr.texi: Include contents of
25422         doc/functions/strcasestr.texi, fixing the list of platforms.
25423         * doc/functions/strcasestr.texi: Remove file.
25424
25425 2008-01-19  Bruno Haible  <bruno@clisp.org>
25426
25427         * doc/glibc-functions/memmem.texi: Include contents of
25428         doc/functions/memmem.texi.
25429         * doc/functions/memmem.texi: Remove file.
25430
25431 2008-01-18  Bruno Haible  <bruno@clisp.org>
25432
25433         * doc/glibc-functions/*.texi: New files.
25434         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
25435         to use the new files.
25436
25437 2008-01-17  Bruno Haible  <bruno@clisp.org>
25438
25439         * tests/test-gethostname.c (main): Fix printf statement.
25440
25441 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25442
25443         * modules/gethostname-tests: New file.
25444
25445         * tests/test-gethostname.c: New file.
25446
25447 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25448
25449         * lib/gethostname.c: Include string.h unconditionally, strncpy is
25450         used by the UNAME case.  Reported by Bruno Haible
25451         <bruno@clisp.org>.
25452
25453 2008-01-17  Eric Blake  <ebb9@byu.net>
25454
25455         Convert c-strcasestr to be more efficient.
25456         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
25457         (Depends-on): Add c-strcase, remove malloca, strnlen.
25458         * tests/test-c-strcasestr.c (main): Enhance test.
25459         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
25460
25461 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25462
25463         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
25464         Use it in creating po/Makevars.
25465
25466 2008-01-15  Simon Josefsson  <simon@josefsson.org>
25467
25468         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
25469         Applications that requires it should initialize libgcrypt
25470         manually.
25471
25472 2008-01-16  Simon Josefsson  <simon@josefsson.org>
25473
25474         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
25475
25476 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25477
25478         Fix problem with getdate on mingw32 reported by Simon Josefsson
25479         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
25480         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
25481         tzname", when deciding whether to declare tzname.
25482         * lib/strftime.c (tzname): Likewise.
25483
25484 2008-01-15  Bruno Haible  <bruno@clisp.org>
25485
25486         Work around a MacOS X 10.5 bug in frexpl().
25487         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
25488         * doc/functions/frexpl.texi: Document the bug.
25489         Reported by Elias Pipping <pipping@gentoo.org>.
25490
25491 2008-01-14  Eric Blake  <ebb9@byu.net>
25492
25493         Touch up previous patch.
25494         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
25495         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
25496
25497         Convert strcasestr module to use Two-Way algorithm.
25498         * modules/strcasestr-simple: New module, based on the old
25499         strcasestr, but with Two-Way rather than KMP.
25500         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
25501         * lib/string.in.h (rpl_strcasestr): Declare.
25502         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
25503         performance.
25504         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
25505         * modules/string (Makefile.am): Support strcasestr.
25506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25507         * modules/strcasestr-tests (Depends-on): Check for alarm.
25508         * tests/test-strcasestr.c: Augment test.
25509         * lib/str-two-way.h: Clean up stray macro.
25510         * NEWS: Document new module.
25511         * MODULES.html.sh (string handling): Likewise.
25512         * doc/functions/strcasestr.texi: New file.
25513         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
25514         here, since it is not a POSIX function.
25515
25516 2008-01-14  Colin Watson  <cjwatson@debian.org>
25517             Bruno Haible  <bruno@clisp.org>
25518
25519         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
25520         works fine; if not, set REPLACE_STRSIGNAL.
25521         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
25522         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25523         REPLACE_STRSIGNAL.
25524         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
25525         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
25526         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
25527
25528 2008-01-14  Bruno Haible  <bruno@clisp.org>
25529
25530         * modules/strsignal (Include): Change to <string.h>.
25531
25532 2008-01-14  Colin Watson  <cjwatson@debian.org>
25533
25534         * modules/argp (Notice): Add a notice recommending to change
25535         XGETTEXT_OPTIONS.
25536         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
25537
25538 2008-01-13  Colin Watson  <cjwatson@debian.org>
25539
25540         * modules/strsignal-tests: New file.
25541         * tests/test-strsignal.c: New file.
25542
25543         * lib/strsignal.c: New file, from glibc with modifications.
25544         * lib/siglist.h: New file, from glibc with modifications.
25545         * lib/string.in.h (strsignal): New declaration.
25546         * m4/strsignal.m4: New file.
25547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25548         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
25549         * modules/strsignal: New file.
25550         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
25551         HAVE_DECL_STRSIGNAL.
25552
25553 2008-01-13  Bruno Haible  <bruno@clisp.org>
25554
25555         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
25556         locale encoding is not ASCII. Needed for OpenBSD 4.0.
25557         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25558         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25559
25560 2008-01-13  Bruno Haible  <bruno@clisp.org>
25561
25562         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
25563         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
25564         * lib/argp.h (__attribute__): Likewise.
25565         * lib/c-stack.c (__attribute__): Likewise.
25566         * lib/error.h (__attribute__): Likewise.
25567         * lib/fts.c (__attribute__): Likewise.
25568         * lib/openat.h (__attribute__): Likewise.
25569         * lib/stdio.in.h (__attribute__): Likewise.
25570         * lib/string.in.h (__attribute__): Likewise.
25571         * lib/utimens.c (__attribute__): Likewise.
25572         * lib/vasnprintf.h (__attribute__): Likewise.
25573         * lib/xalloc.h (__attribute__): Likewise.
25574         * lib/xprintf.h (__attribute__): Likewise.
25575         * lib/xstrtol.h (__attribute__): Likewise.
25576         * lib/xvasprintf.h (__attribute__): Likewise.
25577
25578 2008-01-12  Bruno Haible  <bruno@clisp.org>
25579
25580         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
25581         * doc/glibc-headers/a.out.texi: New file.
25582         * doc/glibc-headers/aliases.texi: New file.
25583         * doc/glibc-headers/alloca.texi: New file.
25584         * doc/glibc-headers/ar.texi: New file.
25585         * doc/glibc-headers/argp.texi: New file.
25586         * doc/glibc-headers/argz.texi: New file.
25587         * doc/glibc-headers/byteswap.texi: New file.
25588         * doc/glibc-headers/crypt.texi: New file.
25589         * doc/glibc-headers/endian.texi: New file.
25590         * doc/glibc-headers/envz.texi: New file.
25591         * doc/glibc-headers/err.texi: New file.
25592         * doc/glibc-headers/error.texi: New file.
25593         * doc/glibc-headers/execinfo.texi: New file.
25594         * doc/glibc-headers/fpu_control.texi: New file.
25595         * doc/glibc-headers/fstab.texi: New file.
25596         * doc/glibc-headers/fts.texi: New file.
25597         * doc/glibc-headers/getopt.texi: New file.
25598         * doc/glibc-headers/ieee754.texi: New file.
25599         * doc/glibc-headers/ifaddrs.texi: New file.
25600         * doc/glibc-headers/libintl.texi: New file.
25601         * doc/glibc-headers/mcheck.texi: New file.
25602         * doc/glibc-headers/mntent.texi: New file.
25603         * doc/glibc-headers/obstack.texi: New file.
25604         * doc/glibc-headers/paths.texi: New file.
25605         * doc/glibc-headers/printf.texi: New file.
25606         * doc/glibc-headers/pty.texi: New file.
25607         * doc/glibc-headers/resolv.texi: New file.
25608         * doc/glibc-headers/shadow.texi: New file.
25609         * doc/glibc-headers/sysexits.texi: New file.
25610         * doc/glibc-headers/ttyent.texi: New file.
25611
25612 2008-01-12  Jim Meyering  <meyering@redhat.com>
25613
25614         announce-gen: emit Gnulib's git-based version string.
25615         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
25616         New option --gnulib-version=V, where V is expected to be
25617         the output of running git describe in the gnulib directory.
25618         (get_tool_versions): Request feedback on xdelta.  I suspect it's
25619         not useful, and plan to stop publishing an xdelta file with each
25620         coreutils release.
25621
25622         * build-aux/announce-gen: Also check for lzma-compressed files.
25623
25624 2008-01-11  Bruno Haible  <bruno@clisp.org>
25625
25626         * tests/test-memmem.c (main): Increase maximum allowed time.
25627         * tests/test-strstr.c (main): Likewise.
25628
25629 2008-01-11  Bruno Haible  <bruno@clisp.org>
25630
25631         * doc/functions/memmem.texi: Add more precisions about platforms.
25632         * doc/functions/strstr.texi: Likewise.
25633
25634 2008-01-10  Eric Blake  <ebb9@byu.net>
25635
25636         * m4/strstr.m4: Delete cruft from copy-n-paste.
25637         Reported by Bruno Haible.
25638
25639 2008-01-10  Bruno Haible  <bruno@clisp.org>
25640
25641         Make c-strstr rely on strstr.
25642         * lib/c-strstr.c: Don't include str-kmp.h.
25643         (c_strstr): Define in terms of strstr.
25644         * modules/c-strstr (Files): Remove lib/str-kmp.h.
25645         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
25646
25647 2008-01-10  Bruno Haible  <bruno@clisp.org>
25648
25649         * doc/gnulib.texi (String Functions in C Locale): New section.
25650         * doc/c-ctype.texi: New file.
25651         * doc/c-strcase.texi: New file.
25652         * doc/c-strcaseeq.texi: New file.
25653         * doc/c-strcasestr.texi: New file.
25654         * doc/c-strstr.texi: New file.
25655         * doc/c-strtod.texi: New file.
25656         * doc/c-strtold.texi: New file.
25657
25658 2008-01-10  Eric Blake  <ebb9@byu.net>
25659
25660         * lib/relocatable.h: Fix a comment.
25661
25662 2008-01-10  Eric Blake  <ebb9@byu.net>
25663
25664         Share two-way algorithm.
25665         * lib/str-two-way.h: New file, merged from...
25666         * lib/memmem.c: ...here...
25667         * lib/strstr.c: ...and here.
25668         * modules/memmem (Files): Use it.
25669         * modules/strstr (Files): Likewise.
25670
25671         Avoid quadratic strstr implementations.
25672         * lib/strstr.c: New file.
25673         * m4/strstr.m4: Likewise.
25674         * modules/strstr: Likewise.
25675         * modules/strstr-tests: Likewise.
25676         * tests/test-strstr.c: Likewise.
25677         * lib/string.in.h (rpl_strstr): Declare.
25678         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
25679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
25680         * modules/string (Makefile.am): Likewise.
25681         * MODULES.html.sh (string handling): Mention new module.
25682         * doc/functions/strstr.texi (strstr): Document the bug.
25683
25684 2008-01-10  Bruno Haible  <bruno@clisp.org>
25685
25686         * lib/relocatable.h (relocate): State whether result is freshly
25687         allocated or not.
25688         * lib/relocatable.c (relocate): Return a freshly allocated string
25689         instead of a pointer to a privately held string.
25690         Reported by Sylvain Beucler <beuc@gnu.org>.
25691
25692 2008-01-10  Colin Watson  <cjwatson@debian.org>
25693
25694         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
25695         s/S_ISNLK/S_ISLNK/.
25696
25697 2008-01-09  Bruno Haible  <bruno@clisp.org>
25698
25699         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
25700         and other files.
25701         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
25702         if it's only a guess.
25703         * modules/memmem: Simplify by depending on memmem-simple.
25704
25705 2008-01-09  Bruno Haible  <bruno@clisp.org>
25706
25707         Work around OpenBSD 4.0 tdelete() bug.
25708         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
25709         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
25710         macros and don't redefine the enum values.
25711         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
25712         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
25713         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
25714
25715 2008-01-09  Bruno Haible  <bruno@clisp.org>
25716
25717         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
25718         (main): Don't perform the tests if setlocale did not install a UTF-8
25719         locale. Needed on OpenBSD 4.0.
25720         * modules/wcwidth-tests (Depends-on): Add localcharset.
25721
25722 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25723
25724         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
25725         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
25726         * NEWS: announce this.
25727         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
25728
25729 2008-01-09  Simon Josefsson  <simon@josefsson.org>
25730         and Eric Blake  <ebb9@byu.net>
25731
25732         Add memmem-simple module.
25733         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
25734         (gl_FUNC_MEMMEM): Separate performance from presence checks.
25735         * modules/memmem-simple: New file.
25736         * modules/memmem (Description): Tweak.
25737         * MODULES.html.sh (string handling): Mention new module.
25738         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
25739         addressed by memmem-simple.
25740         * NEWS: Document the difference.
25741
25742 2008-01-09  Eric Blake  <ebb9@byu.net>
25743
25744         Give gcc some memmem optimization hints.
25745         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
25746         (strcasestr): Declare as pure.
25747         * modules/memmem (Maintainer): Claim my implementation.
25748
25749 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25750
25751         Support AIX 6.1 and higher.
25752         * build-aux/config.libpath: Likewise.
25753         * build-aux/config.rpath: Likewise.
25754
25755 2008-01-08  Jim Meyering  <meyering@redhat.com>
25756             Bruno Haible  <bruno@clisp.org>
25757
25758         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
25759         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
25760         Reported by Peter Fales in
25761         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
25762
25763 2008-01-08  Bruno Haible  <bruno@clisp.org>
25764
25765         * modules/unictype/category-of (Depends-on): Add
25766         unictype/category-none.
25767         * modules/unictype/category-and-tests (Depends-on): Add
25768         unictype/category-{L,N,Lu,Nd}.
25769         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
25770         * modules/unictype/category-or-tests (Depends-on): Add
25771         unictype/category-{L,N}.
25772         * modules/unictype/category-name-tests (Depends-on): Add
25773         unictype/category-{Z,Nl}.
25774         Reported by Simon Josefsson.
25775
25776 2008-01-08  Bruno Haible  <bruno@clisp.org>
25777
25778         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
25779         convention better.
25780         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
25781         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
25782         Reported by Peter Miller <millerp@canb.auug.org.au>.
25783
25784 2008-01-08  Eric Blake  <ebb9@byu.net>
25785
25786         Rewrite memmem to guarantee linear complexity without malloc.
25787         * lib/memmem.c (memmem): Use Two-Way rather than
25788         Knuth-Morris-Pratt, to allow O(1) space usage.
25789         (critical_factorization, two_way_short_needle)
25790         (two_way_long_needle): New functions.
25791         (knuth_morris_pratt): Delete.
25792         * modules/memmem (Depends-on): No longer need malloca or stdbool.
25793         Add stdint.
25794         * tests/test-memmem.c (main): Add tests for periodic needle and
25795         sublinear performance.
25796         * doc/functions/memmem.texi (memmem): Document other deficiencies
25797         in cygwin and older glibc.
25798
25799 2008-01-08  Bruno Haible  <bruno@clisp.org>
25800
25801         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
25802         augmentation.
25803
25804 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
25805
25806         Add a configure time option: --disable-acl.
25807         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
25808         AC_ARG_ENABLE(acl).
25809
25810 2008-01-06  Simon Josefsson  <simon@josefsson.org>
25811
25812         * tests/test-localename.c: Don't include obsolete "setenv.h".
25813
25814         * modules/localename-tests (Depends-on): Need unsetenv.
25815
25816 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25817
25818         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
25819
25820 2008-01-06  Colin Watson  <cjwatson@debian.org>
25821
25822         * users.txt: Add man-db.
25823
25824 2008-01-07  Bruno Haible  <bruno@clisp.org>
25825
25826         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
25827         previous section name.
25828
25829 2008-01-07  Bruno Haible  <bruno@clisp.org>
25830
25831         * lib/progname.c (set_program_name): Don't strip off a leading
25832         "lt-" prefix outside a .libs directory.
25833         Suggested by Paul Eggert.
25834
25835 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
25836             Bruno Haible  <bruno@clisp.org>
25837
25838         Improve memory cleanup in 'relocatable' module.
25839         * lib/relocatable.h (compute_curr_prefix): Change return type to
25840         'char *'.
25841         * lib/relocatable.c (compute_curr_prefix): Change return type to
25842         'char *'. Free curr_installdir after use.
25843         (relocate): Free curr_prefix_better after use.
25844         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
25845
25846 2008-01-01  Bruno Haible  <bruno@clisp.org>
25847
25848         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
25849         failure on older glibc systems.
25850         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25851
25852 2008-01-05  Eric Blake  <ebb9@byu.net>
25853
25854         Avoid quadratic system memmem.
25855         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
25856         Reported by Ralf Wildenhues.
25857
25858         Fix memmem test for mingw.
25859         * modules/memmem-tests (configure.ac): Check for alarm.
25860         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
25861         it.
25862         * doc/functions/memmem.texi: New file.
25863         * doc/gnulib.texi (Function Substitutes): Add memmem.
25864         Reported by Bruno Haible.
25865
25866 2008-01-04  Bruno Haible  <bruno@clisp.org>
25867
25868         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
25869         Require gl_HEADER_STRINGS_H_DEFAULTS, not
25870         gl_HEADER_STRING_H_DEFAULTS.
25871
25872 2008-01-04  Eric Blake  <ebb9@byu.net>
25873
25874         Shorten duration of memmem test.
25875         * tests/test-memmem.c (main): Use alarm to declare failure if test
25876         is taking too long.
25877         Reported by Ralf Wildenhues.
25878
25879 2007-12-21  Simon Josefsson  <simon@josefsson.org>
25880
25881         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
25882         string, needed by strerror.
25883
25884 2008-01-03  Colin Watson  <cjwatson@debian.org>
25885             Bruno Haible  <bruno@clisp.org>
25886
25887         * doc/gnulib-tool.texi (Localization): New section.
25888
25889 2008-01-02  Bruno Haible  <bruno@clisp.org>
25890
25891         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
25892         variables to 'unsigned char *' type.
25893         Reported by Paul Eggert.
25894
25895 2008-01-02  Jim Meyering  <jim@meyering.net>
25896
25897         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
25898
25899 2007-12-31  Jim Meyering  <jim@meyering.net>
25900
25901         Avoid use of private FTS type name.
25902         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
25903
25904 2007-12-30  Karl Berry  <karl@gnu.org>
25905
25906         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
25907         work around defect in Texinfo and/or the standalone Info browser.
25908
25909 2007-12-30  Bruno Haible  <bruno@clisp.org>
25910
25911         Unify 5 copies of the KMP code.
25912         * lib/str-kmp.h: New file.
25913         * lib/c-strcasestr.c: Include str-kmp.h.
25914         (knuth_morris_pratt): Remove function.
25915         (c_strcasestr): Update.
25916         * lib/c-strstr.c: Include str-kmp.h.
25917         (knuth_morris_pratt): Remove function.
25918         (c_strcasestr): Update.
25919         * lib/mbscasestr.c: Include str-kmp.h.
25920         (knuth_morris_pratt_unibyte): Remove function.
25921         * lib/mbsstr.c: Include str-kmp.h.
25922         (knuth_morris_pratt_unibyte): Remove function.
25923         * lib/strcasestr.c: Include str-kmp.h.
25924         (knuth_morris_pratt): Remove function.
25925         (strcasestr): Update.
25926         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
25927         * modules/c-strstr (Files): Likewise.
25928         * modules/mbscasestr (Files): Likewise.
25929         * modules/mbsstr (Files): Likewise.
25930         * modules/strcasestr (Files): Likewise.
25931         Suggested by Paul Eggert.
25932
25933 2007-12-30  Bruno Haible  <bruno@clisp.org>
25934
25935         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
25936         defined.
25937
25938 2007-12-30  Bruno Haible  <bruno@clisp.org>
25939
25940         * lib/xmalloca.h: Include xalloc.h.
25941         (xnmalloca): New macro.
25942
25943 2007-12-30  Bruno Haible  <bruno@clisp.org>
25944
25945         * lib/malloca.h (nmalloca): New macro.
25946         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
25947         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
25948         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
25949         knuth_morris_pratt_multibyte): Likewise.
25950         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
25951         knuth_morris_pratt_multibyte): Likewise.
25952         * lib/memmem.c (knuth_morris_pratt): Likewise.
25953         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
25954
25955 2007-12-25  Bruno Haible  <bruno@clisp.org>
25956
25957         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
25958         * lib/glob.c: Don't include openat.h.
25959         (link_exists2_p): Add back the code that deals with the
25960         !GLOB_ALTDIRFUNC case.
25961         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
25962         let it do the filename concatenation.
25963         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
25964         * modules/glob (Depends-on): Remove openat.
25965
25966 2007-12-31  Bruno Haible  <bruno@clisp.org>
25967
25968         * modules/dirfd (License): Change to LGPLv2+.
25969         Approved by Jim Meyering.
25970
25971 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25972
25973         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
25974         when multiplying M by sizeof (size_t).
25975
25976 2007-12-10  Martin Lambers  <marlam@marlam.de>
25977
25978         Override getpagesize on mingw.
25979         * lib/getpagesize.c: New file.
25980         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
25981         * modules/getpagesize (Files): Add lib/getpagesize.c.
25982         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
25983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25984         REPLACE_GETPAGESIZE.
25985         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
25986
25987 2007-12-25  Bruno Haible  <bruno@clisp.org>
25988
25989         * modules/localcharset (Notice): New field.
25990         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
25991         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
25992
25993 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25994             Bruno Haible  <bruno@clisp.org>
25995
25996         Avoid using the syntax symbol() in formatted documentation.
25997         * MODULES.html.sh (func_module): When replacing symbol() with a
25998         hyperlink, remove the parentheses. Show an error if some remain.
25999         Recognize and render the '...' syntax.
26000         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26001         Rework. Add paragraph about GCC's inlining.
26002         * doc/alloca.texi: Likewise.
26003         * doc/error.texi: Remove parentheses from symbol reference.
26004         * doc/gnulib-intro.texi: Likewise.
26005         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26006         * modules/fnmatch (Description): Reword to say "the ... function".
26007         * modules/full-read (Description): Likewise.
26008         * modules/full-write (Description): Likewise.
26009         * modules/safe-read (Description): Likewise.
26010         * modules/safe-write (Description): Likewise.
26011         * modules/strchrnul (Description): Likewise.
26012         * modules/trim (Description): Likewise.
26013         * modules/error (Description): Remove parentheses from symbol
26014         references.
26015         * modules/verror (Description): Likewise.
26016         Reported by Karl Berry.
26017
26018 2007-12-25  Bruno Haible  <bruno@clisp.org>
26019
26020         Fixup after 2007-10-16 commit.
26021         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26022
26023 2007-12-24  Bruno Haible  <bruno@clisp.org>
26024
26025         Make --enable-relocatable work with DESTDIR.
26026         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26027         to compute installdir from destprog.
26028         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26029         also set the RELOC_DESTDIR variable.
26030         Reported by Левашев Иван <octagram@bluebottle.com>.
26031
26032 2007-12-24  Bruno Haible  <bruno@clisp.org>
26033
26034         Fix link error due to xalloc_die().
26035         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26036         of xreadlink.
26037         * lib/relocwrapper.c: Update comments.
26038         * build-aux/install-reloc: Remove xreadlink.c from file list.
26039         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26040         xreadlink.c.
26041         Reported by Левашев Иван <octagram@bluebottle.com>.
26042
26043 2007-12-24  Bruno Haible  <bruno@clisp.org>
26044
26045         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26046         * lib/setenv.h: Remove file.
26047         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26048         lib/setenv.h.
26049         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26050         (Depends-on): Add stdlib.
26051         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26052         gl_FUNC_UNSETENV.
26053         (Include): Replace setenv.h with <stdlib.h>.
26054         * modules/unsetenv: New file.
26055         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26056         * lib/unsetenv.c: Include <stdlib.h> first.
26057         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26058         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26059         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26060         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26061         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26062         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26064         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26065         * doc/functions/unsetenv.texi: Update.
26066         * modules/xsetenv (Depends-on): Add unsetenv.
26067         * modules/getdate (Depends-on): Likewise.
26068         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26069         * lib/xsetenv.c: Don't include setenv.h.
26070         * lib/getdate.y: Likewise.
26071         * lib/relocwrapper.c: Likewise.
26072         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26073         (Depends-on): Add stdlib.
26074         * NEWS: Mention the changes.
26075         Reported by Левашев Иван <octagram@bluebottle.com>.
26076
26077 2007-12-23  Bruno Haible  <bruno@clisp.org>
26078
26079         * lib/memmem.c (memmem): Use lowercase variable names. Tab
26080         indentation.
26081
26082 2007-12-23  Bruno Haible  <bruno@clisp.org>
26083
26084         * lib/c-strcasestr.c: Add more comments.
26085         * lib/c-strstr.c: Likewise.
26086         * lib/mbscasestr.c: Likewise.
26087         * lib/mbsstr.c: Likewise.
26088         * lib/strcasestr.c: Likewise.
26089         * lib/memmem.c: Likewise.
26090
26091 2007-12-23  Bruno Haible  <bruno@clisp.org>
26092
26093         * tests/test-memmem.c: Include <string.h> first.
26094
26095 2007-12-22  Bruno Haible  <bruno@clisp.org>
26096
26097         * gnulib-tool (func_create_testdir): Change $auxdir while generating
26098         the contents of $testsbase.
26099         Reported by Ralf Wildenhues.
26100
26101 2007-12-22  Bruno Haible  <bruno@clisp.org>
26102
26103         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26104         two variables local_ldadd_before, local_ldadd_last.
26105
26106 2007-12-20  Eric Blake  <ebb9@byu.net>
26107
26108         Work around circular library issue when cross-compiling.
26109         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26110         that progname.o does not need to pull in rpl_memcmp.
26111
26112 2007-12-19  Eric Blake  <ebb9@byu.net>
26113
26114         Fix memmem to avoid O(n^2) worst-case complexity.
26115         * lib/memmem.c (knuth_morris_pratt): New function.
26116         (memmem): Use it if first few naive iterations fail.
26117         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26118         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26119         * modules/memchr (License): Likewise.
26120         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26121         malloca.
26122         * tests/test-memmem.c: Rewrite, borrowing ideas from
26123         test-mbsstr1.c; the old version wouldn't even compile!
26124         * modules/memmem-tests: New file.
26125         * lib/string.in.h (rpl_memmem): Add declaration.
26126         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26128         REPLACE_MEMMEM.
26129
26130 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26131
26132         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26133         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26134         before any system include files, and undef after them all.  This
26135         should fix a problem on VMS reported by John E. Malmberg in
26136         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26137
26138 2007-12-17  Eric Blake  <ebb9@byu.net>
26139
26140         Revert addition of verify, for BSD/OS.
26141         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26142         can't handle large files, for the sake of obsolete platforms.
26143         * modules/fseeko (Depends-on): Remove verify.
26144         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26145         * doc/functions/ftello.texi (ftello): Likewise.
26146         * doc/functions/fgetpos.texi (fgetpos): Likewise.
26147         Reported by Larry Jones.
26148
26149 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
26150
26151         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26152         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26153
26154 2007-12-17  Jim Meyering  <meyering@redhat.com>
26155
26156         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26157         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26158         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26159         * modules/getcwd (Depends-on): Add openat.
26160         Reported by Petr Salinger.
26161
26162 2007-12-17  Bruno Haible  <bruno@clisp.org>
26163
26164         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26165         avoid a segmentation fault of the configure test on x86_64 systems.
26166
26167 2007-12-15  Jim Meyering  <meyering@redhat.com>
26168
26169         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26170
26171 2007-12-13  Eric Blake  <ebb9@byu.net>
26172
26173         Another fseek test.
26174         * tests/test-fseek.c (main): Also test ungetc handling.
26175         * tests/test-fseeko.c (main): Likewise.
26176         * modules/fseeko (Depends-on): Add verify.
26177         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26178         large.
26179         Reported by Larry Jones.
26180
26181         Fix fseeko on mingw.
26182         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26183         seek.
26184
26185         Beef up fseek tests.
26186         * tests/test-fseek.c (main): Also test eof handling.
26187         * tests/test-fseeko.c (main): Likewise.
26188         Reported by Larry Jones.
26189
26190 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
26191
26192         Fix fseeko on BSD-based platforms.
26193         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26194         successful seek.
26195
26196 2007-12-12  Eric Blake  <ebb9@byu.net>
26197
26198         Allow circular dependency of separate libtests.a
26199         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26200         when use_libtests.
26201
26202 2007-12-11  Eric Blake  <ebb9@byu.net>
26203
26204         Fix bug with -0.0L in previous patch.
26205         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26206         * tests/test-isnan.c (main): Also test on zeroes.
26207         * tests/test-isnanf.c (main): Likewise.
26208         * tests/test-isnanl.h (main): Likewise.
26209
26210         Detect pseudo-denormals on x86 even when cross-compiling.
26211         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26212         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26213         invalid bit patterns that happen to satisfy ==.
26214
26215         Avoid link failures with separate libtests.a.
26216         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26217         last, to satisfy circular dependencies.
26218
26219 2007-12-11  Eric Blake  <ebb9@byu.net>
26220         and Bruno Haible  <bruno@clisp.org>
26221
26222         Fix OpenBSD 4.0 <float.h> handling of long double.
26223         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26224         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26225         * doc/headers/float.texi (float.h): Document OpenBSD bug.
26226
26227 2007-12-11  Jim Meyering  <meyering@redhat.com>
26228
26229         * users.txt: Add libvirt.
26230
26231         Support versions of autoconf prior to 2.59c.
26232         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26233         if it is not already defined.
26234
26235 2007-12-09  Bruno Haible  <bruno@clisp.org>
26236
26237         Let 'gnulib-tool --import' collect sources needed for the tests in
26238         tests/ rather than in lib/.
26239         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26240         argument. If true, add rules to generate libtests.a, and put libtests.a
26241         into $(LDADD). Consider source files in subdirectories and set
26242         uses_subdirs.
26243         (func_emit_initmacro_start, func_emit_initmacro_end,
26244         func_emit_initmacro_done): Pass all arguments explicitly.
26245         (func_import): Determine two module lists main_modules,
26246         testsrelated_modules. Determine use_libtests. Determine two variables
26247         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26248         instead of just sed_transform_lib_file. Determine two variables
26249         main_files and testsrelated_files. Compute 'files' as the union of
26250         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26251         func_add_or_update. In the generated gnulib-comp.m4, collect the
26252         object files for tests/ in different variables than those for lib/.
26253         Substitute LIBTESTS_LIBDEPS.
26254         (func_create_testdir): Combine the uses_subdirs results from
26255         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26256
26257 2007-12-09  Bruno Haible  <bruno@clisp.org>
26258
26259         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26260         the build-aux directory.
26261
26262 2007-12-09  Bruno Haible  <bruno@clisp.org>
26263
26264         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26265         introduced on 2006-09-09.
26266
26267 2007-12-07  Jim Meyering  <meyering@redhat.com>
26268
26269         Let these macros work also with autoconf-2.59.
26270         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
26271         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26272         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26273
26274 2007-12-06  Jim Meyering  <meyering@redhat.com>
26275
26276         Avoid a configure-time syntax error in gl_FUNC_ACL.
26277         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26278         function in each branch, before testing the cache variable.
26279
26280 2007-12-04  Eric Blake  <ebb9@byu.net>
26281
26282         Make scripts executable.
26283         * build-aux/config.guess: Add execute permissions.
26284         * build-aux/config.sub: Likewise.
26285         * build-aux/gendocs.sh: Likewise.
26286
26287         Fix frexp on mingw.
26288         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26289         cross-compiling.
26290         * doc/functions/frexp.texi (frexp): Document the bug.
26291
26292         Make cygwin fseeko check more reliable.
26293         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
26294         version numbers, rather than unrelated feature check.
26295         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
26296         * doc/functions/ftello.texi (ftello): Likewise.
26297         Reported by Bruno Haible.
26298
26299         * m4/strerror.m4: Bump version number.
26300
26301 2007-12-03  Bruno Haible  <bruno@clisp.org>
26302
26303         * doc/functions/mprotect.texi: Mention the mingw problem.
26304
26305 2007-12-03  Eric Blake  <ebb9@byu.net>
26306
26307         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
26308         REPLACE_STRERROR is initialized before this macro.
26309
26310 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26311
26312         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
26313         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
26314         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
26315         put -lsec in even for programs other than 'ls'.  This fixes a problem
26316         for gettext reported by Bruno Haible in
26317         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
26318         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
26319         Add support for Solaris 10.  This isn't efficient, but should get the
26320         job done for now.
26321
26322 2007-12-03  James Youngman  <jay@gnu.org>
26323
26324         * doc/regexprops-generic.texi: change "an close-group" to "a
26325         close-group" and "illegal" to "not allowed".
26326
26327 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26328
26329         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
26330         pr_byname.h. Needed for the rare case when the maintainer has done
26331         "make maintainer-clean" in the source directory and then attempts a
26332         build outside the source directory.
26333         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
26334         scripts_byname.h.
26335
26336 2007-12-02  Martin Lambers <marlam@marlam.de>
26337             Bruno Haible  <bruno@clisp.org>
26338
26339         * lib/getpagesize.h: Remove file.
26340         * lib/unistd.in.h: Include declaration of getpagesize here.
26341         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
26342         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
26343         HAVE_SYS_PARAM_H.
26344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
26345         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26346         * modules/getpagesize (Files): Remove lib/getpagesize.h.
26347         (Depends-on): Add unistd.
26348         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26349         (Include): Use <unistd.h> instead of getpagesize.h.
26350         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
26351         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26352         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
26353         gl_GETPAGESIZE invocation, already handled by module dependency.
26354         * lib/pagealign_alloc.c: Don't include getpagesize.h.
26355
26356 2007-12-02  Bruno Haible  <bruno@clisp.org>
26357
26358         * modules/strings-tests: New file.
26359         * tests/test-strings.c: New file.
26360
26361         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
26362         * lib/strings.in.h: New file.
26363         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
26364         * m4/strings_h.m4: New file.
26365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
26366         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
26367         * modules/strings: New file.
26368         * modules/string (Makefile.am): Update.
26369         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
26370         Reported by Karl Berry.
26371
26372 2007-12-01  Eric Blake  <ebb9@byu.net>
26373
26374         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
26375         accomodate fix in cygwin 1.5.25.
26376
26377 2007-12-01  Jim Meyering  <meyering@redhat.com>
26378
26379         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
26380         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
26381         that would inhibit utf8-optimization of a regexp containing line-
26382         or buffer-anchors, e.g., `^', `$'.
26383
26384 2007-11-30  Bruno Haible  <bruno@clisp.org>
26385
26386         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
26387         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
26388         glthread_recursive_lock_init.
26389         * lib/lock.c (glthread_recursive_lock_init)
26390         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
26391         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26392
26393 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
26394
26395         New function qset_acl, like set_acl but with syscall semantics.
26396         * lib/acl.h (qset_acl): New decl.
26397         * lib/acl.c (qset_acl): New function.
26398         (set_acl): Use new function.  Use more-consistent diagnostics.
26399
26400 2007-11-28  Jim Meyering  <meyering@redhat.com>
26401
26402         * modules/physmem (License): Change from GPL to LGPLv2+.
26403
26404 2007-11-26  Bruno Haible  <bruno@clisp.org>
26405
26406         * lib/vasnprintf.c (decode_long_double): Don't abort if the
26407         'long double' type has excess precision.
26408         Reported by Jim Meyering in
26409         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
26410
26411 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26412
26413         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
26414         Sync from <http://gnu.org/licenses>.
26415         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
26416         with license text from same location.
26417         * doc/maintain.texi, doc/standards.texi:  Sync from
26418         <http://savannah.gnu.org/projects/gnustandards>.
26419
26420 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
26421         and Jim Meyering  <meyering@redhat.com>
26422
26423         Adjust getdate' grammar to accept a slightly more regular language.
26424         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
26425         Before, the former was rejected.
26426         * lib/getdate.y (digits_to_date_time): New function, factored
26427         out of ...
26428         (number): ...here.  Just call digits_to_date_time.
26429         (hybrid): New non-terminal to handle an <unsigned number,
26430         signed relative offset> sequence consistently.
26431
26432 2007-11-18  Jim Meyering  <meyering@redhat.com>
26433
26434         Pull my changes from coreutils:
26435         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
26436         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
26437         use of $gnulib_tool_option_extras, so that it's separated from the
26438         preceding argument.
26439
26440         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
26441         * build-aux/bootstrap (cp_mark_as_generated): Create any required
26442         parent destination directories before copying a file into place.
26443
26444 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
26445
26446         bootstrap: work also with 4-argument variant of AC_INIT
26447         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
26448
26449 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26450
26451         Port test-getaddrinfo to Solaris.
26452         Problem reported by Bruno Haible in
26453         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
26454         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
26455         explanation of setting 'hints'.
26456         Don't reject an implementation merely because it returns EAI_SERVICE.
26457         (EAI_SERVICE): Define to 0 if not defined.
26458
26459 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26460
26461         The license of gnu-make and posix-shell is now "GPLed build tool".
26462         * modules/gnu-make (License): Likewise.
26463         * modules/posix-shell (License): Likewise.
26464
26465         New module posix-shell, for determining a POSIX shell
26466         or perhaps something that is close enough to a POSIX shell.
26467         * m4/posix-shell.m4: New file.
26468         * modules/posix-shell: New file.
26469
26470         * MODULES.html.sh: Mention new module.
26471
26472         New module gnu-make, for determining whether we're using GNU Make.
26473         * m4/gnu-make.m4: New file.
26474         * modules/gnu-make: New file.
26475         * MODULES.html.sh: Mention new module.
26476
26477 2007-11-14  Jim Meyering  <meyering@redhat.com>
26478
26479         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
26480         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
26481         use this macro to create a function _definition_.
26482         Remove useless "#undef ARGMATCH_DIE".
26483
26484 2007-11-14  Bruno Haible  <bruno@clisp.org>
26485
26486         * lib/config.charset: Update for OpenBSD 4.1.
26487         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
26488
26489 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26490
26491         Document 64-bit #if problems in stdint.texi.
26492         * doc/headers/stdint.texi (stdint.h): Mention problems with
26493         64-bit-#if, and how to work around them.
26494
26495         Don't insist on 'long long int' support in the preprocessor.  It
26496         breaks too many things.  For example, PRIdMAX still uses a 'long
26497         long int' format with the latest Sun compiler, even though
26498         HAVE_LONG_LONG_INT isn't defined due to that compiler's
26499         preprocessor problem.  This causes the latest coreutils to dump
26500         core on Solaris 10 sparc with the Sun C compiler.
26501         Instead, fix the 2007-10-16 problem in a different way, by evaluating
26502         the troublesome expressions at configure-time, not at #if-time.
26503         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
26504         preprocessor.
26505         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
26506         compile-time C checks, done at 'configure'-time.
26507         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
26508         * modules/inttypes (Makefile): Substitute the new symbols that
26509         gl_INTTYPES_H now generates.
26510         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
26511
26512 2007-11-12  Bruno Haible  <bruno@clisp.org>
26513
26514         Tests for Unicode character classification functions.
26515
26516         * modules/unictype/bidicategory-byname-tests: New file.
26517         * modules/unictype/bidicategory-name-tests: New file.
26518         * modules/unictype/bidicategory-of-tests: New file.
26519         * modules/unictype/bidicategory-test-tests: New file.
26520         * modules/unictype/block-list-tests: New file.
26521         * modules/unictype/block-of-tests: New file.
26522         * modules/unictype/block-test-tests: New file.
26523         * modules/unictype/category-C-tests: New file.
26524         * modules/unictype/category-Cc-tests: New file.
26525         * modules/unictype/category-Cf-tests: New file.
26526         * modules/unictype/category-Cn-tests: New file.
26527         * modules/unictype/category-Co-tests: New file.
26528         * modules/unictype/category-Cs-tests: New file.
26529         * modules/unictype/category-L-tests: New file.
26530         * modules/unictype/category-Ll-tests: New file.
26531         * modules/unictype/category-Lm-tests: New file.
26532         * modules/unictype/category-Lo-tests: New file.
26533         * modules/unictype/category-Lt-tests: New file.
26534         * modules/unictype/category-Lu-tests: New file.
26535         * modules/unictype/category-M-tests: New file.
26536         * modules/unictype/category-Mc-tests: New file.
26537         * modules/unictype/category-Me-tests: New file.
26538         * modules/unictype/category-Mn-tests: New file.
26539         * modules/unictype/category-N-tests: New file.
26540         * modules/unictype/category-Nd-tests: New file.
26541         * modules/unictype/category-Nl-tests: New file.
26542         * modules/unictype/category-No-tests: New file.
26543         * modules/unictype/category-P-tests: New file.
26544         * modules/unictype/category-Pc-tests: New file.
26545         * modules/unictype/category-Pd-tests: New file.
26546         * modules/unictype/category-Pe-tests: New file.
26547         * modules/unictype/category-Pf-tests: New file.
26548         * modules/unictype/category-Pi-tests: New file.
26549         * modules/unictype/category-Po-tests: New file.
26550         * modules/unictype/category-Ps-tests: New file.
26551         * modules/unictype/category-S-tests: New file.
26552         * modules/unictype/category-Sc-tests: New file.
26553         * modules/unictype/category-Sk-tests: New file.
26554         * modules/unictype/category-Sm-tests: New file.
26555         * modules/unictype/category-So-tests: New file.
26556         * modules/unictype/category-Z-tests: New file.
26557         * modules/unictype/category-Zl-tests: New file.
26558         * modules/unictype/category-Zp-tests: New file.
26559         * modules/unictype/category-Zs-tests: New file.
26560         * modules/unictype/category-and-not-tests: New file.
26561         * modules/unictype/category-and-tests: New file.
26562         * modules/unictype/category-byname-tests: New file.
26563         * modules/unictype/category-name-tests: New file.
26564         * modules/unictype/category-none-tests: New file.
26565         * modules/unictype/category-of-tests: New file.
26566         * modules/unictype/category-or-tests: New file.
26567         * modules/unictype/category-test-withtable-tests: New file.
26568         * modules/unictype/combining-class-tests: New file.
26569         * modules/unictype/ctype-alnum-tests: New file.
26570         * modules/unictype/ctype-alpha-tests: New file.
26571         * modules/unictype/ctype-blank-tests: New file.
26572         * modules/unictype/ctype-cntrl-tests: New file.
26573         * modules/unictype/ctype-digit-tests: New file.
26574         * modules/unictype/ctype-graph-tests: New file.
26575         * modules/unictype/ctype-lower-tests: New file.
26576         * modules/unictype/ctype-print-tests: New file.
26577         * modules/unictype/ctype-punct-tests: New file.
26578         * modules/unictype/ctype-space-tests: New file.
26579         * modules/unictype/ctype-upper-tests: New file.
26580         * modules/unictype/ctype-xdigit-tests: New file.
26581         * modules/unictype/decimal-digit-tests: New file.
26582         * modules/unictype/digit-tests: New file.
26583         * modules/unictype/mirror-tests: New file.
26584         * modules/unictype/numeric-tests: New file.
26585         * modules/unictype/property-alphabetic-tests: New file.
26586         * modules/unictype/property-ascii-hex-digit-tests: New file.
26587         * modules/unictype/property-bidi-arabic-digit-tests: New file.
26588         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
26589         * modules/unictype/property-bidi-block-separator-tests: New file.
26590         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
26591         * modules/unictype/property-bidi-common-separator-tests: New file.
26592         * modules/unictype/property-bidi-control-tests: New file.
26593         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
26594         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
26595         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
26596         * modules/unictype/property-bidi-european-digit-tests: New file.
26597         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
26598         * modules/unictype/property-bidi-left-to-right-tests: New file.
26599         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
26600         * modules/unictype/property-bidi-other-neutral-tests: New file.
26601         * modules/unictype/property-bidi-pdf-tests: New file.
26602         * modules/unictype/property-bidi-segment-separator-tests: New file.
26603         * modules/unictype/property-bidi-whitespace-tests: New file.
26604         * modules/unictype/property-byname-tests: New file.
26605         * modules/unictype/property-combining-tests: New file.
26606         * modules/unictype/property-composite-tests: New file.
26607         * modules/unictype/property-currency-symbol-tests: New file.
26608         * modules/unictype/property-dash-tests: New file.
26609         * modules/unictype/property-decimal-digit-tests: New file.
26610         * modules/unictype/property-default-ignorable-code-point-tests: New file.
26611         * modules/unictype/property-deprecated-tests: New file.
26612         * modules/unictype/property-diacritic-tests: New file.
26613         * modules/unictype/property-extender-tests: New file.
26614         * modules/unictype/property-format-control-tests: New file.
26615         * modules/unictype/property-grapheme-base-tests: New file.
26616         * modules/unictype/property-grapheme-extend-tests: New file.
26617         * modules/unictype/property-grapheme-link-tests: New file.
26618         * modules/unictype/property-hex-digit-tests: New file.
26619         * modules/unictype/property-hyphen-tests: New file.
26620         * modules/unictype/property-id-continue-tests: New file.
26621         * modules/unictype/property-id-start-tests: New file.
26622         * modules/unictype/property-ideographic-tests: New file.
26623         * modules/unictype/property-ids-binary-operator-tests: New file.
26624         * modules/unictype/property-ids-trinary-operator-tests: New file.
26625         * modules/unictype/property-ignorable-control-tests: New file.
26626         * modules/unictype/property-iso-control-tests: New file.
26627         * modules/unictype/property-join-control-tests: New file.
26628         * modules/unictype/property-left-of-pair-tests: New file.
26629         * modules/unictype/property-line-separator-tests: New file.
26630         * modules/unictype/property-logical-order-exception-tests: New file.
26631         * modules/unictype/property-lowercase-tests: New file.
26632         * modules/unictype/property-math-tests: New file.
26633         * modules/unictype/property-non-break-tests: New file.
26634         * modules/unictype/property-not-a-character-tests: New file.
26635         * modules/unictype/property-numeric-tests: New file.
26636         * modules/unictype/property-other-alphabetic-tests: New file.
26637         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
26638         * modules/unictype/property-other-grapheme-extend-tests: New file.
26639         * modules/unictype/property-other-id-continue-tests: New file.
26640         * modules/unictype/property-other-id-start-tests: New file.
26641         * modules/unictype/property-other-lowercase-tests: New file.
26642         * modules/unictype/property-other-math-tests: New file.
26643         * modules/unictype/property-other-uppercase-tests: New file.
26644         * modules/unictype/property-paired-punctuation-tests: New file.
26645         * modules/unictype/property-paragraph-separator-tests: New file.
26646         * modules/unictype/property-pattern-syntax-tests: New file.
26647         * modules/unictype/property-pattern-white-space-tests: New file.
26648         * modules/unictype/property-private-use-tests: New file.
26649         * modules/unictype/property-punctuation-tests: New file.
26650         * modules/unictype/property-quotation-mark-tests: New file.
26651         * modules/unictype/property-radical-tests: New file.
26652         * modules/unictype/property-sentence-terminal-tests: New file.
26653         * modules/unictype/property-soft-dotted-tests: New file.
26654         * modules/unictype/property-space-tests: New file.
26655         * modules/unictype/property-terminal-punctuation-tests: New file.
26656         * modules/unictype/property-test-tests: New file.
26657         * modules/unictype/property-titlecase-tests: New file.
26658         * modules/unictype/property-unassigned-code-value-tests: New file.
26659         * modules/unictype/property-unified-ideograph-tests: New file.
26660         * modules/unictype/property-uppercase-tests: New file.
26661         * modules/unictype/property-variation-selector-tests: New file.
26662         * modules/unictype/property-white-space-tests: New file.
26663         * modules/unictype/property-xid-continue-tests: New file.
26664         * modules/unictype/property-xid-start-tests: New file.
26665         * modules/unictype/property-zero-width-tests: New file.
26666         * modules/unictype/scripts-tests: New file.
26667         * modules/unictype/syntax-c-ident-tests: New file.
26668         * modules/unictype/syntax-c-whitespace-tests: New file.
26669         * modules/unictype/syntax-java-ident-tests: New file.
26670         * modules/unictype/syntax-java-whitespace-tests: New file.
26671         * tests/unictype/test-bidi_byname.c: New file.
26672         * tests/unictype/test-bidi_name.c: New file.
26673         * tests/unictype/test-bidi_of.c: New file.
26674         * tests/unictype/test-bidi_test.c: New file.
26675         * tests/unictype/test-block_list.c: New file.
26676         * tests/unictype/test-block_of.c: New file.
26677         * tests/unictype/test-block_test.c: New file.
26678         * tests/unictype/test-categ_and.c: New file.
26679         * tests/unictype/test-categ_and_not.c: New file.
26680         * tests/unictype/test-categ_byname.c: New file.
26681         * tests/unictype/test-categ_name.c: New file.
26682         * tests/unictype/test-categ_none.c: New file.
26683         * tests/unictype/test-categ_of.c: New file.
26684         * tests/unictype/test-categ_or.c: New file.
26685         * tests/unictype/test-categ_test_withtable.c: New file.
26686         * tests/unictype/test-combining.c: New file.
26687         * tests/unictype/test-decdigit.c: New file.
26688         * tests/unictype/test-digit.c: New file.
26689         * tests/unictype/test-mirror.c: New file.
26690         * tests/unictype/test-numeric.c: New file.
26691         * tests/unictype/test-pr_byname.c: New file.
26692         * tests/unictype/test-pr_test.c: New file.
26693         * tests/unictype/test-predicate-part1.h: New file.
26694         * tests/unictype/test-predicate-part2.h: New file.
26695         * tests/unictype/test-scripts.c: New file.
26696         * tests/unictype/test-sy_c_ident.c: New file.
26697         * tests/unictype/test-sy_java_ident.c: New file.
26698
26699         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
26700         for Unicode 5.0.0.
26701         * tests/unictype/test-categ_Cc.c: Likewise.
26702         * tests/unictype/test-categ_Cf.c: Likewise.
26703         * tests/unictype/test-categ_Cn.c: Likewise.
26704         * tests/unictype/test-categ_Co.c: Likewise.
26705         * tests/unictype/test-categ_Cs.c: Likewise.
26706         * tests/unictype/test-categ_L.c: Likewise.
26707         * tests/unictype/test-categ_Ll.c: Likewise.
26708         * tests/unictype/test-categ_Lm.c: Likewise.
26709         * tests/unictype/test-categ_Lo.c: Likewise.
26710         * tests/unictype/test-categ_Lt.c: Likewise.
26711         * tests/unictype/test-categ_Lu.c: Likewise.
26712         * tests/unictype/test-categ_M.c: Likewise.
26713         * tests/unictype/test-categ_Mc.c: Likewise.
26714         * tests/unictype/test-categ_Me.c: Likewise.
26715         * tests/unictype/test-categ_Mn.c: Likewise.
26716         * tests/unictype/test-categ_N.c: Likewise.
26717         * tests/unictype/test-categ_Nd.c: Likewise.
26718         * tests/unictype/test-categ_Nl.c: Likewise.
26719         * tests/unictype/test-categ_No.c: Likewise.
26720         * tests/unictype/test-categ_P.c: Likewise.
26721         * tests/unictype/test-categ_Pc.c: Likewise.
26722         * tests/unictype/test-categ_Pd.c: Likewise.
26723         * tests/unictype/test-categ_Pe.c: Likewise.
26724         * tests/unictype/test-categ_Pf.c: Likewise.
26725         * tests/unictype/test-categ_Pi.c: Likewise.
26726         * tests/unictype/test-categ_Po.c: Likewise.
26727         * tests/unictype/test-categ_Ps.c: Likewise.
26728         * tests/unictype/test-categ_S.c: Likewise.
26729         * tests/unictype/test-categ_Sc.c: Likewise.
26730         * tests/unictype/test-categ_Sk.c: Likewise.
26731         * tests/unictype/test-categ_Sm.c: Likewise.
26732         * tests/unictype/test-categ_So.c: Likewise.
26733         * tests/unictype/test-categ_Z.c: Likewise.
26734         * tests/unictype/test-categ_Zl.c: Likewise.
26735         * tests/unictype/test-categ_Zp.c: Likewise.
26736         * tests/unictype/test-categ_Zs.c: Likewise.
26737         * tests/unictype/test-ctype_alnum.c: Likewise.
26738         * tests/unictype/test-ctype_alpha.c: Likewise.
26739         * tests/unictype/test-ctype_blank.c: Likewise.
26740         * tests/unictype/test-ctype_cntrl.c: Likewise.
26741         * tests/unictype/test-ctype_digit.c: Likewise.
26742         * tests/unictype/test-ctype_graph.c: Likewise.
26743         * tests/unictype/test-ctype_lower.c: Likewise.
26744         * tests/unictype/test-ctype_print.c: Likewise.
26745         * tests/unictype/test-ctype_punct.c: Likewise.
26746         * tests/unictype/test-ctype_space.c: Likewise.
26747         * tests/unictype/test-ctype_upper.c: Likewise.
26748         * tests/unictype/test-ctype_xdigit.c: Likewise.
26749         * tests/unictype/test-decdigit.h: Likewise.
26750         * tests/unictype/test-digit.h: Likewise.
26751         * tests/unictype/test-numeric.h: Likewise.
26752         * tests/unictype/test-pr_alphabetic.c: Likewise.
26753         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
26754         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26755         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26756         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
26757         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26758         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
26759         * tests/unictype/test-pr_bidi_control.c: Likewise.
26760         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
26761         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
26762         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26763         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26764         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26765         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26766         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26767         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26768         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
26769         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
26770         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
26771         * tests/unictype/test-pr_combining.c: Likewise.
26772         * tests/unictype/test-pr_composite.c: Likewise.
26773         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26774         * tests/unictype/test-pr_dash.c: Likewise.
26775         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26776         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
26777         * tests/unictype/test-pr_deprecated.c: Likewise.
26778         * tests/unictype/test-pr_diacritic.c: Likewise.
26779         * tests/unictype/test-pr_extender.c: Likewise.
26780         * tests/unictype/test-pr_format_control.c: Likewise.
26781         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26782         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26783         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26784         * tests/unictype/test-pr_hex_digit.c: Likewise.
26785         * tests/unictype/test-pr_hyphen.c: Likewise.
26786         * tests/unictype/test-pr_id_continue.c: Likewise.
26787         * tests/unictype/test-pr_id_start.c: Likewise.
26788         * tests/unictype/test-pr_ideographic.c: Likewise.
26789         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
26790         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
26791         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26792         * tests/unictype/test-pr_iso_control.c: Likewise.
26793         * tests/unictype/test-pr_join_control.c: Likewise.
26794         * tests/unictype/test-pr_left_of_pair.c: Likewise.
26795         * tests/unictype/test-pr_line_separator.c: Likewise.
26796         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26797         * tests/unictype/test-pr_lowercase.c: Likewise.
26798         * tests/unictype/test-pr_math.c: Likewise.
26799         * tests/unictype/test-pr_non_break.c: Likewise.
26800         * tests/unictype/test-pr_not_a_character.c: Likewise.
26801         * tests/unictype/test-pr_numeric.c: Likewise.
26802         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26803         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
26804         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
26805         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26806         * tests/unictype/test-pr_other_id_start.c: Likewise.
26807         * tests/unictype/test-pr_other_lowercase.c: Likewise.
26808         * tests/unictype/test-pr_other_math.c: Likewise.
26809         * tests/unictype/test-pr_other_uppercase.c: Likewise.
26810         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
26811         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
26812         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
26813         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
26814         * tests/unictype/test-pr_private_use.c: Likewise.
26815         * tests/unictype/test-pr_punctuation.c: Likewise.
26816         * tests/unictype/test-pr_quotation_mark.c: Likewise.
26817         * tests/unictype/test-pr_radical.c: Likewise.
26818         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26819         * tests/unictype/test-pr_soft_dotted.c: Likewise.
26820         * tests/unictype/test-pr_space.c: Likewise.
26821         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26822         * tests/unictype/test-pr_titlecase.c: Likewise.
26823         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26824         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26825         * tests/unictype/test-pr_uppercase.c: Likewise.
26826         * tests/unictype/test-pr_variation_selector.c: Likewise.
26827         * tests/unictype/test-pr_white_space.c: Likewise.
26828         * tests/unictype/test-pr_xid_continue.c: Likewise.
26829         * tests/unictype/test-pr_xid_start.c: Likewise.
26830         * tests/unictype/test-pr_zero_width.c: Likewise.
26831         * tests/unictype/test-sy_c_whitespace.c: Likewise.
26832         * tests/unictype/test-sy_java_whitespace.c: Likewise.
26833
26834 2007-11-12  Bruno Haible  <bruno@clisp.org>
26835
26836         Unicode character classification functions.
26837         * lib/unictype.h: New file.
26838         * modules/unictype/base: New file.
26839         * modules/unictype/category-L: New file.
26840         * modules/unictype/category-Lu: New file.
26841         * modules/unictype/category-Ll: New file.
26842         * modules/unictype/category-Lt: New file.
26843         * modules/unictype/category-Lm: New file.
26844         * modules/unictype/category-Lo: New file.
26845         * modules/unictype/category-M: New file.
26846         * modules/unictype/category-Mn: New file.
26847         * modules/unictype/category-Mc: New file.
26848         * modules/unictype/category-Me: New file.
26849         * modules/unictype/category-N: New file.
26850         * modules/unictype/category-Nd: New file.
26851         * modules/unictype/category-Nl: New file.
26852         * modules/unictype/category-No: New file.
26853         * modules/unictype/category-P: New file.
26854         * modules/unictype/category-Pc: New file.
26855         * modules/unictype/category-Pd: New file.
26856         * modules/unictype/category-Ps: New file.
26857         * modules/unictype/category-Pe: New file.
26858         * modules/unictype/category-Pi: New file.
26859         * modules/unictype/category-Pf: New file.
26860         * modules/unictype/category-Po: New file.
26861         * modules/unictype/category-S: New file.
26862         * modules/unictype/category-Sm: New file.
26863         * modules/unictype/category-Sc: New file.
26864         * modules/unictype/category-Sk: New file.
26865         * modules/unictype/category-So: New file.
26866         * modules/unictype/category-Z: New file.
26867         * modules/unictype/category-Zs: New file.
26868         * modules/unictype/category-Zl: New file.
26869         * modules/unictype/category-Zp: New file.
26870         * modules/unictype/category-C: New file.
26871         * modules/unictype/category-Cc: New file.
26872         * modules/unictype/category-Cf: New file.
26873         * modules/unictype/category-Cs: New file.
26874         * modules/unictype/category-Co: New file.
26875         * modules/unictype/category-Cn: New file.
26876         * modules/unictype/category-or: New file.
26877         * modules/unictype/category-of: New file.
26878         * modules/unictype/category-test: New file.
26879         * modules/unictype/category-test-withtable: New file.
26880         * modules/unictype/category-byname: New file.
26881         * modules/unictype/category-none: New file.
26882         * modules/unictype/category-and: New file.
26883         * modules/unictype/category-and-not: New file.
26884         * modules/unictype/category-name: New file.
26885         * modules/unictype/combining-class: New file.
26886         * modules/unictype/category-all: New file.
26887         * modules/unictype/bidicategory-all: New file.
26888         * modules/unictype/bidicategory-byname: New file.
26889         * modules/unictype/bidicategory-name: New file.
26890         * modules/unictype/bidicategory-of: New file.
26891         * modules/unictype/bidicategory-test: New file.
26892         * modules/unictype/decimal-digit: New file.
26893         * modules/unictype/digit: New file.
26894         * modules/unictype/numeric: New file.
26895         * modules/unictype/mirror: New file.
26896         * modules/unictype/property-white-space: New file.
26897         * modules/unictype/property-alphabetic: New file.
26898         * modules/unictype/property-other-alphabetic: New file.
26899         * modules/unictype/property-not-a-character: New file.
26900         * modules/unictype/property-default-ignorable-code-point: New file.
26901         * modules/unictype/property-other-default-ignorable-code-point: New
26902         file.
26903         * modules/unictype/property-deprecated: New file.
26904         * modules/unictype/property-logical-order-exception: New file.
26905         * modules/unictype/property-variation-selector: New file.
26906         * modules/unictype/property-private-use: New file.
26907         * modules/unictype/property-unassigned-code-value: New file.
26908         * modules/unictype/property-uppercase: New file.
26909         * modules/unictype/property-other-uppercase: New file.
26910         * modules/unictype/property-lowercase: New file.
26911         * modules/unictype/property-other-lowercase: New file.
26912         * modules/unictype/property-titlecase: New file.
26913         * modules/unictype/property-soft-dotted: New file.
26914         * modules/unictype/property-id-start: New file.
26915         * modules/unictype/property-other-id-start: New file.
26916         * modules/unictype/property-id-continue: New file.
26917         * modules/unictype/property-other-id-continue: New file.
26918         * modules/unictype/property-xid-start: New file.
26919         * modules/unictype/property-xid-continue: New file.
26920         * modules/unictype/property-pattern-white-space: New file.
26921         * modules/unictype/property-pattern-syntax: New file.
26922         * modules/unictype/property-join-control: New file.
26923         * modules/unictype/property-grapheme-base: New file.
26924         * modules/unictype/property-grapheme-extend: New file.
26925         * modules/unictype/property-other-grapheme-extend: New file.
26926         * modules/unictype/property-grapheme-link: New file.
26927         * modules/unictype/property-bidi-control: New file.
26928         * modules/unictype/property-bidi-left-to-right: New file.
26929         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
26930         * modules/unictype/property-bidi-arabic-right-to-left: New file.
26931         * modules/unictype/property-bidi-european-digit: New file.
26932         * modules/unictype/property-bidi-eur-num-separator: New file.
26933         * modules/unictype/property-bidi-eur-num-terminator: New file.
26934         * modules/unictype/property-bidi-arabic-digit: New file.
26935         * modules/unictype/property-bidi-common-separator: New file.
26936         * modules/unictype/property-bidi-block-separator: New file.
26937         * modules/unictype/property-bidi-segment-separator: New file.
26938         * modules/unictype/property-bidi-whitespace: New file.
26939         * modules/unictype/property-bidi-non-spacing-mark: New file.
26940         * modules/unictype/property-bidi-boundary-neutral: New file.
26941         * modules/unictype/property-bidi-pdf: New file.
26942         * modules/unictype/property-bidi-embedding-or-override: New file.
26943         * modules/unictype/property-bidi-other-neutral: New file.
26944         * modules/unictype/property-hex-digit: New file.
26945         * modules/unictype/property-ascii-hex-digit: New file.
26946         * modules/unictype/property-ideographic: New file.
26947         * modules/unictype/property-unified-ideograph: New file.
26948         * modules/unictype/property-radical: New file.
26949         * modules/unictype/property-ids-binary-operator: New file.
26950         * modules/unictype/property-ids-trinary-operator: New file.
26951         * modules/unictype/property-zero-width: New file.
26952         * modules/unictype/property-space: New file.
26953         * modules/unictype/property-non-break: New file.
26954         * modules/unictype/property-iso-control: New file.
26955         * modules/unictype/property-format-control: New file.
26956         * modules/unictype/property-dash: New file.
26957         * modules/unictype/property-hyphen: New file.
26958         * modules/unictype/property-punctuation: New file.
26959         * modules/unictype/property-line-separator: New file.
26960         * modules/unictype/property-paragraph-separator: New file.
26961         * modules/unictype/property-quotation-mark: New file.
26962         * modules/unictype/property-sentence-terminal: New file.
26963         * modules/unictype/property-terminal-punctuation: New file.
26964         * modules/unictype/property-currency-symbol: New file.
26965         * modules/unictype/property-math: New file.
26966         * modules/unictype/property-other-math: New file.
26967         * modules/unictype/property-paired-punctuation: New file.
26968         * modules/unictype/property-left-of-pair: New file.
26969         * modules/unictype/property-combining: New file.
26970         * modules/unictype/property-composite: New file.
26971         * modules/unictype/property-decimal-digit: New file.
26972         * modules/unictype/property-numeric: New file.
26973         * modules/unictype/property-diacritic: New file.
26974         * modules/unictype/property-extender: New file.
26975         * modules/unictype/property-ignorable-control: New file.
26976         * modules/unictype/property-test: New file.
26977         * modules/unictype/property-byname: New file.
26978         * modules/unictype/property-all: New file.
26979         * modules/unictype/scripts: New file.
26980         * modules/unictype/scripts-all: New file.
26981         * modules/unictype/block-of: New file.
26982         * modules/unictype/block-test: New file.
26983         * modules/unictype/block-list: New file.
26984         * modules/unictype/block-all: New file.
26985         * modules/unictype/syntax-c-whitespace: New file.
26986         * modules/unictype/syntax-java-whitespace: New file.
26987         * modules/unictype/syntax-c-ident: New file.
26988         * modules/unictype/syntax-java-ident: New file.
26989         * modules/unictype/ctype-alnum: New file.
26990         * modules/unictype/ctype-alpha: New file.
26991         * modules/unictype/ctype-cntrl: New file.
26992         * modules/unictype/ctype-digit: New file.
26993         * modules/unictype/ctype-graph: New file.
26994         * modules/unictype/ctype-lower: New file.
26995         * modules/unictype/ctype-print: New file.
26996         * modules/unictype/ctype-punct: New file.
26997         * modules/unictype/ctype-space: New file.
26998         * modules/unictype/ctype-upper: New file.
26999         * modules/unictype/ctype-xdigit: New file.
27000         * modules/unictype/ctype-blank: New file.
27001         * lib/unictype/bidi_byname.c: New file.
27002         * lib/unictype/bidi_name.c: New file.
27003         * lib/unictype/bidi_of.c: New file.
27004         * lib/unictype/bidi_test.c: New file.
27005         * lib/unictype/bitmap.h: New file.
27006         * lib/unictype/block_test.c: New file.
27007         * lib/unictype/blocks.c: New file.
27008         * lib/unictype/categ_C.c: New file.
27009         * lib/unictype/categ_Cc.c: New file.
27010         * lib/unictype/categ_Cf.c: New file.
27011         * lib/unictype/categ_Cn.c: New file.
27012         * lib/unictype/categ_Co.c: New file.
27013         * lib/unictype/categ_Cs.c: New file.
27014         * lib/unictype/categ_L.c: New file.
27015         * lib/unictype/categ_Ll.c: New file.
27016         * lib/unictype/categ_Lm.c: New file.
27017         * lib/unictype/categ_Lo.c: New file.
27018         * lib/unictype/categ_Lt.c: New file.
27019         * lib/unictype/categ_Lu.c: New file.
27020         * lib/unictype/categ_M.c: New file.
27021         * lib/unictype/categ_Mc.c: New file.
27022         * lib/unictype/categ_Me.c: New file.
27023         * lib/unictype/categ_Mn.c: New file.
27024         * lib/unictype/categ_N.c: New file.
27025         * lib/unictype/categ_Nd.c: New file.
27026         * lib/unictype/categ_Nl.c: New file.
27027         * lib/unictype/categ_No.c: New file.
27028         * lib/unictype/categ_P.c: New file.
27029         * lib/unictype/categ_Pc.c: New file.
27030         * lib/unictype/categ_Pd.c: New file.
27031         * lib/unictype/categ_Pe.c: New file.
27032         * lib/unictype/categ_Pf.c: New file.
27033         * lib/unictype/categ_Pi.c: New file.
27034         * lib/unictype/categ_Po.c: New file.
27035         * lib/unictype/categ_Ps.c: New file.
27036         * lib/unictype/categ_S.c: New file.
27037         * lib/unictype/categ_Sc.c: New file.
27038         * lib/unictype/categ_Sk.c: New file.
27039         * lib/unictype/categ_Sm.c: New file.
27040         * lib/unictype/categ_So.c: New file.
27041         * lib/unictype/categ_Z.c: New file.
27042         * lib/unictype/categ_Zl.c: New file.
27043         * lib/unictype/categ_Zp.c: New file.
27044         * lib/unictype/categ_Zs.c: New file.
27045         * lib/unictype/categ_and.c: New file.
27046         * lib/unictype/categ_and_not.c: New file.
27047         * lib/unictype/categ_byname.c: New file.
27048         * lib/unictype/categ_name.c: New file.
27049         * lib/unictype/categ_none.c: New file.
27050         * lib/unictype/categ_of.c: New file.
27051         * lib/unictype/categ_or.c: New file.
27052         * lib/unictype/categ_test.c: New file.
27053         * lib/unictype/combining.c: New file.
27054         * lib/unictype/ctype_alnum.c: New file.
27055         * lib/unictype/ctype_alpha.c: New file.
27056         * lib/unictype/ctype_blank.c: New file.
27057         * lib/unictype/ctype_cntrl.c: New file.
27058         * lib/unictype/ctype_digit.c: New file.
27059         * lib/unictype/ctype_graph.c: New file.
27060         * lib/unictype/ctype_lower.c: New file.
27061         * lib/unictype/ctype_print.c: New file.
27062         * lib/unictype/ctype_punct.c: New file.
27063         * lib/unictype/ctype_space.c: New file.
27064         * lib/unictype/ctype_upper.c: New file.
27065         * lib/unictype/ctype_xdigit.c: New file.
27066         * lib/unictype/decdigit.c: New file.
27067         * lib/unictype/digit.c: New file.
27068         * lib/unictype/identsyntaxmap.h: New file.
27069         * lib/unictype/mirror.c: New file.
27070         * lib/unictype/numeric.c: New file.
27071         * lib/unictype/pr_alphabetic.c: New file.
27072         * lib/unictype/pr_ascii_hex_digit.c: New file.
27073         * lib/unictype/pr_bidi_arabic_digit.c: New file.
27074         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27075         * lib/unictype/pr_bidi_block_separator.c: New file.
27076         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27077         * lib/unictype/pr_bidi_common_separator.c: New file.
27078         * lib/unictype/pr_bidi_control.c: New file.
27079         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27080         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27081         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27082         * lib/unictype/pr_bidi_european_digit.c: New file.
27083         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27084         * lib/unictype/pr_bidi_left_to_right.c: New file.
27085         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27086         * lib/unictype/pr_bidi_other_neutral.c: New file.
27087         * lib/unictype/pr_bidi_pdf.c: New file.
27088         * lib/unictype/pr_bidi_segment_separator.c: New file.
27089         * lib/unictype/pr_bidi_whitespace.c: New file.
27090         * lib/unictype/pr_byname.c: New file.
27091         * lib/unictype/pr_byname.gperf: New file.
27092         * lib/unictype/pr_combining.c: New file.
27093         * lib/unictype/pr_composite.c: New file.
27094         * lib/unictype/pr_currency_symbol.c: New file.
27095         * lib/unictype/pr_dash.c: New file.
27096         * lib/unictype/pr_decimal_digit.c: New file.
27097         * lib/unictype/pr_default_ignorable_code_point.c: New file.
27098         * lib/unictype/pr_deprecated.c: New file.
27099         * lib/unictype/pr_diacritic.c: New file.
27100         * lib/unictype/pr_extender.c: New file.
27101         * lib/unictype/pr_format_control.c: New file.
27102         * lib/unictype/pr_grapheme_base.c: New file.
27103         * lib/unictype/pr_grapheme_extend.c: New file.
27104         * lib/unictype/pr_grapheme_link.c: New file.
27105         * lib/unictype/pr_hex_digit.c: New file.
27106         * lib/unictype/pr_hyphen.c: New file.
27107         * lib/unictype/pr_id_continue.c: New file.
27108         * lib/unictype/pr_id_start.c: New file.
27109         * lib/unictype/pr_ideographic.c: New file.
27110         * lib/unictype/pr_ids_binary_operator.c: New file.
27111         * lib/unictype/pr_ids_trinary_operator.c: New file.
27112         * lib/unictype/pr_ignorable_control.c: New file.
27113         * lib/unictype/pr_iso_control.c: New file.
27114         * lib/unictype/pr_join_control.c: New file.
27115         * lib/unictype/pr_left_of_pair.c: New file.
27116         * lib/unictype/pr_line_separator.c: New file.
27117         * lib/unictype/pr_logical_order_exception.c: New file.
27118         * lib/unictype/pr_lowercase.c: New file.
27119         * lib/unictype/pr_math.c: New file.
27120         * lib/unictype/pr_non_break.c: New file.
27121         * lib/unictype/pr_not_a_character.c: New file.
27122         * lib/unictype/pr_numeric.c: New file.
27123         * lib/unictype/pr_other_alphabetic.c: New file.
27124         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27125         * lib/unictype/pr_other_grapheme_extend.c: New file.
27126         * lib/unictype/pr_other_id_continue.c: New file.
27127         * lib/unictype/pr_other_id_start.c: New file.
27128         * lib/unictype/pr_other_lowercase.c: New file.
27129         * lib/unictype/pr_other_math.c: New file.
27130         * lib/unictype/pr_other_uppercase.c: New file.
27131         * lib/unictype/pr_paired_punctuation.c: New file.
27132         * lib/unictype/pr_paragraph_separator.c: New file.
27133         * lib/unictype/pr_pattern_syntax.c: New file.
27134         * lib/unictype/pr_pattern_white_space.c: New file.
27135         * lib/unictype/pr_private_use.c: New file.
27136         * lib/unictype/pr_punctuation.c: New file.
27137         * lib/unictype/pr_quotation_mark.c: New file.
27138         * lib/unictype/pr_radical.c: New file.
27139         * lib/unictype/pr_sentence_terminal.c: New file.
27140         * lib/unictype/pr_soft_dotted.c: New file.
27141         * lib/unictype/pr_space.c: New file.
27142         * lib/unictype/pr_terminal_punctuation.c: New file.
27143         * lib/unictype/pr_test.c: New file.
27144         * lib/unictype/pr_titlecase.c: New file.
27145         * lib/unictype/pr_unassigned_code_value.c: New file.
27146         * lib/unictype/pr_unified_ideograph.c: New file.
27147         * lib/unictype/pr_uppercase.c: New file.
27148         * lib/unictype/pr_variation_selector.c: New file.
27149         * lib/unictype/pr_white_space.c: New file.
27150         * lib/unictype/pr_xid_continue.c: New file.
27151         * lib/unictype/pr_xid_start.c: New file.
27152         * lib/unictype/pr_zero_width.c: New file.
27153         * lib/unictype/scripts.c: New file.
27154         * lib/unictype/sy_c_ident.c: New file.
27155         * lib/unictype/sy_c_whitespace.c: New file.
27156         * lib/unictype/sy_java_ident.c: New file.
27157         * lib/unictype/sy_java_whitespace.c: New file.
27158
27159         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27160         Unicode 5.0.0.
27161         * lib/unictype/blocks.h: Likewise.
27162         * lib/unictype/categ_C.h: Likewise.
27163         * lib/unictype/categ_Cc.h: Likewise.
27164         * lib/unictype/categ_Cf.h: Likewise.
27165         * lib/unictype/categ_Cn.h: Likewise.
27166         * lib/unictype/categ_Co.h: Likewise.
27167         * lib/unictype/categ_Cs.h: Likewise.
27168         * lib/unictype/categ_L.h: Likewise.
27169         * lib/unictype/categ_Ll.h: Likewise.
27170         * lib/unictype/categ_Lm.h: Likewise.
27171         * lib/unictype/categ_Lo.h: Likewise.
27172         * lib/unictype/categ_Lt.h: Likewise.
27173         * lib/unictype/categ_Lu.h: Likewise.
27174         * lib/unictype/categ_M.h: Likewise.
27175         * lib/unictype/categ_Mc.h: Likewise.
27176         * lib/unictype/categ_Me.h: Likewise.
27177         * lib/unictype/categ_Mn.h: Likewise.
27178         * lib/unictype/categ_N.h: Likewise.
27179         * lib/unictype/categ_Nd.h: Likewise.
27180         * lib/unictype/categ_Nl.h: Likewise.
27181         * lib/unictype/categ_No.h: Likewise.
27182         * lib/unictype/categ_P.h: Likewise.
27183         * lib/unictype/categ_Pc.h: Likewise.
27184         * lib/unictype/categ_Pd.h: Likewise.
27185         * lib/unictype/categ_Pe.h: Likewise.
27186         * lib/unictype/categ_Pf.h: Likewise.
27187         * lib/unictype/categ_Pi.h: Likewise.
27188         * lib/unictype/categ_Po.h: Likewise.
27189         * lib/unictype/categ_Ps.h: Likewise.
27190         * lib/unictype/categ_S.h: Likewise.
27191         * lib/unictype/categ_Sc.h: Likewise.
27192         * lib/unictype/categ_Sk.h: Likewise.
27193         * lib/unictype/categ_Sm.h: Likewise.
27194         * lib/unictype/categ_So.h: Likewise.
27195         * lib/unictype/categ_Z.h: Likewise.
27196         * lib/unictype/categ_Zl.h: Likewise.
27197         * lib/unictype/categ_Zp.h: Likewise.
27198         * lib/unictype/categ_Zs.h: Likewise.
27199         * lib/unictype/categ_of.h: Likewise.
27200         * lib/unictype/combining.h: Likewise.
27201         * lib/unictype/ctype_alnum.h: Likewise.
27202         * lib/unictype/ctype_alpha.h: Likewise.
27203         * lib/unictype/ctype_blank.h: Likewise.
27204         * lib/unictype/ctype_cntrl.h: Likewise.
27205         * lib/unictype/ctype_digit.h: Likewise.
27206         * lib/unictype/ctype_graph.h: Likewise.
27207         * lib/unictype/ctype_lower.h: Likewise.
27208         * lib/unictype/ctype_print.h: Likewise.
27209         * lib/unictype/ctype_punct.h: Likewise.
27210         * lib/unictype/ctype_space.h: Likewise.
27211         * lib/unictype/ctype_upper.h: Likewise.
27212         * lib/unictype/ctype_xdigit.h: Likewise.
27213         * lib/unictype/decdigit.h: Likewise.
27214         * lib/unictype/digit.h: Likewise.
27215         * lib/unictype/mirror.h: Likewise.
27216         * lib/unictype/numeric.h: Likewise.
27217         * lib/unictype/pr_alphabetic.h: Likewise.
27218         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27219         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27220         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27221         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27222         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27223         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27224         * lib/unictype/pr_bidi_control.h: Likewise.
27225         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27226         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27227         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27228         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27229         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27230         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27231         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27232         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27233         * lib/unictype/pr_bidi_pdf.h: Likewise.
27234         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27235         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27236         * lib/unictype/pr_combining.h: Likewise.
27237         * lib/unictype/pr_composite.h: Likewise.
27238         * lib/unictype/pr_currency_symbol.h: Likewise.
27239         * lib/unictype/pr_dash.h: Likewise.
27240         * lib/unictype/pr_decimal_digit.h: Likewise.
27241         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27242         * lib/unictype/pr_deprecated.h: Likewise.
27243         * lib/unictype/pr_diacritic.h: Likewise.
27244         * lib/unictype/pr_extender.h: Likewise.
27245         * lib/unictype/pr_format_control.h: Likewise.
27246         * lib/unictype/pr_grapheme_base.h: Likewise.
27247         * lib/unictype/pr_grapheme_extend.h: Likewise.
27248         * lib/unictype/pr_grapheme_link.h: Likewise.
27249         * lib/unictype/pr_hex_digit.h: Likewise.
27250         * lib/unictype/pr_hyphen.h: Likewise.
27251         * lib/unictype/pr_id_continue.h: Likewise.
27252         * lib/unictype/pr_id_start.h: Likewise.
27253         * lib/unictype/pr_ideographic.h: Likewise.
27254         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27255         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27256         * lib/unictype/pr_ignorable_control.h: Likewise.
27257         * lib/unictype/pr_iso_control.h: Likewise.
27258         * lib/unictype/pr_join_control.h: Likewise.
27259         * lib/unictype/pr_left_of_pair.h: Likewise.
27260         * lib/unictype/pr_line_separator.h: Likewise.
27261         * lib/unictype/pr_logical_order_exception.h: Likewise.
27262         * lib/unictype/pr_lowercase.h: Likewise.
27263         * lib/unictype/pr_math.h: Likewise.
27264         * lib/unictype/pr_non_break.h: Likewise.
27265         * lib/unictype/pr_not_a_character.h: Likewise.
27266         * lib/unictype/pr_numeric.h: Likewise.
27267         * lib/unictype/pr_other_alphabetic.h: Likewise.
27268         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27269         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27270         * lib/unictype/pr_other_id_continue.h: Likewise.
27271         * lib/unictype/pr_other_id_start.h: Likewise.
27272         * lib/unictype/pr_other_lowercase.h: Likewise.
27273         * lib/unictype/pr_other_math.h: Likewise.
27274         * lib/unictype/pr_other_uppercase.h: Likewise.
27275         * lib/unictype/pr_paired_punctuation.h: Likewise.
27276         * lib/unictype/pr_paragraph_separator.h: Likewise.
27277         * lib/unictype/pr_pattern_syntax.h: Likewise.
27278         * lib/unictype/pr_pattern_white_space.h: Likewise.
27279         * lib/unictype/pr_private_use.h: Likewise.
27280         * lib/unictype/pr_punctuation.h: Likewise.
27281         * lib/unictype/pr_quotation_mark.h: Likewise.
27282         * lib/unictype/pr_radical.h: Likewise.
27283         * lib/unictype/pr_sentence_terminal.h: Likewise.
27284         * lib/unictype/pr_soft_dotted.h: Likewise.
27285         * lib/unictype/pr_space.h: Likewise.
27286         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27287         * lib/unictype/pr_titlecase.h: Likewise.
27288         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27289         * lib/unictype/pr_unified_ideograph.h: Likewise.
27290         * lib/unictype/pr_uppercase.h: Likewise.
27291         * lib/unictype/pr_variation_selector.h: Likewise.
27292         * lib/unictype/pr_white_space.h: Likewise.
27293         * lib/unictype/pr_xid_continue.h: Likewise.
27294         * lib/unictype/pr_xid_start.h: Likewise.
27295         * lib/unictype/pr_zero_width.h: Likewise.
27296         * lib/unictype/scripts.h: Likewise.
27297         * lib/unictype/scripts_byname.gperf: Likewise.
27298         * lib/unictype/sy_c_ident.h: Likewise.
27299         * lib/unictype/sy_c_whitespace.h: Likewise.
27300         * lib/unictype/sy_java_ident.h: Likewise.
27301         * lib/unictype/sy_java_whitespace.h: Likewise.
27302
27303         * lib/unictype/Makefile: New file.
27304         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
27305         glibc.
27306         * lib/unictype/3level.h: New file, copied from glibc.
27307         * lib/unictype/3levelbit.h: New file.
27308
27309 2007-11-11  Bruno Haible  <bruno@clisp.org>
27310
27311         * modules/gperf: New file.
27312         * modules/iconv_open (Depends-on): Add it.
27313         (Makefile.am): Remove the GPERF definition.
27314
27315 2007-11-11  Bruno Haible  <bruno@clisp.org>
27316
27317         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
27318         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
27319
27320 2007-11-11  Bruno Haible  <bruno@clisp.org>
27321
27322         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
27323         (usage): Remove function.
27324
27325 2007-11-11  Bruno Haible  <bruno@clisp.org>
27326
27327         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
27328         gl_FUNC_CEILF_LIBS.
27329         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
27330         gl_FUNC_CEIL_LIBS.
27331         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
27332         gl_FUNC_CEILL_LIBS.
27333         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
27334         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27335         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
27336
27337 2007-11-11  Bruno Haible  <bruno@clisp.org>
27338
27339         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
27340         roundf were declared but do not exist on functions.
27341         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
27342         roundl were declared but do not exist on functions.
27343         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
27344         HAVE_FLOORL_AND_CEILL, respectively.
27345         Needed for Sun C on Solaris 10.
27346
27347 2007-11-11  Bruno Haible  <bruno@clisp.org>
27348
27349         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
27350         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
27351         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
27352         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
27353         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
27354         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
27355         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
27356         HAVE_DECL_ROUNDF.
27357         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
27358         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
27359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
27360         of HAVE_DECL_ROUND*.
27361         * modules/math (Makefile.am): Update.
27362
27363 2007-11-10  Bruno Haible  <bruno@clisp.org>
27364
27365         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
27366         ptrdiff_t as m4/intl.m4.
27367
27368 2007-11-10  Jim Meyering  <meyering@redhat.com>
27369
27370         Avoid link failure for the argmatch test.
27371         * tests/test-argmatch.c (usage): Define function to avoid a link
27372         failure: argmatch_die requires a usage function.
27373
27374 2007-11-09  Bruno Haible  <bruno@clisp.org>
27375
27376         * doc/functions/snprintf.texi: Mention BeOS deficiency.
27377         * doc/functions/vsnprintf.texi: Likewise.
27378         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
27379         with a size argument < 2.
27380
27381 2007-11-09  Bruno Haible  <bruno@clisp.org>
27382
27383         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
27384         buffer. Fixes an inefficiency introduced on 2007-11-03.
27385
27386 2007-11-09  Bruno Haible  <bruno@clisp.org>
27387
27388         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
27389         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
27390
27391 2007-11-08  Jim Meyering  <meyering@redhat.com>
27392
27393         Change cache variable name prefix "jm_" to "gl_" everywhere.
27394         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
27395         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
27396         * m4/uptime.m4: s/gl_/jm_/
27397
27398 2007-11-07  Bruno Haible  <bruno@clisp.org>
27399
27400         Update to GNU gettext 0.17.
27401         * m4/intl.m4: Update to GNU gettext 0.17.
27402         * m4/po.m4: Likewise.
27403         * modules/gettext (Files): Remove m4/ulonglong.m4.
27404         (configure.ac): Require gettext infrastructure from version 0.17.
27405
27406 2007-11-06  Bruno Haible  <bruno@clisp.org>
27407
27408         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
27409         symbolic values are not defined in a public header.
27410         * lib/freadable.c (freadable) [QNX]: Likewise.
27411         * lib/freadahead.c (freadahead) [QNX]: Likewise.
27412         * lib/freading.c (freading) [QNX]: Likewise.
27413         * lib/fseterr.c (fseterr) [QNX]: Likewise.
27414         * lib/fwritable.c (fwritable) [QNX]: Likewise.
27415         * lib/fwriting.c (fwriting) [QNX]: Likewise.
27416         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
27417         Reported by Alain Magloire.
27418
27419         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
27420
27421 2007-11-05  Bruno Haible  <bruno@clisp.org>
27422
27423         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
27424         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
27425         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
27426         Reported by Eric Blake.
27427
27428 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27429             Bruno Haible  <bruno@clisp.org>
27430
27431         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
27432         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
27433         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
27434         (malloc): Undefine also before including <stdlib.h>.
27435         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
27436         Needed on OSF/1 4.0.
27437
27438 2007-11-05  Jim Meyering  <meyering@redhat.com>
27439
27440         git-version-gen: sync from coreutils.
27441         * build-aux/git-version-gen: Add comments.
27442         Change the first '-' to '.' in the snapshot version string,
27443         e.g., 6.9-377-08144 -> 6.9.377-08144
27444         Remove first parameter.
27445         Don't declare a version "-dirty" merely because a time
27446         stamp has changed.
27447
27448 2007-11-04  Bruno Haible  <bruno@clisp.org>
27449
27450         * lib/lock.h: Protect all macro definitions containing an 'if'
27451         statement through a "do { ... } while (0)".
27452         * lib/tls.h: Likewise.
27453
27454 2007-11-04  Bruno Haible  <bruno@clisp.org>
27455
27456         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
27457
27458 2007-11-04  Bruno Haible  <bruno@clisp.org>
27459
27460         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
27461         * modules/fprintf-posix (Depends-on): Add nocrash.
27462         * modules/snprintf-posix (Depends-on): Likewise.
27463         * modules/sprintf-posix (Depends-on): Likewise.
27464         * modules/vasnprintf-posix (Depends-on): Likewise.
27465         * modules/vasprintf-posix (Depends-on): Likewise.
27466         * modules/vfprintf-posix (Depends-on): Likewise.
27467         * modules/vsnprintf-posix (Depends-on): Likewise.
27468         * modules/vsprintf-posix (Depends-on): Likewise.
27469         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27470         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27471         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27472         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27473         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27474         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27475         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27476
27477 2007-11-04  Bruno Haible  <bruno@clisp.org>
27478
27479         * modules/nocrash: New file.
27480         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
27481         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
27482
27483 2007-11-04  Bruno Haible  <bruno@clisp.org>
27484
27485         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
27486         precision handling.
27487         * tests/test-vasprintf-posix.c (test_function): Likewise.
27488         * tests/test-snprintf-posix.h (test_function): Likewise.
27489         * tests/test-sprintf-posix.h (test_function): Likewise.
27490
27491         Fix *printf behaviour for large precisions on mingw and BeOS.
27492         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
27493         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
27494         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
27495         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27496         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27497         gl_PRINTF_PRECISION and test its result. Invoke
27498         gl_PREREQ_VASNPRINTF_PRECISION.
27499         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27500         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27501         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27502         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27506         * doc/functions/fprintf.texi: Update.
27507         * doc/functions/printf.texi: Update.
27508         * doc/functions/snprintf.texi: Update.
27509         * doc/functions/sprintf.texi: Update.
27510         * doc/functions/vfprintf.texi: Update.
27511         * doc/functions/vprintf.texi: Update.
27512         * doc/functions/vsnprintf.texi: Update.
27513         * doc/functions/vsprintf.texi: Update.
27514
27515 2007-11-04  Bruno Haible  <bruno@clisp.org>
27516
27517         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
27518
27519 2007-11-04  Bruno Haible  <bruno@clisp.org>
27520
27521         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
27522         Reported by Sylvain Beucler <beuc@gnu.org>.
27523
27524 2007-11-03  Bruno Haible  <bruno@clisp.org>
27525
27526         * tests/test-fprintf-posix2.sh: New file.
27527         * tests/test-fprintf-posix2.c: New file.
27528         * modules/fprintf-posix-tests (Files): Add them.
27529         (TESTS): Add test-fprintf-posix2.sh.
27530         (configure.ac): Check for getrlimit and setrlimit.
27531         (check_PROGRAMS): Add test-fprintf-posix2.
27532
27533         * tests/test-printf-posix2.sh: New file.
27534         * tests/test-printf-posix2.c: New file.
27535         * modules/printf-posix-tests (Files): Add them.
27536         (TESTS): Add test-printf-posix2.sh.
27537         (configure.ac): Check for getrlimit and setrlimit.
27538         (check_PROGRAMS): Add test-printf-posix2.
27539
27540         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
27541         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
27542         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
27543         (decode_double): New function, copied from decode_long_double.
27544         (scale10_round_decimal_decoded): New function, extracted from
27545         scale10_round_decimal_long_double.
27546         (scale10_round_decimal_long_double): Use it.
27547         (scale10_round_decimal_double): New function.
27548         (floorlog10): New function.
27549         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
27550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
27551         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27552         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27553         gl_PRINTF_ENOMEM and test its result. Invoke
27554         gl_PREREQ_VASNPRINTF_ENOMEM.
27555         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27556         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27557         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27559         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27561         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27562         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
27563         * modules/snprintf-posix (Depends-on): Likewise.
27564         * modules/sprintf-posix (Depends-on): Likewise.
27565         * modules/vasnprintf-posix (Depends-on): Likewise.
27566         * modules/vasprintf-posix (Depends-on): Likewise.
27567         * modules/vfprintf-posix (Depends-on): Likewise.
27568         * modules/vsnprintf-posix (Depends-on): Likewise.
27569         * modules/vsprintf-posix (Depends-on): Likewise.
27570         * doc/functions/fprintf.texi: Update.
27571         * doc/functions/printf.texi: Update.
27572         * doc/functions/snprintf.texi: Update.
27573         * doc/functions/sprintf.texi: Update.
27574         * doc/functions/vfprintf.texi: Update.
27575         * doc/functions/vprintf.texi: Update.
27576         * doc/functions/vsnprintf.texi: Update.
27577         * doc/functions/vsprintf.texi: Update.
27578
27579 2007-11-03  Bruno Haible  <bruno@clisp.org>
27580
27581         * modules/frexp-nolibm-tests: New file.
27582
27583         * modules/frexp-nolibm: New file.
27584         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
27585
27586 2007-11-03  Bruno Haible  <bruno@clisp.org>
27587
27588         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
27589         value is C99 compliant.
27590         Needed for OSF/1 5.1.
27591
27592 2007-11-03  Bruno Haible  <bruno@clisp.org>
27593
27594         Fix out-of-memory handling of vasnprintf.
27595         * lib/printf-parse.c: Include <errno.h>.
27596         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
27597         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
27598         is already set.
27599
27600 2007-11-02  Eric Blake  <ebb9@byu.net>
27601
27602         Fix tests on cygwin.
27603         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
27604
27605 2007-11-01  Bruno Haible  <bruno@clisp.org>
27606
27607         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
27608         warning.
27609         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
27610         needed for POSIX compatibility.
27611
27612 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27613
27614         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
27615         for compatibility with GNU.
27616
27617 2007-11-01  Bruno Haible  <bruno@clisp.org>
27618
27619         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
27620         (putenv): Renamed from rpl_putenv. Change argument type from
27621         'const char *' to 'char *'.
27622         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
27623         of defining putenv in config.h, just set REPLACE_PUTENV.
27624         * modules/putenv (Depends-on): Add stdlib.
27625         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27626         (Include): Use <stdlib.h>.
27627         * lib/stdlib.in.h (putenv): New declaration.
27628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
27629         REPLACE_PUTENV.
27630         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
27631         REPLACE_PUTENV.
27632         Needed for MacOS X 10.5.0.
27633         Reported by Peter O'Gorman <peter@pogma.com>.
27634
27635 2007-11-01  Jim Meyering  <meyering@redhat.com>
27636
27637         Treat an empty date string exactly like "0".
27638         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
27639         if the remaining date string (to be parsed) is empty, use "0".
27640         Reported by Mischa Molhoek and discussed in this thread:
27641         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
27642
27643 2007-10-31  Bruno Haible  <bruno@clisp.org>
27644
27645         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
27646         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
27647         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
27648         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
27649         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
27650         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
27651
27652 2007-10-31  Bruno Haible  <bruno@clisp.org>
27653
27654         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
27655         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
27656         (AC_TYPE_LONG_LONG_INT): Use it.
27657         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
27658         it as well.
27659         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
27660         to m4/longlong.m4.
27661         * modules/stdint (Files): Remove m4/ulonglong.m4.
27662         * modules/strtoull (Files): Use m4/longlong.m4 instead of
27663         m4/ulonglong.m4.
27664         * modules/strtoumax (Files): Likewise.
27665
27666 2007-10-30  Bruno Haible  <bruno@clisp.org>
27667
27668         * modules/xvasprintf-posix: New file.
27669         Suggested by Eric Blake.
27670
27671 2007-10-30  Bruno Haible  <bruno@clisp.org>
27672
27673         * modules/xprintf-posix-tests: New file.
27674         * tests/test-xprintf-posix.sh: New file.
27675         * tests/test-xprintf-posix.c: New file.
27676         * tests/test-xfprintf-posix.c: New file.
27677
27678         * modules/xprintf-posix: New file.
27679
27680 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27681
27682         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
27683         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
27684         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
27685
27686 2007-10-29  Bruno Haible  <bruno@clisp.org>
27687
27688         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
27689         contain the special marker '_cv_'.
27690         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27691         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27692         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27693         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27694         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27695         Reported by Ralf Wildenhues.
27696
27697 2007-10-29  Bruno Haible  <bruno@clisp.org>
27698
27699         * gnulib-tool (func_import): When --lgpl is not specified, set
27700         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
27701         GPLv3.
27702         Reported by Simon Josefsson.
27703
27704 2007-10-28  Bruno Haible  <bruno@clisp.org>
27705
27706         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
27707         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
27708         HAVE_DECL_ISFINITE.
27709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27710         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
27711         HAVE_DECL_ISFINITE.
27712
27713 2007-10-28  Bruno Haible  <bruno@clisp.org>
27714
27715         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
27716         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
27717
27718 2007-10-28  Bruno Haible  <bruno@clisp.org>
27719
27720         Fix link errors with Sun C 5.0 on Solaris 10.
27721         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
27722         function is declared but not present in the compiler's libm.
27723         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27724         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27725         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
27726         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
27727         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
27728         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
27729         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
27730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27731         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
27732         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
27733         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
27734         HAVE_DECL_FLOORL.
27735
27736 2007-10-28  Bruno Haible  <bruno@clisp.org>
27737
27738         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
27739         gl_FUNC_FLOORL. Cache the result.
27740         (gl_FUNC_FLOORL): Use it.
27741         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
27742         gl_FUNC_CEILL. Cache the result.
27743         (gl_FUNC_CEILL): Use it.
27744
27745         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
27746         gl_FUNC_FLOOR. Cache the result.
27747         (gl_FUNC_FLOOR): Use it.
27748         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
27749         gl_FUNC_CEIL. Cache the result.
27750         (gl_FUNC_CEIL): Use it.
27751
27752         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
27753         gl_FUNC_FLOORF. Cache the result.
27754         (gl_FUNC_FLOORF): Use it.
27755         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
27756         gl_FUNC_CEILF. Cache the result.
27757         (gl_FUNC_CEILF): Use it.
27758
27759 2007-10-28  Bruno Haible  <bruno@clisp.org>
27760
27761         * gnulib-tool: Allow specifying the LGPL version number through
27762         --lgpl=2 or --lgpl=3.
27763         (func_usage): Document --lgpl with argument.
27764         Handle --lgpl=... arguments.
27765         (func_import): Recognize also gl_LGPL calls with an argument. When
27766         --lgpl=2 is used and the module's license is just LGPL, report an
27767         error. Set sed_transform_lib_file according to the lgpl variable. In
27768         the generated files, use --lgpl or gl_LGPL invocations with argument,
27769         if necessary.
27770         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
27771         an LGPv2+ license.
27772         * doc/gnulib-tool.texi (Modified imports): Update explanation of
27773         gl_LGPL macro.
27774
27775 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27776             Bruno Haible  <bruno@clisp.org>
27777
27778         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
27779         (u16_uctomb_aux): Likewise.
27780         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
27781         !HAVE_INLINE.
27782         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
27783
27784 2007-10-28  Bruno Haible  <bruno@clisp.org>
27785
27786         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
27787         Invoke AM_GETTEXT_OPTION if it exists.
27788         * modules/vasprintf: Likewise.
27789         * modules/verror: Likewise.
27790         * modules/xprintf: Likewise.
27791         * modules/xvasprintf: Likewise.
27792
27793 2007-10-27  Ben Pfaff  <blp@gnu.org>
27794
27795         * lib/math.in.h: Define isfinite macro and prototypes for
27796         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
27797         implementations.
27798         * m4/math_h.m4: New substitutions for isfinite module.
27799         * lib/isfinite.c: New file.
27800         * m4/isfinite.m4: New file.
27801         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
27802         * modules/isfinite: New file.
27803         * modules/isfinite-tests: New file.
27804         * tests/tests-isfinite.c: New file.
27805         * doc/functions/isfinite.texi: Mention isfinite module.
27806         * MODULES.html.sh: Mention new module.
27807
27808 2007-10-27  Ben Pfaff  <blp@gnu.org>
27809
27810         Ralf Wildenhues reported that Tru64 4.0D declares the round
27811         functions but does not have definitions.
27812         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
27813         cannot be found in any library, set the output variable to
27814         "missing" instead of "".
27815         * m4/round.m4: Also use our substitute if we cannot find round in
27816         any library, even if it is declared.
27817         * m4/roundf.m4: Likewise for roundf.
27818         * m4/roundl.m4: Likewise for roundl.
27819         * lib/math.in.h: Undefine roundf, round, roundl before defining
27820         their replacements, to allow for hypothetical systems where these
27821         may be defined as macros but not available in libraries.
27822
27823 2007-10-27  Bruno Haible  <bruno@clisp.org>
27824
27825         * doc/gnulib.texi: Invoke @firstparagraphindent.
27826         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
27827         changes in gnulib.
27828         (Source changes): New section.
27829
27830 2007-10-26  Bruno Haible  <bruno@clisp.org>
27831
27832         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
27833         borrowed from autoconf.
27834
27835 2007-10-26  Bruno Haible  <bruno@clisp.org>
27836
27837         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
27838         strerror returned the empty string. Needed on HP-UX 11.00.
27839
27840 2007-10-24  Micah Cowan  <micah@cowan.name>
27841
27842         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
27843         * build-aux/bootstrap: Remove support for now-unnecessary option,
27844         --cvs-user, and envvars CVS_USER, CVS_RSH.
27845
27846 2007-10-24  Jim Meyering  <meyering@redhat.com>
27847
27848         Avoid diagnostics from sha1sum when there is no cached checksum.
27849         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
27850         if the po.s1 file hasn't been created yet.
27851
27852         * build-aux/bootstrap: Sync from coreutils:
27853         2007-10-24  Jim Meyering  <meyering@redhat.com>
27854         Get gnulib from the git repository, not from an obsolete cvs one.
27855         * build-aux/bootstrap: Suggestion from Micah Cowan.
27856         2007-10-04  Jim Meyering  <jim@meyering.net>
27857         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
27858         (update_po_files): Work also when there are no .po files in po/.
27859
27860 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27861
27862         * README: Append ".git" to git and cg examples.
27863         Problem reported by Benoit Sigoure.
27864
27865 2007-10-23  Micah Cowan  <micah@cowan.name>
27866
27867         * users.txt: Add wget.
27868
27869 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27870
27871         Fix linking of some unistdio tests on FreeBSD.
27872         * modules/unistdio/u16-vsnprintf-tests
27873         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
27874         * modules/unistdio/u16-vsprintf-tests
27875         (test_u16_vsnprintf1_LDADD): Likewise.
27876         * modules/unistdio/u32-vsnprintf-tests
27877         (test_u32_vsnprintf1_LDADD): Likewise.
27878         * modules/unistdio/u32-vsprintf-tests
27879         (test_u32_vsprintf1_LDADD): Likewise.
27880         * modules/unistdio/u8-vsnprintf-tests
27881         (test_u8_vsnprintf1_LDADD): Likewise.
27882         * modules/unistdio/u8-vsprintf-tests
27883         (test_u8_vsprintf1_LDADD): Likewise.
27884         * modules/unistdio/ulc-vsnprintf-tests
27885         (test_ulc_vsnprintf1_LDADD): Likewise.
27886         * modules/unistdio/ulc-vsprintf-tests
27887         (test_ulc_vsprintf1_LDADD): Likewise.
27888
27889         Fix linking of some uniconv tests on FreeBSD.
27890         * modules/uniconv/u16-conv-from-enc-tests
27891         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
27892         * modules/uniconv/u16-conv-to-enc-tests
27893         (test_u16_conv_to_enc_LDADD): Likewise.
27894         * modules/uniconv/u16-strconv-from-enc-tests
27895         (test_u16_strconv_from_enc_LDADD): Likewise.
27896         * modules/uniconv/u16-strconv-to-enc-tests
27897         (test_u16_strconv_to_enc_LDADD): Likewise.
27898         * modules/uniconv/u32-conv-from-enc-tests
27899         (test_u32_conv_from_enc_LDADD): Likewise.
27900         * modules/uniconv/u32-conv-to-enc-tests
27901         (test_u32_conv_to_enc_LDADD): Likewise.
27902         * modules/uniconv/u32-strconv-from-enc-tests
27903         (test_u32_strconv_from_enc_LDADD): Likewise.
27904         * modules/uniconv/u32-strconv-to-enc-tests
27905         (test_u32_strconv_to_enc_LDADD): Likewise.
27906         * modules/uniconv/u8-conv-from-enc-tests
27907         (test_u8_conv_from_enc_LDADD): Likewise.
27908         * modules/uniconv/u8-conv-to-enc-tests
27909         (test_u8_conv_to_enc_LDADD): Likewise.
27910         * modules/uniconv/u8-strconv-from-enc-tests
27911         (test_u8_strconv_from_enc_LDADD): Likewise.
27912         * modules/uniconv/u8-strconv-to-enc-tests
27913         (test_u8_strconv_to_enc_LDADD): Likewise.
27914
27915 2007-10-22  Bruno Haible  <bruno@clisp.org>
27916
27917         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
27918         size.
27919
27920 2007-10-22  Eric Blake  <ebb9@byu.net>
27921
27922         Tweak x*printf documentation.
27923         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
27924         variable name and comments.
27925         Suggested by Bruno Haible.
27926
27927 2007-10-22  Bruno Haible  <bruno@clisp.org>
27928
27929         * lib/acl.c (copy_acl): Fix file name in comment.
27930
27931 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27932
27933         Fix Tru64 problem with stdbool.h.
27934         * lib/stdbool.in.h (false, true):
27935         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
27936         Don't declare as an enum in this situation; it runs afoul of Tru64.
27937         Problem reported by Steven M. Schweda in
27938         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
27939
27940 2007-10-22  Eric Blake  <ebb9@byu.net>
27941
27942         Also wrap vf?printf.
27943         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
27944         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
27945         (xvprintf, xvfprintf): New functions.
27946
27947 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27948
27949         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
27950         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
27951
27952         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
27953         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
27954
27955 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27956
27957         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
27958         by Bruno Haible.
27959
27960 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27961
27962         * lib/getloadavg.c
27963         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
27964         Undef `sys' after including sys/table.h, for Tru64 4.0D.
27965
27966         * tests/test-i-ring.c: Work for C89.
27967
27968 2007-10-22  Bruno Haible  <bruno@clisp.org>
27969
27970         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
27971         -1u, in preprocessor expression, so that we don't test for the bug
27972         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
27973         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
27974
27975 2007-10-22  Eric Blake  <ebb9@byu.net>
27976
27977         * tests/test-yesno.sh: Silence stderr during test.
27978
27979 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27980
27981         * modules/crypto/gc-camellia: New file.
27982
27983         * m4/gc-camellia.m4: New file.
27984
27985         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
27986
27987         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
27988
27989 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27990
27991         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
27992         --help to stdout.  Reported by sms@antinode.org (Steven
27993         M. Schweda).
27994
27995 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27996
27997         * users.txt: Fix link to libksba.
27998
27999 2007-10-21  Ben Pfaff  <blp@gnu.org>
28000
28001         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28002         round.c roundf implementation that depends on floorf and ceilf to
28003         be tested unconditionally.
28004
28005 2007-10-21  Ben Pfaff  <blp@gnu.org>
28006
28007         * m4/check-libm-func.m4: Removed.
28008         * m4/check-math-lib.m4: New file.
28009         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28010         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28011         definition and lack of AC_LIBOBJ([roundf]).
28012         * m4/roundl.m4: Ditto, and similarly for roundl.
28013         * modules/round: Reference new m4 file.
28014         * modules/roundf: Ditto.
28015         * modules/roundl: Ditto.
28016         * tests/test-round2.c (main): Use ROUND instead of round.
28017         Bug report from Bruno Haible.
28018
28019 2007-10-21  Bruno Haible  <bruno@clisp.org>
28020
28021         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28022         context.
28023
28024 2007-10-21  Bruno Haible  <bruno@clisp.org>
28025
28026         * tests/test-wcwidth.c (main): Allow negative result for some control
28027         characters.
28028
28029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28030         Needed on OSF/1 5.1.
28031
28032 2007-10-21  Bruno Haible  <bruno@clisp.org>
28033
28034         * tests/test-floorf1.c: Include isnanf.h.
28035         (main): Use isnanf() instead of isnan().
28036         * tests/test-ceilf1.c: Include isnanf.h.
28037         (main): Use isnanf() instead of isnan().
28038         * tests/test-truncf1.c: Include isnanf.h.
28039         (main): Use isnanf() instead of isnan().
28040         * tests/test-roundf1.c: Include isnanf.h.
28041         (main): Use isnanf() instead of isnan().
28042
28043 2007-10-21  Eric Blake  <ebb9@byu.net>
28044
28045         * users.txt: Update URL for m4.
28046
28047 2007-10-21  Bruno Haible  <bruno@clisp.org>
28048
28049         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28050
28051 2007-10-21  Bruno Haible  <bruno@clisp.org>
28052
28053         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28054         Git's management files if the CVS files are not present.
28055
28056 2007-10-20  Bruno Haible  <bruno@clisp.org>
28057
28058         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28059         gcc-3.4.x.
28060
28061 2007-10-20  Ben Pfaff  <blp@gnu.org>
28062
28063         * lib/math.in.h: Declare round, roundf, roundl if we are providing
28064         implementations.
28065         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28066         * lib/round.c: New file.
28067         * lib/roundf.c: New file.
28068         * lib/roundl.c: New file.
28069         * m4/round.m4: New file.
28070         * m4/roundf.m4: New file.
28071         * m4/roundl.m4: New file.
28072         * m4/check-libm-func-m4: New file.
28073         * modules/math: Replace round, roundf, roundl related @VARS@ in
28074         math.in.h.
28075         * modules/round: New file.
28076         * modules/round-tests: New file.
28077         * modules/roundf: New file.
28078         * modules/roundf-tests: New file.
28079         * modules/roundl: New file.
28080         * modules/roundl-tests: New file.
28081         * tests/test-round1.c: New file.
28082         * tests/test-round2.c: New file.
28083         * tests/test-roundf1.c: New file.
28084         * tests/test-roundf2.c: New file.
28085         * tests/test-roundl.c: New file.
28086         * doc/functions/round.texi: Mention round module.
28087         * doc/functions/roundf.texi: Mention roundf module.
28088         * doc/functions/roundl.texi: Mention roundl module.
28089         * MODULES.html.sh: Mention new modules.
28090         Thanks to Bruno Haible for suggestions.
28091
28092 2007-10-20  Jim Meyering  <meyering@redhat.com>
28093
28094         * lib/xprintf.c: Include <config.h> unconditionally.
28095
28096         Change xprintf's license to GPL.
28097         * modules/xprintf (License): s/LGPL/GPL/, since this module
28098         depends on modules (exit and exitfail) which are GPL.
28099         Suggestion from Bruno Haible.
28100
28101         xprintf fixes.
28102         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28103         Use a clearer diagnostic.
28104         Patch from Bruno Haible.
28105
28106 2007-10-20  Bruno Haible  <bruno@clisp.org>
28107
28108         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28109         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28110         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28111
28112 2007-10-20  Bruno Haible  <bruno@clisp.org>
28113
28114         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28115         precision in the comparison result > x - 1 or similar.
28116         * tests/test-ceilf2.c (correct_result_p): Likewise.
28117         * tests/test-truncf2.c (correct_result_p): Likewise.
28118         * tests/test-trunc2.c (correct_result_p): Likewise.
28119         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28120
28121 2007-10-20  Bruno Haible  <bruno@clisp.org>
28122
28123         * modules/ceil: New file.
28124         * m4/ceil.m4: New file.
28125         * doc/functions/ceil.texi: Mention the 'ceil' module.
28126
28127 2007-10-20  Bruno Haible  <bruno@clisp.org>
28128
28129         * modules/floor: New file.
28130         * m4/floor.m4: New file.
28131         * doc/functions/floor.texi: Mention the 'floor' module.
28132
28133 2007-10-20  Bruno Haible  <bruno@clisp.org>
28134
28135         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28136         of %a.
28137         * modules/floorf-tests (Depends-on): Likewise.
28138         * modules/truncf-tests (Depends-on): Likewise.
28139         * modules/trunc-tests (Depends-on): Likewise.
28140         Reported by Ben Pfaff.
28141
28142 2007-10-19  Jim Meyering  <meyering@redhat.com>
28143
28144         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28145         Don't bother testing specific errno values.  Just test ferror.
28146
28147         New module: xprintf
28148         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28149
28150 2007-10-19  Bruno Haible  <bruno@clisp.org>
28151
28152         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28153         syntax.
28154         * modules/javaexec (Makefile.am): Likewise.
28155         * modules/relocatable-prog (Makefile.am): Likewise.
28156         Suggested by Jim Meyering.
28157
28158 2007-10-18  Bruno Haible  <bruno@clisp.org>
28159
28160         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28161         Reported by Jim Meyering.
28162
28163 2007-10-18  Eric Blake  <ebb9@byu.net>
28164
28165         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28166
28167 2007-10-18  Bruno Haible  <bruno@clisp.org>
28168
28169         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28170         the format string into writable memory. Needed in Fortify conditions.
28171
28172 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
28173             Bruno Haible  <bruno@clisp.org>
28174
28175         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28176         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28177         * modules/trim (Depends-on): Add mbchar.
28178         (configure.ac): Add gl_FUNC_MBRTOWC.
28179         (Makefile.am): Augment lib_SOURCES.
28180
28181 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28182
28183         Modify glob.c to use fstatat and dirfd, to simplify it.
28184         Suggested by Eric Blake.
28185         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28186         Don't include <stdbool.h>; not used.
28187         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28188         (link_exists_p): Simplify implementation, since we can now assume
28189         dirfd and fstatat.
28190         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
28191
28192 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28193
28194         * gnulib-tool (func_get_dependencies): Fix sed script to
28195         match only tests.
28196
28197 2007-10-17  Bruno Haible  <bruno@clisp.org>
28198
28199         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28200         allow locale names without encoding suffix.
28201         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28202         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28203
28204 2007-10-16  Bruno Haible  <bruno@clisp.org>
28205
28206         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28207         * lib/getgroups.c (getgroups): Likewise.
28208         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28209
28210 2007-10-16  Bruno Haible  <bruno@clisp.org>
28211
28212         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28213         * modules/malloc-posix (License): Likewise.
28214         * modules/realloc-posix (License): Likewise.
28215         * modules/calloc-posix (License): Likewise.
28216         * modules/intprops (License): Change from GPL to LGPL, with
28217         Paul Eggert's approval.
28218
28219 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28220
28221         Merge glibc changes into lib/glob.c.
28222
28223         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28224         2007-10-15 04:59:03 UTC.  Here are the changes:
28225
28226         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
28227
28228         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28229
28230         * lib/glob.c: Add some branch prediction throughout.
28231
28232         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
28233
28234         [BZ #5103]
28235         * lib/glob.c (glob): Recognize patterns starting \/.
28236
28237         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
28238
28239         [BZ #3996]
28240         * lib/glob.c (attribute_hidden): Define if not defined.
28241         (glob): Unescape dirname, filename or username when needed and not
28242         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
28243         is NULL.  Handle unescaped [ in pattern without closing ].
28244         Don't pass GLOB_CHECK down to recursive glob for directories.
28245         (__glob_pattern_type): New function.
28246         (__glob_pattern_p): Implement using __glob_pattern_type.
28247         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28248         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28249         Remove unreachable code.
28250
28251         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
28252
28253         * lib/glob.c (glob_in_dir): Add some comments and asserts to
28254         explain why there are no leaks.
28255
28256         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
28257
28258         [BZ #3253]
28259         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28260         time, rather allocate increasingly bigger arrays of pointers, if
28261         possible with alloca, if too large with malloc.
28262
28263 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28264
28265         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28266         Problem reported by H.Merijn Brand in
28267         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28268         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28269         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28270
28271 2007-10-15  Bruno Haible  <bruno@clisp.org>
28272
28273         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28274         with explicit rpl_ prefix.
28275         * lib/fopen.c (fopen): Likewise.
28276         * lib/freopen.c (freopen): Likewise.
28277         * lib/iconv.c (iconv): Likewise.
28278         * lib/iconv_close.c (iconv_close): Likewise.
28279
28280 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28281
28282         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28283
28284 2007-10-15  Bruno Haible  <bruno@clisp.org>
28285
28286         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28287         <stddef.h> instead of <stdlib.h> since we only need NULL.
28288         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28289
28290 2007-10-15  Bruno Haible  <bruno@clisp.org>
28291
28292         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
28293         Replace paragraph talking about LIBOBJS.
28294         Reported by Colin Watson <cjwatson@debian.org>.
28295
28296 2007-10-15  Bruno Haible  <bruno@clisp.org>
28297
28298         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
28299         <stdlib.h> before using NULL.
28300
28301 2007-10-15  Simon Josefsson  <simon@josefsson.org>
28302
28303         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
28304         Reported by Albert Chin <china@thewrittenword.com>.
28305
28306 2007-10-14  Bruno Haible  <bruno@clisp.org>
28307
28308         * modules/iconv_open-utf-tests: New file.
28309         * tests/test-iconv-utf.c: New file.
28310
28311         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
28312         * modules/iconv_open-utf: New file.
28313         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
28314         (iconv, iconv_close): New declarations.
28315         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
28316         be defined.
28317         (iconv_open): Add special handling of conversion between UTF-8 and
28318         UTF-{16,32}{BE,LE}.
28319         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
28320         * lib/iconv_close.c: New file.
28321         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
28322         gl_FUNC_ICONV_OPEN.
28323         (gl_FUNC_ICONV_OPEN): Use it.
28324         (gl_FUNC_ICONV_OPEN_UTF): New macro.
28325         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
28326         and REPLACE_ICONV_UTF.
28327         * modules/iconv_open (Depends-on): Add c-strcase.
28328         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
28329         ICONV_CONST.
28330         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
28331
28332 2007-10-13  Albert Chin  <china@thewrittenword.com>
28333             Bruno Haible  <bruno@clisp.org>
28334
28335         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
28336         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
28337
28338 2007-10-13  Bruno Haible  <bruno@clisp.org>
28339
28340         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
28341         defined, use the ISO C99 inline semantics.
28342         * lib/argp.h (ARGP_EI): Likewise.
28343
28344 2007-10-13  Bruno Haible  <bruno@clisp.org>
28345
28346         Handle 'inline' change in gcc 4.3.0.
28347         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
28348         argp_fmtstream_write, argp_fmtstream_set_lmargin,
28349         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
28350         argp_fmtstream_point): Disable 'extern' declaration if the function
28351         definition is going to be provided inline.
28352         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
28353         semantics, not the ISO C99 inline semantics.
28354         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
28355         'extern' declaration if the function definition is going to be provided
28356         inline.
28357         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
28358         the GNU C inline semantics, not the ISO C99 inline semantics. With
28359         GCC 4.2, avoid a warning.
28360
28361 2007-10-13  Bruno Haible  <bruno@clisp.org>
28362
28363         * lib/freading.h (freading): Enable the use of __freading for
28364         glibc >= 2.7.
28365         * lib/freading.c (freading): Likewise.
28366
28367 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28368
28369         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
28370         "warning: C99 inline functions are not supported; using GNU89".
28371
28372 2007-10-12  Bruno Haible  <bruno@clisp.org>
28373
28374         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
28375         of 2.
28376         * tests/test-ceilf2.c: New file.
28377         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
28378
28379         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
28380         * modules/ceilf-tests: Update.
28381
28382 2007-10-12  Bruno Haible  <bruno@clisp.org>
28383
28384         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
28385         of 2.
28386         * tests/test-floorf2.c: New file.
28387         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
28388
28389         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
28390         * modules/floorf-tests: Update.
28391
28392 2007-10-12  Bruno Haible  <bruno@clisp.org>
28393
28394         * tests/test-trunc2.c: New file.
28395         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
28396
28397         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
28398         * modules/trunc-tests: Update.
28399
28400 2007-10-12  Bruno Haible  <bruno@clisp.org>
28401
28402         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
28403         of 2.
28404         * tests/test-truncf2.c: New file.
28405         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
28406
28407         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
28408         * modules/truncf-tests: Update.
28409
28410 2007-10-11  Eric Blake  <ebb9@byu.net>
28411
28412         Don't claim strerror is broken on Interix.
28413         * doc/functions/strerror.texi (strerror): Known broken systems are
28414         now Solaris 8, and not Interix.
28415         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
28416         Interix on cross-compile.
28417         Reported by Martin Koeppe in
28418         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
28419
28420 2007-10-11  Bruno Haible  <bruno@clisp.org>
28421
28422         * modules/i-ring-tests: New file.
28423         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
28424         instead of assert.
28425
28426 2007-10-11  Bruno Haible  <bruno@clisp.org>
28427
28428         * modules/filenamecat-tests: New file.
28429         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
28430         * lib/filenamecat.c: Remove test code.
28431
28432 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28433
28434         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
28435
28436         * lib/strerror.c: Include <string.h> always, to test interface,
28437         and to remove the need for the dummy.
28438         Include intprops.h to compute width instead of doing it ourselves
28439         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
28440         (strerror): Define it to return NULL if there's no system strerror.
28441         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
28442         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
28443         ancient pre-strerror Unix systems well any more.  Saying "unknown
28444         system error" is enough.
28445         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
28446         simpler strerror.c implementation.
28447         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
28448         Simplify the tests to reflect the simpler strerror implementation.
28449         * modules/strerror (Depends-on): Add intprops.
28450
28451 2007-10-09  Eric Blake  <ebb9@byu.net>
28452
28453         Silence test-fpending.
28454         * modules/fpending-tests (Files): Add wrapper script.
28455         * tests/test-fpending.sh: New file.
28456
28457 2007-10-09  Bruno Haible  <bruno@clisp.org>
28458
28459         * MODULES.html.sh (func_module): Don't create a hyperlink for
28460         function names like 'printf_frexp'.
28461         (Misc): Add crc, memxor.
28462         (Characteristics of floating types): New section.
28463         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
28464         isnanf-nolibm, signbit, trunc, truncf, truncl.
28465         (Enhancements for ISO C 99 functions): New subsection Input/output.
28466         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
28467         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
28468         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
28469         (Compatibility checks for POSIX:2001 functions): Add clock-time.
28470         (Enhancements for POSIX:2001 functions): Add chdir-long.
28471         (File system functions): Add areadlink, chdir-safer, read-file.
28472         Remove cycle-check.
28473         (File system as inode set): New section.
28474         (Date and time): Add gethrxtime.
28475         (Multithreading): Add openmp.
28476         (Internationalization functions): Add localename.
28477         (Unicode string functions): Add unistr/u*-mbsnlen.
28478         (Support for maintaining and releasing projects): Add git-version-gen.
28479         (Lone files): Remove directories.
28480
28481 2007-10-08  Ben Pfaff  <blp@gnu.org>
28482
28483         * lib/xmalloca.h: Fix typo in comment.
28484
28485 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28486
28487         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
28488         when avoiding problems with integer overflow.  Use a portable test
28489         instead.
28490
28491 2007-10-08  Simon Josefsson  <simon@josefsson.org>
28492
28493         * modules/dummy (License): Change to LGPLv2+.
28494         * modules/float (License): Likewise
28495         * modules/realloc (License): Likewise
28496         * modules/stdlib (License): Likewise
28497
28498 2007-10-07  Bruno Haible  <bruno@clisp.org>
28499
28500         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
28501         * floor.c (TWO_MANT_DIG): Likewise.
28502         * ceil.c (TWO_MANT_DIG): Likewise.
28503         Reported by Ben Pfaff.
28504
28505 2007-10-07  Bruno Haible  <bruno@clisp.org>
28506
28507         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
28508         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
28509         * lib/frexp.c (FUNC): Likewise.
28510         * lib/printf-frexp.h (printf_frexp): Likewise.
28511         * lib/printf-frexpl.h (printf_frexpl): Likewise.
28512         * lib/printf-frexp.c (FUNC): Likewise.
28513         Suggested by Jim Meyering.
28514
28515 2007-10-07  Jim Meyering  <meyering@redhat.com>
28516
28517         Make xnanosleep's integer overflow test more robust.
28518         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
28519         so that gcc-4.3.0 doesn't optimize away this test for overflow.
28520
28521 2007-10-07  Bruno Haible  <bruno@clisp.org>
28522
28523         * NEWS: Mention the license change.
28524
28525         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
28526         abbreviations in the modules files.
28527
28528         Change copyright notice from GPLv2+ to GPLv3+.
28529         * README: Change copyright notice.
28530         * MODULES.html.sh: Likewise.
28531         * build-aux/bootstrap.conf: Likewise.
28532         * build-aux/config.libpath: Likewise.
28533         * build-aux/csharpcomp.sh.in: Likewise.
28534         * build-aux/csharpexec.sh.in: Likewise.
28535         * build-aux/install-reloc: Likewise.
28536         * build-aux/javacomp.sh.in: Likewise.
28537         * build-aux/javaexec.sh.in: Likewise.
28538         * build-aux/ldd.sh.in: Likewise.
28539         * build-aux/reloc-ldflags: Likewise.
28540         * build-aux/relocatable.sh.in: Likewise.
28541         * build-aux/x-to-1.in: Likewise.
28542         * check-module: Likewise.
28543         * config/srclistvars.sh: Likewise.
28544         * gnulib-tool: Likewise.
28545         * lib/acl-internal.h: Likewise.
28546         * lib/acl.c: Likewise.
28547         * lib/acl.h: Likewise.
28548         * lib/acl_entries.c: Likewise.
28549         * lib/areadlink-with-size.c: Likewise.
28550         * lib/areadlink.c: Likewise.
28551         * lib/areadlink.h: Likewise.
28552         * lib/argmatch.c: Likewise.
28553         * lib/argmatch.h: Likewise.
28554         * lib/argp-ba.c: Likewise.
28555         * lib/argp-eexst.c: Likewise.
28556         * lib/argp-fmtstream.c: Likewise.
28557         * lib/argp-fmtstream.h: Likewise.
28558         * lib/argp-fs-xinl.c: Likewise.
28559         * lib/argp-help.c: Likewise.
28560         * lib/argp-namefrob.h: Likewise.
28561         * lib/argp-parse.c: Likewise.
28562         * lib/argp-pin.c: Likewise.
28563         * lib/argp-pv.c: Likewise.
28564         * lib/argp-pvh.c: Likewise.
28565         * lib/argp-xinl.c: Likewise.
28566         * lib/argp.h: Likewise.
28567         * lib/at-func.c: Likewise.
28568         * lib/atanl.c: Likewise.
28569         * lib/backupfile.c: Likewise.
28570         * lib/backupfile.h: Likewise.
28571         * lib/basename.c: Likewise.
28572         * lib/binary-io.h: Likewise.
28573         * lib/byteswap.in.h: Likewise.
28574         * lib/c-stack.c: Likewise.
28575         * lib/c-stack.h: Likewise.
28576         * lib/c-strcasestr.c: Likewise.
28577         * lib/c-strcasestr.h: Likewise.
28578         * lib/c-strstr.c: Likewise.
28579         * lib/c-strstr.h: Likewise.
28580         * lib/c-strtod.c: Likewise.
28581         * lib/calloc.c: Likewise.
28582         * lib/canon-host.c: Likewise.
28583         * lib/canon-host.h: Likewise.
28584         * lib/canonicalize-lgpl.c: Likewise.
28585         * lib/canonicalize.c: Likewise.
28586         * lib/canonicalize.h: Likewise.
28587         * lib/ceil.c: Likewise.
28588         * lib/ceilf.c: Likewise.
28589         * lib/ceill.c: Likewise.
28590         * lib/chdir-long.c: Likewise.
28591         * lib/chdir-long.h: Likewise.
28592         * lib/chdir-safer.c: Likewise.
28593         * lib/chdir-safer.h: Likewise.
28594         * lib/chown.c: Likewise.
28595         * lib/classpath.c: Likewise.
28596         * lib/classpath.h: Likewise.
28597         * lib/clean-temp.c: Likewise.
28598         * lib/clean-temp.h: Likewise.
28599         * lib/cloexec.c: Likewise.
28600         * lib/close-stream.c: Likewise.
28601         * lib/closein.c: Likewise.
28602         * lib/closein.h: Likewise.
28603         * lib/closeout.c: Likewise.
28604         * lib/closeout.h: Likewise.
28605         * lib/concat-filename.c: Likewise.
28606         * lib/copy-file.c: Likewise.
28607         * lib/copy-file.h: Likewise.
28608         * lib/count-one-bits.h: Likewise.
28609         * lib/crc.c: Likewise.
28610         * lib/crc.h: Likewise.
28611         * lib/creat-safer.c: Likewise.
28612         * lib/csharpcomp.c: Likewise.
28613         * lib/csharpcomp.h: Likewise.
28614         * lib/csharpexec.c: Likewise.
28615         * lib/csharpexec.h: Likewise.
28616         * lib/cycle-check.c: Likewise.
28617         * lib/cycle-check.h: Likewise.
28618         * lib/diacrit.c: Likewise.
28619         * lib/diacrit.h: Likewise.
28620         * lib/diffseq.h: Likewise.
28621         * lib/dirchownmod.c: Likewise.
28622         * lib/dirent.in.h: Likewise.
28623         * lib/dirfd.c: Likewise.
28624         * lib/dirfd.h: Likewise.
28625         * lib/dirname.c: Likewise.
28626         * lib/dirname.h: Likewise.
28627         * lib/dummy.c: Likewise.
28628         * lib/dup-safer.c: Likewise.
28629         * lib/dup2.c: Likewise.
28630         * lib/eealloc.h: Likewise.
28631         * lib/error.c: Likewise.
28632         * lib/error.h: Likewise.
28633         * lib/euidaccess.c: Likewise.
28634         * lib/exclude.c: Likewise.
28635         * lib/exclude.h: Likewise.
28636         * lib/execute.c: Likewise.
28637         * lib/execute.h: Likewise.
28638         * lib/exitfail.c: Likewise.
28639         * lib/exitfail.h: Likewise.
28640         * lib/expl.c: Likewise.
28641         * lib/fatal-signal.c: Likewise.
28642         * lib/fatal-signal.h: Likewise.
28643         * lib/fbufmode.c: Likewise.
28644         * lib/fbufmode.h: Likewise.
28645         * lib/fchdir.c: Likewise.
28646         * lib/fchmodat.c: Likewise.
28647         * lib/fchownat.c: Likewise.
28648         * lib/fcntl--.h: Likewise.
28649         * lib/fcntl-safer.h: Likewise.
28650         * lib/fcntl.in.h: Likewise.
28651         * lib/fd-safer.c: Likewise.
28652         * lib/fflush.c: Likewise.
28653         * lib/file-has-acl.c: Likewise.
28654         * lib/file-set.c: Likewise.
28655         * lib/file-type.c: Likewise.
28656         * lib/file-type.h: Likewise.
28657         * lib/fileblocks.c: Likewise.
28658         * lib/filemode.c: Likewise.
28659         * lib/filemode.h: Likewise.
28660         * lib/filename.h: Likewise.
28661         * lib/filenamecat.c: Likewise.
28662         * lib/filenamecat.h: Likewise.
28663         * lib/findprog.c: Likewise.
28664         * lib/findprog.h: Likewise.
28665         * lib/float.in.h: Likewise.
28666         * lib/floor.c: Likewise.
28667         * lib/floorf.c: Likewise.
28668         * lib/floorl.c: Likewise.
28669         * lib/fopen-safer.c: Likewise.
28670         * lib/fopen.c: Likewise.
28671         * lib/fpending.c: Likewise.
28672         * lib/fpending.h: Likewise.
28673         * lib/fprintf.c: Likewise.
28674         * lib/fprintftime.h: Likewise.
28675         * lib/fpucw.h: Likewise.
28676         * lib/fpurge.c: Likewise.
28677         * lib/fpurge.h: Likewise.
28678         * lib/freadable.c: Likewise.
28679         * lib/freadable.h: Likewise.
28680         * lib/freadahead.c: Likewise.
28681         * lib/freadahead.h: Likewise.
28682         * lib/freading.c: Likewise.
28683         * lib/freading.h: Likewise.
28684         * lib/free.c: Likewise.
28685         * lib/freopen.c: Likewise.
28686         * lib/frexp.c: Likewise.
28687         * lib/frexpl.c: Likewise.
28688         * lib/fseek.c: Likewise.
28689         * lib/fseterr.c: Likewise.
28690         * lib/fseterr.h: Likewise.
28691         * lib/fstatat.c: Likewise.
28692         * lib/fstrcmp.c: Likewise.
28693         * lib/fstrcmp.h: Likewise.
28694         * lib/fsusage.c: Likewise.
28695         * lib/fsusage.h: Likewise.
28696         * lib/ftell.c: Likewise.
28697         * lib/ftello.c: Likewise.
28698         * lib/fts-cycle.c: Likewise.
28699         * lib/fts.c: Likewise.
28700         * lib/fts_.h: Likewise.
28701         * lib/full-read.c: Likewise.
28702         * lib/full-read.h: Likewise.
28703         * lib/full-write.c: Likewise.
28704         * lib/full-write.h: Likewise.
28705         * lib/fwritable.c: Likewise.
28706         * lib/fwritable.h: Likewise.
28707         * lib/fwriteerror.c: Likewise.
28708         * lib/fwriteerror.h: Likewise.
28709         * lib/fwriting.c: Likewise.
28710         * lib/fwriting.h: Likewise.
28711         * lib/gcd.c: Likewise.
28712         * lib/gcd.h: Likewise.
28713         * lib/getcwd.c: Likewise.
28714         * lib/getdate.h: Likewise.
28715         * lib/getdate.y: Likewise.
28716         * lib/getdomainname.c: Likewise.
28717         * lib/getdomainname.h: Likewise.
28718         * lib/getgroups.c: Likewise.
28719         * lib/gethostname.c: Likewise.
28720         * lib/gethrxtime.c: Likewise.
28721         * lib/gethrxtime.h: Likewise.
28722         * lib/getloadavg.c: Likewise.
28723         * lib/getndelim2.c: Likewise.
28724         * lib/getndelim2.h: Likewise.
28725         * lib/getnline.c: Likewise.
28726         * lib/getnline.h: Likewise.
28727         * lib/getopt.c: Likewise.
28728         * lib/getopt.in.h: Likewise.
28729         * lib/getopt1.c: Likewise.
28730         * lib/getopt_int.h: Likewise.
28731         * lib/getpagesize.h: Likewise.
28732         * lib/getsubopt.c: Likewise.
28733         * lib/gettime.c: Likewise.
28734         * lib/getugroups.c: Likewise.
28735         * lib/getugroups.h: Likewise.
28736         * lib/getusershell.c: Likewise.
28737         * lib/gl_anyavltree_list1.h: Likewise.
28738         * lib/gl_anyavltree_list2.h: Likewise.
28739         * lib/gl_anyhash_list1.h: Likewise.
28740         * lib/gl_anyhash_list2.h: Likewise.
28741         * lib/gl_anylinked_list1.h: Likewise.
28742         * lib/gl_anylinked_list2.h: Likewise.
28743         * lib/gl_anyrbtree_list1.h: Likewise.
28744         * lib/gl_anyrbtree_list2.h: Likewise.
28745         * lib/gl_anytree_list1.h: Likewise.
28746         * lib/gl_anytree_list2.h: Likewise.
28747         * lib/gl_anytree_oset.h: Likewise.
28748         * lib/gl_anytreehash_list1.h: Likewise.
28749         * lib/gl_anytreehash_list2.h: Likewise.
28750         * lib/gl_array_list.c: Likewise.
28751         * lib/gl_array_list.h: Likewise.
28752         * lib/gl_array_oset.c: Likewise.
28753         * lib/gl_array_oset.h: Likewise.
28754         * lib/gl_avltree_list.c: Likewise.
28755         * lib/gl_avltree_list.h: Likewise.
28756         * lib/gl_avltree_oset.c: Likewise.
28757         * lib/gl_avltree_oset.h: Likewise.
28758         * lib/gl_avltreehash_list.c: Likewise.
28759         * lib/gl_avltreehash_list.h: Likewise.
28760         * lib/gl_carray_list.c: Likewise.
28761         * lib/gl_carray_list.h: Likewise.
28762         * lib/gl_linked_list.c: Likewise.
28763         * lib/gl_linked_list.h: Likewise.
28764         * lib/gl_linkedhash_list.c: Likewise.
28765         * lib/gl_linkedhash_list.h: Likewise.
28766         * lib/gl_list.c: Likewise.
28767         * lib/gl_list.h: Likewise.
28768         * lib/gl_oset.c: Likewise.
28769         * lib/gl_oset.h: Likewise.
28770         * lib/gl_rbtree_list.c: Likewise.
28771         * lib/gl_rbtree_list.h: Likewise.
28772         * lib/gl_rbtree_oset.c: Likewise.
28773         * lib/gl_rbtree_oset.h: Likewise.
28774         * lib/gl_rbtreehash_list.c: Likewise.
28775         * lib/gl_rbtreehash_list.h: Likewise.
28776         * lib/gl_sublist.c: Likewise.
28777         * lib/gl_sublist.h: Likewise.
28778         * lib/group-member.c: Likewise.
28779         * lib/group-member.h: Likewise.
28780         * lib/hard-locale.c: Likewise.
28781         * lib/hard-locale.h: Likewise.
28782         * lib/hash-pjw.c: Likewise.
28783         * lib/hash-pjw.h: Likewise.
28784         * lib/hash-triple.c: Likewise.
28785         * lib/hash.c: Likewise.
28786         * lib/hash.h: Likewise.
28787         * lib/human.c: Likewise.
28788         * lib/human.h: Likewise.
28789         * lib/i-ring.c: Likewise.
28790         * lib/i-ring.h: Likewise.
28791         * lib/idcache.c: Likewise.
28792         * lib/imaxabs.c: Likewise.
28793         * lib/imaxdiv.c: Likewise.
28794         * lib/inet_pton.c: Likewise.
28795         * lib/inet_pton.h: Likewise.
28796         * lib/intprops.h: Likewise.
28797         * lib/inttostr.c: Likewise.
28798         * lib/inttostr.h: Likewise.
28799         * lib/inttypes.in.h: Likewise.
28800         * lib/isapipe.c: Likewise.
28801         * lib/isdir.c: Likewise.
28802         * lib/isnan.c: Likewise.
28803         * lib/isnan.h: Likewise.
28804         * lib/isnanf.c: Likewise.
28805         * lib/isnanf.h: Likewise.
28806         * lib/isnanl-nolibm.h: Likewise.
28807         * lib/isnanl.c: Likewise.
28808         * lib/isnanl.h: Likewise.
28809         * lib/javacomp.c: Likewise.
28810         * lib/javacomp.h: Likewise.
28811         * lib/javaexec.c: Likewise.
28812         * lib/javaexec.h: Likewise.
28813         * lib/javaversion.c: Likewise.
28814         * lib/javaversion.h: Likewise.
28815         * lib/javaversion.java: Likewise.
28816         * lib/lbrkprop.h: Likewise.
28817         * lib/lchmod.h: Likewise.
28818         * lib/lchown.c: Likewise.
28819         * lib/ldexpl.c: Likewise.
28820         * lib/linebreak.c: Likewise.
28821         * lib/linebreak.h: Likewise.
28822         * lib/linebuffer.c: Likewise.
28823         * lib/linebuffer.h: Likewise.
28824         * lib/locale.in.h: Likewise.
28825         * lib/logl.c: Likewise.
28826         * lib/long-options.c: Likewise.
28827         * lib/long-options.h: Likewise.
28828         * lib/lstat.c: Likewise.
28829         * lib/lstat.h: Likewise.
28830         * lib/math.in.h: Likewise.
28831         * lib/mbchar.c: Likewise.
28832         * lib/mbchar.h: Likewise.
28833         * lib/mbfile.h: Likewise.
28834         * lib/mbiter.h: Likewise.
28835         * lib/mbscasecmp.c: Likewise.
28836         * lib/mbscasestr.c: Likewise.
28837         * lib/mbschr.c: Likewise.
28838         * lib/mbscspn.c: Likewise.
28839         * lib/mbslen.c: Likewise.
28840         * lib/mbsncasecmp.c: Likewise.
28841         * lib/mbsnlen.c: Likewise.
28842         * lib/mbspbrk.c: Likewise.
28843         * lib/mbspcasecmp.c: Likewise.
28844         * lib/mbsrchr.c: Likewise.
28845         * lib/mbssep.c: Likewise.
28846         * lib/mbsspn.c: Likewise.
28847         * lib/mbsstr.c: Likewise.
28848         * lib/mbstok_r.c: Likewise.
28849         * lib/mbswidth.c: Likewise.
28850         * lib/mbswidth.h: Likewise.
28851         * lib/mbuiter.h: Likewise.
28852         * lib/memcasecmp.c: Likewise.
28853         * lib/memcasecmp.h: Likewise.
28854         * lib/memchr.c: Likewise.
28855         * lib/memcmp.c: Likewise.
28856         * lib/memcoll.c: Likewise.
28857         * lib/memcoll.h: Likewise.
28858         * lib/memcpy.c: Likewise.
28859         * lib/memrchr.c: Likewise.
28860         * lib/mkancesdirs.c: Likewise.
28861         * lib/mkdir-p.c: Likewise.
28862         * lib/mkdir-p.h: Likewise.
28863         * lib/mkdir.c: Likewise.
28864         * lib/mkdirat.c: Likewise.
28865         * lib/mkdtemp.c: Likewise.
28866         * lib/mkstemp-safer.c: Likewise.
28867         * lib/mkstemp.c: Likewise.
28868         * lib/modechange.c: Likewise.
28869         * lib/modechange.h: Likewise.
28870         * lib/mountlist.c: Likewise.
28871         * lib/mountlist.h: Likewise.
28872         * lib/mpsort.c: Likewise.
28873         * lib/nanosleep.c: Likewise.
28874         * lib/obstack.c: Likewise.
28875         * lib/obstack.h: Likewise.
28876         * lib/open-safer.c: Likewise.
28877         * lib/open.c: Likewise.
28878         * lib/openat-die.c: Likewise.
28879         * lib/openat-priv.h: Likewise.
28880         * lib/openat-proc.c: Likewise.
28881         * lib/openat.c: Likewise.
28882         * lib/openat.h: Likewise.
28883         * lib/pagealign_alloc.c: Likewise.
28884         * lib/pagealign_alloc.h: Likewise.
28885         * lib/physmem.c: Likewise.
28886         * lib/physmem.h: Likewise.
28887         * lib/pipe-safer.c: Likewise.
28888         * lib/pipe.c: Likewise.
28889         * lib/pipe.h: Likewise.
28890         * lib/posixtm.c: Likewise.
28891         * lib/posixtm.h: Likewise.
28892         * lib/posixver.c: Likewise.
28893         * lib/printf-frexp.c: Likewise.
28894         * lib/printf-frexp.h: Likewise.
28895         * lib/printf-frexpl.c: Likewise.
28896         * lib/printf-frexpl.h: Likewise.
28897         * lib/printf.c: Likewise.
28898         * lib/progname.c: Likewise.
28899         * lib/progname.h: Likewise.
28900         * lib/progreloc.c: Likewise.
28901         * lib/putenv.c: Likewise.
28902         * lib/quote.c: Likewise.
28903         * lib/quote.h: Likewise.
28904         * lib/quotearg.c: Likewise.
28905         * lib/quotearg.h: Likewise.
28906         * lib/raise.c: Likewise.
28907         * lib/readline.c: Likewise.
28908         * lib/readline.h: Likewise.
28909         * lib/readlink.c: Likewise.
28910         * lib/readtokens.c: Likewise.
28911         * lib/readtokens.h: Likewise.
28912         * lib/readtokens0.c: Likewise.
28913         * lib/readtokens0.h: Likewise.
28914         * lib/readutmp.c: Likewise.
28915         * lib/readutmp.h: Likewise.
28916         * lib/realloc.c: Likewise.
28917         * lib/relocwrapper.c: Likewise.
28918         * lib/rename-dest-slash.c: Likewise.
28919         * lib/rename.c: Likewise.
28920         * lib/rmdir.c: Likewise.
28921         * lib/rpmatch.c: Likewise.
28922         * lib/safe-read.c: Likewise.
28923         * lib/safe-read.h: Likewise.
28924         * lib/safe-write.c: Likewise.
28925         * lib/safe-write.h: Likewise.
28926         * lib/same-inode.h: Likewise.
28927         * lib/same.c: Likewise.
28928         * lib/same.h: Likewise.
28929         * lib/save-cwd.c: Likewise.
28930         * lib/save-cwd.h: Likewise.
28931         * lib/savedir.c: Likewise.
28932         * lib/savedir.h: Likewise.
28933         * lib/savewd.c: Likewise.
28934         * lib/savewd.h: Likewise.
28935         * lib/search.in.h: Likewise.
28936         * lib/setenv.c: Likewise.
28937         * lib/setenv.h: Likewise.
28938         * lib/settime.c: Likewise.
28939         * lib/sh-quote.c: Likewise.
28940         * lib/sh-quote.h: Likewise.
28941         * lib/sig2str.c: Likewise.
28942         * lib/sig2str.h: Likewise.
28943         * lib/signal.in.h: Likewise.
28944         * lib/signbitd.c: Likewise.
28945         * lib/signbitf.c: Likewise.
28946         * lib/signbitl.c: Likewise.
28947         * lib/sigprocmask.c: Likewise.
28948         * lib/sincosl.c: Likewise.
28949         * lib/sleep.c: Likewise.
28950         * lib/sprintf.c: Likewise.
28951         * lib/sqrtl.c: Likewise.
28952         * lib/stat-time.h: Likewise.
28953         * lib/stdio--.h: Likewise.
28954         * lib/stdio-safer.h: Likewise.
28955         * lib/stdlib--.h: Likewise.
28956         * lib/stdlib-safer.h: Likewise.
28957         * lib/stdlib.in.h: Likewise.
28958         * lib/stpcpy.c: Likewise.
28959         * lib/stpncpy.c: Likewise.
28960         * lib/strchrnul.c: Likewise.
28961         * lib/strcspn.c: Likewise.
28962         * lib/strerror.c: Likewise.
28963         * lib/strftime.c: Likewise.
28964         * lib/strftime.h: Likewise.
28965         * lib/striconveh.c: Likewise.
28966         * lib/striconveh.h: Likewise.
28967         * lib/striconveha.c: Likewise.
28968         * lib/striconveha.h: Likewise.
28969         * lib/stripslash.c: Likewise.
28970         * lib/strnlen1.c: Likewise.
28971         * lib/strnlen1.h: Likewise.
28972         * lib/strtod.c: Likewise.
28973         * lib/strtoimax.c: Likewise.
28974         * lib/strtok_r.c: Likewise.
28975         * lib/strtol.c: Likewise.
28976         * lib/strtoll.c: Likewise.
28977         * lib/strtoul.c: Likewise.
28978         * lib/strtoull.c: Likewise.
28979         * lib/sysexits.in.h: Likewise.
28980         * lib/tempname.c: Likewise.
28981         * lib/tempname.h: Likewise.
28982         * lib/timespec.h: Likewise.
28983         * lib/tls.c: Likewise.
28984         * lib/tls.h: Likewise.
28985         * lib/tmpdir.c: Likewise.
28986         * lib/tmpdir.h: Likewise.
28987         * lib/tmpfile-safer.c: Likewise.
28988         * lib/tmpfile.c: Likewise.
28989         * lib/trigl.c: Likewise.
28990         * lib/trigl.h: Likewise.
28991         * lib/trim.c: Likewise.
28992         * lib/trim.h: Likewise.
28993         * lib/trunc.c: Likewise.
28994         * lib/truncf.c: Likewise.
28995         * lib/truncl.c: Likewise.
28996         * lib/tsearch.c: Likewise.
28997         * lib/unicodeio.c: Likewise.
28998         * lib/unicodeio.h: Likewise.
28999         * lib/unistd--.h: Likewise.
29000         * lib/unistd-safer.h: Likewise.
29001         * lib/unistdio/ulc-fprintf.c: Likewise.
29002         * lib/unistdio/ulc-vfprintf.c: Likewise.
29003         * lib/unlinkdir.c: Likewise.
29004         * lib/unlinkdir.h: Likewise.
29005         * lib/unlocked-io.h: Likewise.
29006         * lib/unsetenv.c: Likewise.
29007         * lib/userspec.c: Likewise.
29008         * lib/utime.c: Likewise.
29009         * lib/utimecmp.c: Likewise.
29010         * lib/utimecmp.h: Likewise.
29011         * lib/utimens.c: Likewise.
29012         * lib/verify.h: Likewise.
29013         * lib/verror.c: Likewise.
29014         * lib/verror.h: Likewise.
29015         * lib/version-etc-fsf.c: Likewise.
29016         * lib/version-etc.c: Likewise.
29017         * lib/version-etc.h: Likewise.
29018         * lib/vfprintf.c: Likewise.
29019         * lib/vprintf.c: Likewise.
29020         * lib/vsprintf.c: Likewise.
29021         * lib/w32spawn.h: Likewise.
29022         * lib/wait-process.c: Likewise.
29023         * lib/wait-process.h: Likewise.
29024         * lib/wcwidth.c: Likewise.
29025         * lib/write-any-file.c: Likewise.
29026         * lib/xalloc-die.c: Likewise.
29027         * lib/xalloc.h: Likewise.
29028         * lib/xasprintf.c: Likewise.
29029         * lib/xgetcwd.c: Likewise.
29030         * lib/xgetcwd.h: Likewise.
29031         * lib/xgetdomainname.c: Likewise.
29032         * lib/xgetdomainname.h: Likewise.
29033         * lib/xgethostname.c: Likewise.
29034         * lib/xmalloc.c: Likewise.
29035         * lib/xmalloca.c: Likewise.
29036         * lib/xmalloca.h: Likewise.
29037         * lib/xmemcoll.c: Likewise.
29038         * lib/xnanosleep.c: Likewise.
29039         * lib/xreadlink.c: Likewise.
29040         * lib/xreadlink.h: Likewise.
29041         * lib/xsetenv.c: Likewise.
29042         * lib/xsetenv.h: Likewise.
29043         * lib/xstriconv.c: Likewise.
29044         * lib/xstriconv.h: Likewise.
29045         * lib/xstrndup.c: Likewise.
29046         * lib/xstrndup.h: Likewise.
29047         * lib/xstrtod.c: Likewise.
29048         * lib/xstrtod.h: Likewise.
29049         * lib/xstrtol-error.c: Likewise.
29050         * lib/xstrtol.c: Likewise.
29051         * lib/xstrtol.h: Likewise.
29052         * lib/xtime.h: Likewise.
29053         * lib/xvasprintf.c: Likewise.
29054         * lib/xvasprintf.h: Likewise.
29055         * lib/yesno.c: Likewise.
29056         * lib/yesno.h: Likewise.
29057         * posix-modules: Likewise.
29058         * tests/test-alloca-opt.c: Likewise.
29059         * tests/test-arcfour.c: Likewise.
29060         * tests/test-arctwo.c: Likewise.
29061         * tests/test-argmatch.c: Likewise.
29062         * tests/test-argp-2.sh: Likewise.
29063         * tests/test-argp.c: Likewise.
29064         * tests/test-arpa_inet.c: Likewise.
29065         * tests/test-array_list.c: Likewise.
29066         * tests/test-array_oset.c: Likewise.
29067         * tests/test-atexit.c: Likewise.
29068         * tests/test-avltree_list.c: Likewise.
29069         * tests/test-avltree_oset.c: Likewise.
29070         * tests/test-avltreehash_list.c: Likewise.
29071         * tests/test-base64.c: Likewise.
29072         * tests/test-binary-io.c: Likewise.
29073         * tests/test-byteswap.c: Likewise.
29074         * tests/test-c-ctype.c: Likewise.
29075         * tests/test-c-strcasecmp.c: Likewise.
29076         * tests/test-c-strcasestr.c: Likewise.
29077         * tests/test-c-strncasecmp.c: Likewise.
29078         * tests/test-c-strstr.c: Likewise.
29079         * tests/test-canonicalize-lgpl.c: Likewise.
29080         * tests/test-canonicalize.c: Likewise.
29081         * tests/test-carray_list.c: Likewise.
29082         * tests/test-ceilf.c: Likewise.
29083         * tests/test-ceill.c: Likewise.
29084         * tests/test-count-one-bits.c: Likewise.
29085         * tests/test-crc.c: Likewise.
29086         * tests/test-dirname.c: Likewise.
29087         * tests/test-fbufmode.c: Likewise.
29088         * tests/test-fcntl.c: Likewise.
29089         * tests/test-fflush.c: Likewise.
29090         * tests/test-floorf.c: Likewise.
29091         * tests/test-floorl.c: Likewise.
29092         * tests/test-fopen.c: Likewise.
29093         * tests/test-fprintf-posix.c: Likewise.
29094         * tests/test-fprintf-posix.h: Likewise.
29095         * tests/test-fpurge.c: Likewise.
29096         * tests/test-freadable.c: Likewise.
29097         * tests/test-freadahead.c: Likewise.
29098         * tests/test-freading.c: Likewise.
29099         * tests/test-freopen.c: Likewise.
29100         * tests/test-frexp.c: Likewise.
29101         * tests/test-frexpl.c: Likewise.
29102         * tests/test-fseek.c: Likewise.
29103         * tests/test-fseeko.c: Likewise.
29104         * tests/test-fseterr.c: Likewise.
29105         * tests/test-fstrcmp.c: Likewise.
29106         * tests/test-ftell.c: Likewise.
29107         * tests/test-ftello.c: Likewise.
29108         * tests/test-fwritable.c: Likewise.
29109         * tests/test-fwriting.c: Likewise.
29110         * tests/test-getaddrinfo.c: Likewise.
29111         * tests/test-getpass.c: Likewise.
29112         * tests/test-gettimeofday.c: Likewise.
29113         * tests/test-hmac-md5.c: Likewise.
29114         * tests/test-hmac-sha1.c: Likewise.
29115         * tests/test-iconv.c: Likewise.
29116         * tests/test-iconvme.c: Likewise.
29117         * tests/test-inttypes.c: Likewise.
29118         * tests/test-isnan.c: Likewise.
29119         * tests/test-isnanf.c: Likewise.
29120         * tests/test-isnanl-nolibm.c: Likewise.
29121         * tests/test-isnanl.c: Likewise.
29122         * tests/test-isnanl.h: Likewise.
29123         * tests/test-ldexpl.c: Likewise.
29124         * tests/test-linked_list.c: Likewise.
29125         * tests/test-linkedhash_list.c: Likewise.
29126         * tests/test-locale.c: Likewise.
29127         * tests/test-localename.c: Likewise.
29128         * tests/test-lock.c: Likewise.
29129         * tests/test-lseek.c: Likewise.
29130         * tests/test-malloca.c: Likewise.
29131         * tests/test-math.c: Likewise.
29132         * tests/test-mbscasecmp.c: Likewise.
29133         * tests/test-mbscasestr1.c: Likewise.
29134         * tests/test-mbscasestr2.c: Likewise.
29135         * tests/test-mbscasestr3.c: Likewise.
29136         * tests/test-mbscasestr4.c: Likewise.
29137         * tests/test-mbschr.c: Likewise.
29138         * tests/test-mbscspn.c: Likewise.
29139         * tests/test-mbsncasecmp.c: Likewise.
29140         * tests/test-mbspbrk.c: Likewise.
29141         * tests/test-mbspcasecmp.c: Likewise.
29142         * tests/test-mbsrchr.c: Likewise.
29143         * tests/test-mbsspn.c: Likewise.
29144         * tests/test-mbsstr1.c: Likewise.
29145         * tests/test-mbsstr2.c: Likewise.
29146         * tests/test-mbsstr3.c: Likewise.
29147         * tests/test-md5.c: Likewise.
29148         * tests/test-memmem.c: Likewise.
29149         * tests/test-netinet_in.c: Likewise.
29150         * tests/test-open.c: Likewise.
29151         * tests/test-printf-frexp.c: Likewise.
29152         * tests/test-printf-frexpl.c: Likewise.
29153         * tests/test-printf-posix.c: Likewise.
29154         * tests/test-printf-posix.h: Likewise.
29155         * tests/test-rbtree_list.c: Likewise.
29156         * tests/test-rbtree_oset.c: Likewise.
29157         * tests/test-rbtreehash_list.c: Likewise.
29158         * tests/test-read-file.c: Likewise.
29159         * tests/test-rijndael.c: Likewise.
29160         * tests/test-search.c: Likewise.
29161         * tests/test-signbit.c: Likewise.
29162         * tests/test-sleep.c: Likewise.
29163         * tests/test-snprintf-posix.c: Likewise.
29164         * tests/test-snprintf-posix.h: Likewise.
29165         * tests/test-snprintf.c: Likewise.
29166         * tests/test-sprintf-posix.c: Likewise.
29167         * tests/test-sprintf-posix.h: Likewise.
29168         * tests/test-stat-time.c: Likewise.
29169         * tests/test-stdbool.c: Likewise.
29170         * tests/test-stdint.c: Likewise.
29171         * tests/test-stdio.c: Likewise.
29172         * tests/test-stdlib.c: Likewise.
29173         * tests/test-stpncpy.c: Likewise.
29174         * tests/test-strcasestr.c: Likewise.
29175         * tests/test-striconv.c: Likewise.
29176         * tests/test-striconveh.c: Likewise.
29177         * tests/test-striconveha.c: Likewise.
29178         * tests/test-string.c: Likewise.
29179         * tests/test-sys_select.c: Likewise.
29180         * tests/test-sys_socket.c: Likewise.
29181         * tests/test-sys_stat.c: Likewise.
29182         * tests/test-sys_time.c: Likewise.
29183         * tests/test-sysexits.c: Likewise.
29184         * tests/test-time.c: Likewise.
29185         * tests/test-tls.c: Likewise.
29186         * tests/test-trunc.c: Likewise.
29187         * tests/test-truncf.c: Likewise.
29188         * tests/test-truncl.c: Likewise.
29189         * tests/test-unistd.c: Likewise.
29190         * tests/test-vasnprintf-posix.c: Likewise.
29191         * tests/test-vasnprintf-posix2.c: Likewise.
29192         * tests/test-vasnprintf.c: Likewise.
29193         * tests/test-vasprintf-posix.c: Likewise.
29194         * tests/test-vasprintf.c: Likewise.
29195         * tests/test-verify.c: Likewise.
29196         * tests/test-vfprintf-posix.c: Likewise.
29197         * tests/test-vprintf-posix.c: Likewise.
29198         * tests/test-vsnprintf-posix.c: Likewise.
29199         * tests/test-vsnprintf.c: Likewise.
29200         * tests/test-vsprintf-posix.c: Likewise.
29201         * tests/test-wchar.c: Likewise.
29202         * tests/test-wctype.c: Likewise.
29203         * tests/test-wcwidth.c: Likewise.
29204         * tests/test-xstrtol.c: Likewise.
29205         * tests/test-xvasprintf.c: Likewise.
29206         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29207         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29208         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29209         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29210         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29211         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29212         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29213         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29214         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29215         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29216         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29217         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29218         * tests/uniname/test-uninames.c: Likewise.
29219         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29220         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29221         * tests/unistdio/test-u16-printf1.h: Likewise.
29222         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29223         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29224         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29225         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29226         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29227         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29228         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29229         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29230         * tests/unistdio/test-u32-printf1.h: Likewise.
29231         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29232         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29233         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29234         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29235         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29236         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29237         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29238         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29239         * tests/unistdio/test-u8-printf1.h: Likewise.
29240         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29241         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29242         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29243         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29244         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29245         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29246         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29247         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29248         * tests/unistdio/test-ulc-printf1.h: Likewise.
29249         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29250         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29251         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29252         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29253         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29254         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29255         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29256         * tests/uniwidth/test-u16-width.c: Likewise.
29257         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29258         * tests/uniwidth/test-u32-width.c: Likewise.
29259         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29260         * tests/uniwidth/test-u8-width.c: Likewise.
29261         * tests/uniwidth/test-uc_width.c: Likewise.
29262         * config/srclist-update: Likewise.
29263         (fixlicense): Update to GPLv3+.
29264
29265         Change copyright notice from LGPLv2.1+ to LGPLv3+.
29266         * tests/test-tsearch.c: Change copyright notice.
29267
29268         Change copyright notice from LGPLv2.0+ to LGPLv3+.
29269         * lib/c-strcaseeq.h: Change copyright notice.
29270         * lib/streq.h: Likewise.
29271         * lib/uniconv.h: Likewise.
29272         * lib/uniconv/u-conv-from-enc.h: Likewise.
29273         * lib/uniconv/u-conv-to-enc.h: Likewise.
29274         * lib/uniconv/u-strconv-from-enc.h: Likewise.
29275         * lib/uniconv/u-strconv-to-enc.h: Likewise.
29276         * lib/uniconv/u16-conv-from-enc.c: Likewise.
29277         * lib/uniconv/u16-conv-to-enc.c: Likewise.
29278         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29279         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29280         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29281         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29282         * lib/uniconv/u32-conv-from-enc.c: Likewise.
29283         * lib/uniconv/u32-conv-to-enc.c: Likewise.
29284         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29285         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29286         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29287         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29288         * lib/uniconv/u8-conv-from-enc.c: Likewise.
29289         * lib/uniconv/u8-conv-to-enc.c: Likewise.
29290         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29291         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29292         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
29293         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29294         * lib/uniname.h: Likewise.
29295         * lib/uniname/uniname.c: Likewise.
29296         * lib/unistdio.h: Likewise.
29297         * lib/unistdio/u-asnprintf.h: Likewise.
29298         * lib/unistdio/u-asprintf.h: Likewise.
29299         * lib/unistdio/u-printf-args.c: Likewise.
29300         * lib/unistdio/u-printf-args.h: Likewise.
29301         * lib/unistdio/u-printf-parse.h: Likewise.
29302         * lib/unistdio/u-snprintf.h: Likewise.
29303         * lib/unistdio/u-sprintf.h: Likewise.
29304         * lib/unistdio/u-vasprintf.h: Likewise.
29305         * lib/unistdio/u-vsnprintf.h: Likewise.
29306         * lib/unistdio/u-vsprintf.h: Likewise.
29307         * lib/unistdio/u16-asnprintf.c: Likewise.
29308         * lib/unistdio/u16-asprintf.c: Likewise.
29309         * lib/unistdio/u16-printf-parse.c: Likewise.
29310         * lib/unistdio/u16-snprintf.c: Likewise.
29311         * lib/unistdio/u16-sprintf.c: Likewise.
29312         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
29313         * lib/unistdio/u16-u16-asprintf.c: Likewise.
29314         * lib/unistdio/u16-u16-snprintf.c: Likewise.
29315         * lib/unistdio/u16-u16-sprintf.c: Likewise.
29316         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
29317         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
29318         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
29319         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
29320         * lib/unistdio/u16-vasnprintf.c: Likewise.
29321         * lib/unistdio/u16-vasprintf.c: Likewise.
29322         * lib/unistdio/u16-vsnprintf.c: Likewise.
29323         * lib/unistdio/u16-vsprintf.c: Likewise.
29324         * lib/unistdio/u32-asnprintf.c: Likewise.
29325         * lib/unistdio/u32-asprintf.c: Likewise.
29326         * lib/unistdio/u32-printf-parse.c: Likewise.
29327         * lib/unistdio/u32-snprintf.c: Likewise.
29328         * lib/unistdio/u32-sprintf.c: Likewise.
29329         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
29330         * lib/unistdio/u32-u32-asprintf.c: Likewise.
29331         * lib/unistdio/u32-u32-snprintf.c: Likewise.
29332         * lib/unistdio/u32-u32-sprintf.c: Likewise.
29333         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
29334         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
29335         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
29336         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
29337         * lib/unistdio/u32-vasnprintf.c: Likewise.
29338         * lib/unistdio/u32-vasprintf.c: Likewise.
29339         * lib/unistdio/u32-vsnprintf.c: Likewise.
29340         * lib/unistdio/u32-vsprintf.c: Likewise.
29341         * lib/unistdio/u8-asnprintf.c: Likewise.
29342         * lib/unistdio/u8-asprintf.c: Likewise.
29343         * lib/unistdio/u8-printf-parse.c: Likewise.
29344         * lib/unistdio/u8-snprintf.c: Likewise.
29345         * lib/unistdio/u8-sprintf.c: Likewise.
29346         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
29347         * lib/unistdio/u8-u8-asprintf.c: Likewise.
29348         * lib/unistdio/u8-u8-snprintf.c: Likewise.
29349         * lib/unistdio/u8-u8-sprintf.c: Likewise.
29350         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
29351         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
29352         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
29353         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
29354         * lib/unistdio/u8-vasnprintf.c: Likewise.
29355         * lib/unistdio/u8-vasprintf.c: Likewise.
29356         * lib/unistdio/u8-vsnprintf.c: Likewise.
29357         * lib/unistdio/u8-vsprintf.c: Likewise.
29358         * lib/unistdio/ulc-asnprintf.c: Likewise.
29359         * lib/unistdio/ulc-asprintf.c: Likewise.
29360         * lib/unistdio/ulc-printf-parse.c: Likewise.
29361         * lib/unistdio/ulc-snprintf.c: Likewise.
29362         * lib/unistdio/ulc-sprintf.c: Likewise.
29363         * lib/unistdio/ulc-vasnprintf.c: Likewise.
29364         * lib/unistdio/ulc-vasprintf.c: Likewise.
29365         * lib/unistdio/ulc-vsnprintf.c: Likewise.
29366         * lib/unistdio/ulc-vsprintf.c: Likewise.
29367         * lib/unistr.h: Likewise.
29368         * lib/unistr/u-cpy-alloc.h: Likewise.
29369         * lib/unistr/u-cpy.h: Likewise.
29370         * lib/unistr/u-endswith.h: Likewise.
29371         * lib/unistr/u-move.h: Likewise.
29372         * lib/unistr/u-set.h: Likewise.
29373         * lib/unistr/u-startswith.h: Likewise.
29374         * lib/unistr/u-stpcpy.h: Likewise.
29375         * lib/unistr/u-stpncpy.h: Likewise.
29376         * lib/unistr/u-strcat.h: Likewise.
29377         * lib/unistr/u-strcpy.h: Likewise.
29378         * lib/unistr/u-strcspn.h: Likewise.
29379         * lib/unistr/u-strdup.h: Likewise.
29380         * lib/unistr/u-strlen.h: Likewise.
29381         * lib/unistr/u-strncat.h: Likewise.
29382         * lib/unistr/u-strncpy.h: Likewise.
29383         * lib/unistr/u-strnlen.h: Likewise.
29384         * lib/unistr/u-strpbrk.h: Likewise.
29385         * lib/unistr/u-strspn.h: Likewise.
29386         * lib/unistr/u-strstr.h: Likewise.
29387         * lib/unistr/u-strtok.h: Likewise.
29388         * lib/unistr/u16-check.c: Likewise.
29389         * lib/unistr/u16-chr.c: Likewise.
29390         * lib/unistr/u16-cmp.c: Likewise.
29391         * lib/unistr/u16-cpy-alloc.c: Likewise.
29392         * lib/unistr/u16-cpy.c: Likewise.
29393         * lib/unistr/u16-endswith.c: Likewise.
29394         * lib/unistr/u16-mblen.c: Likewise.
29395         * lib/unistr/u16-mbsnlen.c: Likewise.
29396         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29397         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29398         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29399         * lib/unistr/u16-mbtouc.c: Likewise.
29400         * lib/unistr/u16-mbtoucr.c: Likewise.
29401         * lib/unistr/u16-move.c: Likewise.
29402         * lib/unistr/u16-next.c: Likewise.
29403         * lib/unistr/u16-prev.c: Likewise.
29404         * lib/unistr/u16-set.c: Likewise.
29405         * lib/unistr/u16-startswith.c: Likewise.
29406         * lib/unistr/u16-stpcpy.c: Likewise.
29407         * lib/unistr/u16-stpncpy.c: Likewise.
29408         * lib/unistr/u16-strcat.c: Likewise.
29409         * lib/unistr/u16-strchr.c: Likewise.
29410         * lib/unistr/u16-strcmp.c: Likewise.
29411         * lib/unistr/u16-strcpy.c: Likewise.
29412         * lib/unistr/u16-strcspn.c: Likewise.
29413         * lib/unistr/u16-strdup.c: Likewise.
29414         * lib/unistr/u16-strlen.c: Likewise.
29415         * lib/unistr/u16-strmblen.c: Likewise.
29416         * lib/unistr/u16-strmbtouc.c: Likewise.
29417         * lib/unistr/u16-strncat.c: Likewise.
29418         * lib/unistr/u16-strncmp.c: Likewise.
29419         * lib/unistr/u16-strncpy.c: Likewise.
29420         * lib/unistr/u16-strnlen.c: Likewise.
29421         * lib/unistr/u16-strpbrk.c: Likewise.
29422         * lib/unistr/u16-strrchr.c: Likewise.
29423         * lib/unistr/u16-strspn.c: Likewise.
29424         * lib/unistr/u16-strstr.c: Likewise.
29425         * lib/unistr/u16-strtok.c: Likewise.
29426         * lib/unistr/u16-to-u32.c: Likewise.
29427         * lib/unistr/u16-to-u8.c: Likewise.
29428         * lib/unistr/u16-uctomb-aux.c: Likewise.
29429         * lib/unistr/u16-uctomb.c: Likewise.
29430         * lib/unistr/u32-check.c: Likewise.
29431         * lib/unistr/u32-chr.c: Likewise.
29432         * lib/unistr/u32-cmp.c: Likewise.
29433         * lib/unistr/u32-cpy-alloc.c: Likewise.
29434         * lib/unistr/u32-cpy.c: Likewise.
29435         * lib/unistr/u32-endswith.c: Likewise.
29436         * lib/unistr/u32-mblen.c: Likewise.
29437         * lib/unistr/u32-mbsnlen.c: Likewise.
29438         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29439         * lib/unistr/u32-mbtouc.c: Likewise.
29440         * lib/unistr/u32-mbtoucr.c: Likewise.
29441         * lib/unistr/u32-move.c: Likewise.
29442         * lib/unistr/u32-next.c: Likewise.
29443         * lib/unistr/u32-prev.c: Likewise.
29444         * lib/unistr/u32-set.c: Likewise.
29445         * lib/unistr/u32-startswith.c: Likewise.
29446         * lib/unistr/u32-stpcpy.c: Likewise.
29447         * lib/unistr/u32-stpncpy.c: Likewise.
29448         * lib/unistr/u32-strcat.c: Likewise.
29449         * lib/unistr/u32-strchr.c: Likewise.
29450         * lib/unistr/u32-strcmp.c: Likewise.
29451         * lib/unistr/u32-strcpy.c: Likewise.
29452         * lib/unistr/u32-strcspn.c: Likewise.
29453         * lib/unistr/u32-strdup.c: Likewise.
29454         * lib/unistr/u32-strlen.c: Likewise.
29455         * lib/unistr/u32-strmblen.c: Likewise.
29456         * lib/unistr/u32-strmbtouc.c: Likewise.
29457         * lib/unistr/u32-strncat.c: Likewise.
29458         * lib/unistr/u32-strncmp.c: Likewise.
29459         * lib/unistr/u32-strncpy.c: Likewise.
29460         * lib/unistr/u32-strnlen.c: Likewise.
29461         * lib/unistr/u32-strpbrk.c: Likewise.
29462         * lib/unistr/u32-strrchr.c: Likewise.
29463         * lib/unistr/u32-strspn.c: Likewise.
29464         * lib/unistr/u32-strstr.c: Likewise.
29465         * lib/unistr/u32-strtok.c: Likewise.
29466         * lib/unistr/u32-to-u16.c: Likewise.
29467         * lib/unistr/u32-to-u8.c: Likewise.
29468         * lib/unistr/u32-uctomb.c: Likewise.
29469         * lib/unistr/u8-check.c: Likewise.
29470         * lib/unistr/u8-chr.c: Likewise.
29471         * lib/unistr/u8-cmp.c: Likewise.
29472         * lib/unistr/u8-cpy-alloc.c: Likewise.
29473         * lib/unistr/u8-cpy.c: Likewise.
29474         * lib/unistr/u8-endswith.c: Likewise.
29475         * lib/unistr/u8-mblen.c: Likewise.
29476         * lib/unistr/u8-mbsnlen.c: Likewise.
29477         * lib/unistr/u8-mbtouc-aux.c: Likewise.
29478         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29479         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29480         * lib/unistr/u8-mbtouc.c: Likewise.
29481         * lib/unistr/u8-mbtoucr.c: Likewise.
29482         * lib/unistr/u8-move.c: Likewise.
29483         * lib/unistr/u8-next.c: Likewise.
29484         * lib/unistr/u8-prev.c: Likewise.
29485         * lib/unistr/u8-set.c: Likewise.
29486         * lib/unistr/u8-startswith.c: Likewise.
29487         * lib/unistr/u8-stpcpy.c: Likewise.
29488         * lib/unistr/u8-stpncpy.c: Likewise.
29489         * lib/unistr/u8-strcat.c: Likewise.
29490         * lib/unistr/u8-strchr.c: Likewise.
29491         * lib/unistr/u8-strcmp.c: Likewise.
29492         * lib/unistr/u8-strcpy.c: Likewise.
29493         * lib/unistr/u8-strcspn.c: Likewise.
29494         * lib/unistr/u8-strdup.c: Likewise.
29495         * lib/unistr/u8-strlen.c: Likewise.
29496         * lib/unistr/u8-strmblen.c: Likewise.
29497         * lib/unistr/u8-strmbtouc.c: Likewise.
29498         * lib/unistr/u8-strncat.c: Likewise.
29499         * lib/unistr/u8-strncmp.c: Likewise.
29500         * lib/unistr/u8-strncpy.c: Likewise.
29501         * lib/unistr/u8-strnlen.c: Likewise.
29502         * lib/unistr/u8-strpbrk.c: Likewise.
29503         * lib/unistr/u8-strrchr.c: Likewise.
29504         * lib/unistr/u8-strspn.c: Likewise.
29505         * lib/unistr/u8-strstr.c: Likewise.
29506         * lib/unistr/u8-strtok.c: Likewise.
29507         * lib/unistr/u8-to-u16.c: Likewise.
29508         * lib/unistr/u8-to-u32.c: Likewise.
29509         * lib/unistr/u8-uctomb-aux.c: Likewise.
29510         * lib/unistr/u8-uctomb.c: Likewise.
29511         * lib/unitypes.h: Likewise.
29512         * lib/uniwidth.h: Likewise.
29513         * lib/uniwidth/cjk.h: Likewise.
29514         * lib/uniwidth/u16-strwidth.c: Likewise.
29515         * lib/uniwidth/u16-width.c: Likewise.
29516         * lib/uniwidth/u32-strwidth.c: Likewise.
29517         * lib/uniwidth/u32-width.c: Likewise.
29518         * lib/uniwidth/u8-strwidth.c: Likewise.
29519         * lib/uniwidth/u8-width.c: Likewise.
29520         * lib/uniwidth/width.c: Likewise.
29521
29522 2007-10-07  Bruno Haible  <bruno@clisp.org>
29523
29524         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
29525         The file is still under LGPL (see modules/inttypes).
29526
29527 2007-10-06  Bruno Haible  <bruno@clisp.org>
29528
29529         * modules/trunc (Dependencies): Add 'extensions'.
29530         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
29531         Reported by Ben Pfaff <blp@gnu.org>.
29532
29533 2007-10-06  Bruno Haible  <bruno@clisp.org>
29534
29535         * modules/freopen-tests: New file.
29536         * tests/test-freopen.c: New file.
29537
29538         * modules/fopen-tests: New file.
29539         * tests/test-fopen.c: New file.
29540
29541         * modules/fopen: New file.
29542         * lib/fopen.c: New file.
29543         * m4/fopen.m4: New file.
29544         * modules/freopen: New file.
29545         * lib/freopen.c: New file.
29546         * m4/freopen.m4: New file.
29547         * lib/stdio.in.h (fopen, freopen): New declarations.
29548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
29549         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29550         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
29551         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29552         * doc/functions/fopen.texi: Mention the 'fopen' module.
29553         * doc/functions/freopen.texi: Mention the 'freopen' module.
29554
29555 2007-10-06  Bruno Haible  <bruno@clisp.org>
29556
29557         * modules/open-tests: New file.
29558         * tests/test-open.c: New file.
29559
29560         * modules/open: New file.
29561         * lib/open.c: New file.
29562         * m4/open.m4: New file.
29563         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
29564         lib/open.c does.
29565         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
29566         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
29567         macros.
29568         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
29569         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
29570         REPLACE_OPEN.
29571         * doc/functions/open.texi: Mention the 'open' module.
29572
29573 2007-10-04  Bruno Haible  <bruno@clisp.org>
29574
29575         * modules/ceill-tests: New file.
29576         * tests/test-ceill.c: New file.
29577
29578         * modules/ceill: New file.
29579         * lib/ceill.c: Replace entire file.
29580         * m4/ceill.m4: New file.
29581         * lib/math.in.h (ceill): Replace declaration.
29582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
29583         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
29584         * doc/functions/ceill.texi: Mention the 'ceill' module.
29585         * modules/mathl (Files): Remove lib/ceill.c.
29586         (Depends-on): Add ceill.
29587
29588 2007-10-04  Bruno Haible  <bruno@clisp.org>
29589
29590         * modules/ceilf-tests: New file.
29591         * tests/test-ceilf.c: New file.
29592
29593         * modules/ceilf: New file.
29594         * lib/ceil.c: New file.
29595         * lib/ceilf.c: New file.
29596         * m4/ceilf.m4: New file.
29597         * lib/math.in.h (ceilf): New declaration.
29598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
29599         HAVE_DECL_CEILF.
29600         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
29601         HAVE_DECL_CEILF.
29602         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
29603
29604 2007-10-04  Bruno Haible  <bruno@clisp.org>
29605
29606         * modules/floorl-tests: New file.
29607         * tests/test-floorl.c: New file.
29608
29609         * modules/floorl: New file.
29610         * lib/floorl.c: Replace entire file.
29611         * m4/floorl.m4: New file.
29612         * lib/math.in.h (floorl): Replace declaration.
29613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
29614         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
29615         * doc/functions/floorl.texi: Mention the 'floorl' module.
29616         * modules/mathl (Files): Remove lib/floorl.c.
29617         (Depends-on): Add floorl.
29618
29619 2007-10-04  Bruno Haible  <bruno@clisp.org>
29620
29621         * modules/floorf-tests: New file.
29622         * tests/test-floorf.c: New file.
29623
29624         * modules/floorf: New file.
29625         * lib/floor.c: New file.
29626         * lib/floorf.c: New file.
29627         * m4/floorf.m4: New file.
29628         * lib/math.in.h (floorf): New declaration.
29629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
29630         HAVE_DECL_FLOORF.
29631         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
29632         HAVE_DECL_FLOORF.
29633         * doc/functions/floorf.texi: Mention the 'floorf' module.
29634
29635 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
29636             Bruno Haible  <bruno@clisp.org>
29637
29638         Advertise for the Git server instead of the CVS server.
29639         * doc/gnulib-intro.texi (Steady Development): Mention the Git
29640         repository instead of the CVS one.
29641         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
29642         about all VCS systems generically.
29643         * doc/gnulib.texi (Introduction): Capitalize `Git'.
29644
29645 2007-10-04  Bruno Haible  <bruno@clisp.org>
29646
29647         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
29648         means.
29649         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
29650
29651 2007-10-04  Bruno Haible  <bruno@clisp.org>
29652
29653         * modules/truncl-tests: New file.
29654         * tests/test-truncl.c: New file.
29655
29656         * modules/truncl: New file.
29657         * lib/truncl.c: New file.
29658         * m4/truncl.m4: New file.
29659         * lib/math.in.h (truncl): New declaration.
29660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
29661         HAVE_DECL_TRUNCL.
29662         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
29663         HAVE_DECL_TRUNCL.
29664         * doc/functions/truncl.texi: Mention the 'truncl' module.
29665
29666 2007-10-04  Bruno Haible  <bruno@clisp.org>
29667
29668         * modules/truncf-tests: New file.
29669         * tests/test-truncf.c: New file.
29670
29671         * modules/truncf: New file.
29672         * lib/trunc.c: Make paramerizable through USE_* macros.
29673         * lib/truncf.c: New file.
29674         * m4/truncf.m4: New file.
29675         * lib/math.in.h (truncf): New declaration.
29676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
29677         HAVE_DECL_TRUNCF.
29678         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
29679         HAVE_DECL_TRUNCF.
29680         * doc/functions/truncf.texi: Mention the 'truncf' module.
29681
29682 2007-10-03  Bruno Haible  <bruno@clisp.org>
29683
29684         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29685         augmentation also for tests modules.
29686         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
29687         * modules/atexit-tests (Makefile.am): Likewise.
29688         * modules/binary-io-tests (Makefile.am): Likewise.
29689         * modules/c-strcase-tests (Makefile.am): Likewise.
29690         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
29691         * modules/canonicalize-tests (Makefile.am): Likewise.
29692         * modules/closein-tests (Makefile.am): Likewise.
29693         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29694         * modules/freadahead-tests (Makefile.am): Likewise.
29695         * modules/fseek-tests (Makefile.am): Likewise.
29696         * modules/fseeko-tests (Makefile.am): Likewise.
29697         * modules/ftell-tests (Makefile.am): Likewise.
29698         * modules/ftello-tests (Makefile.am): Likewise.
29699         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
29700         * modules/isnanl-tests (Makefile.am): Likewise.
29701         * modules/lseek-tests (Makefile.am): Likewise.
29702         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29703         * modules/mbscasestr-tests (Makefile.am): Likewise.
29704         * modules/mbschr-tests (Makefile.am): Likewise.
29705         * modules/mbscspn-tests (Makefile.am): Likewise.
29706         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29707         * modules/mbspbrk-tests (Makefile.am): Likewise.
29708         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29709         * modules/mbsrchr-tests (Makefile.am): Likewise.
29710         * modules/mbsspn-tests (Makefile.am): Likewise.
29711         * modules/mbsstr-tests (Makefile.am): Likewise.
29712         * modules/printf-posix-tests (Makefile.am): Likewise.
29713         * modules/snprintf-posix-tests (Makefile.am): Likewise.
29714         * modules/sprintf-posix-tests (Makefile.am): Likewise.
29715         * modules/tsearch-tests (Makefile.am): Likewise.
29716         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29717         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29718         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29719         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29720         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29721         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29722         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29723         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29724         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
29725         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
29726         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29727         * modules/xstrtol-tests (Makefile.am): Likewise.
29728         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29729         * modules/yesno-tests (Makefile.am): Likewise.
29730
29731 2007-10-03  Bruno Haible  <bruno@clisp.org>
29732
29733         * modules/trunc-tests: New file.
29734         * tests/test-trunc.c: New file.
29735
29736         * modules/trunc: New file.
29737         * lib/trunc.c: New file.
29738         * m4/trunc.m4: New file.
29739         * lib/math.in.h (trunc): New declaration.
29740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
29741         HAVE_DECL_TRUNC.
29742         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
29743         HAVE_DECL_TRUNC.
29744         * doc/functions/trunc.texi: Mention the 'trunc' module.
29745
29746 2007-10-03  Bruno Haible  <bruno@clisp.org>
29747
29748         * tests/test-fpending.c: New file, mostly copied
29749         from coreutils/lib/t-fpending.c.
29750         * modules/fpending-tests: New file.
29751
29752 2007-10-03  Bruno Haible  <bruno@clisp.org>
29753
29754         Port the stdio extensions to QNX (untested).
29755         * lib/fseterr.c (fseterr): Add support for QNX.
29756         * lib/fbufmode.c (fbufmode): Likewise.
29757         * lib/freadable.c (freadable): Likewise.
29758         * lib/fwritable.c (fwritable): Likewise.
29759         * lib/freading.c (freading): Likewise.
29760         * lib/fwriting.c (fwriting): Likewise.
29761         * lib/freadahead.c (freadahed): Likewise.
29762         * lib/fpurge.c (fpurge): Likewise.
29763         * lib/fseeko.c (rpl_fseeko): Likewise.
29764
29765 2007-10-03  Bruno Haible  <bruno@clisp.org>
29766             Jim Meyering  <jim@meyering.net>
29767             Eric Blake  <ebb9@byu.net>
29768
29769         * doc/relocatable.texi: Use @command instead of @program.
29770
29771 2007-10-02  Jim Meyering  <jim@meyering.net>
29772
29773         Perform one more "_.h" -> ".in.h" substitution.
29774         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
29775         instead of unistd_.h here, too.
29776
29777 2007-10-01  Bruno Haible  <bruno@clisp.org>
29778
29779         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
29780         Needed for the alloca-opt module.
29781
29782 2007-09-30  Bruno Haible  <bruno@clisp.org>
29783
29784         * lib/alloca.in.h: Renamed from lib/alloca_.h.
29785         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
29786         alloca_.h.
29787         * lib/argz.in.h: Renamed from lib/argz_.h.
29788         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
29789         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
29790         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
29791         byteswap_.h.
29792         * lib/dirent.in.h: Renamed from lib/dirent_.h.
29793         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
29794         dirent_.h.
29795         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
29796         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
29797         fcntl_.h.
29798         * lib/float.in.h: Renamed from lib/float_.h.
29799         * modules/float (Files, Makefile.am): Use float.in.h instead of
29800         float_.h.
29801         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
29802         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
29803         fnmatch_.h.
29804         * lib/getopt.in.h: Renamed from lib/getopt_.h.
29805         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
29806         getopt_.h.
29807         * lib/glob.in.h: Renamed from lib/glob_.h.
29808         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
29809         * lib/iconv.in.h: Renamed from lib/iconv_.h.
29810         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
29811         iconv_.h.
29812         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
29813         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
29814         inttypes_.h.
29815         * lib/locale.in.h: Renamed from lib/locale_.h.
29816         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
29817         locale_.h.
29818         * lib/math.in.h: Renamed from lib/math_.h.
29819         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
29820         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
29821         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
29822         of netinet_in_.h. Add dependency.
29823         * lib/poll.in.h: Renamed from lib/poll_.h.
29824         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
29825         * lib/search.in.h: Renamed from lib/search_.h.
29826         * modules/search (Files, Makefile.am): Use search.in.h instead of
29827         search_.h.
29828         * lib/signal.in.h: Renamed from lib/signal_.h.
29829         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
29830         _signal.h.
29831         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
29832         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
29833         stdbool_.h.
29834         * lib/stdint.in.h: Renamed from lib/stdint_.h.
29835         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
29836         stdint_.h.
29837         * lib/stdio.in.h: Renamed from lib/stdio_.h.
29838         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
29839         stdio_.h.
29840         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
29841         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
29842         stdlib_.h.
29843         * lib/string.in.h: Renamed from lib/string_.h.
29844         * modules/string (Files, Makefile.am): Use string.in.h instead of
29845         string_.h.
29846         * doc/gnulib-tool.texi (Initial import): Update.
29847         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
29848         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
29849         of sys_select_.h. Add dependency.
29850         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
29851         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
29852         of sys_socket_.h.
29853         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
29854         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
29855         sys_stat_.h.
29856         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
29857         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
29858         sys_time_.h.
29859         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
29860         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
29861         sysexits_.h.
29862         * lib/time.in.h: Renamed from lib/time_.h.
29863         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
29864         * lib/unistd.in.h: Renamed from lib/unistd_.h.
29865         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
29866         unistd_.h.
29867         * lib/wchar.in.h: Renamed from lib/wchar_.h.
29868         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
29869         wchar_.h.
29870         * lib/wctype.in.h: Renamed from lib/wctype_.h.
29871         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
29872         wctype_.h.
29873         * build-aux/bootstrap (slurp): Update.
29874         * lib/.cppi-disable: Update.
29875
29876 2007-09-30  Bruno Haible  <bruno@clisp.org>
29877
29878         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
29879         Needed on BeOS.
29880
29881 2007-09-30  Bruno Haible  <bruno@clisp.org>
29882
29883         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
29884
29885 2007-09-29  Bruno Haible  <bruno@clisp.org>
29886
29887         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
29888
29889 2007-09-29  Bruno Haible  <bruno@clisp.org>
29890
29891         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
29892         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
29893         * build-aux/install-reloc: Compile also areadlink.c.
29894         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
29895
29896 2007-09-29  Bruno Haible  <bruno@clisp.org>
29897
29898         * gnulib-tool (func_emit_initmacro_done): Indentation.
29899
29900 2007-09-29  Bruno Haible  <bruno@clisp.org>
29901
29902         * README: Add CVS checkout update instructions.
29903         Info from Bob Proulx <bob@proulx.com>.
29904
29905 2007-09-28  Eric Blake  <ebb9@byu.net>
29906
29907         Provide move-if-change.
29908         * build-aux/move-if-change: New file, based on best practice
29909         rather than any canonical upstream location.
29910
29911 2007-09-28  Jim Meyering  <jim@meyering.net>
29912
29913         Fix canonicalize loop-detection corner case.
29914         Do not attempt to stat the symlink values stored via seen_triple.
29915         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
29916         on linux-2.6.18, (but not 2.6.22).
29917         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
29918         triple_compare.  The former compares dev,ino,filename, while the latter
29919         would actually stat dirname(filename) when dev and ino were equal.
29920         * lib/hash-triple.c: Install <string.h>.
29921         (STREQ): Define.
29922         (triple_compare_ino_str): New function.
29923         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
29924
29925 2007-09-28  Eric Blake  <ebb9@byu.net>
29926
29927         Enforce that AC_REPLACE_FUNCS files exist.
29928         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
29929         override check for typos.
29930
29931         Fix test-closein on Solaris 10.
29932         * tests/test-closein.c (main): Don't assume stdin can be inherited
29933         closed on all systems.
29934         * tests/test-closein.sh: Likewise.
29935         Reported by Piotr Tarnowski.
29936
29937 2007-09-28  Jim Meyering  <jim@meyering.net>
29938
29939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
29940
29941 2007-09-27  Jim Meyering  <jim@meyering.net>
29942
29943         canonicalize: Avoid a false-positive cycle failure.
29944         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
29945         Sort.  Remove cycle-check.
29946         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
29947         not cycle-check.h.
29948         (seen_triple): New function.
29949         (canonicalize_filename_mode): Use it instead of cycle-check.
29950         * tests/test-canonicalize.c: Add a test for this bug.
29951         * tests/test-canonicalize.sh: Set up and run the test.
29952
29953         New module, file-set, from coreutils.
29954         * modules/file-set: Define it.
29955         * lib/file-set.c, lib/file-set.h: Implement.
29956
29957         New module, hash-triple, from coreutils.
29958         * modules/hash-triple: Define it.
29959         * lib/hash-triple.c, lib/hash-triple.h: Implement.
29960
29961 2007-09-25  Eric Blake  <ebb9@byu.net>
29962
29963         Fix strerror on Interix.
29964         * lib/string_.h (strerror): Declare replacement.
29965         * doc/functions/strerror.texi (strerror): Document the Interix
29966         shortcoming.
29967         * modules/string (Makefile.am): Support new hooks.
29968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
29969         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
29970         gl_FUNC_STRERROR_SEPARATE.
29971         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
29972         * lib/strerror.c (rpl_strerror): Provide replacement.
29973         * modules/strerror (Depends-on): Add string.
29974         (configure.ac): Detect use of module.
29975         * tests/test-strerror.c: New file.
29976         * modules/strerror-tests: New test module.
29977         * modules/argp (Depends-on): Add strerror.
29978         * modules/error (Depends-on): Likewise.
29979         Reported by Martin Koeppe.
29980
29981 2007-09-24  Bruno Haible  <bruno@clisp.org>
29982
29983         * README: Update git instructions.
29984
29985 2007-09-24  Eric Blake  <ebb9@byu.net>
29986
29987         Revert fpending breakage from 2007-09-08.
29988         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
29989         __fpending.c.
29990
29991 2007-09-24  Jim Meyering  <jim@meyering.net>
29992
29993         filenamecat.c: Add a test.
29994         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
29995         showing how the function works when DIR is the empty string.
29996
29997 2007-09-21  Simon Josefsson  <simon@josefsson.org>
29998
29999         * tests/test-canonicalize.sh: Turn on executable bit.
30000
30001 2007-09-19  Eric Blake  <ebb9@byu.net>
30002
30003         * README: Update CVS instructions.
30004
30005 2007-09-18  Bruno Haible  <bruno@clisp.org>
30006
30007         * modules/areadlink: New file.
30008         * lib/areadlink.h (areadlink): New declaration.
30009         * lib/areadlink.c: New file, based on lib/xreadlink.c.
30010
30011 2007-09-17  Jim Meyering  <jim@meyering.net>
30012
30013         * lib/savewd.c (ESTALE) [!defined]: Define.
30014         Reported to be required on Interix by Martin Koeppe.
30015
30016 2007-09-17  Bruno Haible  <bruno@clisp.org>
30017
30018         * gnulib-tool (func_version): Use $version.
30019
30020 2007-09-16  Bruno Haible  <bruno@clisp.org>
30021
30022         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30023         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30024         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30025         Reported by Greg Schafer <gschafer@zip.com.au>.
30026
30027 2007-09-15  Bruno Haible  <bruno@clisp.org>
30028
30029         * gnulib-tool (sed): Try a little harder to make bash understand the
30030         alias.
30031         Reported by Bruce Korb <bruce.korb@gmail.com>.
30032
30033 2007-09-13  Eric Blake  <ebb9@byu.net>
30034
30035         * ChangeLog: Remove conflict markers.
30036
30037 2007-09-13  Simon Josefsson  <simon@josefsson.org>
30038
30039         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30040         Reported by Bruno Haible <bruno@clisp.org>.
30041
30042 2007-09-12  Bruno Haible  <bruno@clisp.org>
30043
30044         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30045         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30046         is not defined.
30047
30048 2007-09-12  Eric Blake  <ebb9@byu.net>
30049
30050         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30051         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30052         Autoconf definition.
30053         * modules/euidaccess (Depends-on): Add extensions, for
30054         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30055         * modules/fnmatch (Depends-on): Likewise.
30056         * modules/getaddrinfo (Depends-on): Likewise.
30057         * modules/getdelim (Depends-on): Likewise.
30058         * modules/getline (Depends-on): Likewise.
30059         * modules/getsubopt (Depends-on): Likewise.
30060         * modules/gettext (Depends-on): Likewise.
30061         * modules/group-member (Depends-on): Likewise.
30062         * modules/mbchar (Depends-on): Likewise.
30063         * modules/memmem (Depends-on): Likewise.
30064         * modules/mempcpy (Depends-on): Likewise.
30065         * modules/memrchr (Depends-on): Likewise.
30066         * modules/pagealign_alloc (Depends-on): Likewise.
30067         * modules/readutmp (Depends-on): Likewise.
30068         * modules/stpcpy (Depends-on): Likewise.
30069         * modules/stpncpy (Depends-on): Likewise.
30070         * modules/strchrnul (Depends-on): Likewise.
30071         * modules/strndup (Depends-on): Likewise.
30072         * modules/strsep (Depends-on): Likewise.
30073         * modules/strverscmp (Depends-on): Likewise.
30074         * modules/vasprintf (Depends-on): Likewise.
30075         * modules/wcwidth (Depends-on): Likewise.
30076         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30077         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30078         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30079         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30080         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30081         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30082         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30083         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30084         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30085         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30086         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30087         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30088         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30089         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30090         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30091         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30092         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30093         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30094         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30095         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30096         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30097         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30098         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30099         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30100         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30102         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30103         so that lock.m4 can be used in gettext without extensions module.
30104
30105 2007-09-11  Bruno Haible  <bruno@clisp.org>
30106
30107         * m4/isc-posix.m4: Remove file.
30108         Suggested by Eric Blake.
30109
30110 2007-09-11  Eric Blake  <ebb9@byu.net>
30111
30112         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30113
30114 2007-09-10  Bruno Haible  <bruno@clisp.org>
30115
30116         * posix-modules: Fix typo in error message.
30117         Reported by Matt <mkraai@beckman.com>.
30118
30119 2007-09-09  Bruno Haible  <bruno@clisp.org>
30120
30121         * doc/functions/getdelim.texi: Update list of platforms lacking the
30122         function.
30123         * doc/functions/getline.texi: Likewise.
30124
30125 2007-09-09  Jim Meyering  <jim@meyering.net>
30126
30127         * lib/hash.c (hash_initialize): Detect calloc failure.
30128         Reported by Bruno Haible.
30129
30130 2007-09-09  Bruno Haible  <bruno@clisp.org>
30131
30132         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30133         malloc or realloc fails.
30134
30135 2007-09-09  Bruno Haible  <bruno@clisp.org>
30136
30137         * modules/getcwd (Depends-on): Add malloc-posix.
30138         * modules/glob (Depends-on): Likewise.
30139         * modules/putenv (Depends-on): Likewise.
30140         * modules/strdup (Depends-on): Likewise.
30141         * modules/getdelim (Depends-on): Add realloc-posix.
30142         * modules/read-file (Depends-on): Likewise.
30143
30144 2007-09-09  Bruno Haible  <bruno@clisp.org>
30145
30146         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30147         (gl_FUNC_MALLOC_POSIX): Require it.
30148         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30149         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30150         * modules/realloc (Files): Add m4/malloc.m4.
30151         * modules/calloc (Files): Likewise.
30152
30153 2007-09-09  Bruno Haible  <bruno@clisp.org>
30154
30155         * modules/malloc-posix: New file.
30156         * modules/malloc (Depends-on): Add malloc-posix.
30157         * lib/malloc.c: Include errno.h.
30158         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30159         and a POSIX-compatible malloc into a single function. Set ENOMEM
30160         when returning NULL.
30161         * m4/malloc.m4: New file.
30162         * doc/functions/malloc.texi: Mention the malloc-posix module.
30163         * lib/stdlib_.h (malloc): New declaration.
30164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30165         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30166         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30167         and HAVE_MALLOC_POSIX.
30168
30169 2007-09-09  Bruno Haible  <bruno@clisp.org>
30170
30171         * modules/realloc-posix: New file.
30172         * modules/realloc (Depends-on): Add realloc-posix.
30173         * lib/realloc.c: Include errno.h.
30174         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30175         and a POSIX-compatible realloc into a single function. Set ENOMEM
30176         when returning NULL.
30177         * m4/realloc.m4: New file.
30178         * doc/functions/realloc.texi: Mention the realloc-posix module.
30179         * lib/stdlib_.h (realloc): New declaration.
30180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30181         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30182         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30183         and HAVE_REALLOC_POSIX.
30184
30185 2007-09-09  Bruno Haible  <bruno@clisp.org>
30186
30187         * modules/calloc-posix: New file.
30188         * modules/calloc (Depends-on): Add calloc-posix.
30189         * lib/calloc.c: Include errno.h.
30190         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30191         and a POSIX-compatible calloc into a single function. Set ENOMEM
30192         when returning NULL.
30193         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30194         * doc/functions/calloc.texi: Mention the calloc-posix module.
30195         * lib/stdlib_.h (calloc): New declaration.
30196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30197         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30198         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30199         and HAVE_CALLOC_POSIX.
30200
30201 2007-09-09  Bruno Haible  <bruno@clisp.org>
30202
30203         Allow for modules to show an arbitrary notice.
30204         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30205         * gnulib-tool: New option --extract-notice.
30206         (func_usage): Document it.
30207         (sed_extract_prog): Update.
30208         (func_get_notice): New function.
30209         (func_modules_notice): New function.
30210         (func_import, func_create_testdir): Invoke it.
30211         Suggested by Jim Meyering.
30212
30213 2007-09-09  Bruno Haible  <bruno@clisp.org>
30214
30215         * gnulib-tool: New options --verbose, --quiet.
30216         (func_usage): Document them.
30217         (verbose): New variable.
30218         (func_execute_command): New function.
30219         (func_import): Don't show the module list and the file list if
30220         $verbose < 0.
30221         (func_create_testdir): Likewise. Use func_execute_command.
30222         (func_create_megatestdir): Use func_execute_command.
30223
30224 2007-09-08  Bruno Haible  <bruno@clisp.org>
30225
30226         * gnulib-tool (func_import): Prefer rsync over wget when available,
30227         for fetching the PO files.
30228
30229 2007-09-08  Bruno Haible  <bruno@clisp.org>
30230
30231         * posix-modules: New file. Portions copied from gnulib-tool.
30232         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30233
30234 2007-09-08  Jim Meyering  <jim@meyering.net>
30235
30236         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30237         * lib/fpending.h: Rename from __fpending.h.
30238         * lib/fpending.c: Rename from __fpending.c.
30239         Include "fpending.h", not "__fpending.h".
30240         * lib/__fpending.h, lib/__fpending.c: Remove files.
30241         * modules/fpending (Files): Reflect new file names.
30242         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30243
30244 2007-09-08  Bruno Haible  <bruno@clisp.org>
30245
30246         * m4/inttypes-h.m4: Remove stub file.
30247
30248 2007-09-07  Simon Josefsson  <simon@josefsson.org>
30249
30250         * doc/headers/stdint.texi: Discuss #include_next issue.
30251
30252 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30253
30254         * build-aux/bootstrap: Remove obsolete comment about wget --help.
30255
30256 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30257
30258         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30259         in variable name.
30260
30261 2007-09-03  Jim Meyering  <jim@meyering.net>
30262
30263         New module: git-version-gen.
30264         * modules/git-version-gen: New file.
30265
30266         Import changes from coreutils for bootstrap script.
30267
30268         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30269
30270         bootstrap: uses rsync to download the .po files
30271         * build-aux/bootstrap (po_download_command_format): New global.
30272         (download_po_files): Use rsync.
30273         (update_po_files): Don't remove .po files after download,
30274         so future rsync runs can take advantage of the copies.
30275
30276         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30277
30278         Solve the unnecessary-.po-file-regeneration problem once and for all.
30279         * build-aux/bootstrap (download_po_files): New function, renamed from
30280         get_translations.  Now, downloads, but doesn't update LINGUAS.
30281         (update_po_files): New function.
30282
30283         bootstrap: Ignore more.
30284         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30285         uniwidth to e.g., lib/.gitignore.
30286         (slurp): Handle the sys_stat_.h -> sys mapping, too.
30287
30288         * build-aux/bootstrap: New setting: vc_ignore.
30289         (insert_sorted_if_absent): Create $file if absent.
30290         Adapt to new, possibly empty, list: $vc_ignore.
30291
30292         bootstrap: generate more ignorable names
30293         * build-aux/bootstrap (slurp): When generating ignorable names,
30294         also map .sin to .sed, .gperf to .c, and .y to .c.
30295
30296 2007-09-03  Jim Meyering  <jim@meyering.net>
30297
30298         * build-aux/git-version-gen: New file, from coreutils.  For details, see
30299         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
30300
30301 2007-09-02  Bruno Haible  <bruno@clisp.org>
30302
30303         Fix mis-recognition of 'mcs' on QNX 6.
30304         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
30305         output contains the string "Mono".
30306         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
30307         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
30308
30309 2007-09-01  Bruno Haible  <bruno@clisp.org>
30310
30311         Fix collision between uniwidth/* and linebreak modules.
30312         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
30313         u32_width): Remove declarations.
30314         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
30315         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
30316         streq3, streq2, streq1, streq0): Remove functions.
30317         (STREQ): Remove macro.
30318         (is_cjk_encoding): Remove function.
30319         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
30320         (uc_width, u8_width, u16_width, u32_width): Remove functions.
30321         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
30322         * NEWS: Document the change.
30323
30324 2007-09-01  Bruno Haible  <bruno@clisp.org>
30325
30326         * lib/streq.h: Add double-inclusion guard.
30327
30328 2007-09-01  Karl Berry  <karl@gnu.org>
30329
30330         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
30331
30332 2007-08-28  Jim Meyering  <jim@meyering.net>
30333
30334         Rename mreadlink_with_size to areadlink_with_size.
30335         * NEWS: Document the change.
30336         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
30337         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
30338         * lib/mreadlink.h: Rename this to...
30339         * lib/areadlink.h: ...this.
30340         * modules/mreadlink-with-size: Rename this to...
30341         * modules/areadlink-with-size: ...this.
30342         * lib/canonicalize.c: Reflect the renaming.
30343         * modules/canonicalize: Likewise.
30344
30345 2007-08-26  Bruno Haible  <bruno@clisp.org>
30346
30347         * gnulib-tool (func_import): When deciding which files to remove,
30348         consider also dangling symbolic links.
30349         Reported by Eric Blake.
30350
30351 2007-08-26  Bruno Haible  <bruno@clisp.org>
30352
30353         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
30354
30355 2007-08-23  Simon Josefsson  <simon@josefsson.org>
30356
30357         * lib/readline.c: Don't include getline.h, the prototype is now
30358         found in stdio.h.
30359
30360 2007-08-23  Jim Meyering  <jim@meyering.net>
30361
30362         Getdelim touchup.
30363         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
30364         around the funlockfile call, since funlockfile never sets errno.
30365         Don't set errno upon failed realloc.
30366
30367 2007-08-22  Eric Blake  <ebb9@byu.net>
30368
30369         Getline touchups.
30370         * lib/getdelim.c (getdelim): Revert regression that required *n to
30371         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
30372         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
30373         getdelim, rather than whether implementation is missing.
30374         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
30375         * lib/stdio_.h (getline): Also declare if replacement is
30376         required.
30377         * doc/functions/getdelim.texi: New file.
30378         * doc/functions/getline.texi: Likewise.
30379         * doc/gnulib.texi (Function Substitutes): Add new files.
30380         Reported by Bruno Haible.
30381
30382 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
30383
30384         * users.txt: Add Guile.
30385
30386 2007-08-22  Eric Blake  <ebb9@byu.net>
30387
30388         * tests/test-getdelim.c (main): Use remove, not unlink.
30389         * tests/test-getline.c (main): Likewise.
30390
30391         Move getline and getdelim into stdio.h, per POSIX 200x.
30392         * modules/getline (Files): Remove getline.h.
30393         (Depends-on): Add stdio.
30394         (configure.ac): Add module indicator.
30395         * modules/getdelim (Files): Remove getdelim.h.
30396         (Depends-on): Add stdio.
30397         (configure.ac): Add module indicator.
30398         * modules/stdio (Makefile.am): Work with new indicators.
30399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30400         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
30401         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30402         * lib/getdelim.h: Delete.
30403         * lib/getline.h: Delete.
30404         * lib/stdio_.h (getdelim, getline): Declare.
30405         * modules/getdelim-tests: New module.
30406         * modules/getline-tests: Likewise.
30407         * tests/test-getdelim.c: New file.
30408         * tests/test-getline.c: Likewise.
30409         * NEWS: Document the change.
30410         * lib/getline.c: Update choice of header.
30411         * lib/csharpcomp.c: Likewise.
30412         * lib/getpass.c: Likewise.
30413         * lib/javacomp.c: Likewise.
30414         * lib/javaversion.c: Likewise.
30415         * lib/yesno.c: Likewise.
30416         * lib/getdelim.c: Likewise.
30417         (getdelim): Set errno on failure, and avoid memory leak.
30418
30419 2007-08-19  Bruno Haible  <bruno@clisp.org>
30420
30421         * modules/closein (Depends-on): Add freadahead.
30422         * lib/closein.c: Include freadahead.h.
30423         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
30424         is zero.
30425
30426 2007-08-19  Bruno Haible  <bruno@clisp.org>
30427
30428         * modules/freadahead-tests: New file.
30429         * tests/test-freadahead.sh: New file.
30430         * tests/test-freadahead.c: New file.
30431
30432         * modules/freadahead: New file.
30433         * lib/freadahead.h: New file.
30434         * lib/freadahead.c: New file.
30435         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
30436         fbufmode, fpurge, freadable, fwritable.
30437
30438 2007-08-19  Eric Blake  <ebb9@byu.net>
30439
30440         Test yesno in combination with closein.
30441         * lib/yesno.c (yesno): Document use of stdin.
30442         * modules/yesno-tests (Files): New module.
30443         * tests/test-yesno.c (main): New file.
30444         * tests/test-yesno.sh: Likewise.
30445
30446 2007-08-19  Bruno Haible  <bruno@clisp.org>
30447
30448         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
30449         * lib/fseeko.c (rpl_fseeko): Likewise.
30450         * lib/fseterr.c (fseterr): Likewise.
30451
30452 2007-08-19  Bruno Haible  <bruno@clisp.org>
30453
30454         * tests/test-lseek.c (main): Disable a test for BeOS.
30455         * doc/functions/lseek.texi: Document the BeOS bug.
30456
30457 2007-08-19  Bruno Haible  <bruno@clisp.org>
30458             Eric Blake  <ebb9@byu.net>
30459
30460         * lib/lseek.c: Include <sys/stat.h>.
30461         (rpl_lseek): Add workaround code also for Unix platforms.
30462         Needed for BeOS.
30463         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
30464         * doc/functions/lseek.texi: Document BeOS definiency.
30465
30466 2007-08-18  Bruno Haible  <bruno@clisp.org>
30467
30468         * modules/fstrcmp-tests: New file.
30469         * tests/test-fstrcmp.c: New file.
30470
30471 2007-08-18  Bruno Haible  <bruno@clisp.org>
30472
30473         * modules/fstrcmp: New file, from GNU gettext with modifications.
30474         * lib/fstrcmp.h: New file, from GNU gettext.
30475         * lib/fstrcmp.c: New file, from GNU gettext.
30476         * MODULES.html.sh (String handling): Add fstrcmp.
30477
30478 2007-08-18  Bruno Haible  <bruno@clisp.org>
30479
30480         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
30481         'bool'.
30482         (diag, compareseq): Remove const from the ctxt argument.
30483         (USE_HEURISTIC): Undefine at the end.
30484
30485 2007-08-18  Jim Meyering  <jim@meyering.net>
30486
30487         New file: lib/idcache.h
30488         * NEWS: Mention the addition.
30489         * modules/idcache (Files): Add lib/idcache.h
30490         * lib/idcache.c: Include "idcache.h".
30491         Don't include <sys/types.h>.
30492         Add a FIXME comment.
30493         Move file-scoped "static" declarations to the top.
30494         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
30495
30496 2007-08-17  Bruno Haible  <bruno@clisp.org>
30497         and Paul Eggert  <eggert@cs.ucla.edu>
30498
30499         * MODULES.html.sh: Add diffseq.
30500         * modules/diffseq: New file.
30501         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
30502         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
30503
30504 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30505
30506         Import changes from coreutils for bootstrap script.
30507
30508         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
30509
30510         * build-aux/bootstrap (slurp): Work even in environments where
30511         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
30512         current code does not slurp files whose names start with ".", and
30513         this looks like it might be a troublesome area.
30514
30515         2007-07-11  Jim Meyering  <jim@meyering.net>
30516
30517         If there's a GPL vN copyright comment, require that N == 3.
30518
30519         2007-07-08  Jim Meyering  <jim@meyering.net>
30520
30521         Run the coreutils-specific code only if tests/Makefile.am.in exists.
30522         * build-aux/bootstrap (mam_template): Move definition out of loop.
30523
30524         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
30525
30526         * build-aux/bootstrap (symlink_to_dir): Rename function from
30527         symlink_to_gnulib.  Add a directory parameter.  Update all
30528         callers.
30529         (cp_mark_as_generated): Also check for -- and link to -- files in
30530         gl/.
30531
30532         2007-07-08  Jim Meyering  <jim@meyering.net>
30533
30534         Adapt to deeper hierarchy in gnulib.
30535         * build-aux/bootstrap (symlink_to_dir): If the destination
30536         directory doesn't exist, create it. This is required at least for
30537         "lib/uniwidth/cjk.h".
30538
30539         2007-05-15  Jim Meyering  <jim@meyering.net>
30540
30541         * build-aux/bootstrap: Now that generated Makefile.am files
30542         are no longer under version control, they must be created at
30543         bootstrap time.
30544
30545 2007-08-14  Ben Pfaff  <blp@gnu.org>
30546
30547         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
30548
30549 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30550
30551         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
30552         given the changes below.
30553         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
30554         even on hosts that have padding bits beyond the supported 64.
30555
30556 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30557
30558         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
30559         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
30560         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
30561         depends on it.
30562         (xstrtol_error): Remove.
30563         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
30564         but with a different signature.
30565         (ATTRIBUTE_NORETURN, __attribute__): New macros.
30566         * lib/xstrtol-error.c: Include exitfail.h.
30567         (xstrtol_fatal): New function, with a different signature from the
30568         old xstrtol_error, so that the caller need not worry about passing
30569         in an exit status, or about storage management of the option argument.
30570         (xstrtol_error): Now a static function.  Redo signature to
30571         implement xstrtol_fatal.  Output the correct number of hyphens in
30572         front of the option so that the caller need not worry about
30573         storage management.
30574         (N_): New macro.
30575         (_): Remove; not used now.
30576         * modules/xstrtol: Depend on getopt.
30577         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
30578         of old STRTOL_FATAL_ERROR macro.
30579         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
30580         of test program.
30581         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
30582         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
30583
30584 2007-08-08  Eric Blake  <ebb9@byu.net>
30585
30586         * lib/xstrtol-error.c: Add missing include.
30587
30588         Move xstrtol messages into gnulib domain, when --pobase is used.
30589         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
30590         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
30591         * modules/xstrtol (Files): Distribute new file.
30592         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
30593         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
30594         * tests/test-xstrtol.c: ...into new file.
30595         * tests/test-xstrtoul.c: Also test xstrtoul.
30596         * tests/test-xstrtoimax.c: Also test xstrtoimax.
30597         * tests/test-xstrtoumax.c: Also test xstrtoumax.
30598         * tests/test-xstrtol.sh: Drive the tests.
30599         * tests/test-xstrtoimax.sh: Likewise.
30600         * tests/test-xstrtoumax.sh: Likewise.
30601         * modules/xstrtol-tests: New module.
30602         * modules/xstrtoimax-tests: Likewise.
30603         * modules/xstrtoumax-tests: Likewise.
30604
30605 2007-08-08  Jim Meyering  <jim@meyering.net>
30606
30607         New function: mfile_name_concat.
30608         * lib/filenamecat.c (mfile_name_concat): New function, just like
30609         file_name_concat, but return NULL upon failure rather than exiting
30610         with a diagnostic.
30611         * lib/filenamecat.h: Declare it.
30612
30613 2007-08-07  Bruno Haible  <bruno@clisp.org>
30614
30615         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
30616         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
30617         warning from gcc.
30618         Reported by Eric Blake.
30619
30620 2007-08-07  Simon Josefsson  <simon@josefsson.org>
30621
30622         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
30623         * modules/crypto/arcfour (License): Likewise.
30624         * modules/crypto/des-tests (License): Likewise.
30625         * modules/crypto/gc-arctwo-tests (License): Likewise.
30626         * modules/crypto/gc-des-tests (License): Likewise.
30627         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
30628         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
30629         * modules/crypto/gc-md2-tests (License): Likewise.
30630         * modules/crypto/gc-md4-tests (License): Likewise.
30631         * modules/crypto/gc-md5-tests (License): Likewise.
30632         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
30633         * modules/crypto/gc-rijndael-tests (License): Likewise.
30634         * modules/crypto/gc-sha1-tests (License): Likewise.
30635         * modules/crypto/gc-tests (License): Likewise.
30636         * modules/crypto/hmac-md5 (License): Likewise.
30637         * modules/crypto/hmac-sha1 (License): Likewise.
30638         * modules/crypto/md2-tests (License): Likewise.
30639         * modules/crypto/md4-tests (License): Likewise.
30640         * modules/crypto/md5 (License): Likewise.
30641         * modules/crypto/rijndael (License): Likewise.
30642         * modules/crypto/sha1 (License): Likewise.
30643         * modules/memxor (License): Likewise.
30644
30645 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30646         and Bruno Haible  <bruno@clisp.org>
30647
30648         * NEWS: Describe interface changes to human, xstrtol.
30649         * lib/human.h: Include <xstrtol.h>.
30650         (human_options): Return enum strtol_error, not int.  Remove
30651         bool arg; take int * instead.
30652         * lib/human.c: Don't include "gettext.h".
30653         (_): Remove; no longer used.
30654         Don't include <xstrtol.h>, since human.h does it.
30655         (human_options): Adjust to abovementioned interface changes.
30656         Do not report error to stderr; that's now the caller's
30657         responsibility.
30658         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
30659         interface change.
30660         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
30661         Str, Argument_type_string.  All uses changed.  Put " argument"
30662         in diagnostics to make them clearer.  Change wording of suffix
30663         message for clarity.
30664         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
30665         Argument_type_string.
30666         (STRTOL_FATAL_WARN): Remove; no longer used.
30667         * modules/human (Depends-on): Remove gettext-h.
30668
30669 2007-08-06  Simon Josefsson  <simon@josefsson.org>
30670
30671         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
30672
30673 2007-07-31  Bruno Haible  <bruno@clisp.org>
30674
30675         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
30676         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
30677         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
30678
30679 2007-07-31  Bruno Haible  <bruno@clisp.org>
30680
30681         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
30682         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
30683
30684 2007-07-30  Bruno Haible  <bruno@clisp.org>
30685
30686         * modules/base64 (License): Use the synonymous term "LGPLv2+".
30687         * modules/c-ctype (License): Likewise.
30688         * modules/c-strcase (License): Likewise.
30689         * modules/check-version (License): Likewise.
30690         * modules/iconv (License): Likewise.
30691         * modules/iconv_open (License): Likewise.
30692         * modules/read-file (License): Likewise.
30693         * modules/striconv (License): Likewise.
30694         * modules/strverscmp (License): Likewise.
30695         * modules/vasprintf (License): Likewise.
30696         * modules/crypto/des (License): Likewise.
30697         * modules/crypto/gc (License): Likewise.
30698         * modules/crypto/gc-arcfour (License): Likewise.
30699         * modules/crypto/gc-arctwo (License): Likewise.
30700         * modules/crypto/gc-des (License): Likewise.
30701         * modules/crypto/gc-hmac-md5 (License): Likewise.
30702         * modules/crypto/gc-hmac-sha1 (License): Likewise.
30703         * modules/crypto/gc-md2 (License): Likewise.
30704         * modules/crypto/gc-md4 (License): Likewise.
30705         * modules/crypto/gc-md5 (License): Likewise.
30706         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
30707         * modules/crypto/gc-random (License): Likewise.
30708         * modules/crypto/gc-rijndael (License): Likewise.
30709         * modules/crypto/gc-sha1 (License): Likewise.
30710         * modules/crypto/md2 (License): Likewise.
30711         * modules/crypto/md4 (License): Likewise.
30712
30713 2007-07-30  Jim Meyering  <jim@meyering.net>
30714
30715         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
30716         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
30717         it has valid stat data.  This bug would cause du not to count the
30718         sizes of inaccessible directories.
30719         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
30720         in <http://bugzilla.redhat.com/250077>.
30721
30722 2007-07-25  Peter O'Gorman  <peter@pogma.com>
30723             Bruno Haible  <bruno@clisp.org>
30724
30725         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
30726         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
30727         #include_next, gives a diagnostic about it, but reports no error in
30728         the exit code.
30729         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30730
30731 2007-07-24  Ben Pfaff  <blp@gnu.org>
30732
30733         Improve name: "count-one-bits" is better than "popcount".
30734         * MODULES.html.sh: Update name.
30735         * lib/popcount.h: Renamed lib/count-one-bits.h.
30736         (popcount): Renamed count_one_bits.
30737         (popcountl): Renamed count_one_bits_l.
30738         (popcountll): Renamed count_one_bits_ll.
30739         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
30740         * modules/popcount: Renamed module/count-one-bits.
30741         * modules/popcount-tests: Renamed module/count-one-bits-tests.
30742         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
30743
30744 2007-07-23  Ben Pfaff  <blp@gnu.org>
30745
30746         * lib/popcount.h (popcount32): Reduce size of constants, to allow
30747         better code generation, and add U to large constants to avoid
30748         warnings, in non-GCC case.
30749         Suggested by Bruno Haible.
30750
30751 2007-07-23  Ben Pfaff  <blp@gnu.org>
30752
30753         * lib/popcount.h: Use verify_true instead of if...abort.
30754         * modules/popcount: Depend on verify module.
30755         Suggested by Jim Meyering.
30756
30757 2007-07-23  Bruno Haible  <bruno@clisp.org>
30758
30759         * gnulib-tool (func_import): Create a .cvsignore file also when the
30760         directory is not yet in CVS but the toplevel directory is. When
30761         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
30762         Reported by Karl Berry.
30763
30764 2007-07-22  Ben Pfaff  <blp@gnu.org>
30765
30766         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
30767         case.
30768         Suggested by Eric Blake.
30769
30770 2007-07-22  Ben Pfaff  <blp@gnu.org>
30771
30772         New module: popcount.
30773         * MODULES.html.sh: Add popcount.
30774         * modules/popcount: New file.
30775         * modules/popcount-tests: New file.
30776         * tests/test-popcount.c: New file.
30777         * lib/popcount.h: New file.
30778         * m4/popcount.m4: New file.
30779
30780 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30781
30782         * build-aux/announce-gen: Update to GPLv3.
30783
30784         * build-aux/config.guess: Update from config.
30785
30786 2007-07-21  Bruno Haible  <bruno@clisp.org>
30787
30788         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
30789         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
30790
30791 2007-07-20  Jim Meyering  <jim@meyering.net>
30792
30793         * check-module: Diagnose a self-dependency.
30794
30795 2007-07-19  Bruno Haible  <bruno@clisp.org>
30796
30797         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
30798         empty.
30799         Reported by Eric Blake.
30800
30801 2007-07-18  Bruno Haible  <bruno@clisp.org>
30802
30803         * gnulib-tool: New options --po-base, --po-domain.
30804         (func_usage): Document them.
30805         (pobase, po_domain): New variables.
30806         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
30807         DEFAULT_TEXT_DOMAIN.
30808         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
30809         (func_import): Consider pobase and po_domain. Create a po/ directory.
30810         (func_create_testdir): Set pobase and po_domain to empty.
30811         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
30812         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
30813
30814 2007-07-18  Bruno Haible  <bruno@clisp.org>
30815
30816         * gnulib-tool (func_get_automake_snippet): Synthesize also an
30817         EXTRA_DIST augmentation for files in build-aux/.
30818
30819 2007-07-16  Bruno Haible  <bruno@clisp.org>
30820
30821         * modules/lseek (License): Use the synonymous term "LGPLv2+".
30822         * modules/getdelim (License): Likewise.
30823
30824 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30825
30826         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
30827         * modules/d-type (License): Likewise.
30828         * modules/extensions (License): Likewise.
30829         * modules/fnmatch (License): Likewise.
30830         * modules/fseeko (License): Likewise.
30831         * modules/getaddrinfo (License): Likewise.
30832         * modules/getline (License): Likewise.
30833         * modules/getlogin_r (License): Likewise.
30834         * modules/getpass (License): Likewise.
30835         * modules/gettimeofday (License): Likewise.
30836         * modules/glob (License): Likewise.
30837         * modules/inet_ntop (License): Likewise.
30838         * modules/malloc (License): Likewise.
30839         * modules/malloca (License): Likewise.
30840         * modules/memmem (License): Likewise.
30841         * modules/mempcpy (License): Likewise.
30842         * modules/memset (License): Likewise.
30843         * modules/minmax (License): Likewise.
30844         * modules/mktime (License): Likewise.
30845         * modules/netinet_in (License): Likewise.
30846         * modules/pathmax (License): Likewise.
30847         * modules/poll (License): Likewise.
30848         * modules/regex (License): Likewise.
30849         * modules/snprintf (License): Likewise.
30850         * modules/stdbool (License): Likewise.
30851         * modules/stdint (License): Likewise.
30852         * modules/stdio (License): Likewise.
30853         * modules/strcase (License): Likewise.
30854         * modules/strcasestr (License): Likewise.
30855         * modules/strdup (License): Likewise.
30856         * modules/string (License): Likewise.
30857         * modules/strndup (License): Likewise.
30858         * modules/strnlen (License): Likewise.
30859         * modules/strpbrk (License): Likewise.
30860         * modules/strptime (License): Likewise.
30861         * modules/strsep (License): Likewise.
30862         * modules/sys_select (License): Likewise.
30863         * modules/sys_socket (License): Likewise.
30864         * modules/sys_stat (License): Likewise.
30865         * modules/sys_time (License): Likewise.
30866         * modules/time (License): Likewise.
30867         * modules/time_r (License): Likewise.
30868         * modules/timegm (License): Likewise.
30869         * modules/unistd (License): Likewise.
30870         * modules/vsnprintf (License): Likewise.
30871         * modules/wctype (License): Likewise.
30872
30873 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30874
30875         * modules/argz (License): LGPLv2+.
30876
30877 2007-07-15  Karl Berry  <karl@gnu.org>
30878
30879         * doc/gnulib.texi: revise node structure per new fdl.texi.
30880
30881 2007-07-14  Bruno Haible  <bruno@clisp.org>
30882
30883         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
30884         the output file.
30885         * lib/uniname/uninames.h: Regenerated.
30886
30887 2007-07-14  Karl Berry  <karl@gnu.org>
30888
30889         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
30890         omitting sectioning and index commands.
30891
30892 2007-07-13  Bruno Haible  <bruno@clisp.org>
30893
30894         New gnulib-tool option --more-symlinks.
30895         * gnulib-tool (func_usage): Document --more-symlinks.
30896         (do_copyrights): New variable.
30897         Recognize option --more-symlinks.
30898         (func_import): Don't add a copyright notice transform to
30899         sed_transform_lib_file if do_copyrights is empty.
30900
30901 2007-07-13  Bruno Haible  <bruno@clisp.org>
30902
30903         * lib/vasnprintf.c (decimal_point_char): Define also if
30904         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
30905         && !NEED_PRINTF_DIRECTIVE_A.
30906         Reported by Clemens Koller <clemens.koller@anagramm.de> via
30907         Gary V. Vaughan <gary@gnu.org>.
30908
30909 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
30910
30911         * lib/inttypes_.h: Undo previous change, since it was fixed
30912         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
30913
30914 2007-07-13  Bruno Haible  <bruno@clisp.org>
30915
30916         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
30917         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
30918
30919 2007-07-13  Jim Meyering  <jim@meyering.net>
30920
30921         df: Don't fail for Tru64's "file-on-file mount".
30922         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
30923         so we fall through and use statfs instead.  Details here:
30924         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
30925         Reported by Albert Chin.
30926
30927 2007-07-13  Bruno Haible  <bruno@clisp.org>
30928
30929         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
30930         * modules/configmake (License): Likewise.
30931         * modules/gettext (License): Likewise.
30932         * modules/gettext-h (License): Likewise.
30933         * modules/include_next (License): Likewise.
30934         * modules/link-warning (License): Likewise.
30935         * modules/localcharset (License): Likewise.
30936         * modules/localename (License): Likewise.
30937         * modules/lock (License): Likewise.
30938         * modules/relocatable-lib-lgpl (License): Likewise.
30939         * modules/size_max (License): Likewise.
30940         * modules/vasnprintf (License): Likewise.
30941         * modules/wchar (License): Likewise.
30942         * modules/xsize (License): Likewise.
30943
30944 2007-07-13  Bruno Haible  <bruno@clisp.org>
30945
30946         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
30947         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
30948
30949 2007-07-12  Bruno Haible  <bruno@clisp.org>
30950
30951         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
30952         in the modules files.
30953
30954 2007-07-11  Karl Berry  <karl@gnu.org>
30955
30956         * MODULES.html.sh (func_module): use
30957          sed -e '\|^'"${includefile}"'$|d'
30958          instead of /.../d, to avoid errors on $includefile's containing /.
30959
30960 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
30961
30962         * gnulib-tool (func_import): Avoid duplication of --avoid
30963         statements
30964         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
30965         names to `_' in variable names.
30966
30967 2007-07-10  Eric Blake  <ebb9@byu.net>
30968
30969         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
30970         * NEWS: Document this change.
30971
30972 2007-07-08  Bruno Haible  <bruno@clisp.org>
30973
30974         Update to Unicode 5.0.
30975         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
30976         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
30977         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
30978         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
30979         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
30980         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
30981         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
30982         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
30983         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
30984         U+10A3F, U+1D242..U+1D244.
30985         (nonspacing_table_ind): Update.
30986         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
30987         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
30988
30989 2007-07-08  Bruno Haible  <bruno@clisp.org>
30990
30991         Update to Unicode 5.0.
30992         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
30993         code transform. Extend the name index field of unicode_name_to_code and
30994         unicode_code_to_name from 16 to 24 bits.
30995         * lib/uniname/uniname.c (unicode_character_name,
30996         unicode_name_character): Add the range 0x12xxx to the code transform.
30997         * lib/uniname/uninames.h: Regenerated.
30998         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
30999
31000 2007-07-07  Bruno Haible  <bruno@clisp.org>
31001
31002         * modules/wcwidth-tests: New file.
31003         * tests/test-wcwidth.c: New file.
31004
31005         Work around MacOS X wcwidth() bug.
31006         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31007         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31008         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31009         original wcwidth in non-UTF-8 locales.
31010         * modules/wcwidth (Depends-on): Add localcharset, streq,
31011         uniwidth/width.
31012         * doc/functions/wcwidth.texi: Update.
31013
31014 2007-07-07  Bruno Haible  <bruno@clisp.org>
31015
31016         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31017         (wcwidth): New declaration.
31018         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31019         macros.
31020         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31021         here. Prepare for creating <wchar.h> unconditionally.
31022         * modules/wchar (Depends-on): Add link-warning.
31023         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31024         REPLACE_WCWIDTH, and GL_LINK_WARNING.
31025         * lib/wcwidth.h: Remove file.
31026         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31027         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31028         * modules/wcwidth (Files): Remove lib/wcwidth.h.
31029         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31030         (Include): Replace wcwidth.h with <wchar.h>.
31031         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31032         * lib/mbchar.h: Don't include wcwidth.h.
31033         * lib/mbswidth.c: Likewise.
31034         * NEWS: Mention the change.
31035
31036 2007-07-07  Bruno Haible  <bruno@clisp.org>
31037
31038         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31039         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31040         definition with an external declaration.
31041         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31042         defined as a function. Remove AC_C_INLINE requirement.
31043         * modules/wcwidth (Files): Add lib/wcwidth.c.
31044         (Makefile.am): Remove redundant statement.
31045
31046 2007-07-07  Bruno Haible  <bruno@clisp.org>
31047
31048         * MODULES.html.sh (Unicode string functions): Add the new modules.
31049
31050         * tests/uniwidth/test-u32-strwidth.c: New file.
31051         * modules/uniwidth/u32-strwidth-tests: New file.
31052
31053         * lib/uniwidth/u32-strwidth.c: New file.
31054         * modules/uniwidth/u32-strwidth: New file.
31055
31056         * tests/uniwidth/test-u16-strwidth.c: New file.
31057         * modules/uniwidth/u16-strwidth-tests: New file.
31058
31059         * lib/uniwidth/u16-strwidth.c: New file.
31060         * modules/uniwidth/u16-strwidth: New file.
31061
31062         * tests/uniwidth/test-u8-strwidth.c: New file.
31063         * modules/uniwidth/u8-strwidth-tests: New file.
31064
31065         * lib/uniwidth/u8-strwidth.c: New file.
31066         * modules/uniwidth/u8-strwidth: New file.
31067
31068         * tests/uniwidth/test-u32-width.c: New file.
31069         * modules/uniwidth/u32-width-tests: New file.
31070
31071         * lib/uniwidth/u32-width.c: New file.
31072         * modules/uniwidth/u32-width: New file.
31073
31074         * tests/uniwidth/test-u16-width.c: New file.
31075         * modules/uniwidth/u16-width-tests: New file.
31076
31077         * lib/uniwidth/u16-width.c: New file.
31078         * modules/uniwidth/u16-width: New file.
31079
31080         * tests/uniwidth/test-u8-width.c: New file.
31081         * modules/uniwidth/u8-width-tests: New file.
31082
31083         * lib/uniwidth/u8-width.c: New file.
31084         * modules/uniwidth/u8-width: New file.
31085
31086         * tests/uniwidth/test-uc_width.c: New file.
31087         * modules/uniwidth/width-tests: New file.
31088
31089         * lib/uniwidth/width.c: New file, from GNU libiconv.
31090         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31091         * modules/uniwidth/width: New file.
31092
31093         * lib/uniwidth.h: New file, from GNU libiconv.
31094         * modules/uniwidth/base: New file.
31095
31096 2007-07-07  Bruno Haible  <bruno@clisp.org>
31097
31098         * lib/uniname.h: New file, from GNU gettext.
31099         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31100         * lib/uniname/uninames.h: New file, from GNU gettext.
31101         * lib/uniname/uniname.c: New file, from GNU gettext.
31102         * tests/uniname/test-uninames.sh: New file.
31103         * tests/uniname/test-uninames.c: New file, from GNU gettext.
31104         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31105         * modules/uniname/base: New file.
31106         * modules/uniname/uniname: New file.
31107         * modules/uniname/uniname-tests: New file.
31108         * MODULES.html.sh (Unicode string functions): Add the new modules.
31109
31110 2007-07-06  Bruno Haible  <bruno@clisp.org>
31111
31112         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31113
31114 2007-07-06  Bruno Haible  <bruno@clisp.org>
31115
31116         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31117         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31118         includes <cygwin/sys_time.h> which includes <sys/select.h> which
31119         include <sys/time.h>.
31120         Reported by Eric Blake.
31121
31122 2007-07-06  Eric Blake  <ebb9@byu.net>
31123
31124         Fix testing canonicalize on cygwin.
31125         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31126         Revert patch from 2007-06-19.
31127         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31128         canonicalize module is also in use.
31129         * tests/test-canonicalize.c: New file.
31130         * tests/test-canonicalize.sh: Likewise.
31131         * modules/canonicalize-tests: Likewise.
31132
31133 2007-07-06  Jim Meyering  <jim@meyering.net>
31134
31135         * lib/getugroups.c (getugroups): Detect getgrent failure.
31136         Adjust comment to reflect reality: this function may return -1.
31137
31138 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31139
31140         * build-aux/bootstrap (TP_URL,get_translations): Update to use
31141         the new TP address.
31142         (usage): Fix typo
31143         (gnulib_mk): New variable.
31144
31145 2007-07-05  Jim Meyering  <jim@meyering.net>
31146
31147         Don't let endgrent clobber errno, no matter how improbable.
31148         * lib/getugroups.c (getugroups): Save and restore errno around
31149         endgrent call.
31150
31151         Close the group DB even when failing with 2^31 or more members.
31152         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31153
31154 2007-07-04  Jim Meyering  <jim@meyering.net>
31155
31156         * lib/getugroups.h: New file.
31157         * lib/getugroups.c: Include "getugroups.h".
31158         Remove uses of "register" keyword.
31159         Move local variable, "cp", down into scope where used.
31160         Give "username" parameter the "const" attribute.
31161         * modules/getugroups (Files): Add lib/getugroups.h
31162
31163 2007-07-04  Karl Berry  <karl@gnu.org>
31164
31165         * MODULES.html.sh (func_all_modules): Complete rename of
31166         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31167
31168 2007-07-02  Bruno Haible  <bruno@clisp.org>
31169
31170         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31171         mode, when inttypes.h comes from gnulib.
31172         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31173
31174 2007-07-02  Simon Josefsson  <simon@josefsson.org>
31175
31176         * NEWS: Mention lgpl module name change.
31177
31178         * modules/lgpl-2.1: Renamed from lgpl.
31179
31180         * NEWS: Mention gpl module name change.
31181
31182         * modules/gpl-3.0: New file, based on gpl-2.0.
31183
31184         * modules/gpl-2.0: Renamed from gpl.
31185
31186         * modules/gpl: Fix filename, doc/gpl.texi is now found at
31187         doc/gpl-2.0.texi.
31188
31189 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31190
31191         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31192         #define __STDC_LIMIT_MACROS temporarily while including
31193         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31194         Problem reported by Joel E. Denny in
31195         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31196
31197 2007-07-01  Bruno Haible  <bruno@clisp.org>
31198
31199         * lib/unistdio.h: New file.
31200         * lib/unistdio/u-asnprintf.h: New file.
31201         * lib/unistdio/u-asprintf.h: New file.
31202         * lib/unistdio/u-printf-args.c: New file.
31203         * lib/unistdio/u-printf-args.h: New file.
31204         * lib/unistdio/u-printf-parse.h: New file.
31205         * lib/unistdio/u-snprintf.h: New file.
31206         * lib/unistdio/u-sprintf.h: New file.
31207         * lib/unistdio/u-vasprintf.h: New file.
31208         * lib/unistdio/u-vsnprintf.h: New file.
31209         * lib/unistdio/u-vsprintf.h: New file.
31210         * lib/unistdio/ulc-asnprintf.c: New file.
31211         * lib/unistdio/ulc-asprintf.c: New file.
31212         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31213         * lib/unistdio/ulc-printf-parse.c: New file.
31214         * lib/unistdio/ulc-snprintf.c: New file.
31215         * lib/unistdio/ulc-sprintf.c: New file.
31216         * lib/unistdio/ulc-vasnprintf.c: New file.
31217         * lib/unistdio/ulc-vasprintf.c: New file.
31218         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31219         * lib/unistdio/ulc-vsnprintf.c: New file.
31220         * lib/unistdio/ulc-vsprintf.c: New file.
31221         * lib/unistdio/u8-asnprintf.c: New file.
31222         * lib/unistdio/u8-asprintf.c: New file.
31223         * lib/unistdio/u8-printf-parse.c: New file.
31224         * lib/unistdio/u8-snprintf.c: New file.
31225         * lib/unistdio/u8-sprintf.c: New file.
31226         * lib/unistdio/u8-vasnprintf.c: New file.
31227         * lib/unistdio/u8-vasprintf.c: New file.
31228         * lib/unistdio/u8-vsnprintf.c: New file.
31229         * lib/unistdio/u8-vsprintf.c: New file.
31230         * lib/unistdio/u8-u8-asnprintf.c: New file.
31231         * lib/unistdio/u8-u8-asprintf.c: New file.
31232         * lib/unistdio/u8-u8-snprintf.c: New file.
31233         * lib/unistdio/u8-u8-sprintf.c: New file.
31234         * lib/unistdio/u8-u8-vasnprintf.c: New file.
31235         * lib/unistdio/u8-u8-vasprintf.c: New file.
31236         * lib/unistdio/u8-u8-vsnprintf.c: New file.
31237         * lib/unistdio/u8-u8-vsprintf.c: New file.
31238         * lib/unistdio/u16-asnprintf.c: New file.
31239         * lib/unistdio/u16-asprintf.c: New file.
31240         * lib/unistdio/u16-printf-parse.c: New file.
31241         * lib/unistdio/u16-snprintf.c: New file.
31242         * lib/unistdio/u16-sprintf.c: New file.
31243         * lib/unistdio/u16-vasnprintf.c: New file.
31244         * lib/unistdio/u16-vasprintf.c: New file.
31245         * lib/unistdio/u16-vsnprintf.c: New file.
31246         * lib/unistdio/u16-vsprintf.c: New file.
31247         * lib/unistdio/u16-u16-asnprintf.c: New file.
31248         * lib/unistdio/u16-u16-asprintf.c: New file.
31249         * lib/unistdio/u16-u16-snprintf.c: New file.
31250         * lib/unistdio/u16-u16-sprintf.c: New file.
31251         * lib/unistdio/u16-u16-vasnprintf.c: New file.
31252         * lib/unistdio/u16-u16-vasprintf.c: New file.
31253         * lib/unistdio/u16-u16-vsnprintf.c: New file.
31254         * lib/unistdio/u16-u16-vsprintf.c: New file.
31255         * lib/unistdio/u32-asnprintf.c: New file.
31256         * lib/unistdio/u32-asprintf.c: New file.
31257         * lib/unistdio/u32-printf-parse.c: New file.
31258         * lib/unistdio/u32-snprintf.c: New file.
31259         * lib/unistdio/u32-sprintf.c: New file.
31260         * lib/unistdio/u32-vasnprintf.c: New file.
31261         * lib/unistdio/u32-vasprintf.c: New file.
31262         * lib/unistdio/u32-vsnprintf.c: New file.
31263         * lib/unistdio/u32-vsprintf.c: New file.
31264         * lib/unistdio/u32-u32-asnprintf.c: New file.
31265         * lib/unistdio/u32-u32-asprintf.c: New file.
31266         * lib/unistdio/u32-u32-snprintf.c: New file.
31267         * lib/unistdio/u32-u32-sprintf.c: New file.
31268         * lib/unistdio/u32-u32-vasnprintf.c: New file.
31269         * lib/unistdio/u32-u32-vasprintf.c: New file.
31270         * lib/unistdio/u32-u32-vsnprintf.c: New file.
31271         * lib/unistdio/u32-u32-vsprintf.c: New file.
31272         * tests/unistdio/test-ulc-asnprintf1.c: New file.
31273         * tests/unistdio/test-ulc-asnprintf1.h: New file.
31274         * tests/unistdio/test-ulc-printf1.h: New file.
31275         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31276         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31277         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31278         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31279         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31280         * tests/unistdio/test-ulc-vasprintf1.c: New file.
31281         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31282         * tests/unistdio/test-ulc-vsprintf1.c: New file.
31283         * tests/unistdio/test-u8-asnprintf1.c: New file.
31284         * tests/unistdio/test-u8-asnprintf1.h: New file.
31285         * tests/unistdio/test-u8-printf1.h: New file.
31286         * tests/unistdio/test-u8-vasnprintf1.c: New file.
31287         * tests/unistdio/test-u8-vasnprintf2.c: New file.
31288         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31289         * tests/unistdio/test-u8-vasnprintf3.c: New file.
31290         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31291         * tests/unistdio/test-u8-vasprintf1.c: New file.
31292         * tests/unistdio/test-u8-vsnprintf1.c: New file.
31293         * tests/unistdio/test-u8-vsprintf1.c: New file.
31294         * tests/unistdio/test-u16-asnprintf1.c: New file.
31295         * tests/unistdio/test-u16-asnprintf1.h: New file.
31296         * tests/unistdio/test-u16-printf1.h: New file.
31297         * tests/unistdio/test-u16-vasnprintf1.c: New file.
31298         * tests/unistdio/test-u16-vasnprintf2.c: New file.
31299         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
31300         * tests/unistdio/test-u16-vasnprintf3.c: New file.
31301         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
31302         * tests/unistdio/test-u16-vasprintf1.c: New file.
31303         * tests/unistdio/test-u16-vsnprintf1.c: New file.
31304         * tests/unistdio/test-u16-vsprintf1.c: New file.
31305         * tests/unistdio/test-u32-asnprintf1.c: New file.
31306         * tests/unistdio/test-u32-asnprintf1.h: New file.
31307         * tests/unistdio/test-u32-printf1.h: New file.
31308         * tests/unistdio/test-u32-vasnprintf1.c: New file.
31309         * tests/unistdio/test-u32-vasnprintf2.c: New file.
31310         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
31311         * tests/unistdio/test-u32-vasnprintf3.c: New file.
31312         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
31313         * tests/unistdio/test-u32-vasprintf1.c: New file.
31314         * tests/unistdio/test-u32-vsnprintf1.c: New file.
31315         * tests/unistdio/test-u32-vsprintf1.c: New file.
31316         * modules/unistdio/base: New file.
31317         * modules/unistdio/u-printf-args: New file.
31318         * modules/unistdio/ulc-asnprintf: New file.
31319         * modules/unistdio/ulc-asprintf: New file.
31320         * modules/unistdio/ulc-fprintf: New file.
31321         * modules/unistdio/ulc-printf-parse: New file.
31322         * modules/unistdio/ulc-snprintf: New file.
31323         * modules/unistdio/ulc-sprintf: New file.
31324         * modules/unistdio/ulc-vasnprintf: New file.
31325         * modules/unistdio/ulc-vasprintf: New file.
31326         * modules/unistdio/ulc-vfprintf: New file.
31327         * modules/unistdio/ulc-vsnprintf: New file.
31328         * modules/unistdio/ulc-vsprintf: New file.
31329         * modules/unistdio/u8-asnprintf: New file.
31330         * modules/unistdio/u8-asprintf: New file.
31331         * modules/unistdio/u8-printf-parse: New file.
31332         * modules/unistdio/u8-snprintf: New file.
31333         * modules/unistdio/u8-sprintf: New file.
31334         * modules/unistdio/u8-vasnprintf: New file.
31335         * modules/unistdio/u8-vasprintf: New file.
31336         * modules/unistdio/u8-vsnprintf: New file.
31337         * modules/unistdio/u8-vsprintf: New file.
31338         * modules/unistdio/u8-u8-asnprintf: New file.
31339         * modules/unistdio/u8-u8-asprintf: New file.
31340         * modules/unistdio/u8-u8-snprintf: New file.
31341         * modules/unistdio/u8-u8-sprintf: New file.
31342         * modules/unistdio/u8-u8-vasnprintf: New file.
31343         * modules/unistdio/u8-u8-vasprintf: New file.
31344         * modules/unistdio/u8-u8-vsnprintf: New file.
31345         * modules/unistdio/u8-u8-vsprintf: New file.
31346         * modules/unistdio/u16-asnprintf: New file.
31347         * modules/unistdio/u16-asprintf: New file.
31348         * modules/unistdio/u16-printf-parse: New file.
31349         * modules/unistdio/u16-snprintf: New file.
31350         * modules/unistdio/u16-sprintf: New file.
31351         * modules/unistdio/u16-vasnprintf: New file.
31352         * modules/unistdio/u16-vasprintf: New file.
31353         * modules/unistdio/u16-vsnprintf: New file.
31354         * modules/unistdio/u16-vsprintf: New file.
31355         * modules/unistdio/u16-u16-asnprintf: New file.
31356         * modules/unistdio/u16-u16-asprintf: New file.
31357         * modules/unistdio/u16-u16-snprintf: New file.
31358         * modules/unistdio/u16-u16-sprintf: New file.
31359         * modules/unistdio/u16-u16-vasnprintf: New file.
31360         * modules/unistdio/u16-u16-vasprintf: New file.
31361         * modules/unistdio/u16-u16-vsnprintf: New file.
31362         * modules/unistdio/u16-u16-vsprintf: New file.
31363         * modules/unistdio/u32-asnprintf: New file.
31364         * modules/unistdio/u32-asprintf: New file.
31365         * modules/unistdio/u32-printf-parse: New file.
31366         * modules/unistdio/u32-snprintf: New file.
31367         * modules/unistdio/u32-sprintf: New file.
31368         * modules/unistdio/u32-vasnprintf: New file.
31369         * modules/unistdio/u32-vasprintf: New file.
31370         * modules/unistdio/u32-vsnprintf: New file.
31371         * modules/unistdio/u32-vsprintf: New file.
31372         * modules/unistdio/u32-u32-asnprintf: New file.
31373         * modules/unistdio/u32-u32-asprintf: New file.
31374         * modules/unistdio/u32-u32-snprintf: New file.
31375         * modules/unistdio/u32-u32-sprintf: New file.
31376         * modules/unistdio/u32-u32-vasnprintf: New file.
31377         * modules/unistdio/u32-u32-vasprintf: New file.
31378         * modules/unistdio/u32-u32-vsnprintf: New file.
31379         * modules/unistdio/u32-u32-vsprintf: New file.
31380         * modules/unistdio/ulc-asnprintf-tests: New file.
31381         * modules/unistdio/ulc-vasnprintf-tests: New file.
31382         * modules/unistdio/ulc-vasprintf-tests: New file.
31383         * modules/unistdio/ulc-vsnprintf-tests: New file.
31384         * modules/unistdio/ulc-vsprintf-tests: New file.
31385         * modules/unistdio/u8-asnprintf-tests: New file.
31386         * modules/unistdio/u8-vasnprintf-tests: New file.
31387         * modules/unistdio/u8-vasprintf-tests: New file.
31388         * modules/unistdio/u8-vsnprintf-tests: New file.
31389         * modules/unistdio/u8-vsprintf-tests: New file.
31390         * modules/unistdio/u16-asnprintf-tests: New file.
31391         * modules/unistdio/u16-vasnprintf-tests: New file.
31392         * modules/unistdio/u16-vasprintf-tests: New file.
31393         * modules/unistdio/u16-vsnprintf-tests: New file.
31394         * modules/unistdio/u16-vsprintf-tests: New file.
31395         * modules/unistdio/u32-asnprintf-tests: New file.
31396         * modules/unistdio/u32-vasnprintf-tests: New file.
31397         * modules/unistdio/u32-vasprintf-tests: New file.
31398         * modules/unistdio/u32-vsnprintf-tests: New file.
31399         * modules/unistdio/u32-vsprintf-tests: New file.
31400         * MODULES.html.sh (Unicode string functions): Add the new modules.
31401
31402 2007-07-01  Bruno Haible  <bruno@clisp.org>
31403
31404         * lib/sprintf.c (sprintf): Limit the available length estimation,
31405         to avoid address wraparound.
31406         * lib/vsprintf.c (vsprintf): Likewise.
31407         * modules/sprintf-posix (Dependencies): Add stdint.
31408         * modules/vsprintf-posix (Dependencies): Likewise.
31409
31410 2007-07-01  Bruno Haible  <bruno@clisp.org>
31411
31412         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
31413         Windows PATH as well. Conservative double-quoting. Comments.
31414
31415 2007-07-01  Bruno Haible  <bruno@clisp.org>
31416             Eric Blake  <ebb9@byu.net>
31417             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31418
31419         * gnulib-tool (self_abspathname): Fix algorithm to cope with
31420         empty components in $PATH, denoting '.'.
31421
31422 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31423
31424         * gnulib-tool: Fix indentation.
31425         (func_create_megatestdir): Likewise.
31426         Report by Bruno Haible.
31427
31428 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31429
31430         Sync from Automake.
31431         * build-aux/gnupload: Fix shell portability issues with for loops.
31432         Report by Karl Berry.
31433
31434 2007-06-29  Simon Josefsson  <simon@josefsson.org>
31435
31436         * build-aux/maint.mk (POURL): Use translationproject.org.
31437
31438 2007-06-27  Simon Josefsson  <simon@josefsson.org>
31439             Bruno Haible  <bruno@clisp.org>
31440
31441         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
31442         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
31443         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
31444         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
31445         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
31446
31447 2007-06-27  Bruno Haible  <bruno@clisp.org>
31448
31449         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
31450         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
31451
31452 2007-06-26  Karl Berry  <karl@gnu.org>
31453
31454         * MODULES.html.sh: remove xreadlink-with-size.
31455
31456 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31457
31458         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
31459         method that I hope also handles the double-include problem noted
31460         by Bruno Haible in
31461         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
31462
31463 2007-06-23  Bruno Haible  <bruno@clisp.org>
31464
31465         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31466         Don't let the 'mostlyclean' target fail if the last subdirectory could
31467         not be removed.
31468         Reported by Karl Berry.
31469
31470 2007-06-23  Bruno Haible  <bruno@clisp.org>
31471
31472         * gnulib-tool (echo): Add a speedier workaround for ksh.
31473         * tests/test-echo.sh: Likewise.
31474
31475 2007-06-23  Bruno Haible  <bruno@clisp.org>
31476
31477         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
31478         * tests/test-echo.sh: Likewise.
31479
31480 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31481
31482         * gnulib-tool (IFS): Initialize early, so we don't set it to
31483         empty later.
31484         (self_abspathname): Rewrite algorithm to set it, reindent.
31485         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
31486         (func_create_megatestdir): Merge some sed scripts.
31487
31488 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31489
31490         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
31491         exposed by Sun Studio 11 cc on Solaris 8.
31492
31493 2007-06-22  Bruno Haible  <bruno@clisp.org>
31494
31495         * gnulib-tool (echo): Ensure the echo primitive does not interpret
31496         backslashes.
31497         * tests/test-echo.sh: New file.
31498
31499 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31500
31501         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
31502         simplify `sed_replace_build_aux' scripts, they are portable but
31503         echoing them with `echo' is not.
31504         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
31505
31506 2007-06-21  Karl Berry  <karl@gnu.org>
31507
31508         * config/srclist.txt: guess we can't handle the licenses via
31509         srclist at the moment.
31510
31511 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31512
31513         * MODULES.html.sh: Add include_next.
31514         * modules/include_next: New file.
31515
31516 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31517
31518         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
31519         INCLUDE_NEXT.
31520         (gl_CHECK_NEXT_HEADERS): New macro.
31521         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
31522         the obsolescent gl_ABSOLUTE_HEADER.
31523         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
31524         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
31525         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31526         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31527         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31528         * m4/math_h.m4 (gl_MATH_H): Likewise.
31529         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31530         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31531         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31532         * m4/stdint.m4 (gl_STDINT_H): Likewise.
31533         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31534         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31535         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31536         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31537         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31539         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31540         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31541         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
31542         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31543         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31544         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31545         * m4/inttypes.m4 (gl_INTTYPES_H): Define
31546         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
31547         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
31548         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
31549         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
31550         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
31551         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
31552         * lib/float_.h: Likewise.
31553         * lib/inttypes_.h: Likewise.
31554         * lib/math_.h: Likewise.
31555         * lib/search_.h: Likewise.
31556         * lib/signal_.h: Likewise.
31557         * lib/stdint_.h: Likewise.
31558         * lib/stdio_.h: Likewise.
31559         * lib/stdlib_.h: Likewise.
31560         * lib/string_.h: Likewise.
31561         * lib/sys_stat_.h: Likewise.
31562         * lib/sys_time_.h: Likewise.
31563         * lib/time_.h: Likewise.
31564         * lib/unistd_.h: Likewise.
31565         * lib/wchar_.h: Likewise.
31566         * lib/wctype_.h: Likewise.
31567         * lib/dirent_.h: Likewise.
31568         * lib/iconv_.h: Likewise.
31569         * lib/locale_.h: Likewise.
31570         * lib/netinet_in_.h: Likewise.
31571         * lib/sys_select_.h: Likewise.
31572         * lib/sys_socket_.h: Likewise.
31573         * lib/sysexits_.h: Likewise.
31574         * modules/fcntl (Depends-on): Depend on include_next, not
31575         absolute_header.
31576         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
31577         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
31578         * modules/fchdir: Likewise.
31579         * modules/float: Likewise.
31580         * modules/iconv_open: Likewise.
31581         * modules/inttypes: Likewise.
31582         * modules/locale: Likewise.
31583         * modules/math: Likewise.
31584         * modules/netinet_in: Likewise.
31585         * modules/search: Likewise.
31586         * modules/signal: Likewise.
31587         * modules/stdint: Likewise.
31588         * modules/stdio: Likewise.
31589         * modules/stdlib: Likewise.
31590         * modules/string: Likewise.
31591         * modules/sys_select: Likewise.
31592         * modules/sys_socket: Likewise.
31593         * modules/sys_stat: Likewise.
31594         * modules/sys_time: Likewise.
31595         * modules/sysexits: Likewise.
31596         * modules/time: Likewise.
31597         * modules/unistd: Likewise.
31598         * modules/wchar: Likewise.
31599         * modules/wctype: Likewise.
31600         * modules/sys_stat: Change maintainer to "all".
31601         * modules/unistd: Likewise.
31602
31603 2007-06-20  Karl Berry  <karl@gnu.org>
31604
31605         * config/srclist.txt: track www changes in license files.
31606
31607 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
31608
31609         * build-aux/bootstrap: Remove stray dot.
31610         Make sure build_aux settings are honored when linking
31611         gnulib_extra_files.
31612
31613 2007-06-19  Eric Blake  <ebb9@byu.net>
31614
31615         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31616         Allow compilation on cygwin.
31617
31618 2007-06-19  Jim Meyering  <jim@meyering.net>
31619
31620         xreadlink-with-size: Remove module.  No longer used.
31621         Ex-callers now use xreadlink or mreadlink-with-size.
31622         * modules/xreadlink-with-size: Remove module.
31623         * lib/xreadlink-with-size.c: Remove file.
31624         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
31625         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
31626         just before the function definition *is* accurate.
31627
31628         Eliminate one way canonicalize_filename_mode could exit.
31629         * lib/canonicalize.c (canonicalize_filename_mode):
31630         Use mreadlink_with_size, not xreadlink_with_size.
31631
31632 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31633
31634         Detect porting problems to FreeBSD/arm, which has time_t wider than
31635         long int.  Original problem reported for GNU diff by Xin Li in
31636         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
31637         * modules/getdate (Depends-on): Add intprops, verify.
31638         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
31639         is an integer type no wider than long int.
31640
31641 2007-06-18  Jim Meyering  <jim@meyering.net>
31642
31643         New module: mreadlink-with-size.
31644         * MODULES.html.sh: Add mreadlink-with-size.
31645         * modules/mreadlink-with-size: New module
31646         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
31647         not xreadlink-with-size.
31648         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
31649
31650 2007-06-16  Bruno Haible  <bruno@clisp.org>
31651
31652         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
31653         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
31654         Reported by Gary V. Vaughan <gary@gnu.org>.
31655
31656 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31657
31658         Revamp lchown so that it lives in unistd.h where it belongs.
31659         * lib/lchown.h: Remove.
31660         * lib/dirchownmod.c: Don't include lib/lchown.h.
31661         * lib/fchownat.c: Likewise.
31662         * lib/openat.c: Likewise.
31663         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
31664         does not follow symlinks.
31665         (EOPNOTSUPP): Define if not defined.
31666         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
31667         is defined to 0.
31668         (lchown): New decl.
31669         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
31670         Do not check for lchown decl.
31671         Set REPLACE_LCHOWN.
31672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
31673         REPLACE_LCHOWN.
31674         * modules/chown: Make it clear it follows symlinks.
31675         * modules/lchown: Make it clear it doesn't follow symlinks.
31676         (Files): Remove lib/lchown.h
31677         (Depends-on): Add unistd.
31678         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
31679         (Include): Include <unistd.h>, not "lchown.h".
31680         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
31681         REPLACE_LCHOWN.
31682
31683 2007-06-15  Jim Meyering  <jim@meyering.net>
31684
31685         Change license (GPL to LGPL) of fsusage and dependents.
31686         * modules/fsusage (License): Change to LGPL.
31687         * modules/full-read (License): Likewise.
31688         * modules/full-write (License): Likewise.
31689         * modules/safe-read (License): Likewise.
31690         * modules/safe-write (License): Likewise.
31691
31692 2007-06-14  Ben Pfaff  <blp@gnu.org>
31693
31694         Missing part of allocsa -> malloca transition.
31695         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
31696         gl_MALLOCA.
31697
31698 2007-06-12  Bruno Haible  <bruno@clisp.org>
31699
31700         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
31701         to ia64, x86_64, i386.
31702         Reported by Eric Blake.
31703
31704 2007-06-12  Bruno Haible  <bruno@clisp.org>
31705
31706         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
31707         cross-compiling to x86_64.
31708
31709 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
31710
31711         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
31712         glitch reported by Ralf Wildenhues in
31713         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
31714
31715         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
31716         Vin Shelton.
31717
31718 2007-06-11  Bruno Haible  <bruno@clisp.org>
31719
31720         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
31721         replacement string.
31722         Reported by Eric Blake.
31723
31724 2007-06-10  Bruno Haible  <bruno@clisp.org>
31725
31726         Prepare vasnprintf code for use with Unicode strings.
31727         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
31728         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
31729         TYPE_U32_STRING.
31730         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
31731         a_u32_string variants.
31732         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31733         * lib/printf-args.c: Don't include config.h and the specification
31734         header if PRINTF_FETCHARGS is already defined.
31735         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31736         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
31737         TYPE_U16_STRING, TYPE_U32_STRING.
31738         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
31739         u16_directive, u16_directives, u32_directive, u32_directives): New
31740         types.
31741         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
31742         New declarations.
31743         * lib/printf-parse.c: Don't include config.h and the specification
31744         header if PRINTF_PARSE is already defined. Eliminate the set of
31745         parameters for WIDE_CHAR_VERSION; the user of this file must provide
31746         them now. Include c-ctype.h.
31747         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
31748         directive and CHAR_T_ONLY_ASCII.
31749         * lib/vasnprintf.c: Don't include config.h and the specification header
31750         if VASNPRINTF is already defined.
31751         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
31752         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
31753         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
31754         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
31755         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
31756         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
31757         code accordingly.
31758         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
31759         pad_ourselves also in this case, with the 'c' and 's' directives, and
31760         with a different notion of "width".
31761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
31762
31763 2007-06-10  Bruno Haible  <bruno@clisp.org>
31764
31765         * modules/unistr/u32-mbsnlen: New file.
31766         * lib/unistr/u32-mbsnlen.c: New file.
31767
31768         * modules/unistr/u16-mbsnlen: New file.
31769         * lib/unistr/u16-mbsnlen.c: New file.
31770
31771         * modules/unistr/u8-mbsnlen: New file.
31772         * lib/unistr/u8-mbsnlen.c: New file.
31773
31774         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
31775         declarations.
31776
31777 2007-06-10  Bruno Haible  <bruno@clisp.org>
31778
31779         * lib/string_.h (mbsnlen): New declaration.
31780         * lib/mbsnlen.c: New file.
31781         * m4/mbsnlen.m4: New file.
31782         * modules/mbsnlen: New file.
31783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
31784         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
31785         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
31786
31787 2007-06-10  Bruno Haible  <bruno@clisp.org>
31788
31789         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
31790
31791 2007-06-10  Bruno Haible  <bruno@clisp.org>
31792
31793         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
31794         * lib/mbuiter.h: Likewise.
31795
31796 2007-06-10  Bruno Haible  <bruno@clisp.org>
31797
31798         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
31799         declaration.
31800
31801 2007-06-10  Karl Berry  <karl@gnu.org>
31802
31803         * config/srclist.txt: remove gettext entries, Bruno prefers
31804         to update individually.
31805
31806 2007-06-10  Bruno Haible  <bruno@clisp.org>
31807
31808         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
31809         'maxlen'. Ensure only length + width bytes are allocated, not
31810         length + 1 + width.
31811
31812 2007-06-09  Bruno Haible  <bruno@clisp.org>
31813
31814         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
31815         (CHAR_T): Remove macro.
31816         (VASNPRINTF): Update.
31817
31818 2007-06-09  Bruno Haible  <bruno@clisp.org>
31819
31820         * MODULES.html.sh (Unicode string functions): Add the new modules.
31821
31822         * modules/uniconv/u32-conv-to-enc: New file.
31823         * lib/uniconv/u32-conv-to-enc.c: New file.
31824         * modules/uniconv/u32-conv-to-enc-tests: New file.
31825         * tests/uniconv/test-u32-conv-to-enc.c: New file.
31826
31827         * modules/uniconv/u16-conv-to-enc: New file.
31828         * lib/uniconv/u16-conv-to-enc.c: New file.
31829         * lib/uniconv/u-conv-to-enc.h: New file.
31830         * modules/uniconv/u16-conv-to-enc-tests: New file.
31831         * tests/uniconv/test-u16-conv-to-enc.c: New file.
31832
31833         * modules/uniconv/u8-conv-to-enc: New file.
31834         * lib/uniconv/u8-conv-to-enc.c: New file.
31835         * modules/uniconv/u8-conv-to-enc-tests: New file.
31836         * tests/uniconv/test-u8-conv-to-enc.c: New file.
31837
31838         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31839         u32_conv_to_encoding): New declarations.
31840
31841 2007-06-09  Bruno Haible  <bruno@clisp.org>
31842
31843         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
31844
31845 2007-06-09  Bruno Haible  <bruno@clisp.org>
31846
31847         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
31848         * modules/malloca: Renamed from modules/allocsa, updated.
31849         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
31850         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
31851         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
31852         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
31853         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
31854         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
31855         * modules/xmalloca: Renamed from modules/xallocsa, updated.
31856         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
31857         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
31858         * modules/c-strcasestr (Depends-on): Update.
31859         * lib/c-strcasestr.c: Update.
31860         * modules/c-strstr (Depends-on): Update.
31861         * lib/c-strstr.c: Update.
31862         * modules/canonicalize-lgpl (Depends-on): Update.
31863         * lib/canonicalize-lgpl.c: Update.
31864         * modules/clean-temp (Depends-on): Update.
31865         * lib/clean-temp.c: Update.
31866         * modules/csharpcomp (Depends-on): Update.
31867         * lib/csharpcomp.c: Update.
31868         * modules/csharpexec (Depends-on): Update.
31869         * lib/csharpexec.c: Update.
31870         * modules/javacomp (Depends-on): Update.
31871         * lib/javacomp.c: Update.
31872         * modules/javaexec (Depends-on): Update.
31873         * lib/javaexec.c: Update.
31874         * modules/mbscasestr (Depends-on): Update.
31875         * lib/mbscasestr.c: Update.
31876         * modules/mbsstr (Depends-on): Update.
31877         * lib/mbsstr.c: Update.
31878         * modules/setenv (Depends-on): Update.
31879         * lib/setenv.c: Update.
31880         * modules/strcasestr (Depends-on): Update.
31881         * lib/strcasestr.c: Update.
31882         * modules/striconveha (Depends-on): Update.
31883         * lib/striconveha.c: Update.
31884         * modules/relocatable-prog-wrapper (Files): Update.
31885         * lib/relocwrapper.c: Update.
31886         * build-aux/install-reloc: Update.
31887         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
31888
31889 2007-06-08  Bruno Haible  <bruno@clisp.org>
31890
31891         Port to uClibc.
31892         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
31893         * lib/fpurge.c (fpurge): Likewise.
31894         * lib/freading.c (freading): Likewise.
31895         * lib/fseeko.c (rpl_fseeko): Likewise.
31896         * lib/fseterr.c (fseterr): Likewise.
31897         * lib/fwriting.c (fwriting): Likewise.
31898         * tests/test-fflush.c (main): Avoid a failure on uClibc.
31899
31900 2007-06-08  Bruno Haible  <bruno@clisp.org>
31901
31902         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
31903         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
31904         * modules/gettext (Files): Add m4/intlmacosx.m4.
31905
31906 2007-06-07  Bruno Haible  <bruno@clisp.org>
31907
31908         * modules/localename-tests: New file.
31909         * tests/test-localename.c: New file.
31910
31911         New module 'localename'.
31912         * lib/localename.h: New file.
31913         * lib/localename.c: New file, from GNU gettext.
31914         * m4/localename.m4: New file.
31915         * modules/localename: New file.
31916
31917 2007-06-07  Bruno Haible  <bruno@clisp.org>
31918
31919         Work around the lack of <wchar.h> on some builds of uClibc.
31920         * doc/headers/wchar.texi: Update.
31921         * lib/wchar_.h: Include <wchar.h> only if it exists.
31922         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
31923         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
31924         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
31925         doesn't exist.
31926         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
31927         * modules/mbfile (Depends-on): Add wchar.
31928         * modules/mbiter (Depends-on): Likewise.
31929         * modules/mbuiter (Depends-on): Likewise.
31930         Reported by Simon Josefsson.
31931
31932 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
31933
31934         Work around problem reported by Steven M. Schweda in
31935         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
31936         Tru64 5.1B with the Compaq compiler environment installed declares
31937         an 'isblank' function but does not define it in the C library.
31938         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
31939         * lib/regex_internal.h (isblank): Likewise.
31940         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
31941         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31942
31943 2007-06-05  Bruno Haible  <bruno@clisp.org>
31944
31945         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
31946         ia64.
31947         * modules/printf-safe: New file.
31948         * modules/fprintf-posix (Depends-on): Add printf-safe.
31949         * modules/printf-posix (Depends-on): Likewise.
31950         * modules/snprintf-posix (Depends-on): Likewise.
31951         * modules/sprintf-posix (Depends-on): Likewise.
31952         * modules/vasnprintf-posix (Depends-on): Likewise.
31953         * modules/vasprintf-posix (Depends-on): Likewise.
31954         * modules/vfprintf-posix (Depends-on): Likewise.
31955         * modules/vprintf-posix (Depends-on): Likewise.
31956         * modules/vsnprintf-posix (Depends-on): Likewise.
31957         * modules/vsprintf-posix (Depends-on): Likewise.
31958         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
31959         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
31960         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
31961         "no" on i386, x86_64, ia64.
31962         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
31963         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31964         on i386, x86_64, ia64.
31965         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
31966         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31967         on i386, x86_64, ia64.
31968         * tests/test-vasnprintf-posix.c: Include float.h.
31969         (LDBL80_WORDS): New macro.
31970         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31971         on i386, x86_64, ia64.
31972         * tests/test-vasprintf-posix.c: Include float.h.
31973         (LDBL80_WORDS): New macro.
31974         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31975         on i386, x86_64, ia64.
31976         * tests/test-snprintf-posix.c: Include float.h.
31977         * tests/test-sprintf-posix.c: Likewise.
31978         * tests/test-vsnprintf-posix.c: Likewise.
31979         * tests/test-vsprintf-posix.c: Likewise.
31980
31981 2007-06-05  Bruno Haible  <bruno@clisp.org>
31982
31983         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
31984         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
31985         non-IEEE numbers on i386, x86_64, ia64.
31986         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
31987         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
31988         * tests/test-isnanl.h: Include float.h.
31989         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
31990
31991 2007-06-05  Bruno Haible  <bruno@clisp.org>
31992
31993         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
31994         also the %a / %A. Handle the %a / %A code before this extra handling.
31995
31996 2007-06-05  Bruno Haible  <bruno@clisp.org>
31997
31998         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
31999         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32000
32001 2007-06-05  Bruno Haible  <bruno@clisp.org>
32002
32003         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32004         typo in variable name.
32005
32006 2007-06-05  Eric Blake  <ebb9@byu.net>
32007
32008         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32009         Reported by Simon Josefsson.
32010
32011 2007-06-04  Bruno Haible  <bruno@clisp.org>
32012
32013         Avoid test failures on some PowerPC platforms.
32014         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32015         Define differently for PowerPC.
32016         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32017         Reported by Gary V. Vaughan <gary@gnu.org>.
32018
32019 2007-06-02  Bruno Haible  <bruno@clisp.org>
32020
32021         Fix test-stdint failure on FreeBSD/ia64.
32022         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32023         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32024         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32025         * doc/headers/stdint.texi: Update.
32026
32027 2007-06-01  Bruno Haible  <bruno@clisp.org>
32028
32029         * tests/test-binary-io.c (main): Pass a third argument to open().
32030         Reported by Gary V. Vaughan <gary@gnu.org>.
32031
32032 2007-06-01  Bruno Haible  <bruno@clisp.org>
32033
32034         * doc/functions/frexpl.texi: Update for mingw.
32035
32036 2007-06-01  Bruno Haible  <bruno@clisp.org>
32037
32038         * tests/test-lseek.c (main): Disable test of errno for invalid third
32039         argument.
32040         * doc/functions/lseek.texi: Update.
32041         Reported by Gary V. Vaughan <gary@gnu.org>.
32042
32043 2007-05-28  Bruno Haible  <bruno@clisp.org>
32044
32045         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32046
32047 2007-05-31  Eric Blake  <ebb9@byu.net>
32048
32049         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32050         cross compiling.
32051
32052 2007-05-30  Eric Blake  <ebb9@byu.net>
32053         and Bruno Haible  <bruno@clisp.org>
32054
32055         Work around mingw test failures exposed by m4-1.4.9b.
32056         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32057         * tests/test-unistd.c: Disable uid_t and git_t tests for the
32058         moment.
32059
32060 2007-05-30  Bruno Haible  <bruno@clisp.org>
32061
32062         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32063         assuming that they are closed. Needed on HP-UX 11.
32064
32065 2007-05-29  Bruno Haible  <bruno@clisp.org>
32066
32067         Fix a problem with #include_next.
32068         * lib/dirent_.h: Split the double-inclusion guard.
32069         * lib/fcntl_.h: Likewise.
32070         * lib/float_.h: Likewise.
32071         * lib/iconv_.h: Likewise.
32072         * lib/inttypes_.h: Likewise.
32073         * lib/locale_.h: Likewise.
32074         * lib/math_.h: Likewise.
32075         * lib/netinet_in_.h: Likewise.
32076         * lib/search_.h: Likewise.
32077         * lib/signal_.h: Likewise.
32078         * lib/stdint_.h: Likewise.
32079         * lib/stdio_.h: Likewise.
32080         * lib/stdlib_.h: Likewise.
32081         * lib/string_.h: Likewise.
32082         * lib/sys_select_.h: Likewise.
32083         * lib/sys_socket_.h: Likewise.
32084         * lib/sys_stat_.h: Likewise.
32085         * lib/sys_time_.h: Likewise.
32086         * lib/sysexits_.h: Likewise.
32087         * lib/time_.h: Likewise.
32088         * lib/unistd_.h: Likewise.
32089         * lib/wchar_.h: Likewise.
32090         * lib/wctype_.h: Likewise.
32091
32092 2007-05-29  Bruno Haible  <bruno@clisp.org>
32093
32094         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32095         for the moment.
32096
32097 2007-05-29  Bruno Haible  <bruno@clisp.org>
32098
32099         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32100         invocation.
32101         Reported by Eric Blake.
32102
32103 2007-05-29  Bruno Haible  <bruno@clisp.org>
32104
32105         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32106         compiling case.
32107
32108 2007-05-29  Eric Blake  <ebb9@byu.net>
32109             Bruno Haible  <bruno@clisp.org>
32110
32111         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32112         cross compiles.
32113
32114 2007-05-28  Eric Blake  <ebb9@byu.net>
32115
32116         * modules/closein-tests (test_closein_LDADD): Support test on
32117         cygwin with libtool.
32118
32119 2007-05-28  Bruno Haible  <bruno@clisp.org>
32120
32121         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32122         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32123         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32124         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32125         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32126         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32127         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32128         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32129         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32130
32131 2007-05-28  Eric Blake  <ebb9@byu.net>
32132
32133         Unconditionally include <config.h> in unit tests.
32134         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32135         * tests/test-allocsa.c, tests/test-arcfour.c,
32136         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32137         tests/test-array_list.c, tests/test-array_oset.c,
32138         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32139         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32140         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32141         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32142         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32143         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32144         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32145         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32146         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32147         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32148         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32149         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32150         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32151         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32152         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32153         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32154         test-md5.c, test-memmem.c, test-printf-posix.c,
32155         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32156         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32157         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32158         test-strcasestr.c, test-striconv.c, test-striconveh.c,
32159         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32160         test-vasnprintf-posix2.c, test-vasnprintf.c,
32161         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32162         test-vfprintf-posix.c, test-vprintf-posix.c,
32163         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32164         test-xvasprintf.c: Likewise.
32165
32166 2007-05-28  Bruno Haible  <bruno@clisp.org>
32167
32168         * gnulib-tool (func_import): Remember the --with-tests command-line
32169         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32170         Reported by Eric Blake.
32171
32172 2007-05-28  Bruno Haible  <bruno@clisp.org>
32173
32174         * modules/ftell-tests: New file.
32175         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32176         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32177
32178         * lib/ftell.c: New file.
32179         * modules/ftell: New file.
32180         * m4/ftell.m4: New file.
32181         * doc/functions/ftell.texi: Update.
32182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32183         REPLACE_FTELL.
32184         * lib/stdio_.h (rpl_ftell): New declaration.
32185         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32186         REPLACE_FTELL.
32187
32188 2007-05-28  Eric Blake  <ebb9@byu.net>
32189
32190         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32191
32192 2007-05-28  Bruno Haible  <bruno@clisp.org>
32193
32194         * modules/fseek-tests: New file.
32195         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32196         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32197
32198         * lib/fseek.c: New file.
32199         * modules/fseek: New file.
32200         * m4/fseek.m4: New file.
32201         * doc/functions/fseek.texi: Update.
32202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32203         REPLACE_FSEEK.
32204         * lib/stdio_.h (rpl_fseek): New declaration.
32205         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32206         REPLACE_FSEEK.
32207
32208 2007-05-28  Bruno Haible  <bruno@clisp.org>
32209
32210         * lib/stdio_.h (fflush): More comments.
32211
32212 2007-05-28  Bruno Haible  <bruno@clisp.org>
32213
32214         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32215         runtime test.
32216
32217 2007-05-28  Eric Blake  <ebb9@byu.net>
32218
32219         Improve lseek module.
32220         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32221         * lib/unistd_.h (lseek): Scale back link warning message.
32222         * tests/test-lseek.c: Beef up test.
32223         * tests/test-lseek.sh: Exercise more facets of lseek.
32224         Reported by Bruno Haible.
32225
32226 2007-05-28  Bruno Haible  <bruno@clisp.org>
32227
32228         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32229         to define.
32230
32231 2007-05-27  Bruno Haible  <bruno@clisp.org>
32232
32233         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32234
32235 2007-05-27  Bruno Haible  <bruno@clisp.org>
32236
32237         * modules/openmp: New file.
32238         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32239         Noah Misch.
32240
32241 2007-05-26  Bruno Haible  <bruno@clisp.org>
32242
32243         * modules/chdir-long (Depends-on): Add fchdir.
32244         * modules/chdir-safer (Depends-on): Likewise.
32245         * modules/fts (Depends-on): Likewise.
32246         * modules/fts-lgpl (Depends-on): Likewise.
32247         * modules/openat (Depends-on): Likewise.
32248         * modules/savewd (Depends-on): Likewise.
32249
32250 2007-05-24  Eric Blake  <ebb9@byu.net>
32251
32252         Fix lseek on mingw.
32253         * modules/lseek: New module.
32254         * m4/lseek.m4: New file.
32255         * lib/lseek.c: New file.
32256         * modules/lseek-tests: New file.
32257         * tests/test-lseek.c: New file.
32258         * tests/test-lseek.sh: New file.
32259         * MODULES.html.sh: Document lseek module.
32260         * modules/fflush (Depends-on): Add lseek, fseeko.
32261         * modules/fseeko (Depends-on): Likewise.
32262         * modules/ftello (Depends-on): Likewise.
32263         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32264         broken.
32265         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32266         broken.
32267         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32268         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32269         * lib/ftello.c (rpl_ftello): Likewise.
32270         * tests/test-fseeko.c (main): Test this.
32271         * tests/test-fseeko.sh: Likewise.
32272         * tests/test-ftello.c (main): Likewise.
32273         * tests/test-ftello.sh: Likewise.
32274         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32275         implies replacing fseek.
32276         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32277         HAVE_FTELLO.
32278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32279         * modules/unistd (Makefile.am): Likewise.
32280         * lib/unistd_.h (lseek): Declare a replacement.
32281         * doc/functions/lseek.texi (lseek): Document this fix.
32282         * doc/functions/fseek.texi (fseek): Likewise.
32283         * doc/functions/ftell.texi (ftell): Likewise.
32284
32285 2007-05-24  Bruno Haible  <bruno@clisp.org>
32286
32287         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32288         in the printed representation of a NaN.
32289         * tests/test-vasprintf-posix.c (test_function): Likewise.
32290         * tests/test-snprintf-posix.h (test_function): Likewise.
32291         * tests/test-sprintf-posix.h (test_function): Likewise.
32292         Reported by Eric Blake.
32293
32294 2007-05-23  Eric Blake  <ebb9@byu.net>
32295
32296         Fix fseeko/ftello on cygwin 1.5.24.
32297         * doc/functions/fseeko.texi (fseeko): Document the fix.
32298         * doc/functions/ftello.texi (ftello): Document the fix.
32299         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
32300         * doc/functions/stdout.text (stdout): New file.
32301         * doc/functions/stderr.text (stderr): New file.
32302         * doc/gnulib.texi (Function Substitutes): Use new files.
32303         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
32304         prior to 1.7.0.
32305         * tests/test-ftello.c (main): Likewise for ftello.
32306         * tests/test-fseeko.sh: New file.
32307         * tests/test-ftello.sh: New file.
32308         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
32309         with seekable stdin.
32310         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
32311         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
32312         (gl_REPLACE_FSEEKO): New macro.
32313         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
32314         * modules/fseeko (Files): Distribute fseeko.c.
32315         * modules/ftello (Files): Distribute ftello.c.
32316         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
32317         mode.
32318         * lib/ftello.c (rpl_ftello): New file.
32319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
32320         fseeko, ftello.
32321         (gl_STDIN_LARGE_OFFSET): New macro.
32322         * modules/stdio (Makefile.am): Perform the replacement.
32323         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
32324
32325 2007-05-23  Bruno Haible  <bruno@clisp.org>
32326
32327         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
32328         GNULIB_POSIXCHECK is defined.
32329
32330 2007-05-21  Bruno Haible  <bruno@clisp.org>
32331
32332         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
32333         Check also the output for NaN arguments. When cross-compiling, guess
32334         no on IRIX.
32335         * lib/vasnprintf.c: Update comments.
32336         * tests/test-vasnprintf-posix.c (strisnan): New function.
32337         (test_function): Use it.
32338         * tests/test-vasprintf-posix.c (strisnan): New function.
32339         (test_function): Use it.
32340         * tests/test-snprintf-posix.h (strisnan): New function.
32341         (test_function): Use it.
32342         * tests/test-sprintf-posix.h (strisnan): New function.
32343         (test_function): Use it.
32344         Reported by Eric Blake.
32345
32346 2007-05-20  Bruno Haible  <bruno@clisp.org>
32347
32348         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
32349         numbers that fails on BeOS.
32350         * doc/functions/frexpl.texi: Update.
32351
32352 2007-05-20  Jim Meyering  <jim@meyering.net>
32353
32354         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
32355         forced upon us by glibc-2.6.
32356
32357 2007-05-20  Bruno Haible  <bruno@clisp.org>
32358
32359         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
32360         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
32361         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
32362         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
32363         NEED_PRINTF_INFINITE.
32364         (is_infinitel): New function.
32365         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
32366         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
32367         gl_PREREQ_VASNPRINTF_INFINITE.
32368         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
32369         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32370         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
32371         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
32372         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
32373         gl_PREREQ_VASNPRINTF_INFINITE.
32374         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32375         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32376         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32377         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32378         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32379         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32380         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32381         * doc/functions/fprintf.texi: Update.
32382         * doc/functions/printf.texi: Update.
32383         * doc/functions/snprintf.texi: Update.
32384         * doc/functions/sprintf.texi: Update.
32385         * doc/functions/vfprintf.texi: Update.
32386         * doc/functions/vprintf.texi: Update.
32387         * doc/functions/vsnprintf.texi: Update.
32388         * doc/functions/vsprintf.texi: Update.
32389
32390 2007-05-20  Bruno Haible  <bruno@clisp.org>
32391
32392         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
32393         was not found in libc.
32394         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32395
32396 2007-05-20  Bruno Haible  <bruno@clisp.org>
32397
32398         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32399         printed as "-nan" instead of "nan".
32400         * tests/test-vasprintf-posix.c (test_function): Likewise.
32401         * tests/test-snprintf-posix.h (test_function): Likewise.
32402         * tests/test-sprintf-posix.h (test_function): Likewise.
32403         Needed for HP-UX 11.
32404
32405 2007-05-20  Jim Meyering  <jim@meyering.net>
32406
32407         Fix buggy test for the fchownat-deref bug.
32408         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
32409         symlink required for the run-test.  Without it, this test would
32410         always declare that fchownat doesn't work, and client code would
32411         unnecessarily use the replacement function with fixed libc.
32412         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
32413         Reported by Greg Schafer.
32414
32415 2007-05-19  Bruno Haible  <bruno@clisp.org>
32416
32417         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
32418         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
32419         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
32420         Needed for IRIX 6.5 and Solaris 2.5.1.
32421
32422 2007-05-19  Bruno Haible  <bruno@clisp.org>
32423
32424         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
32425         (test_function): Skip tests involving -0.0 on platforms where
32426         -0.0 = 0.0.
32427         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
32428         (test_function): Skip tests involving -0.0 on platforms where
32429         -0.0 = 0.0.
32430         * tests/test-snprintf-posix.h (have_minus_zero): New function.
32431         (test_function): Skip tests involving -0.0 on platforms where
32432         -0.0 = 0.0.
32433         * tests/test-sprintf-posix.h (have_minus_zero): New function.
32434         (test_function): Skip tests involving -0.0 on platforms where
32435         -0.0 = 0.0.
32436         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
32437         tests.
32438         * tests/test-printf-posix.h (test_function): Likewise.
32439         * tests/test-printf-posix.output: Remove all -0.0 related results.
32440         Needed for IRIX 6.5.
32441
32442 2007-05-19  Bruno Haible  <bruno@clisp.org>
32443
32444         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32445         printed as "nan0x7fffffff" instead of "nan".
32446         * tests/test-vasprintf-posix.c (test_function): Likewise.
32447         * tests/test-snprintf-posix.h (test_function): Likewise.
32448         * tests/test-sprintf-posix.h (test_function): Likewise.
32449         * tests/test-fprintf-posix.h (NaN): Remove macro.
32450         (test_function): Remove all NaN related tests.
32451         * tests/test-printf-posix.h (NaN): Remove macro.
32452         (test_function): Remove all NaN related tests.
32453         * tests/test-printf-posix.output: Remove all NaN related results.
32454         Needed for IRIX 6.5.
32455
32456 2007-05-19  Bruno Haible  <bruno@clisp.org>
32457
32458         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
32459         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
32460
32461 2007-05-19  Bruno Haible  <bruno@clisp.org>
32462
32463         * lib/float_.h: New file.
32464         * m4/float_h.m4: New file.
32465         * modules/float: New file.
32466         * modules/isnanl (Dependencies): Add float.
32467         * modules/isnanl-nolibm (Dependencies): Likewise.
32468         * modules/mathl (Dependencies): Likewise.
32469         * modules/printf-frexpl (Dependencies): Likewise.
32470         * modules/signbit (Dependencies): Likewise.
32471         * modules/vasnprintf (Dependencies): Likewise.
32472         * doc/headers/float.texi: Update.
32473
32474 2007-05-19  Jim Meyering  <jim@meyering.net>
32475
32476         * lib/utimens.c (gl_futimens): Rename from futimens,
32477         now that glibc-2.6 declares futimens.
32478         * lib/utimens.h: Likewise.
32479
32480 2007-05-19  Bruno Haible  <bruno@clisp.org>
32481
32482         Avoid test failures on mingw.
32483         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
32484         * tests/test-printf-posix.sh: Likewise.
32485         * tests/test-vfprintf-posix.sh: Likewise.
32486         * tests/test-vprintf-posix.sh: Likewise.
32487
32488 2007-05-19  Bruno Haible  <bruno@clisp.org>
32489
32490         Fix *printf result for NaN, Inf, -0.0 on mingw.
32491         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
32492         * lib/vasnprintf.c: Include math.h and isnan.h.
32493         (is_infinite_or_zero): New function.
32494         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
32495         values in the %f, %F, %e, %E, %g, %G directives.
32496         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
32497         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32498         gl_PRINTF_INFINITE and test its result. Invoke
32499         gl_PREREQ_VASNPRINTF_INFINITE.
32500         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32501         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32502         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32503         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32504         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32506         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32507         * doc/functions/fprintf.texi: Update.
32508         * doc/functions/printf.texi: Update.
32509         * doc/functions/snprintf.texi: Update.
32510         * doc/functions/sprintf.texi: Update.
32511         * doc/functions/vfprintf.texi: Update.
32512         * doc/functions/vprintf.texi: Update.
32513         * doc/functions/vsnprintf.texi: Update.
32514         * doc/functions/vsprintf.texi: Update.
32515
32516 2007-05-19  Bruno Haible  <bruno@clisp.org>
32517
32518         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
32519         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
32520         Instead of multiplying with 10^k, set extra_zeroes to k.
32521         (scale10_round_long_double): Remove function.
32522
32523 2007-05-18  Bruno Haible  <bruno@clisp.org>
32524
32525         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
32526         introduced on 2007-05-06.
32527
32528 2007-05-18  Bruno Haible  <bruno@clisp.org>
32529
32530         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
32531         %g directives.
32532         * tests/test-vasprintf-posix.c (test_function): Likewise.
32533         * tests/test-snprintf-posix.h (test_function): Likewise.
32534         * tests/test-sprintf-posix.h (test_function): Likewise.
32535
32536 2007-05-18  Bruno Haible  <bruno@clisp.org>
32537
32538         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
32539         (strmatch): New function.
32540         (test_function): Test the %f directive on numbers of various exponents.
32541         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
32542         (strmatch): New function.
32543         (test_function): Test the %f directive on numbers of various exponents.
32544         * tests/test-snprintf-posix.h (strmatch): New function.
32545         (test_function): Test the %f directive on numbers of various exponents.
32546         * tests/test-sprintf-posix.h (strmatch): New function.
32547         (test_function): Test the %f directive on numbers of various exponents.
32548         * tests/test-snprintf-posix.c (SIZEOF): New macro.
32549         * tests/test-sprintf-posix.c (SIZEOF): New macro.
32550         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
32551         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
32552
32553 2007-05-18  Bruno Haible  <bruno@clisp.org>
32554
32555         Add support for 'long double' number output.
32556         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
32557         * lib/vasnprintf.c: Include math.h and float+.h.
32558         (mp_limb_t): New type.
32559         (GMP_LIMB_BITS): New macro.
32560         (mp_twolimb_t): New type.
32561         (GMP_TWOLIMB_BITS): New macro.
32562         (mpn_t): New type.
32563         (multiply, divide, convert_to_decimal, decode_long_double,
32564         scale10_round_long_double, scale10_round_decimal_long_double,
32565         floorlog10l): New functions.
32566         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
32567         for the %f, %F, %e, %E, %g, %G directives.
32568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
32569         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32570         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
32571         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
32572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32575         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32576         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32579         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
32580         * modules/snprintf-posix (Depends-on): Likewise.
32581         * modules/sprintf-posix (Depends-on): Likewise.
32582         * modules/vasnprintf-posix (Depends-on): Likewise.
32583         * modules/vasprintf-posix (Depends-on): Likewise.
32584         * modules/vfprintf-posix (Depends-on): Likewise.
32585         * modules/vsnprintf-posix (Depends-on): Likewise.
32586         * modules/vsprintf-posix (Depends-on): Likewise.
32587         * modules/vasnprintf (Files): Add lib/float+.h.
32588         * doc/functions/fprintf.texi: Update.
32589         * doc/functions/printf.texi: Update.
32590         * doc/functions/snprintf.texi: Update.
32591         * doc/functions/sprintf.texi: Update.
32592         * doc/functions/vfprintf.texi: Update.
32593         * doc/functions/vprintf.texi: Update.
32594         * doc/functions/vsnprintf.texi: Update.
32595         * doc/functions/vsprintf.texi: Update.
32596
32597 2007-05-18  Bruno Haible  <bruno@clisp.org>
32598
32599         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
32600
32601 2007-05-18  Bruno Haible  <bruno@clisp.org>
32602
32603         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
32604         for printing 64-bit integers. Needed for mingw.
32605
32606 2007-05-18  Bruno Haible  <bruno@clisp.org>
32607
32608         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32609         gl_FUNC_FREXPL_WORKS.
32610         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
32611
32612 2007-05-18  Bruno Haible  <bruno@clisp.org>
32613
32614         * modules/frexpl-nolibm-tests: New file.
32615
32616         * modules/frexpl-nolibm: New file.
32617         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
32618
32619 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32620
32621         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
32622         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32623         GCC 4.2, which otherwise issues a lot of warnings.
32624         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
32625         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
32626         Likewise.
32627         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
32628         * modules/iconv_open (iconv.h): Likewise.
32629         * modules/locale (locale.h): Likewise.
32630         * modules/netinet_in (netinet/in.h): Likewise.
32631         * modules/sys_select (sys_select.h): Likewise.
32632         * modules/sys_socket (sys/socket.h): Likewise.
32633         * modules/sys_stat (sys/stat.h): Likewise.
32634         * modules/sysexits (sysexits.h): Likewise.
32635         * modules/unistd (unistd.h): Likewise.
32636
32637 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32638
32639         * modules/closein-tests (Makefile.am): Distribute
32640         `test-closein.sh'.
32641
32642 2007-05-17  Bruno Haible  <bruno@clisp.org>
32643
32644         * tests/test-printf-posix.output: Renamed from
32645         tests/test-fprintf-posix.out.
32646         * modules/fprintf-posix-tests: Update.
32647         * modules/printf-posix-tests: Update.
32648         * modules/vfprintf-posix-tests: Update.
32649         * modules/vprintf-posix-tests: Update.
32650         * tests/test-fprintf-posix.sh: Update.
32651         * tests/test-printf-posix.sh: Update.
32652         * tests/test-vfprintf-posix.sh: Update.
32653         * tests/test-vprintf-posix.sh: Update.
32654         Reported by Ralf Wildenhues.
32655
32656 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32657
32658         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
32659         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32660         GCC 4.2, which otherwise issues a lot of warnings.
32661         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
32662         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
32663         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
32664         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
32665         it should no longer be needed.
32666         * lib/string_.h: Likewise.
32667         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
32668         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
32669         * modules/inttypes (inttypes.h): Likewise.
32670         * modules/math (math.h): Likewise.
32671         * modules/search (search.h): Likewise.
32672         * modules/signal (signal.h): Likewise.
32673         * modules/stdint (stdint.h): Likewise.
32674         * modules/stdio (stdio.h): Likewise.
32675         * modules/stdlib (stdlib.h): Likewise.
32676         * modules/string (string.h): Likewise.
32677         * modules/sys_time (sys/time.h): Likewise.
32678         * modules/time (time.h): Likewise.
32679         * modules/wchar (wchar.h): Likewise.
32680         * modules/wctype (wtype.h): Likewise.
32681
32682 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32683
32684         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
32685
32686 2007-05-13  Bruno Haible  <bruno@clisp.org>
32687
32688         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
32689         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32690         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
32691         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32692         (gl_PREREQ_STRTOK_R): Don't require it here.
32693
32694 2007-05-13  Bruno Haible  <bruno@clisp.org>
32695
32696         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
32697         when used in C++ mode.
32698
32699 2007-05-12  Bruno Haible  <bruno@clisp.org>
32700
32701         * lib/linebuffer.h: Tweak doc.
32702         * lib/linebuffer.c: Likewise.
32703
32704 2007-05-12  James Youngman  <jay@gnu.org>
32705
32706         * lib/linebuffer.c (readlinebuffer_delim): New function,
32707         like readlinebuffer, but use a caller-specified delimiter.
32708         (readlinebuffer): Just call readlinebuffer_delim with '\n'
32709         as the delimiter.
32710         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
32711
32712 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32713
32714         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
32715         * modules/openat (Files): Remove openat-die.c.
32716         (Depends-on): Add openat-die.
32717         * modules/openat-die: New module.
32718
32719 2007-05-06  Bruno Haible  <bruno@clisp.org>
32720
32721         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
32722         Update with info about Cygwin.
32723         * doc/functions/fprintf.texi: Update.
32724         * doc/functions/printf.texi: Update.
32725         * doc/functions/snprintf.texi: Update.
32726         * doc/functions/sprintf.texi: Update.
32727         * doc/functions/vfprintf.texi: Update.
32728         * doc/functions/vprintf.texi: Update.
32729         * doc/functions/vsnprintf.texi: Update.
32730         * doc/functions/vsprintf.texi: Update.
32731         Reported by Eric Blake.
32732
32733 2007-05-06  Bruno Haible  <bruno@clisp.org>
32734
32735         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
32736         padding ourselves for the floating-point directives.
32737         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
32738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
32739         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32740         gl_PRINTF_FLAG_ZERO and test its result. Invoke
32741         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
32742         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32743         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32744         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32745         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32746         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32747         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32748         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32749         * tests/test-snprintf-posix.h (test_function): Also check the width
32750         and some flags in the %f directive.
32751         * tests/test-sprintf-posix.h (test_function): Likewise.
32752         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32753         * tests/test-vasprintf-posix.c (test_function): Likewise.
32754         * doc/functions/fprintf.texi: Update.
32755         * doc/functions/printf.texi: Update.
32756         * doc/functions/snprintf.texi: Update.
32757         * doc/functions/sprintf.texi: Update.
32758         * doc/functions/vfprintf.texi: Update.
32759         * doc/functions/vprintf.texi: Update.
32760         * doc/functions/vsnprintf.texi: Update.
32761         * doc/functions/vsprintf.texi: Update.
32762
32763 2007-05-06  Bruno Haible  <bruno@clisp.org>
32764
32765         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
32766         pass the ' flag character to sprintf or snprintf.
32767         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
32768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
32769         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32770         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
32771         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
32772         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32773         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32775         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32776         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32777         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32778         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32779         * tests/test-snprintf-posix.h (test_function): Also check the grouping
32780         flag.
32781         * tests/test-sprintf-posix.h (test_function): Likewise.
32782         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32783         * tests/test-vasprintf-posix.c (test_function): Likewise.
32784         * doc/functions/fprintf.texi: Update.
32785         * doc/functions/printf.texi: Update.
32786         * doc/functions/snprintf.texi: Update.
32787         * doc/functions/sprintf.texi: Update.
32788         * doc/functions/vfprintf.texi: Update.
32789         * doc/functions/vprintf.texi: Update.
32790         * doc/functions/vsnprintf.texi: Update.
32791         * doc/functions/vsprintf.texi: Update.
32792
32793 2007-05-01  Bruno Haible  <bruno@clisp.org>
32794
32795         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
32796
32797 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
32798
32799         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
32800         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
32801
32802 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32803
32804         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
32805         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
32806         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
32807
32808 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
32809
32810         * lib/argp-help.c (struct hol_entry): New member `ord'.
32811         (HOL_ENTRY_PTRCMP): Use ord for comparison
32812         (hol_sort): Initialize ord.
32813
32814 2007-05-01  Bruno Haible  <bruno@clisp.org>
32815
32816         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
32817         Reported by Eric Blake.
32818         * doc/gnulib.texi (Function Substitutes): Update.
32819
32820 2007-05-01  Bruno Haible  <bruno@clisp.org>
32821
32822         * doc/functions.texi: Remove file, now redundant through
32823         doc/functions/*.texi.
32824
32825 2007-05-01  Bruno Haible  <bruno@clisp.org>
32826
32827         * modules/argp (Depends-on): Add sleep.
32828
32829 2007-05-01  Bruno Haible  <bruno@clisp.org>
32830
32831         * modules/sleep-tests: New file.
32832         * tests/test-sleep.c: New file.
32833
32834         * modules/sleep: New file.
32835         * lib/sleep.c: New file.
32836         * m4/sleep.m4: New file.
32837         * lib/unistd_.h (sleep): New declaration.
32838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
32839         HAVE_SLEEP.
32840         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
32841         * doc/functions/sleep.texi: Document the sleep module.
32842
32843 2007-05-01  Bruno Haible  <bruno@clisp.org>
32844
32845         * lib/sigprocmask.h: Remove file.
32846         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
32847         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
32848         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
32849         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
32850         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
32851         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
32852         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
32853         HAVE_SIGSET_T as a shell variable.
32854         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
32855         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
32856         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
32857         (Depends-on): Add signal. Remove verify.
32858         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
32859         (Include): Mention <signal.h> instead of sigprocmask.h.
32860         * NEWS: Mention the change.
32861         * lib/fatal-signal.c: Don't include sigprocmask.h.
32862
32863 2007-05-01  Bruno Haible  <bruno@clisp.org>
32864
32865         * modules/signal: New file.
32866         * lib/signal_.h: New file.
32867         * m4/signal_h.m4: New file.
32868
32869 2007-05-01  Bruno Haible  <bruno@clisp.org>
32870
32871         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
32872         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
32873         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
32874         HAVE_WCTYPE_CTMP_BUG into wctype.h.
32875
32876 2007-05-01  Bruno Haible  <bruno@clisp.org>
32877
32878         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
32879         configure time.
32880         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
32881         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
32882         * modules/sys_stat (Makefile.am): Substitute their values into
32883         sys/stat.h.
32884
32885 2007-05-01  Bruno Haible  <bruno@clisp.org>
32886
32887         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
32888         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
32889         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
32890
32891 2007-05-01  Bruno Haible  <bruno@clisp.org>
32892
32893         * doc/header/assert.texi: Undo last change: don't mention the gnulib
32894         'assert' module here.
32895
32896 2007-05-01  Bruno Haible  <bruno@clisp.org>
32897
32898         * doc/functions/*.texi: New files.
32899         * doc/functions/google-ranking.txt: New file.
32900         * doc/gnulib.texi (Function Substitutes): New chapter.
32901         (ctime, inet_ntoa): Remove sections.
32902         * doc/ctime.texi: Remove file.
32903         * doc/inet_ntoa.texi: Remove file.
32904         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
32905         dependencies.
32906         (%.info): New rule, specifying a --reference-limit.
32907
32908 2007-05-01  Bruno Haible  <bruno@clisp.org>
32909
32910         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
32911
32912 2007-05-01  Bruno Haible  <bruno@clisp.org>
32913
32914         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
32915         the portability of 'mkdir' to mingw systems.
32916
32917 2007-05-01  Bruno Haible  <bruno@clisp.org>
32918
32919         * doc/headers/google-ranking.txt: New file.
32920
32921 2007-04-30  Eric Blake  <ebb9@byu.net>
32922
32923         Prefer fseeko to fseek.
32924         * modules/getpass (Depends-on): Add fseeko.
32925         * lib/getpass.c (getpass): Use fseeko, not fseek.
32926
32927 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
32928
32929         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
32930         assumes the sorting is stable, while most qsort implementations
32931         are not.  Use argument addresses to ensure they never compare as
32932         equal.
32933
32934         * tests/test-argp-2.sh (usage-indent test): Fix output
32935         (func_compare): Restore diff options
32936         * tests/test-argp.c: Restore #include "progname.h"
32937
32938 2007-04-29  Bruno Haible  <bruno@clisp.org>
32939
32940         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
32941         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32942         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
32943         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32944         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
32945         (configure.ac): Define CHECK_SNPRINTF_POSIX.
32946         (TESTS, check_PROGRAMS): Add test-snprintf.
32947         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
32948         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
32949         (TESTS, check_PROGRAMS): Add test-vsnprintf.
32950         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
32951         assertions that fail on HP-UX, OSF/1, or IRIX.
32952         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
32953
32954 2007-04-29  Bruno Haible  <bruno@clisp.org>
32955
32956         * MODULES.html.sh (posix_functions): Remove 'contents'.
32957
32958 2007-04-29  Karl Berry  <karl@gnu.org>
32959
32960         * config/srclist.txt (gendocs_template_min): new entry.
32961
32962 2007-04-29  Bruno Haible  <bruno@clisp.org>
32963
32964         Work around fpurge bug on BSD systems.
32965         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
32966         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
32967         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
32968         fpurge to rpl_fpurge if the system already has this function.
32969         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
32970         the case where the system already has this function. Correct invariants
32971         on BSD systems.
32972         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
32973         BSD systems.
32974
32975 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
32976
32977         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
32978         proposed by Sven Verdoolaege.
32979
32980         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
32981         options.
32982         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
32983         (usage and help tests): Update
32984
32985 2007-04-29  Bruno Haible  <bruno@clisp.org>
32986
32987         * tests/test-fflush.c (main): Use a file of size 17, not 10.
32988         Print more information in case of failure. Disable a test on BeOS.
32989
32990 2007-04-29  Bruno Haible  <bruno@clisp.org>
32991
32992         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
32993         This helps debugging on systems on which no gdb is available.
32994
32995 2007-04-29  Bruno Haible  <bruno@clisp.org>
32996
32997         * lib/freading.h: Improve comments.
32998         * lib/fwriting.h: Likewise.
32999         * tests/test-freading.c (main): Don't check freading immediately after
33000         repositioning. Needed for glibc.
33001
33002 2007-04-29  Bruno Haible  <bruno@clisp.org>
33003
33004         * lib/freading.c (freading): Trivial simplification.
33005
33006 2007-04-28  Bruno Haible  <bruno@clisp.org>
33007
33008         * tests/test-fwriting.c (main): Also test the interaction between
33009         fflush and fwriting.
33010         * modules/fwriting-tests (Depends-on): Add fflush.
33011
33012         * tests/test-freading.c (main): Also test the interaction between
33013         fflush and freading.
33014         * modules/freading-tests (Depends-on): Add fflush.
33015
33016 2007-04-28  Bruno Haible  <bruno@clisp.org>
33017
33018         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33019         fseeko and ftello.
33020         Suggested by Eric Blake.
33021
33022 2007-04-28  Jim Meyering  <jim@meyering.net>
33023
33024         Avoid false-negative in gl_STDINT_H's C99 conformance test.
33025         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33026         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33027
33028 2007-04-27  Eric Blake  <ebb9@byu.net>
33029
33030         * doc/headers/assert.texi (assert.h): Document assert module use.
33031
33032 2007-04-27  Bruno Haible  <bruno@clisp.org>
33033
33034         * doc/headers/*.texi: New files.
33035         * doc/gnulib.texi (Header File Substitutes): New chapter.
33036         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33037         dependencies.
33038         (standards.info ,standards.html, standards.dvi): Update dependencies.
33039         (mostlyclean, clean): New targets.
33040
33041 2007-04-27  Bruno Haible  <bruno@clisp.org>
33042
33043         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33044         * modules/sysexits (Files, Makefile.am): Update.
33045
33046         * lib/sys_socket_.h: Renamed from lib/socket_.h.
33047         * modules/sys_socket (Files, Makefile.am): Update.
33048
33049         * lib/sys_stat_.h: Renamed from lib/stat_.h.
33050         * modules/sys_stat (Files, Makefile.am): Update.
33051
33052 2007-04-27  Eric Blake  <ebb9@byu.net>
33053
33054         * lib/freading.h: Improve comments.
33055         * lib/fwriting.h: Likewise.
33056         * lib/fflush.c: Likewise.
33057
33058         Fix closein for mingw.
33059         * modules/closein-tests: Add tests for closein.
33060         * tests/test-closein.c: New file.
33061         * tests/test-closein.sh: Likewise.
33062         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33063         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33064
33065 2007-04-27  Bruno Haible  <bruno@clisp.org>
33066
33067         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33068         version is < 6.
33069         * lib/math_.h [__DECC]: Likewise.
33070         * lib/stdio_.h [__DECC]: Likewise.
33071         * lib/stdlib_.h [__DECC]: Likewise.
33072         * lib/string_.h [__DECC]: Likewise.
33073         * lib/time_.h [__DECC]: Likewise.
33074         * lib/wchar_.h [__DECC]: Likewise.
33075         * lib/wctype_.h [__DECC]: Likewise.
33076
33077 2007-04-27  Bruno Haible  <bruno@clisp.org>
33078
33079         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33080
33081 2007-04-27  Bruno Haible  <bruno@clisp.org>
33082
33083         * lib/fflush.c: Add comments.
33084         * modules/fpurge-tests (Depends-on): Add fflush.
33085         * modules/freadable-tests (Depends-on): Likewise.
33086         * modules/fwritable-tests (Depends-on): Likewise.
33087
33088 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
33089
33090         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33091         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
33092         Report by Bruno Haible <bruno@clisp.org>.
33093
33094 2007-04-26  Eric Blake  <ebb9@byu.net>
33095
33096         Fix fflush on mingw.
33097         * modules/fflush (Depends-on): Add freading.
33098         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33099         but unread data.
33100
33101 2007-04-26  Eric Blake  <ebb9@byu.net>
33102         and Bruno Haible  <bruno@clisp.org>
33103
33104         Implement freading and fwriting.
33105         * lib/freading.c: New file.
33106         * lib/freading.h: Likewise.
33107         * m4/freading.m4: Likewise.
33108         * modules/freading: Likewise.
33109         * modules/freading-tests: Likewise.
33110         * tests/test-freading.c: Likewise.
33111         * lib/fwriting.c: New file.
33112         * lib/fwriting.h: Likewise.
33113         * m4/fwriting.m4: Likewise.
33114         * modules/fwriting: Likewise.
33115         * modules/fwriting-tests: Likewise.
33116         * tests/test-fwriting.c: Likewise.
33117         * MODULES.html.sh (File stream based Input/Output): Mention them.
33118
33119 2007-04-26  Bruno Haible  <bruno@clisp.org>
33120
33121         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33122         'long' when we assume it.
33123         Suggested by Eric Blake.
33124
33125 2007-04-26  Bruno Haible  <bruno@clisp.org>
33126
33127         Ensure fseeko, ftello are declared on glibc systems.
33128         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33129         * modules/fseeko (configure.ac-early): Likewise.
33130         * modules/ftello (configure.ac-early): Likewise.
33131         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33132         AC_FUNC_FSEEKO for this.
33133         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33134         (gl_CHECK_FSEEKO): Remove macro.
33135
33136 2007-04-26  Bruno Haible  <bruno@clisp.org>
33137
33138         * tests/test-fflush.c (main): Also check the ftell result after
33139         fflush and fseek/fseeko.
33140         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33141         file descriptor position cache in the stream.
33142         * lib/fseeko.c (rpl_fseeko): Likewise.
33143
33144 2007-04-26  Bruno Haible  <bruno@clisp.org>
33145
33146         * modules/fflush-tests (Depends-on): Add fseeko.
33147
33148 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
33149             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33150
33151         * lib/argz_.h: ensure error_t definition is obtained in same
33152         mechanism system argz.h would have.
33153         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33154         argz facilities are known bad.  Err on the side of caution if
33155         cross-compiling.
33156
33157 2007-04-25  Eric Blake  <ebb9@byu.net>
33158
33159         * lib/fpurge.c (includes): Use stdlib.h for free.
33160         * tests/test-fflush.c (main): Also test fflush-fseeko.
33161
33162 2007-04-25  Bruno Haible  <bruno@clisp.org>
33163
33164         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33165         * lib/fseeko.c: New file.
33166         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33167         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33168         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33169         gl_FUNC_FSEEKO.
33170         (gl_FUNC_FSEEKO): Invoke it.
33171         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33172         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33173         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33174
33175 2007-04-25  Bruno Haible  <bruno@clisp.org>
33176
33177         * modules/fflush (Depends-on): Add ftello.
33178
33179 2007-04-25  Bruno Haible  <bruno@clisp.org>
33180
33181         * modules/ftello-tests: New file.
33182         * tests/test-ftello.c: New file.
33183
33184         * modules/ftello: New file.
33185         * m4/ftello.m4: New file.
33186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33187         HAVE_FTELLO.
33188         * lib/stdio_.h (ftello): New declaration.
33189         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33190         HAVE_FTELLO.
33191
33192 2007-04-25  Bruno Haible  <bruno@clisp.org>
33193
33194         * modules/fseeko-tests: New file.
33195         * tests/test-fseeko.c: New file.
33196
33197         * modules/fseeko: New file.
33198         * m4/fseeko.m4: New file.
33199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33200         HAVE_FSEEKO.
33201         * lib/stdio_.h (fseeko): New declaration.
33202         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33203         HAVE_FSEEKO.
33204
33205 2007-04-25  Bruno Haible  <bruno@clisp.org>
33206
33207         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33208
33209 2007-04-25  Bruno Haible  <bruno@clisp.org>
33210
33211         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33212         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33213         * tests/test-unistd.c: Likewise.
33214         * tests/test-fcntl.c: Likewise.
33215
33216 2007-04-23  Eric Blake  <ebb9@byu.net>
33217
33218         * lib/fflush.c: Fix missing include.
33219         Reported by Bruno Haible.
33220
33221 2007-04-23  Bruno Haible  <bruno@clisp.org>
33222
33223         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33224         Reported by Eric Blake.
33225
33226 2007-04-23  Bruno Haible  <bruno@clisp.org>
33227
33228         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33229
33230 2007-04-23  Bruno Haible  <bruno@clisp.org>
33231
33232         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33233
33234 2007-04-23  Bruno Haible  <bruno@clisp.org>
33235
33236         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33237         Needed on HP-UX 11.
33238
33239 2007-04-16  Eric Blake  <ebb9@byu.net>
33240
33241         Make fflush rely on fpurge.
33242         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33243         open coding all variants.
33244         * modules/fflush (Depends-on): Add fpurge and unistd.
33245         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33246         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33247
33248         Fix --with-tests compilation on cygwin.
33249         * modules/argmatch-tests (Makefile.am): List gnulib library first
33250         in LDADD.
33251         * modules/argp-tests (Makefile.am): Likewise.
33252         * modules/array-list-tests (Makefile.am): Likewise.
33253         * modules/array-oset-tests (Makefile.am): Likewise.
33254         * modules/avltree-list-tests (Makefile.am): Likewise.
33255         * modules/avltree-oset-tests (Makefile.am): Likewise.
33256         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33257         * modules/carray-list-tests (Makefile.am): Likewise.
33258         * modules/dirname-tests (Makefile.am): Likewise.
33259         * modules/frexp-tests (Makefile.am): Likewise.
33260         * modules/isnanl-tests (Makefile.am): Likewise.
33261         * modules/linked-list-tests (Makefile.am): Likewise.
33262         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33263         * modules/lock-tests (Makefile.am): Likewise.
33264         * modules/rbtree-list-tests (Makefile.am): Likewise.
33265         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33266         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33267         * modules/tls-tests (Makefile.am): Likewise.
33268         * modules/tsearch-tests (Makefile.am): Likewise.
33269         * modules/xvasprintf-tests (Makefile.am): Likewise.
33270
33271         Fix fpurge for cygwin.
33272         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33273         value.
33274         * modules/fpurge-tests (Depends-on): Clean up trash.
33275
33276 2007-04-16  Simon Josefsson  <simon@josefsson.org>
33277
33278         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33279
33280         * m4/autobuild.m4: Re-indent.
33281
33282 2007-04-13  Bruno Haible  <bruno@clisp.org>
33283
33284         * modules/fpurge-tests: New file.
33285         * tests/test-fpurge.c: New file.
33286
33287         * modules/fpurge: New file.
33288         * lib/fpurge.h: New file.
33289         * lib/fpurge.c: New file.
33290         * m4/fpurge.m4: New file.
33291
33292 2007-04-13  Bruno Haible  <bruno@clisp.org>
33293
33294         * modules/fbufmode-tests: New file.
33295         * tests/test-fbufmode.c: New file.
33296
33297         * modules/fbufmode: New file.
33298         * lib/fbufmode.h: New file.
33299         * lib/fbufmode.c: New file.
33300         * m4/fbufmode.m4: New file.
33301
33302 2007-04-13  Bruno Haible  <bruno@clisp.org>
33303
33304         * modules/fwritable-tests: New file.
33305         * tests/test-fwritable.c: New file.
33306
33307         * modules/fwritable: New file.
33308         * lib/fwritable.h: New file.
33309         * lib/fwritable.c: New file.
33310         * m4/fwritable.m4: New file.
33311
33312 2007-04-13  Bruno Haible  <bruno@clisp.org>
33313
33314         * modules/freadable-tests: New file.
33315         * tests/test-freadable.c: New file.
33316
33317         * modules/freadable: New file.
33318         * lib/freadable.h: New file.
33319         * lib/freadable.c: New file.
33320         * m4/freadable.m4: New file.
33321
33322 2007-04-13  Bruno Haible  <bruno@clisp.org>
33323
33324         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
33325         MOSTLYCLEANFILES.
33326
33327 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33328
33329         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
33330         gzip bootstrap.conf to avoid dragging in i18n machinery.
33331         (gnulib_tool_option): Use it.
33332
33333 2007-04-13  Bruno Haible  <bruno@clisp.org>
33334
33335         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
33336         %F directives.
33337         * tests/test-vasprintf-posix.c (test_function): Likewise.
33338         * tests/test-snprintf-posix.h (test_function): Likewise.
33339         * tests/test-sprintf-posix.h (test_function): Likewise.
33340         * tests/test-fprintf-posix.h (test_function): Likewise.
33341         * tests/test-printf-posix.h (test_function): Likewise.
33342         * tests/test-fprintf-posix.out: Likewise.
33343
33344 2007-04-13  Bruno Haible  <bruno@clisp.org>
33345
33346         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
33347         * modules/tls-tests (configure.ac): Likewise.
33348         Reported by Arto C. Nirkko <anirkko@insel.ch>.
33349
33350 2007-04-13  Bruno Haible  <bruno@clisp.org>
33351
33352         * lib/tls.c (glthread_tls_get): Fix return type.
33353         Patch by Arto C. Nirkko <anirkko@insel.ch>.
33354
33355 2007-04-12  Eric Blake  <ebb9@byu.net>
33356
33357         * modules/gettime (Depends-on): Remove gettime.
33358         Reported by Dmitry V. Levin.
33359
33360 2007-04-12  Bruno Haible  <bruno@clisp.org>
33361
33362         * modules/fflush (Include): Mention <stdio.h>.
33363         * modules/strtoimax (Include): Mention <inttypes.h>.
33364         * modules/strtoumax (Include): Likewise.
33365
33366 2007-04-12  Eric Blake  <ebb9@byu.net>
33367
33368         * .cvsignore: New file.
33369         * .gitignore: Likewise.
33370
33371 2007-04-12  Bruno Haible  <bruno@clisp.org>
33372
33373         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
33374         not before, since $(LDADD) often contains libgnu.a.
33375         * modules/striconv-tests (test_striconv_LDADD): Likewise.
33376         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
33377         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
33378         Needed on Cygwin.
33379
33380 2007-04-12  Eric Blake  <ebb9@byu.net>
33381
33382         Work around glibc's failure to flush stdin on fclose.
33383         * lib/closein.c (close_stdin): Flush stdin before closing.
33384
33385         Work around glibc's failure to reset seekable stdin on exit.
33386         * modules/closein: New module.
33387         * lib/closein.c: New file.
33388         * lib/closein.h: Likewise.
33389         * m4/closein.m4: Likewise.
33390         * MODULES.html.sh (File stream based Input/Output): Document it.
33391
33392 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33393
33394         * gnulib-tool: Rename generated 'autobuild' script to
33395         'do-autobuild' in --create-megatestdir output.
33396
33397         * doc/gnulib.texi (Build robot for gnulib): Fix.
33398
33399 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33400
33401         * modules/sysexits (Depends-on): Add absolute-header.
33402
33403 2007-04-12  Eric Blake  <ebb9@byu.net>
33404
33405         No need to preserve errno on success.
33406         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
33407         Reported by Bruno Haible.
33408
33409 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33410
33411         * MODULES.html.sh (Support for maintaining and releasing
33412         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
33413
33414 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33415
33416         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
33417
33418 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33419
33420         * modules/autobuild: New module.
33421
33422         * m4/autobuild.m4: New file.
33423
33424 2007-04-11  Bruno Haible  <bruno@clisp.org>
33425
33426         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
33427         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
33428         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
33429         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
33430         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33431         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33432         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33433         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33434         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33435         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33436         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
33437         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33438         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33439         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
33440         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33441         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33442         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
33443         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33444         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33445         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
33446         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33447         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33448         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
33449         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33450         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33451         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
33452         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33453         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33454         Reported by Eric Blake.
33455
33456 2007-04-11  Bruno Haible  <bruno@clisp.org>
33457
33458         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
33459
33460 2007-04-10  Bruno Haible  <bruno@clisp.org>
33461
33462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
33463         for NaN and Infinity. Needed on FreeBSD 6.1.
33464         * tests/test-vasnprintf-posix.c (test_function): Undo last change
33465         regarding results for "%010a" of Infinity and NaN.
33466         * tests/test-vasprintf-posix.c (test_function): Likewise.
33467         * tests/test-snprintf-posix.h (test_function): Likewise.
33468         * tests/test-sprintf-posix.h (test_function): Likewise.
33469         * tests/test-fprintf-posix.h (test_function): Likewise.
33470         * tests/test-printf-posix.h (test_function): Likewise.
33471         * tests/test-fprintf-posix.out: Likewise.
33472
33473 2007-04-10  Bruno Haible  <bruno@clisp.org>
33474
33475         * modules/locale-tests: New file.
33476         * tests/test-locale.c: New file.
33477
33478         * modules/locale: New file.
33479         * lib/locale_.h: New file.
33480         * m4/locale_h.m4: New file.
33481
33482 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
33483             Bruno Haible  <bruno@clisp.org>
33484
33485         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
33486         be determined, test for availability of the copysignf, copysign,
33487         copysignl functions.
33488         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
33489         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
33490         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
33491
33492 2007-04-09  Eric Blake  <ebb9@byu.net>
33493
33494         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
33495         * modules/stdio (Makefile.am): Support fflush.
33496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33497         * modules/fflush: New file.
33498         * lib/fflush.c: Likewise.
33499         * m4/fflush.m4: Likewise.
33500         * modules/fflush-tests: New test.
33501         * tests/test-fflush.c: Likewise.
33502         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
33503
33504 2007-04-06  Bruno Haible  <bruno@clisp.org>
33505
33506         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
33507         (VASNPRINTF): Use signbit for faster determination whether to print a
33508         minus sign.
33509         * modules/vasnprintf (Files): Remove lib/float+.h.
33510         * modules/fprintf-posix (Depends-on): Add signbit.
33511         * modules/snprintf-posix (Depends-on): Likewise.
33512         * modules/sprintf-posix (Depends-on): Likewise.
33513         * modules/vasnprintf-posix (Depends-on): Likewise.
33514         * modules/vasprintf-posix (Depends-on): Likewise.
33515         * modules/vfprintf-posix (Depends-on): Likewise.
33516         * modules/vsnprintf-posix (Depends-on): Likewise.
33517         * modules/vsprintf-posix (Depends-on): Likewise.
33518
33519 2007-04-06  Bruno Haible  <bruno@clisp.org>
33520
33521         * tests/test-frexp.c (main): Test also the sign bit of zero results.
33522         * tests/test-frexpl.c (main): Likewise.
33523         * tests/test-ldexpl.c (main): Likewise.
33524         * modules/frexp-tests (Depends-on): Add signbit.
33525         * modules/frexpl-tests (Depdends-on): Likewise.
33526         * modules/ldexpl-tests (Depdends-on): Likewise.
33527
33528 2007-04-06  Bruno Haible  <bruno@clisp.org>
33529
33530         * modules/signbit-tests: New file.
33531         * tests/test-signbit.c: New file.
33532
33533         * modules/signbit: New file.
33534         * lib/signbitf.c: New file.
33535         * lib/signbitd.c: New file.
33536         * lib/signbitl.c: New file.
33537         * m4/signbit.m4: New file.
33538         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
33539         (signbit): New macro.
33540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
33541         REPLACE_SIGNBIT.
33542         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
33543         REPLACE_FREXPL into math.h.
33544
33545 2007-04-06  Bruno Haible  <bruno@clisp.org>
33546
33547         * modules/isnanf-nolibm-tests: New file.
33548         * tests/test-isnanf.c: New file.
33549
33550         * modules/isnanf-nolibm: New file.
33551         * lib/isnanf.h: New file.
33552         * lib/isnanf.c: New file.
33553         * lib/isnan.c: Consider the USE_FLOAT macro.
33554         * m4/isnanf.m4: New file.
33555
33556 2007-04-06  Bruno Haible  <bruno@clisp.org>
33557
33558         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
33559         (Link): New section.
33560
33561         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
33562
33563 2007-04-06  Bruno Haible  <bruno@clisp.org>
33564
33565         Assume the 'long double' type.
33566         * m4/longdouble.m4: Remove file.
33567         * config/srclist.txt: Don't mention longdouble.m4.
33568         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
33569         * lib/float+.h: Likewise.
33570         * lib/frexp.c: Likewise.
33571         * lib/printf-args.h: Likewise.
33572         * lib/printf-args.c: Likewise.
33573         * lib/printf-frexp.c: Likewise.
33574         * lib/printf-parse.c: Likewise.
33575         * lib/vasnprintf.c: Likewise.
33576         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
33577         * m4/intl.m4: Likewise.
33578         * m4/isnanl.m4: Likewise.
33579         * m4/printf.m4: Likewise.
33580         * m4/printf-frexpl.m4: Likewise.
33581         * m4/vasnprintf.m4: Likewise.
33582         * modules/allocsa (Files): Remove m4/longdouble.m4.
33583         * modules/gettext (Files): Likewise.
33584         * modules/relocatable-prog-wrapper (Files): Likewise.
33585         * modules/vasnprintf (Files): Likewise.
33586         * modules/isnanl (Files): Likewise.
33587         (Include): Simplify.
33588         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
33589         (Include): Simplify.
33590         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
33591         (Include): Simplify.
33592         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
33593         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33594         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
33595         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33596         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33597         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33598         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
33599         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33600         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33601         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33602         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
33603         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33604         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
33605         * tests/test-isnanl.c: Likewise.
33606         * tests/test-snprintf-posix.h: Likewise.
33607         * tests/test-sprintf-posix.h: Likewise.
33608         * tests/test-vasnprintf-posix.c: Likewise.
33609         * tests/test-vasnprintf-posix2.c: Likewise.
33610         * tests/test-vasprintf-posix.c: Likewise.
33611
33612 2007-04-06  Bruno Haible  <bruno@clisp.org>
33613
33614         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
33615         * lib/math_.h [__DECC]: Include the overridden include file through
33616         #include_next, outside the double-inclusion guard.
33617         * lib/stdio_.h [__DECC]: Likewise.
33618         * lib/stdlib_.h [__DECC]: Likewise.
33619         * lib/string_.h [__DECC]: Likewise.
33620         * lib/time_.h [__DECC]: Likewise.
33621         * lib/wchar_.h [__DECC]: Likewise.
33622         * lib/wctype_.h [__DECC]: Likewise.
33623         * lib/inttypes_.h [__DECC]: Likewise.
33624         Reported by Albert Chin <china@thewrittenword.com> in
33625         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
33626
33627 2007-04-04  Eric Blake  <ebb9@byu.net>
33628
33629         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
33630         1.5.x.
33631
33632 2007-04-04  Bruno Haible  <bruno@clisp.org>
33633
33634         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
33635         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
33636
33637 2007-04-04  Bruno Haible  <bruno@clisp.org>
33638
33639         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
33640         results for "%010a" of Infinity and NaN.
33641         * tests/test-vasprintf-posix.c (test_function): Likewise.
33642         * tests/test-snprintf-posix.h (test_function): Likewise.
33643         * tests/test-sprintf-posix.h (test_function): Likewise.
33644         * tests/test-fprintf-posix.h (test_function): Remove these tests.
33645         * tests/test-printf-posix.h (test_function): Likewise.
33646         * tests/test-fprintf-posix.out: Update.
33647         Needed for FreeBSD 6.1.
33648
33649 2007-04-04  Bruno Haible  <bruno@clisp.org>
33650
33651         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
33652         directly used by the gnulib modules nor by gnulib-tool.
33653
33654 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33655
33656         * DEPENDENCIES: Give overall description of version dependency
33657         desirability.  Use more-typical names for apps.
33658         Add shell, coreutils, diffutils, grep, tar, gzip.
33659
33660 2007-04-04  Simon Josefsson  <simon@josefsson.org>
33661
33662         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
33663
33664 2007-04-04  Karl Berry  <karl@gnu.org>
33665
33666         * MODULES.html.sh (func_module): missing '.
33667
33668 2007-04-03  Bruno Haible  <bruno@clisp.org>
33669
33670         * modules/argmatch-tests (Makefile.am): New variable
33671         test_argmatch_LDADD.
33672         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
33673         * modules/array-list-tests (Makefile.am): New variable
33674         test_array_list_LDADD.
33675         * modules/array-oset-tests (Makefile.am): New variable
33676         test_array_oset_LDADD.
33677         * modules/avltree-list-tests (Makefile.am): New variable
33678         test_avltree_list_LDADD.
33679         * modules/avltree-oset-tests (Makefile.am): New variable
33680         test_avltree_oset_LDADD.
33681         * modules/avltreehash-list-tests (Makefile.am): New variable
33682         test_avltreehash_list_LDADD.
33683         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
33684         test_canonicalize_lgpl_LDADD.
33685         * modules/carray-list-tests (Makefile.am): New variable
33686         test_carray_list_LDADD.
33687         * modules/dirname-tests (Makefile.am): New variable
33688         test_dirname_LDADD.
33689         * modules/linked-list-tests (Makefile.am): New variable
33690         test_linked_list_LDADD.
33691         * modules/linkedhash-list-tests (Makefile.am): New variable
33692         test_linkedhash_list_LDADD.
33693         * modules/rbtree-list-tests (Makefile.am): New variable
33694         test_rbtree_list_LDADD.
33695         * modules/rbtree-oset-tests (Makefile.am): New variable
33696         test_rbtree_oset_LDADD.
33697         * modules/rbtreehash-list-tests (Makefile.am): New variable
33698         test_rbtreehash_list_LDADD.
33699         * modules/xvasprintf-tests (Makefile.am): New variable
33700         test_xvasprintf_LDADD.
33701         Reported by Eric Blake.
33702
33703 2007-04-03  Eric Blake  <ebb9@byu.net>
33704
33705         * DEPENDENCIES: Weaken m4 requirements.
33706
33707 2007-04-03  Bruno Haible  <bruno@clisp.org>
33708
33709         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
33710         * modules/isnanl-tests (configure.ac): Likewise.
33711
33712 2007-04-03  Ben Pfaff  <blp@gnu.org>
33713
33714         * modules/iconv_open: Add $(srcdir)/ to source directory
33715         references in Makefile fragments that call gperf, to fix VPATH
33716         builds.
33717
33718 2007-04-03  Bruno Haible  <bruno@clisp.org>
33719
33720         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
33721         * lib/ldexpl.c: Undo last change.
33722
33723 2007-04-03  Bruno Haible  <bruno@clisp.org>
33724
33725         * modules/printf-frexpl (Depends-on): Undo last change.
33726         (Files): Add m4/ldexpl.m4.
33727
33728 2007-04-03  Bruno Haible  <bruno@clisp.org>
33729
33730         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
33731         * modules/isnanl (Link): New section.
33732
33733         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
33734         * modules/frexp (Link): New section.
33735
33736         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
33737         * modules/frexpl (Link): New section.
33738
33739         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
33740         * modules/ldexpl (Link): New section.
33741
33742 2007-04-03  Bruno Haible  <bruno@clisp.org>
33743
33744         * modules/TEMPLATE-EXTENDED: New file.
33745         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
33746
33747 2007-04-03  Bruno Haible  <bruno@clisp.org>
33748
33749         * DEPENDENCIES: New file.
33750         Suggested by Simon Josefsson.
33751
33752 2007-04-03  Bruno Haible  <bruno@clisp.org>
33753
33754         * doc/gnulib.texi: Escape @.
33755
33756 2007-04-03  James Youngman  <jay@gnu.org>
33757         and Paul Eggert  <eggert@cs.ucla.edu>
33758
33759         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
33760         birthtime on all systems that have birthtime, not just those which
33761         use st_birthtimensec rather than st_birthtim.  Putting zero in
33762         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
33763         that the birth time is not available for files on an NFS mount.
33764
33765 2007-04-03  Simon Josefsson  <simon@josefsson.org>
33766
33767         * modules/memxor: Move back from crypto/, suggested by Bruno.
33768         * modules/crypto/hmac-sha1: Fix memxor dependency.
33769
33770         * modules/crypto/gc: Moved from ../.
33771
33772 2007-04-02  Eric Blake  <ebb9@byu.net>
33773
33774         * lib/ldexpl.c (includes): Avoid libm.
33775
33776         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
33777
33778 2007-04-02  Bruno Haible  <bruno@clisp.org>
33779
33780         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
33781         on IRIX.
33782
33783 2007-04-02  Bruno Haible  <bruno@clisp.org>
33784
33785         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
33786         x86 or x86_64 platforms running MacOS X.
33787         Reported by Ryan Schmidt <@ryandesign.com>.
33788
33789 2007-04-02  Bruno Haible  <bruno@clisp.org>
33790
33791         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
33792         i386.
33793
33794 2007-04-01  Simon Josefsson  <simon@josefsson.org>
33795
33796         * modules/crypto/arcfour: Moved from ../.
33797         * modules/crypto/arcfour-tests: Moved from ../.
33798         * modules/crypto/arctwo: Moved from ../.
33799         * modules/crypto/arctwo-tests: Moved from ../.
33800         * modules/crypto/des: Moved from ../.
33801         * modules/crypto/des-tests: Moved from ../.
33802         * modules/crypto/gc-arcfour: Moved from ../.
33803         * modules/crypto/gc-arcfour-tests: Moved from ../.
33804         * modules/crypto/gc-arctwo: Moved from ../.
33805         * modules/crypto/gc-arctwo-tests: Moved from ../.
33806         * modules/crypto/gc-des: Moved from ../.
33807         * modules/crypto/gc-des-tests: Moved from ../.
33808         * modules/crypto/gc-hmac-md5: Moved from ../.
33809         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
33810         * modules/crypto/gc-hmac-sha1: Moved from ../.
33811         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
33812         * modules/crypto/gc-md2: Moved from ../.
33813         * modules/crypto/gc-md2-tests: Moved from ../.
33814         * modules/crypto/gc-md4: Moved from ../.
33815         * modules/crypto/gc-md4-tests: Moved from ../.
33816         * modules/crypto/gc-md5: Moved from ../.
33817         * modules/crypto/gc-md5-tests: Moved from ../.
33818         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
33819         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
33820         * modules/crypto/gc-random: Moved from ../.
33821         * modules/crypto/gc-rijndael: Moved from ../.
33822         * modules/crypto/gc-rijndael-tests: Moved from ../.
33823         * modules/crypto/gc-sha1: Moved from ../.
33824         * modules/crypto/gc-sha1-tests: Moved from ../.
33825         * modules/crypto/gc-tests: Moved from ../.
33826         * modules/crypto/hmac-md5: Moved from ../.
33827         * modules/crypto/hmac-md5-tests: Moved from ../.
33828         * modules/crypto/hmac-sha1: Moved from ../.
33829         * modules/crypto/hmac-sha1-tests: Moved from ../.
33830         * modules/crypto/md2: Moved from ../.
33831         * modules/crypto/md2-tests: Moved from ../.
33832         * modules/crypto/md4: Moved from ../.
33833         * modules/crypto/md4-tests: Moved from ../.
33834         * modules/crypto/md5: Moved from ../.
33835         * modules/crypto/md5-tests: Moved from ../.
33836         * modules/crypto/memxor: Moved from ../.
33837         * modules/crypto/rijndael: Moved from ../.
33838         * modules/crypto/rijndael-tests: Moved from ../.
33839         * modules/crypto/sha1: Moved from ../.
33840
33841 2007-03-30  James Youngman  <jay@gnu.org>
33842
33843         * tests/test-stat-time.c (prepare_test): use chmod() rather than
33844         rename() to change the ctime of a file (because ctime is unaffected
33845         by rename on jfs2 on AIX 5.1).
33846         (main): Start by doing cleanup, in case a previous run failed leaving
33847         test files behind.
33848
33849 2007-03-31  Bruno Haible  <bruno@clisp.org>
33850
33851         Support old proprietary implementations of iconv.
33852         * modules/iconv_open: New file.
33853         * lib/iconv_.h: New file.
33854         * m4/iconv_h.m4: New file.
33855         * lib/iconv_open.c: New file.
33856         * lib/iconv_open-aix.gperf: New file.
33857         * lib/iconv_open-hpux.gperf: New file.
33858         * lib/iconv_open-irix.gperf: New file.
33859         * lib/iconv_open-osf.gperf: New file.
33860         * m4/iconv_open.m4: New file.
33861         * modules/linebreak (Depends-on): Add iconv_open.
33862         * modules/striconv (Depends-on): Likewise.
33863         * modules/striconveh (Depends-on): Likewise.
33864         * modules/unicodeio (Depends-on): Likewise.
33865         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
33866         (iconv_t)(-1).
33867         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
33868         conversion if cd is (iconv_t)(-1).
33869         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
33870         is not possible.
33871
33872 2007-03-31  Bruno Haible  <bruno@clisp.org>
33873
33874         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33875         work on Solaris either. Protect also second use of "autodetect_jp".
33876
33877 2007-03-31  Bruno Haible  <bruno@clisp.org>
33878
33879         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
33880         the function is not present.
33881
33882 2007-03-31  Bruno Haible  <bruno@clisp.org>
33883
33884         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
33885         the function is not present.
33886
33887 2007-03-31  Bruno Haible  <bruno@clisp.org>
33888
33889         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
33890         a bug in HP-UX iconv_open().
33891
33892 2007-03-31  Bruno Haible  <bruno@clisp.org>
33893
33894         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
33895         (Mathematics <math.h>): New section, add fpieee.
33896         (Input/output <stdio.h>): Add fseterr.
33897         (Mathematics <math.h>): New section, add printf-frexp.
33898         (Container data structures): Add sublist.
33899         (Core language properties): Add fpucw, inline.
33900         (Functions for greatest-width integer types <inttypes.h>): Add
33901         imaxabs, imaxdiv, inttypes.
33902         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
33903         isnanl-nolibm, ldexp.
33904         (Mathematics <math.h>): New section, add printf-frexpl.
33905         (Support for systems lacking POSIX:2001): Add fprintf-posix,
33906         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
33907         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
33908         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
33909         (Unicode string functions): Add unistr/u*-mbtoucr.
33910         (Java): Add javacomp-script, javaexec-script.
33911         (C#): Add csharpcomp-script, csharpexec-script.
33912         (Support for building libraries and executables): Add havelib,
33913         relocatable-*.
33914         (Support for maintaining and releasing projects): Renamed from
33915         'Support for maintaining and release projects'. Add announce-gen.
33916
33917 2007-03-31  Bruno Haible  <bruno@clisp.org>
33918
33919         * README: Talk primarily about git.
33920         (git and CVS): Renamed from CVS.
33921         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
33922         gnulib is available through git.
33923         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
33924
33925 2007-03-30  Bruno Haible  <bruno@clisp.org>
33926
33927         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
33928         * lib/poll_.h: Likewise.
33929         * lib/stat_.h: Likewise.
33930         * lib/sys_time_.h: Likewise.
33931         * lib/sysexit_.h: Likewise.
33932         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
33933         * lib/stdbool_.h: Likewise.
33934         * lib/byteswap_.h: Add double-inclusion guard.
33935
33936 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
33937
33938         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
33939
33940 2007-03-30  Karl Berry  <karl@gnu.org>
33941
33942         * config/srclist-update: double space after USA in the license
33943         substitution, since that's how it's usually (?) written.
33944
33945 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33946
33947         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
33948         reported by Bruno Haible.
33949
33950 2007-03-29  Bruno Haible  <bruno@clisp.org>
33951
33952         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
33953         a bug in AIX iconv().
33954
33955 2007-03-29  Bruno Haible  <bruno@clisp.org>
33956
33957         * modules/ldexpl-tests: New file.
33958         * tests/test-ldexpl.c: New file.
33959
33960 2007-03-29  Bruno Haible  <bruno@clisp.org>
33961
33962         * lib/ldexpl.c: Include fpucw.h.
33963         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
33964         multiplication.
33965         * modules/ldexpl (Depends-on): Add fpucw.
33966
33967 2007-03-29  Bruno Haible  <bruno@clisp.org>
33968
33969         * modules/ldexpl: New file.
33970         * m4/ldexpl.m4: New file.
33971         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
33972         set.
33973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
33974         REPLACE_LDEXPL.
33975         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
33976         REPLACE_LDEXPL.
33977         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33978         gl_FUNC_LDEXPL_WORKS.
33979         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
33980         * modules/mathl (Files): Remove lib/ldexpl.c.
33981         (Depends-on): Add ldexpl.
33982
33983 2007-03-29  Bruno Haible  <bruno@clisp.org>
33984
33985         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
33986
33987 2007-03-29  Bruno Haible  <bruno@clisp.org>
33988
33989         * tests/test-striconveh.c (main): Don't assume that a direct conversion
33990         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
33991         and possibly also HP-UX.
33992         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33993         work on AIX, IRIX, HP-UX, OSF/1.
33994         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33995         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33996         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33997         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33998         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
33999         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34000
34001 2007-03-29  Bruno Haible  <bruno@clisp.org>
34002
34003         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34004
34005 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34006
34007         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34008         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34009
34010 2007-03-29  Eric Blake  <ebb9@byu.net>
34011
34012         * lib/acl-internal.h: Remove redundant include.
34013         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34014         Cygwin when a file is locked.
34015
34016 2007-03-29  Bruno Haible  <bruno@clisp.org>
34017
34018         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34019         file.
34020         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34021
34022 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34023
34024         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34025         try to remove a parent directory if the child couldn't be removed
34026         (except for the first rmdir, which could fail because the child
34027         doesn't exist).  Problem reported by Jeff Blaine in
34028         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34029
34030 2007-03-28  Bruno Haible  <bruno@clisp.org>
34031
34032         * lib/striconveh.c (utf8conv_carefully): New function.
34033         (mem_cd_iconveh_internal): Invoke it.
34034
34035 2007-03-28  Bruno Haible  <bruno@clisp.org>
34036
34037         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34038         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34039         input.
34040         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34041         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34042         unistr/u8-uctomb.
34043
34044 2007-03-28  Bruno Haible  <bruno@clisp.org>
34045
34046         * modules/unistr/u8-mbtoucr: New file.
34047         * lib/unistr/u8-mbtoucr.c: New file.
34048         * modules/unistr/u16-mbtoucr: New file.
34049         * lib/unistr/u16-mbtoucr.c: New file.
34050         * modules/unistr/u16-mbtoucr: New file.
34051         * lib/unistr/u16-mbtoucr.c: New file.
34052         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34053
34054 2007-03-27  Simon Josefsson  <simon@josefsson.org>
34055             Bruno Haible  <bruno@clisp.org>
34056
34057         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34058         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
34059         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34060
34061         * m4/stdio_h.m4: Add stubs for vasprintf too.
34062
34063         * modules/stdio: Support vasprintf in sed command.
34064
34065         * modules/vasprintf: Depend on stdio for prototypes.  Remove
34066         vasprintf.h.  Add stdio module indicator.
34067
34068         * lib/stdio_.h: Declare asprintf and vasprintf, based on
34069         vasprintf.h.
34070
34071         * lib/vasprintf.h: File removed.
34072
34073         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34074         * lib/vasprintf.c: Ditto.
34075         * lib/xvasprintf.c: Ditto.
34076         * tests/test-vasprintf-posix.c: Ditto.
34077         * tests/test-vasprintf.c: Ditto.
34078
34079 2007-03-27  Bruno Haible  <bruno@clisp.org>
34080
34081         Make vasnprintf multithread-safe.
34082         * lib/vasnprintf.c (decimal_point_char): New function.
34083         (VASNPRINTF): Use it.
34084         Suggested by Simon Josefsson.
34085
34086 2007-03-27  Eric Blake  <ebb9@byu.net>
34087
34088         Support sub-second birthtime on cygwin.
34089         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34090         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34091         (get_stat_birthtime): Also work with st_birthtim.
34092
34093 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34094
34095         * lib/stat-time.h (USE_BIRTHTIME): Remove.
34096         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34097         (get_stat_birthtime_ns): Do not try to use "spare" fields.
34098         (get_stat_birthtime_ns): Simplify compile-time tests.
34099         (get_stat_birthtime): Change the API to look like
34100         get_stat_mtime etc., except return a negative tv_nsec on error.
34101         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34102         Don't check for "spare" fields.
34103         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34104         or for struct stat.st_birthtime, as these tests aren't used.
34105         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34106
34107 2007-03-27  Bruno Haible  <bruno@clisp.org>
34108
34109         * lib/stat-time.h: Include <sys/stat.h>.
34110
34111 2007-03-27  James Youngman  <jay@gnu.org>
34112
34113         * lib/stat-time.h (get_stat_birthtime): New function for
34114           retrieving st_birthtime as provided by UFS2 (hence *BSD).
34115         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34116           and its variants.
34117         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34118         * modules/stat-time-test: New file.
34119         * tests/test-stat-time.c: New test, devised by Bruno Haible.
34120
34121 2007-03-26  Bruno Haible  <bruno@clisp.org>
34122
34123         Better support of signalling NaNs.
34124         * lib/atanl.c: Include isnanl.h.
34125         (atanl): Perform test for NaN at the beginning of the function and
34126         through a call to isnanl.
34127         * lib/cosl.c: Include isnanl.h.
34128         (cosl): Perform test for NaN at the beginning of the function and
34129         through a call to isnanl.
34130         * lib/ldexpl.c: Include isnanl.h.
34131         (ldexpl): Perform test for NaN through a call to isnanl.
34132         * lib/logl.c: Include isnanl.h.
34133         (logl): Perform test for NaN at the beginning of the function and
34134         through a call to isnanl.
34135         * lib/sinl.c: Include isnanl.h.
34136         (sinl): Perform test for NaN at the beginning of the function and
34137         through a call to isnanl.
34138         * lib/sqrtl.c: Include isnanl.h.
34139         (sqrtl): Perform test for NaN at the beginning of the function and
34140         through a call to isnanl.
34141         * lib/tanl.c: Include isnanl.h.
34142         (tanl): Perform test for NaN at the beginning of the function and
34143         through a call to isnanl.
34144         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34145         * modules/mathl (Depends-on): Add isnanl.
34146
34147 2007-03-26  Eric Blake  <ebb9@byu.net>
34148
34149         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34150         regression in logic sense of previous patch.
34151
34152 2007-03-26  Bruno Haible  <bruno@clisp.org>
34153
34154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34155         unportable shell command "if ! ...".
34156         Reported by Ralf Wildenhues.
34157
34158 2007-03-25  Bruno Haible  <bruno@clisp.org>
34159
34160         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34161         <sysexits.h> file, and only add EX_CONFIG.
34162         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34163         absolute file name and whether it is sufficient. Substitute also
34164         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34165         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34166         ABSOLUTE_SYSEXITS_H into sysexits.h.
34167
34168 2007-03-25  Bruno Haible  <bruno@clisp.org>
34169
34170         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34171         hints is NULL.
34172
34173 2007-03-25  Bruno Haible  <bruno@clisp.org>
34174
34175         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34176         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34177
34178 2007-03-25  Bruno Haible  <bruno@clisp.org>
34179
34180         * lib/vasnprintf.c: Include langinfo.h.
34181         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34182         multithread-safe.
34183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34184         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34185         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34186         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34187         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34188         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34189         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34191         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34192         Reported by Simon Josefsson.
34193
34194 2007-03-25  Bruno Haible  <bruno@clisp.org>
34195
34196         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34197         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34198         * modules/vasnprintf (Depends-on): Add stdint.
34199
34200 2007-03-25  Bruno Haible  <bruno@clisp.org>
34201
34202         * modules/fpieee: New file.
34203         * m4/fpieee.m4: New file.
34204         * modules/isnan-nolibm (Depends-on): Add fpieee.
34205         * modules/isnanl-nolibm (Depends-on): Add fpieee.
34206         * modules/isnanl (Depends-on): Add fpieee.
34207
34208 2007-03-25  Bruno Haible  <bruno@clisp.org>
34209
34210         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34211
34212 2007-03-25  Bruno Haible  <bruno@clisp.org>
34213
34214         Avoid test failures on IRIX 6.5.
34215         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34216         (main): Use it.
34217         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34218         macros.
34219         (main): Use them.
34220
34221 2007-03-25  Bruno Haible  <bruno@clisp.org>
34222
34223         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34224         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34225         exists but doesn't work.
34226         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34227         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34229         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34230
34231 2007-03-25  Bruno Haible  <bruno@clisp.org>
34232
34233         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34234         returns inf. Needed on IRIX 6.5.
34235
34236 2007-03-25  Bruno Haible  <bruno@clisp.org>
34237
34238         * tests/test-frexpl.c: Include isnanl-nolibm.h.
34239         (main): Use isnanl instead of x != x idiom.
34240         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34241
34242         * tests/test-frexp.c: Include isnan.h.
34243         (main): Use isnan instead of x != x idiom.
34244         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34245
34246 2007-03-25  Bruno Haible  <bruno@clisp.org>
34247
34248         * tests/test-frexp.c (NaN): New function/macro.
34249         (main): Use it instead of 0.0 / 0.0.
34250         * tests/test-isnan.c (NaN): New function/macro.
34251         (main): Use it instead of 0.0 / 0.0.
34252         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34253         (test_function): Use it instead of 0.0 / 0.0.
34254         * tests/test-vasprintf-posix.c (NaN): New function/macro.
34255         (test_function): Use it instead of 0.0 / 0.0.
34256         * tests/test-snprintf-posix.h (NaN): New function/macro.
34257         (test_function): Use it instead of 0.0 / 0.0.
34258         * tests/test-sprintf-posix.h (NaN): New function/macro.
34259         (test_function): Use it instead of 0.0 / 0.0.
34260         * tests/test-fprintf-posix.h (NaN): New function/macro.
34261         (test_function): Use it instead of 0.0 / 0.0.
34262         * tests/test-printf-posix.h (NaN): New function/macro.
34263         (test_function): Use it instead of 0.0 / 0.0.
34264
34265         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34266
34267 2007-03-25  Bruno Haible  <bruno@clisp.org>
34268
34269         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34270
34271 2007-03-25  Bruno Haible  <bruno@clisp.org>
34272
34273         * lib/regexec.c (merge_state_with_log): Make static.
34274
34275 2007-03-25  Bruno Haible  <bruno@clisp.org>
34276
34277         * lib/trigl.c (kernel_rem_pio2): Make static.
34278
34279 2007-03-25  Bruno Haible  <bruno@clisp.org>
34280
34281         * lib/sincosl.c (sincosl_table): Make static.
34282
34283 2007-03-25  Bruno Haible  <bruno@clisp.org>
34284
34285         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34286         if the compiler does not support C99.
34287
34288 2007-03-25  Bruno Haible  <bruno@clisp.org>
34289
34290         * modules/time (Makefile.am): Ensure all rule action lines start with a
34291         tab.
34292
34293 2007-03-24  Bruno Haible  <bruno@clisp.org>
34294
34295         * modules/tsearch-tests: New file.
34296         * tests/test-tsearch.sh: New file.
34297         * tests/test-tsearch.c: New file, mostly copied from glibc.
34298
34299         * modules/search-tests: New file.
34300         * tests/test-search.c: New file.
34301
34302         * modules/search: New file.
34303         * lib/search_.h: New file, incorporating lib/tsearch.h.
34304         * m4/search_h.m4: New file.
34305         * lib/tsearch.h: Remove file.
34306         * lib/tsearch.c: Include search.h instead of tsearch.h.
34307         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
34308         HAVE_TSEARCH.
34309         * modules/tsearch (Files): Remove lib/tsearch.h.
34310         (Depends-on): Add search.
34311         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
34312         (Include): Change tsearch.h into search.h.
34313
34314 2007-03-24  Bruno Haible  <bruno@clisp.org>
34315
34316         * modules/fpucw: New file.
34317         * lib/fpucw.h: New file.
34318         * lib/frexp.c: Include fpucw.h.
34319         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34320         (FUNC): Use them.
34321         * lib/printf-frexp.c: Include fpucw.h.
34322         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34323         (FUNC): Use them.
34324         * lib/vasnprintf.c: Include fpucw.h.
34325         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
34326         'long double' calculations.
34327         * tests/test-frexpl.c: Include fpucw.h.
34328         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34329         * tests/test-printf-frexpl.c: Include fpucw.h.
34330         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34331         * modules/frexpl (Depends-on): Add fpucw.
34332         * modules/printf-frexpl (Depends-on): Likewise.
34333         * modules/fprintf-posix (Depends-on): Likewise.
34334         * modules/snprintf-posix (Depends-on): Likewise.
34335         * modules/sprintf-posix (Depends-on): Likewise.
34336         * modules/vasnprintf-posix (Depends-on): Likewise.
34337         * modules/vasprintf-posix (Depends-on): Likewise.
34338         * modules/vfprintf-posix (Depends-on): Likewise.
34339         * modules/vsnprintf-posix (Depends-on): Likewise.
34340         * modules/vsprintf-posix (Depends-on): Likewise.
34341         * modules/frexpl-tests (Depends-on): Likewise.
34342         * modules/printf-frexpl-tests (Depends-on): Likewise.
34343
34344 2007-03-24  Bruno Haible  <bruno@clisp.org>
34345
34346         * lib/float+.h: New file.
34347         * lib/isnan.c: Include float+.h.
34348         (SIZE): New macro.
34349         (FUNC): Compare only SIZE bytes of the value.
34350         * lib/vasnprintf.c: Include float+.h.
34351         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
34352         SIZEOF_LDBL or SIZEOF_DBL bytes.
34353         * modules/isnan-nolibm (Files): Add lib/float+.h.
34354         * modules/isnanl-nolibm (Files): Add lib/float+.h.
34355         * modules/isnanl (Files): Add lib/float+.h.
34356         * modules/vasnprintf (Files): Add lib/float+.h.
34357
34358 2007-03-24  Bruno Haible  <bruno@clisp.org>
34359
34360         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
34361         include isnanl-nolibm.h.
34362
34363 2007-03-24  Bruno Haible  <bruno@clisp.org>
34364
34365         * tests/test-read-file.c (main): Don't produce spurious output for
34366         expected situations. Make the test fail if it encountered unexpected
34367         results.
34368
34369 2007-03-24  Bruno Haible  <bruno@clisp.org>
34370
34371         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
34372         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
34373
34374 2007-03-24  Bruno Haible  <bruno@clisp.org>
34375
34376         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
34377
34378 2007-03-24  Bruno Haible  <bruno@clisp.org>
34379
34380         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
34381         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
34382
34383         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
34384         * modules/utf8-ucs4: Turn into a symbolic link to module
34385         unistr/u8-mbtouc.
34386
34387         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
34388         utf8-ucs4-unsafe.
34389         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
34390         unistr/u8-mbtouc-unsafe.
34391
34392         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
34393         * modules/utf16-ucs4: Turn into a symbolic link to module
34394         unistr/u16-mbtouc.
34395
34396         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
34397         utf16-ucs4-unsafe.
34398         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
34399         unistr/u16-mbtouc-unsafe.
34400
34401         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
34402         * modules/ucs4-utf8: Turn into a symbolic link to module
34403         unistr/u8-ubtomb.
34404
34405         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
34406         * modules/ucs4-utf16: Turn into a symbolic link to module
34407         unistr/u16-ubtomb.
34408
34409 2007-03-24  Bruno Haible  <bruno@clisp.org>
34410
34411         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
34412         Enable the function only if HAVE_INLINE.
34413         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
34414         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34415         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
34416         Enable the function only if HAVE_INLINE.
34417         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
34418         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34419         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
34420         Enable the function only if HAVE_INLINE.
34421         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
34422         Enable the function only if HAVE_INLINE.
34423         * modules/utf8-ucs4: Update.
34424         * modules/utf8-ucs4-unsafe: Update.
34425         * modules/utf16-ucs4: Update.
34426         * modules/utf16-ucs4-unsafe: Update.
34427         * modules/ucs4-utf8: Update.
34428         * modules/ucs4-utf16: Update.
34429
34430 2007-03-24  Bruno Haible  <bruno@clisp.org>
34431
34432         * lib/utf8-ucs4.h: Remove file.
34433         * lib/utf8-ucs4-unsafe.h: Remove file.
34434         * lib/utf16-ucs4.h: Remove file.
34435         * lib/utf16-ucs4-unsafe.h: Remove file.
34436         * lib/ucs4-utf8.h: Remove file.
34437         * lib/ucs4-utf16.h: Remove file.
34438         * lib/unistr.h: Include their previous contents.
34439         * m4/utf-ucs4.m4: Remove file.
34440         * m4/ucs4-utf.m4: Remove file.
34441         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
34442         (Depends-on): Add unistr/base.
34443         (configure.ac): Remove gl_UTF_UCS4.
34444         (Makefile.am): Update.
34445         (Include): Change to unistr.h.
34446         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
34447         (Depends-on): Add unistr/base.
34448         (configure.ac): Remove gl_UTF_UCS4.
34449         (Makefile.am): Update.
34450         (Include): Change to unistr.h.
34451         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
34452         (Depends-on): Add unistr/base.
34453         (configure.ac): Remove gl_UTF_UCS4.
34454         (Makefile.am): Update.
34455         (Include): Change to unistr.h.
34456         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
34457         (Depends-on): Add unistr/base.
34458         (configure.ac): Remove gl_UTF_UCS4.
34459         (Makefile.am): Update.
34460         (Include): Change to unistr.h.
34461         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
34462         (Depends-on): Add unistr/base.
34463         (configure.ac): Remove gl_UCS4_UTF.
34464         (Makefile.am): Update.
34465         (Include): Change to unistr.h.
34466         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
34467         (Depends-on): Add unistr/base.
34468         (configure.ac): Remove gl_UCS4_UTF.
34469         (Makefile.am): Update.
34470         (Include): Change to unistr.h.
34471         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
34472         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
34473         utf8-ucs4-unsafe.h.
34474         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
34475         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
34476         utf16-ucs4-unsafe.h.
34477         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
34478         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
34479         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
34480         * lib/unistr/u8-strchr.c: Likewise.
34481         * lib/unistr/u8-strrchr.c: Likewise.
34482         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
34483         * lib/unistr/u16-strchr.c: Likewise.
34484         * lib/unistr/u16-strrchr.c: Likewise.
34485         * lib/striconveh.c: Update.
34486         * lib/linebreak.c: Update.
34487
34488 2007-03-24  Bruno Haible  <bruno@clisp.org>
34489
34490         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
34491         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
34492
34493 2007-03-22  Bruno Haible  <bruno@clisp.org>
34494
34495         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
34496
34497 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
34498
34499         * MODULES.html.sh (File system functions): New module write-any-file.
34500         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
34501         * m4/write-any-file.m4: New files.
34502
34503 2007-03-23  Eric Blake  <ebb9@byu.net>
34504
34505         * gnulib-tool: Rearrange space-tab sequences, since some editors
34506         like to eat them.
34507
34508 2007-03-23  Eric Blake  <ebb9@byu.net>
34509
34510         * lib/version-etc.c (version_etc_va): Update license wording to
34511         be more concise.  Recommended by Richard Stallman.
34512
34513 2007-03-22  Bruno Haible  <bruno@clisp.org>
34514
34515         * lib/poll.c (MSG_PEEK): New fallback definition.
34516
34517 2007-03-22  Bruno Haible  <bruno@clisp.org>
34518
34519         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
34520         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
34521         (main): Update.
34522         Fixes a compilation error on BeOS.
34523
34524 2007-03-22  Bruno Haible  <bruno@clisp.org>
34525
34526         * modules/frexpl-tests: New file.
34527         * tests/test-frexpl.c: New file.
34528
34529         * modules/frexpl: New file.
34530         * m4/frexpl.m4: New file.
34531         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
34532         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
34533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
34534         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
34535         (Depends-on): Add frexpl. Remove isnanl-nolibm.
34536         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
34537
34538 2007-03-22  Bruno Haible  <bruno@clisp.org>
34539
34540         * lib/frexpl.c: Share code with lib/frexp.c.
34541         * modules/mathl (Files): Add lib/frexp.c.
34542         (Depends-on): Add isnanl-nolibm.
34543
34544 2007-03-22  Bruno Haible  <bruno@clisp.org>
34545
34546         * modules/printf-frexp (Files): Add m4/frexp.m4.
34547         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
34548         only if the found frexp function actually works.
34549
34550 2007-03-22  Bruno Haible  <bruno@clisp.org>
34551
34552         * lib/frexp.c: Remove older implementation that uses divisions.
34553
34554 2007-03-21  Bruno Haible  <bruno@clisp.org>
34555
34556         * modules/frexp-tests: New file.
34557         * tests/test-frexp.c: New file.
34558
34559         * modules/frexp: New file.
34560         * lib/frexp.c: New file.
34561         * m4/frexp.m4: New file.
34562         * lib/math_.h (frexp): New declaration.
34563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
34564         REPLACE_FREXP.
34565         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
34566
34567 2007-03-21  Bruno Haible  <bruno@clisp.org>
34568
34569         * modules/isnanl-tests: New file.
34570         * tests/test-isnanl.c: New file.
34571
34572         * modules/isnanl: New file.
34573         * lib/isnanl.h: New file.
34574         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
34575         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
34576         gl_FUNC_ISNANL_WORKS.
34577         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
34578         New macros.
34579
34580 2007-03-21  Bruno Haible  <bruno@clisp.org>
34581
34582         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
34583         lib/isnanl.h.
34584         (Include): Update.
34585         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
34586         * lib/vasnprintf.c: Update.
34587         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
34588         tests/test-isnanl.h, remove tests/test-isnanl.c.
34589         (Makefile.am): Update.
34590         * tests/test-isnanl-nolibm.c: New file.
34591         * tests/test-isnanl.h: New file.
34592         * tests/test-isnanl.c: Remove file.
34593
34594 2007-03-21  Jim Meyering  <jim@meyering.net>
34595
34596         When trying to open ".", treat ESTALE like EACCES.
34597         * lib/savewd.c (savewd_save): Resort to forking not just upon
34598         failure with EACCES, but also when errno is ESTALE.
34599
34600 2007-03-20  Bruno Haible  <bruno@clisp.org>
34601
34602         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
34603         Needed on AIX 5.1. Reported by Matthew Woehlke.
34604
34605 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34606
34607         Suggestions by Bruno Haible:
34608         * lib/acl-internal.h: Include "gettext.h" rather than rolling
34609         our own.
34610         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
34611         * modules/acl (Depends-on): Add gettext.
34612
34613 2007-03-19  Bruno Haible  <bruno@clisp.org>
34614
34615         * modules/iconvme: Remove file.
34616         * lib/iconvme.h: Remove file.
34617         * lib/iconvme.c: Remove file.
34618         * m4/iconvme.m4: Remove file.
34619
34620 2007-03-19  Bruno Haible  <bruno@clisp.org>
34621
34622         * doc/relocatable-maint.texi: Break long shell script line.
34623         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34624
34625 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34626
34627         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
34628         handle file_has_acl.
34629         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
34630         * lib/acl.c: Move header inclusions and related macro defns into
34631         lib/acl-internal.h.
34632         (S_ISLNK): Remove defn, since that's now done for us.
34633         (file_has_acl): Move to lib/file-has-acl.c.
34634         Call acl_trivial if available.  This is the crucial part of the fix.
34635         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
34636         shared within the library.  Rewrite a bit, partly to make it compatible
34637         with the GNU coding style.
34638         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
34639         Remove unnecessary double-quotes.
34640         Don't test for acl_to_text; the build will catch that.
34641         Replace acl_entries if it doesn't exist and it is needed.
34642         Check for -lsec and acl_trivial (as used on Solaris 10).
34643         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
34644         lib/file-has-acl.c.
34645         (Depends-on): Add sys_stat, for S_ISLNK.
34646
34647 2007-03-19  Ben Pfaff  <blp@gnu.org>
34648
34649         * doc/gnulib.texi: Fix typos.
34650         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34651
34652 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34653
34654         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
34655         If size is zero here, buf must be zero.
34656
34657 2007-03-19  Simon Josefsson  <simon@josefsson.org>
34658
34659         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
34660         <bruno@clisp.org>.
34661
34662 2007-03-18  Bruno Haible  <bruno@clisp.org>
34663
34664         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
34665         Suggested by Eric Blake.
34666
34667 2007-03-18  Ben Pfaff  <blp@gnu.org>
34668
34669         * doc/relocatable.texi: Recommend using as prefix a directory
34670         that does not exist and will never be created.  Based on
34671         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
34672         and others.
34673
34674 2007-03-17  Bruno Haible  <bruno@clisp.org>
34675
34676         * lib/fchownat.c: Include lchown.h.
34677
34678 2007-03-17  Bruno Haible  <bruno@clisp.org>
34679
34680         Fix endless loop when the given allocated size was > INT_MAX.
34681         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
34682         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
34683         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
34684         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
34685         * lib/sprintf.c (sprintf): Likewise.
34686
34687 2007-03-17  Bruno Haible  <bruno@clisp.org>
34688
34689         * tests/test-argp-2.sh (func_compare): Output a context diff.
34690
34691 2007-03-17  Bruno Haible  <bruno@clisp.org>
34692
34693         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
34694         locale's decimal-point character.
34695
34696 2007-03-17  Bruno Haible  <bruno@clisp.org>
34697
34698         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
34699         before comparing it. Needed because on some platforms (e.g. x86) a
34700         'long double' occupies less bytes than sizeof (long double).
34701
34702 2007-03-17  Bruno Haible  <bruno@clisp.org>
34703
34704         * tests/test-crc.c (main): Make printf statements 64-bit clean.
34705         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
34706         * tests/test-getaddrinfo.c (simple): Likewise.
34707         * tests/test-read-file.c (main): Likewise.
34708
34709 2007-03-17  Bruno Haible  <bruno@clisp.org>
34710
34711         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
34712
34713 2007-03-17  Bruno Haible  <bruno@clisp.org>
34714
34715         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
34716         unused variable.
34717
34718 2007-03-17  Bruno Haible  <bruno@clisp.org>
34719
34720         * tests/test-c-strcasecmp.c: Include c-strcase.h.
34721         * tests/test-c-strncasecmp.c: Likewise.
34722
34723 2007-03-17  Bruno Haible  <bruno@clisp.org>
34724
34725         * modules/stdlib (Depends-on): Add unistd.
34726         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
34727         Needed for MacOS X 10.3.
34728
34729 2007-03-17  Bruno Haible  <bruno@clisp.org>
34730
34731         * lib/unistr/u-strdup.h: Include <stdlib.h>.
34732
34733 2007-03-17  Bruno Haible  <bruno@clisp.org>
34734
34735         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
34736
34737 2007-03-17  Bruno Haible  <bruno@clisp.org>
34738
34739         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
34740         to reflect files copied from gnulib (with or without modifications).
34741         Suggested by Jim Meyering.
34742
34743 2007-03-17  Eric Blake  <ebb9@byu.net>
34744
34745         * NEWS: Document stdlib change from 2007-02-18.
34746
34747 2007-03-17  Jim Meyering  <jim@meyering.net>
34748
34749         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
34750         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
34751         someone uses a name containing shell meta-characters.
34752         Reported by Alfred M. Szmidt.
34753
34754         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
34755
34756 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34757
34758         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
34759         and copy gettext configuration files only if configure.ac contains
34760         a use of AM_GNU_GETTEXT_VERSION.
34761
34762 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34763
34764         * build-aux/bootstrap (gnulib_name): New variable.
34765         (gnulib_tool_options): Use it.
34766
34767 2007-03-13  Simon Josefsson  <simon@josefsson.org>
34768
34769         * tests/test-des.c: Use new namespace.
34770
34771 2007-03-15  Bruno Haible  <bruno@clisp.org>
34772
34773         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
34774         Reported by James Youngman <jay@gnu.org>.
34775
34776 2007-03-15  Bruno Haible  <bruno@clisp.org>
34777
34778         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
34779         declared prototype. Needed with cc on OSF/1 5.1.
34780
34781 2007-03-15  Bruno Haible  <bruno@clisp.org>
34782
34783         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
34784         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
34785         (struct gl_list_implementation): Add dispose_fn argument to the
34786         'create_empty', 'create' methods.
34787         (struct gl_list_impl_base): Add field 'dispose_fn'.
34788         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
34789         argument.
34790         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
34791         dispose_fn argument.
34792         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
34793         dispose_fn on the dropped values.
34794         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
34795         dispose_fn argument.
34796         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
34797         dropped values.
34798         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
34799         (gl_tree_remove_node): Call dispose_fn on the dropped value.
34800         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
34801         (gl_tree_remove_node): Call dispose_fn on the dropped value.
34802         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
34803         argument.
34804         (gl_tree_list_free): Call dispose_fn on the dropped values.
34805         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
34806         the dropped values.
34807         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
34808         Add dispose_fn argument.
34809         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
34810         Call dispose_fn on the dropped values.
34811         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
34812         Add dispose_fn argument.
34813         (gl_sublist_create): Initialize the 'dispose_fn' field.
34814         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
34815         * tests/test-array_list.c (main): Update.
34816         * tests/test-carray_list.c (main): Update.
34817         * tests/test-avltree_list.c (main): Update.
34818         * tests/test-rbtree_list.c (main): Update.
34819         * tests/test-avltreehash_list.c (main): Update.
34820         * tests/test-rbtreehash_list.c (main): Update.
34821         * tests/test-linked_list.c (main): Update.
34822         * tests/test-linkedhash_list.c (main): Update.
34823         * tests/test-array_oset.c (main): Update.
34824
34825 2007-03-15  Bruno Haible  <bruno@clisp.org>
34826
34827         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
34828         (gl_oset_create_empty): Add dispose_fn argument.
34829         (struct gl_oset_implementation): Add dispose_fn argument to
34830         'create_empty' method.
34831         (struct gl_oset_impl_base): Add dispose_fn field.
34832         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
34833         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
34834         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
34835         values.
34836         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
34837         (gl_tree_oset_free): Call dispose_fn on the dropped values.
34838         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34839         dropped value.
34840         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34841         dropped value.
34842         * tests/test-array_oset.c (main): Update.
34843         * tests/test-avltree_oset.c (main): Update.
34844         * tests/test-rbtree_oset.c (main): Update.
34845         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
34846
34847 2007-03-13  Bruno Haible  <bruno@clisp.org>
34848
34849         * tests/test-stdbool.c (i): Update after last patch.
34850
34851 2007-03-12  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/quotearg.c: Include <wctype.h> early, before the definition of
34854         the iswprint macro. Needed on Solaris 2.5.1.
34855
34856 2007-03-12  Bruno Haible  <bruno@clisp.org>
34857
34858         * tests/test-printf-frexp.c (main): Declare x as volatile.
34859
34860 2007-03-12  Simon Josefsson  <simon@josefsson.org>
34861
34862         * doc/gnulib.texi (Build robot for gnulib): New section.
34863
34864 2007-03-12  Jim Meyering  <jim@meyering.net>
34865
34866         * build-aux/bootstrap: New file.
34867         * build-aux/bootstrap.conf: New file, from coreutils.
34868
34869 2007-03-11  Bruno Haible  <bruno@clisp.org>
34870
34871         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
34872
34873 2007-03-12  Simon Josefsson  <simon@josefsson.org>
34874
34875         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
34876         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
34877         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
34878
34879 2007-03-11  Bruno Haible  <bruno@clisp.org>
34880
34881         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
34882         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
34883
34884 2007-03-11  Bruno Haible  <bruno@clisp.org>
34885
34886         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
34887         formula. Needed for SunPRO C 5.0.
34888
34889 2007-03-11  Bruno Haible  <bruno@clisp.org>
34890
34891         * modules/long-options (Depends-on): Add getopt.
34892
34893 2007-03-11  Bruno Haible  <bruno@clisp.org>
34894
34895         * modules/modechange (Depends-on): Add stdbool.
34896
34897 2007-03-11  Bruno Haible  <bruno@clisp.org>
34898
34899         * modules/i-ring (Depends-on): Add stdbool.
34900
34901 2007-03-11  Bruno Haible  <bruno@clisp.org>
34902
34903         * modules/gc-des (Depends-on): Add stdbool.
34904
34905 2007-03-11  Bruno Haible  <bruno@clisp.org>
34906
34907         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
34908
34909 2007-03-11  Bruno Haible  <bruno@clisp.org>
34910
34911         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
34912
34913 2007-03-11  Bruno Haible  <bruno@clisp.org>
34914
34915         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
34916
34917 2007-03-11  Bruno Haible  <bruno@clisp.org>
34918
34919         * lib/vasnprintf.c (sprintf): Undefine.
34920
34921 2007-03-11  Bruno Haible  <bruno@clisp.org>
34922
34923         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
34924         initializers in SunPRO C and Compaq C compilers.
34925
34926 2007-03-11  Bruno Haible  <bruno@clisp.org>
34927
34928         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
34929         decrementing code ANSI C compliant.
34930
34931 2007-03-11  Bruno Haible  <bruno@clisp.org>
34932
34933         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
34934         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
34935
34936 2007-03-11  Bruno Haible  <bruno@clisp.org>
34937
34938         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
34939         <stdbool.h> substitute doesn't pass.
34940
34941 2007-03-11  Bruno Haible  <bruno@clisp.org>
34942
34943         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
34944
34945 2007-03-11  Bruno Haible  <bruno@clisp.org>
34946
34947         * gnulib-tool (func_create_megatestdir): Create also an autobuild
34948         script, for submission to autobuild.josefsson.org.
34949
34950 2007-03-10  Bruno Haible  <bruno@clisp.org>
34951
34952         * modules/canonicalize-lgpl-tests: New file.
34953         * tests/test-canonicalize-lgpl.sh: New file.
34954         * tests/test-canonicalize-lgpl.c: New file.
34955
34956         * modules/c-strcase-tests: New file.
34957         * tests/test-c-strcase.sh: New file.
34958         * tests/test-c-strcasecmp.c: New file.
34959         * tests/test-c-strncasecmp.c: New file.
34960
34961         * modules/atexit-tests: New file.
34962         * tests/test-atexit.sh: New file.
34963         * tests/test-atexit.c: New file.
34964
34965 2007-03-10  Bruno Haible  <bruno@clisp.org>
34966
34967         * tests/test-binary-io.sh: Use temporary filenames that are not so
34968         likely to clash with those of other tests (in a parallel make).
34969         * tests/test-binary-io.c: Likewise.
34970
34971 2007-03-10  Bruno Haible  <bruno@clisp.org>
34972
34973         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
34974         fallback; use #error instead.
34975         Suggested by Simon Josefsson.
34976
34977 2007-03-10  Bruno Haible  <bruno@clisp.org>
34978
34979         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
34980         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
34981         first and the last.
34982
34983 2007-03-10  Bruno Haible  <bruno@clisp.org>
34984
34985         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
34986
34987 2007-03-10  Bruno Haible  <bruno@clisp.org>
34988
34989         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
34990         "make distcheck".
34991         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
34992         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
34993         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
34994
34995 2007-03-10  Bruno Haible  <bruno@clisp.org>
34996
34997         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
34998         variable.
34999         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35000         variable.
35001
35002 2007-03-09  Eric Blake  <ebb9@byu.net>
35003         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
35004
35005         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35006         types are not being provided by gnulib.
35007         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35008         types are supported.
35009
35010 2007-03-10  Bruno Haible  <bruno@clisp.org>
35011
35012         * lib/stdio_.h (__attribute__): New macro.
35013         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35014         vsprintf): Specify __attribute__ __format__ for GCC.
35015         Suggested by Eric Blake.
35016
35017 2007-03-09  Bruno Haible  <bruno@clisp.org>
35018
35019         * modules/printf-posix-tests: New file.
35020         * tests/test-printf-posix.sh: New file.
35021         * tests/test-printf-posix.c: New file.
35022
35023         * modules/printf-posix: New file.
35024         * lib/printf.c: New file.
35025         * m4/printf-posix-rpl.m4: New file.
35026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35027         REPLACE_PRINTF.
35028         * lib/stdio_.h (printf): New declaration.
35029         (format, __format__, ____printf____, ____scanf____, ____strftime____,
35030         ____strfmon____): New macros.
35031         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35032         REPLACE_PRINTF.
35033
35034 2007-03-09  Bruno Haible  <bruno@clisp.org>
35035
35036         * tests/test-vasnprintf-posix2.sh: New file.
35037         * tests/test-vasnprintf-posix2.c: New file.
35038         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35039         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35040         (Makefile.am): Activate test-vasnprintf-posix2.sh.
35041
35042         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35043         a locale dependent decimal point, rather than always '.'.
35044
35045 2007-03-09  Eric Blake  <ebb9@byu.net>
35046
35047         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35048         spite of platforms like Tandem/NSK that define it to -1.
35049
35050 2007-03-08  Bruno Haible  <bruno@clisp.org>
35051
35052         * modules/vprintf-posix-tests: New file.
35053         * tests/test-vprintf-posix.sh: New file.
35054         * tests/test-vprintf-posix.c: New file.
35055         * tests/test-printf-posix.h: New file.
35056
35057         * modules/vprintf-posix: New file.
35058         * lib/vprintf.c: New file.
35059         * m4/vprintf-posix.m4: New file.
35060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35061         REPLACE_VPRINTF.
35062         * lib/stdio_.h (vprintf): New declaration.
35063         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35064         REPLACE_VPRINTF.
35065
35066 2007-03-08  Bruno Haible  <bruno@clisp.org>
35067
35068         * modules/fprintf-posix-tests: New file.
35069         * tests/test-fprintf-posix.sh: New file.
35070         * tests/test-fprintf-posix.c: New file.
35071
35072         * modules/fprintf-posix: New file.
35073         * lib/fprintf.c: New file.
35074         * m4/fprintf-posix.m4: New file.
35075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35076         REPLACE_FPRINTF.
35077         * lib/stdio_.h (fprintf): New declaration.
35078         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35079         REPLACE_FPRINTF.
35080
35081 2007-03-08  Bruno Haible  <bruno@clisp.org>
35082
35083         * modules/vfprintf-posix-tests: New file.
35084         * tests/test-vfprintf-posix.sh: New file.
35085         * tests/test-vfprintf-posix.c: New file.
35086         * tests/test-fprintf-posix.h: New file.
35087         * tests/test-fprintf-posix.out: New file.
35088
35089         * modules/vfprintf-posix: New file.
35090         * lib/vfprintf.c: New file.
35091         * m4/vfprintf-posix.m4: New file.
35092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35093         REPLACE_VFPRINTF.
35094         * lib/stdio_.h (vfprintf): New declaration.
35095         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35096         REPLACE_VFPRINTF.
35097
35098 2007-03-08  Bruno Haible  <bruno@clisp.org>
35099
35100         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35101
35102 2007-03-08  Bruno Haible  <bruno@clisp.org>
35103
35104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35105         instead of 'expr' invocations.
35106         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35107         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35108         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35111         Suggested by Paul Eggert.
35112
35113 2007-03-08  Bruno Haible  <bruno@clisp.org>
35114
35115         * modules/fseterr-tests: New file.
35116         * tests/test-fseterr.c: New file.
35117
35118         * modules/fseterr: New file.
35119         * lib/fseterr.h: New file.
35120         * lib/fseterr.c: New file.
35121
35122 2007-03-08  Bruno Haible  <bruno@clisp.org>
35123
35124         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35125         * lib/getopt_.h: Likewise.
35126         * lib/mbswidth.h: Likewise.
35127         * lib/setenv.h: Likewise.
35128         * lib/vasnprintf.h: Likewise.
35129         * lib/vasprintf.h: Likewise.
35130         * lib/verror.h: Likewise.
35131         * lib/xsetenv.h: Likewise.
35132         * lib/xvasprintf.h: Likewise.
35133
35134 2007-03-08  Jim Meyering  <jim@meyering.net>
35135
35136         * users.txt: Add parted.
35137
35138         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35139
35140 2007-03-07  Bruno Haible  <bruno@clisp.org>
35141
35142         * m4/printf.m4: Make the shell script snippets copy&pastable.
35143
35144 2007-03-02  Bruno Haible  <bruno@clisp.org>
35145
35146         * lib/netinet_in_.h: New file.
35147         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35148         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35149         * modules/netinet_in (Files): Add lib/netinet_in_.h.
35150         (Depends-on): Add absolute-header.
35151         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35152         into netinet/in.h.
35153
35154 2007-03-03  Bruno Haible  <bruno@clisp.org>
35155
35156         * lib/sys_select_.h: New file.
35157         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35158         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35159         * modules/sys_select (Files): Add lib/sys_select_.h.
35160         (Depends-on): Add absolute-header.
35161         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35162         into sys/select.h.
35163
35164 2007-03-02  Bruno Haible  <bruno@clisp.org>
35165
35166         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35167         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35168         values.
35169         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35170         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35171         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35172         * modules/sys_socket (Depends-on): Add absolute-header.
35173         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35174         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35175         (Include): Remove requirement of inclusion of <sys/types.h>.
35176
35177 2007-03-02  Bruno Haible  <bruno@clisp.org>
35178
35179         * lib/byteswap_.h (bswap_32): Fix formula.
35180
35181 2007-03-06  Bruno Haible  <bruno@clisp.org>
35182
35183         * modules/sprintf-posix-tests: New file.
35184         * tests/test-sprintf-posix.c: New file.
35185
35186         * modules/sprintf-posix: New file.
35187         * lib/sprintf.c: New file.
35188         * m4/sprintf-posix.m4: New file.
35189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35190         REPLACE_SPRINTF.
35191         * lib/stdio_.h (sprintf): New declaration.
35192         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35193         REPLACE_SPRINTF.
35194
35195 2007-03-06  Bruno Haible  <bruno@clisp.org>
35196
35197         * modules/vsprintf-posix-tests: New file.
35198         * tests/test-vsprintf-posix.c: New file.
35199         * tests/test-sprintf-posix.h: New file.
35200
35201         * modules/vsprintf-posix: New file.
35202         * lib/vsprintf.c: New file.
35203         * m4/vsprintf-posix.m4: New file.
35204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35205         REPLACE_VSPRINTF.
35206         * lib/stdio_.h (vsprintf): New declaration.
35207         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35208         REPLACE_VSPRINTF.
35209
35210 2007-03-06  Bruno Haible  <bruno@clisp.org>
35211
35212         * modules/vsnprintf (Depend-on): Remove minmax.
35213
35214 2007-03-06  Bruno Haible  <bruno@clisp.org>
35215
35216         * modules/snprintf-posix-tests: New file.
35217         * tests/test-snprintf-posix.c: New file.
35218
35219         * modules/snprintf-posix: New file.
35220         * m4/snprintf-posix.m4: New file.
35221         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35222         gl_FUNC_SNPRINTF.
35223         (gl_FUNC_SNPRINTF): Invoke it.
35224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35225         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35226         is set.
35227         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35228
35229 2007-03-06  Bruno Haible  <bruno@clisp.org>
35230
35231         * modules/vsnprintf-posix-tests: New file.
35232         * tests/test-vsnprintf-posix.c: New file.
35233         * tests/test-snprintf-posix.h: New file.
35234
35235         * modules/vsnprintf-posix: New file.
35236         * m4/vsnprintf-posix.m4: New file.
35237         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35238         gl_FUNC_VSNPRINTF.
35239         (gl_FUNC_VSNPRINTF): Invoke it.
35240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35241         * lib/stdio_.h (vsnprintf): Define as a replacement if
35242         REPLACE_VSNPRINTF is set.
35243         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35244
35245 2007-03-06  Bruno Haible  <bruno@clisp.org>
35246
35247         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35248         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35249
35250 2007-03-06  Bruno Haible  <bruno@clisp.org>
35251
35252         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35253         (asinl): Declare also if HAVE_DECL_ASINL is set.
35254         (atanl): Declare also if HAVE_DECL_ATANL is set.
35255         (ceill): Declare also if HAVE_DECL_CEILL is set.
35256         (cosl): Declare also if HAVE_DECL_COSL is set.
35257         (expl): Declare also if HAVE_DECL_EXPL is set.
35258         (floorl): Declare also if HAVE_DECL_FLOORL is set.
35259         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35260         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35261         (logl): Declare also if HAVE_DECL_LOGL is set.
35262         (sinl): Declare also if HAVE_DECL_SINL is set.
35263         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35264         (tanl): Declare also if HAVE_DECL_TANL is set.
35265         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35267         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35268         declaration of frexpl, ldexpl.
35269         * modules/printf-frexpl (Depends-on): Add math.
35270         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35271
35272 2007-03-05  Bruno Haible  <bruno@clisp.org>
35273
35274         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35275         frexpl and ldexpl are declared.
35276         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35277
35278 2007-03-05  Bruno Haible  <bruno@clisp.org>
35279
35280         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35281         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35282
35283 2007-03-05  Bruno Haible  <bruno@clisp.org>
35284
35285         * lib/stdio_.h: Include <stddef.h>.
35286
35287 2007-03-05  Bruno Haible  <bruno@clisp.org>
35288
35289         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35290
35291 2007-03-05  Bruno Haible  <bruno@clisp.org>
35292
35293         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
35294         NetBSD 4, from Ralf Wildenhues.
35295
35296 2007-03-04  Bruno Haible  <bruno@clisp.org>
35297
35298         * lib/vasprintf.h: Update #if logic for the case when the functions
35299         exist but are overridden.
35300
35301 2007-03-04  Bruno Haible  <bruno@clisp.org>
35302
35303         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
35304         implementations: glibc-2.4 and MacOS X 10.3.
35305         * tests/test-vasnprintf-posix.c (test_function): Test also the case
35306         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
35307         * tests/test-vasprintf-posix.c (test_function): Likewise.
35308
35309 2007-03-04  Bruno Haible  <bruno@clisp.org>
35310
35311         * modules/vasprintf-posix-tests: New file.
35312         * tests/test-vasprintf-posix.c: New file.
35313
35314         * modules/vasprintf-posix: New file.
35315         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
35316         defined.
35317         * m4/vasprintf-posix.m4: New file.
35318         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
35319         gl_FUNC_VASPRINTF.
35320         (gl_FUNC_VASPRINTF): Invoke it.
35321         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
35322         here.
35323         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
35324
35325 2007-03-04  Bruno Haible  <bruno@clisp.org>
35326
35327         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
35328         REPLACE_GETTIMEOFDAY.
35329         * modules/sys_time (Makefile.am): Likewise.
35330         * m4/sys_time_h.m4: Likewise.
35331         * m4/gettimeofday.m4: Likewise.
35332
35333 2007-03-04  Bruno Haible  <bruno@clisp.org>
35334
35335         * modules/vasnprintf-posix-tests: New file.
35336         * tests/test-vasnprintf-posix.c: New file.
35337
35338         * modules/vasnprintf-posix: New file.
35339         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
35340         printf-frexpl.h.
35341         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
35342         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
35343         REPLACE_VASNPRINTF is defined.
35344         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35345         gl_FUNC_VASNPRINTF.
35346         (gl_FUNC_VASNPRINTF): Invoke it.
35347         * m4/vasnprintf-posix.m4: New file.
35348         * m4/printf.m4: New file.
35349
35350 2007-03-04  Bruno Haible  <bruno@clisp.org>
35351
35352         Compile progreloc.c only if --enable-relocatable is specified.
35353         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
35354         if --enable-relocatable was specified.
35355         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
35356         lib_SOURCES.
35357
35358 2007-03-04  Jim Meyering  <jim@meyering.net>
35359
35360         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
35361         Use it consistently, rather than enumerating errno constants.
35362
35363 2007-03-04  Bruno Haible  <bruno@clisp.org>
35364
35365         * modules/xvasprintf-tests: New file.
35366         * tests/test-xvasprintf.c: New file.
35367
35368         * modules/vasprintf-tests: New file.
35369         * tests/test-vasprintf.c: New file.
35370
35371         * modules/vasnprintf-tests: New file.
35372         * tests/test-vasnprintf.c: New file.
35373
35374         * modules/vsnprintf-tests: New file.
35375         * tests/test-vsnprintf.c: New file.
35376
35377         * modules/snprintf-tests: New file.
35378         * tests/test-snprintf.c: New file.
35379
35380 2007-03-04  Bruno Haible  <bruno@clisp.org>
35381
35382         Compile relocatable.c only if --enable-relocatable is specified.
35383         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
35384         gl_RELOCATABLE_LIBRARY.
35385         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
35386         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
35387         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
35388         gl_RELOCATABLE_LIBRARY.
35389         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
35390         (Makefile.am): Remove lib_SOURCES.
35391         * modules/relocatable-lib-lgpl (configure.ac): Invoke
35392         gl_RELOCATABLE_LIBRARY.
35393         (Makefile.am): Remove lib_SOURCES.
35394         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
35395         always.
35396         * modules/relocatable-prog-wrapper (configure.ac): Invoke
35397         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
35398
35399 2007-03-04  Bruno Haible  <bruno@clisp.org>
35400
35401         * modules/argmatch-tests: New file.
35402         * tests/test-argmatch.c: New file.
35403
35404         * tests/test-allocsa.c (main): Halve the number of loop runs.
35405
35406         * modules/alloca-opt-tests: New file.
35407         * tests/test-alloca-opt.c: New file.
35408
35409 2007-03-04  Jim Meyering  <jim@meyering.net>
35410
35411         Work around difference between Linux ACLs and Solaris 10 ZFS.
35412         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
35413         for EINVAL.
35414
35415 2007-03-03  Bruno Haible  <bruno@clisp.org>
35416
35417         * modules/relocatable-prog (Depends-on): Add back progreloc's
35418         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
35419
35420 2007-03-03  Bruno Haible  <bruno@clisp.org>
35421
35422         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
35423         * modules/relocatable-lib: New file.
35424
35425 2007-03-03  Bruno Haible  <bruno@clisp.org>
35426
35427         * modules/relocatable-prog: Renamed from modules/relocatable.
35428         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
35429
35430 2007-03-03  Bruno Haible  <bruno@clisp.org>
35431
35432         * modules/relocatable-script (Files): Add doc/relocatable.texi,
35433         m4/relocatable-lib.m4.
35434         (Depends-on): Remove 'relocatable'.
35435         (configure.ac): Add gl_RELOCATABLE_NOP.
35436
35437 2007-03-03  Bruno Haible  <bruno@clisp.org>
35438
35439         * modules/relocatable-prog-wrapper: New file.
35440         * modules/relocatable (Depends-on): Add it. Remove all other
35441         dependencies except progname.
35442         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
35443
35444         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
35445         (gl_FUNC_STRERROR): Nop.
35446         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
35447
35448         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
35449         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
35450
35451         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
35452         (gl_FUNC_READLINK): Update.
35453
35454         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
35455
35456 2007-03-03  Bruno Haible  <bruno@clisp.org>
35457
35458         * lib/xreadlink.c: Include <unistd.h> unconditionally.
35459         * modules/xreadlink (Depends-on): Add unistd.
35460         * modules/xreadlink-with-size (Depends-on): Likewise.
35461
35462 2007-03-03  Bruno Haible  <bruno@clisp.org>
35463
35464         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
35465         extracted from gt_FUNC_SETENV.
35466         (gt_FUNC_SETENV): Remove macro.
35467         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
35468         remove gt_FUNC_SETENV.
35469
35470 2007-03-03  Bruno Haible  <bruno@clisp.org>
35471
35472         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
35473         ENABLE_RELOCATABLE here.
35474         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
35475
35476 2007-03-03  Bruno Haible  <bruno@clisp.org>
35477
35478         * modules/rbtreehash-list-tests (Depends-on): Add progname.
35479         * tests/test-rbtreehash_list.c: Include progname.h.
35480         (main): Call set_program_name.
35481
35482         * modules/rbtree-oset-tests (Depends-on): Add progname.
35483         * tests/test-rbtree_oset.c: Include progname.h.
35484         (main): Call set_program_name.
35485
35486         * modules/rbtree-list-tests (Depends-on): Add progname.
35487         * tests/test-rbtree_list.c: Include progname.h.
35488         (main): Call set_program_name.
35489
35490         * modules/linked-list-tests (Depends-on): Add progname.
35491         * tests/test-linked_list.c: Include progname.h.
35492         (main): Call set_program_name.
35493
35494 2007-03-03  Bruno Haible  <bruno@clisp.org>
35495
35496         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
35497         All uses of __restrict changed to _Restrict_.
35498         * lib/glob_.h (__restrict): Remove macro.
35499
35500 2007-03-02  Bruno Haible  <bruno@clisp.org>
35501
35502         * modules/gettext (configure.ac): Require gettext infrastructure
35503         from version 0.16.1.
35504
35505 2007-03-02  Bruno Haible  <bruno@clisp.org>
35506
35507         * modules/linkedhash-list-tests (Depends-on): Add progname.
35508         * tests/test-linkedhash_list.c: Include progname.h.
35509         (main): Call set_program_name.
35510
35511         * modules/carray-list-tests (Depends-on): Add progname.
35512         * tests/test-carray_list.c: Include progname.h.
35513         (main): Call set_program_name.
35514
35515         * modules/avltreehash-list-tests (Depends-on): Add progname.
35516         * tests/test-avltreehash_list.c: Include progname.h.
35517         (main): Call set_program_name.
35518
35519         * modules/avltree-oset-tests (Depends-on): Add progname.
35520         * tests/test-avltree_oset.c: Include progname.h.
35521         (main): Call set_program_name.
35522
35523         * modules/avltree-list-tests (Depends-on): Add progname.
35524         * tests/test-avltree_list.c: Include progname.h.
35525         (main): Call set_program_name.
35526
35527         * modules/array-oset-tests (Depends-on): Add progname.
35528         * tests/test-array_oset.c: Include progname.h.
35529         (main): Call set_program_name.
35530
35531         * modules/array-list-tests (Depends-on): Add progname.
35532         * tests/test-array_list.c: Include progname.h.
35533         (main): Call set_program_name.
35534
35535         * modules/argp-tests (Depends-on): Add progname.
35536         * tests/test-argp.c: Include argp.h first. Include progname.h.
35537         (main): Call set_program_name.
35538
35539 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
35540
35541         * doc/gnulib-tool.texi (Initial import): Reword description of
35542         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
35543         limited effect even if defined after the first system include.
35544
35545 2007-03-01  Bruno Haible  <bruno@clisp.org>
35546
35547         * build-aux/config.libpath: Update to libtool-1.5.22.
35548         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35549
35550 2007-03-01  Bruno Haible  <bruno@clisp.org>
35551
35552         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
35553         foo_CFLAGS.
35554         Reported by Ralf Wildenhues.
35555
35556 2007-03-01  Bruno Haible  <bruno@clisp.org>
35557
35558         * build-aux/install-reloc: Remove object files left over by some
35559         compilers.
35560         Reported by Ralf Wildenhues.
35561
35562 2007-03-01  Bruno Haible  <bruno@clisp.org>
35563
35564         * build-aux/install-reloc: Break long lines.
35565
35566 2007-03-01  Bruno Haible  <bruno@clisp.org>
35567
35568         * doc/relocatable.texi: Document that it may not work on OpenBSD.
35569         Reported by Ralf Wildenhues.
35570
35571 2007-03-01  Bruno Haible  <bruno@clisp.org>
35572
35573         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
35574         include ordering constraints.
35575
35576 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35577
35578         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
35579         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
35580         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
35581         as another example.
35582         * lib/time_.h: Fix misspelling.
35583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35584         Require gl_HEADER_TIME_H_DEFAULTS.
35585         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
35586         * m4/time_r.m4 (gl_TIME_R): Likewise.
35587         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
35588
35589 2007-03-01  Bruno Haible  <bruno@clisp.org>
35590
35591         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
35592         * m4/utimens.m4 (gl_UTIMENS): Likewise.
35593
35594 2007-03-01  Jim Meyering  <jim@meyering.net>
35595
35596         * modules/xreadlink (Maintainer): Add my name.
35597         * modules/xreadlink-with-size (Depends-on): Alphabetize.
35598
35599 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
35600             Bruno Haible  <bruno@clisp.org>
35601
35602         * build-aux/install-reloc: Compile also c-ctype.c.
35603         * build-aux/relocatable.sh.in: New file.
35604         * doc/relocatable.texi: New file.
35605         * doc/relocatable-maint.texi: New file.
35606         * doc/gnulib.texi: Include relocatable-maint.texi.
35607         * lib/progreloc.c: Include unistd.h unconditionally.
35608         * lib/relocwrapper.c: Include unistd.h unconditionally.
35609         Include c-ctype.h.
35610         (add_dotbin): Use c_tolower.
35611         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
35612         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
35613         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
35614         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
35615         to m4/relocatable-lib.m4.
35616         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
35617         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
35618         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
35619         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
35620         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
35621         * modules/relocatable: New file.
35622         * modules/relocatable-lib: New file.
35623         * modules/relocatable-script: New file.
35624
35625 2007-02-28  Bruno Haible  <bruno@clisp.org>
35626
35627         Import --enable-relocatable infrastructure.
35628         * build-aux/config.libpath: New file, from GNU gettext.
35629         * build-aux/install-reloc: New file, from GNU gettext.
35630         * build-aux/reloc-ldflags: New file, from GNU gettext.
35631         * lib/relocatable.h: New file, from GNU gettext.
35632         * lib/relocatable.c: New file, from GNU gettext.
35633         * lib/relocwrapper.c: New file, from GNU gettext.
35634         * m4/relocatable.m4: New file, from GNU gettext.
35635
35636 2007-02-28  Bruno Haible  <bruno@clisp.org>
35637
35638         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
35639
35640         * modules/xreadlink: New file, from GNU gettext with modifications.
35641         * lib/xreadlink.c: New file, from GNU gettext.
35642         * lib/xreadlink.h: Add comments.
35643         (xreadlink): New declaration.
35644
35645         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
35646         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
35647         lib/xreadlink-with-size.c.
35648         (configure.ac): Remove gl_XREADLINK invocation.
35649         (Makefile.am): Augment lib_SOURCES.
35650         * m4/xreadlink.m4: Remove file.
35651         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
35652         (xreadlink_with_size): Renamed from xreadink.
35653         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
35654         * modules/canonicalize (Depends-on): Replace xreadlink with
35655         xreadlink-with-size.
35656         * lib/canonicalize.c (canonicalize_filename_mode): Update.
35657
35658 2007-02-25  Jim Meyering  <jim@meyering.net>
35659
35660         * build-aux/announce-gen: When complaining about excess arguments,
35661         list them.
35662
35663 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35664
35665         * README: Document signed integer overflow situation more
35666         accurately.
35667
35668 2007-02-25  Bruno Haible  <bruno@clisp.org>
35669
35670         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
35671         'a' or 'A' conversion.
35672
35673 2007-02-25  Bruno Haible  <bruno@clisp.org>
35674
35675         * modules/filename: Renamed from modules/pathname.
35676         (Files): Replace lib/pathname.h with lib/filename.h. Replace
35677         lib/concatpath.c with lib/concat-filename.c.
35678         (Makefile.am): Update.
35679         (Include): Replace pathname.h with filename.h.
35680         * lib/filename.h: Renamed from lib/pathname.h.
35681         (concatenated_filename): Renamed from concatenated_pathname.
35682         * lib/concat-filename.c: Renamed from lib/concatpath.c.
35683         (concatenated_filename): Renamed from concatenated_pathname.
35684         * lib/findprog.c: Include filename.h instead of pathname.h.
35685         (find_in_path): Update.
35686         * lib/javacomp.c: Include filename.h instead of pathname.h.
35687         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35688         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35689         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35690         is_oldgcj_14_13_usable, is_javac_usable): Update.
35691         * lib/javaexec.c: Include filename.h instead of pathname.h.
35692         (execute_java_class): Update.
35693         * modules/findprog: Update.
35694         * modules/javacomp: Update.
35695         * modules/javaexec: Update.
35696         * MODULES.html.sh (File system functions): Add 'filename', remove
35697         'pathname'.
35698
35699 2007-02-25  Bruno Haible  <bruno@clisp.org>
35700
35701         * modules/printf-frexpl-tests: New file.
35702         * tests/test-printf-frexpl.c: New file.
35703
35704         * modules/printf-frexpl: New file.
35705         * lib/printf-frexpl.h: New file.
35706         * lib/printf-frexpl.c: New file.
35707         * m4/printf-frexpl.m4: New file.
35708
35709 2007-02-25  Bruno Haible  <bruno@clisp.org>
35710
35711         * modules/printf-frexp-tests: New file.
35712         * tests/test-printf-frexp.c: New file.
35713
35714         * modules/printf-frexp: New file.
35715         * lib/printf-frexp.h: New file.
35716         * lib/printf-frexp.c: New file.
35717         * m4/printf-frexp.m4: New file.
35718
35719 2007-02-25  Bruno Haible  <bruno@clisp.org>
35720
35721         Assume automake >= 1.10 for the tests.
35722         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
35723         * modules/arctwo-tests: Likewise.
35724         * modules/argp-tests: Likewise.
35725         * modules/avltree-list-tests: Likewise.
35726         * modules/avltree-oset-tests: Likewise.
35727         * modules/avltreehash-list-tests: Likewise.
35728         * modules/carray-list-tests: Likewise.
35729         * modules/crc-tests: Likewise.
35730         * modules/des-tests: Likewise.
35731         * modules/gc-arcfour-tests: Likewise.
35732         * modules/gc-arctwo-tests: Likewise.
35733         * modules/gc-des-tests: Likewise.
35734         * modules/gc-hmac-md5-tests: Likewise.
35735         * modules/gc-hmac-sha1-tests: Likewise.
35736         * modules/gc-md2-tests: Likewise.
35737         * modules/gc-md4-tests: Likewise.
35738         * modules/gc-md5-tests: Likewise.
35739         * modules/gc-pbkdf2-sha1-tests: Likewise.
35740         * modules/gc-rijndael-tests: Likewise.
35741         * modules/gc-sha1-tests: Likewise.
35742         * modules/gc-tests: Likewise.
35743         * modules/getaddrinfo-tests: Likewise.
35744         * modules/hmac-md5-tests: Likewise.
35745         * modules/hmac-sha1-tests: Likewise.
35746         * modules/linked-list-tests: Likewise.
35747         * modules/linkedhash-list-tests: Likewise.
35748         * modules/lock-tests: Likewise.
35749         * modules/md2-tests: Likewise.
35750         * modules/md4-tests: Likewise.
35751         * modules/md5-tests: Likewise.
35752         * modules/rbtree-list-tests: Likewise.
35753         * modules/rbtree-oset-tests: Likewise.
35754         * modules/rbtreehash-list-tests: Likewise.
35755         * modules/read-file-tests: Likewise.
35756         * modules/rijndael-tests: Likewise.
35757         * modules/stdint-tests: Likewise.
35758         * modules/tls-tests: Likewise.
35759
35760 2007-02-24  Bruno Haible  <bruno@clisp.org>
35761
35762         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
35763         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
35764         function; instead check whether isnan with a double argument links.
35765         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
35766         function; instead check whether isnan with a 'long double' argument
35767         links.
35768         Reported by Eric Blake <ebb9@byu.net>.
35769
35770 2007-02-24  Bruno Haible  <bruno@clisp.org>
35771
35772         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
35773         defined.
35774         * lib/isnanl.c: Remove all code. Just include isnan.c.
35775         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
35776
35777 2007-02-25  Jim Meyering  <jim@meyering.net>
35778
35779         Avoid conflicting types for 'unsetenv' on FreeBSD.
35780         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
35781         conflicting with FreeBSD's (5.0 and 6.1) function declaration
35782         in stdlib.h.
35783
35784 2007-02-24  Bruno Haible  <bruno@clisp.org>
35785
35786         * modules/isnanl-nolibm-tests: New file.
35787         * tests/test-isnanl.c: New file.
35788
35789         * modules/isnanl-nolibm: New file.
35790         * lib/isnanl.h: New file.
35791         * lib/isnanl.c: New file.
35792         * m4/isnanl.m4: New file.
35793
35794 2007-02-24  Bruno Haible  <bruno@clisp.org>
35795
35796         * modules/isnan-nolibm-tests: New file.
35797         * tests/test-isnan.c: New file.
35798
35799         * modules/isnan-nolibm: New file.
35800         * lib/isnan.h: New file.
35801         * lib/isnan.c: New file.
35802         * m4/isnan.m4: New file.
35803
35804 2007-02-24  Bruno Haible  <bruno@clisp.org>
35805
35806         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
35807         assume that an exponent fits in 20 bits.
35808
35809 2007-02-24  Jim Meyering  <jim@meyering.net>
35810
35811         * m4/regex.m4: Update the description of the configure-time option,
35812         --without-included-regex, to state accurately what the defaults are,
35813         and perhaps to give people an idea why using this option is risky.
35814
35815 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
35816
35817         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
35818         loops on small arguments.  This attempts to avoid the problem
35819         Bruno Haible reported for AIX 4.3.2 in
35820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
35821
35822 2007-02-23  Bruno Haible  <bruno@clisp.org>
35823
35824         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
35825         Needed for help2man.
35826
35827 2007-02-23  Karl Berry  <karl@gnu.org>
35828
35829         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
35830         exists, foo.h should be cvs-ignored, not committed.
35831
35832 2007-02-23  Eric Blake  <ebb9@byu.net>
35833
35834         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
35835         * lib/stat-time.h (includes): Likewise.
35836         * lib/utimecmp.c (includes): Likewise.
35837         * lib/utimens.h (includes): Likewise.
35838         * lib/getdate.y (includes): Also include "timespec.h" for use
35839         internal to the module.
35840         * modules/utimens (Depends-on): Revert yesterday's patch.
35841         * modules/nanosleep (Depends-on): Add missing dependency.
35842
35843 2007-02-22  Bruno Haible  <bruno@clisp.org>
35844
35845         * lib/glob.c: Don't include getlogin_r.h.
35846
35847 2007-02-22  Jim Meyering  <jim@meyering.net>
35848
35849         * modules/utimens (Depends-on): Add timespec, required for
35850         utimens.h's inclusion of timespec.h.
35851
35852 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35853
35854         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
35855         long unreadable paths in GNU/Linux.  Problem reported by Andreas
35856         Schwab in
35857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
35858         I'll try to think of a better way to fix the Solaris problem.
35859
35860         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
35861         like glibc; on Solaris 10, it fails with errno == EINVAL.
35862         POSIX says the behavior is unspecified if the first argument is NULL,
35863         so play it safe and never pass NULL to the system getcwd.
35864
35865 2007-02-21  Jim Meyering  <jim@meyering.net>
35866
35867         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
35868         of gettimeofday.  It would conflict with the one now always
35869         provided via sys_time_.h.  Reported by Matthew Woehlke, as
35870         an IRIX 6.5 build failure.
35871
35872 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35873
35874         Minor fixups to port to Solaris 10 with Sun C 5.8.
35875         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
35876         * modules/getcwd (Depends-on): Add dirfd.
35877         * lib/putenv.c (putenv): #undef it.
35878         (rpl_putenv): New decl.
35879         (malloc, free): Include <stdlib.h> rather than prototyping separately.
35880
35881 2007-02-20  Bruno Haible  <bruno@clisp.org>
35882
35883         * modules/stdio-tests: New file.
35884         * tests/test-stdio.c: New file.
35885
35886         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
35887         (Depends-on): Add stdio.
35888         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35889         (Include): Use <stdio.h> instead of vsnprintf.h.
35890         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
35891         HAVE_DECL_VSNPRINTF.
35892         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
35893
35894         * modules/snprintf (Files): Remove lib/snprintf.h.
35895         (Depends-on): Add stdio.
35896         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35897         (Include): Use <stdio.h> instead of snprintf.h.
35898         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
35899         HAVE_DECL_SNPRINTF.
35900         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
35901         * lib/getaddrinfo.c: Likewise.
35902
35903         * modules/stdio: New file.
35904         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
35905         * lib/snprintf.h: Remove file.
35906         * lib/vsnprintf.h: Remove file.
35907         * lib/.cppi-disable: Remove snprintf.h.
35908         * m4/stdio_h.m4: New file.
35909         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
35910
35911 2007-02-20  Jim Meyering  <jim@meyering.net>
35912
35913         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
35914         used by e.g., mingw.  From Bruno Haible.
35915
35916 2007-02-19  Bruno Haible  <bruno@clisp.org>
35917
35918         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
35919         warnings.
35920         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35921
35922 2007-02-19  Bruno Haible  <bruno@clisp.org>
35923
35924         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
35925         from mingw users.
35926
35927 2007-02-19  Bruno Haible  <bruno@clisp.org>
35928
35929         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
35930         warnings.
35931         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
35932
35933 2007-02-19  Jim Meyering  <jim@meyering.net>
35934
35935         Don't use FD after a successful "fdopendir (fd)".
35936         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
35937         Reset it by calling dirfd on the just-obtained DIR*.
35938
35939         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
35940         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
35941
35942 2007-02-18  Bruno Haible  <bruno@clisp.org>
35943
35944         * lib/readlink.c: Include <unistd.h>.
35945         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
35946         HAVE_READLINK.
35947         * modules/readlink (Depends-on): Add unistd.
35948         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35949         (Include): Add <unistd.h>.
35950
35951         * lib/getlogin_r.h: Remove file.
35952         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
35953         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
35954         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
35955         HAVE_DECL_GETLOGIN_R.
35956         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
35957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35958         (Include): Use <unistd.h> instead of getlogin_r.h.
35959
35960         * lib/getcwd.h: Remove file.
35961         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
35962         * lib/xgetcwd.c: Likewise.
35963         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
35964         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
35965         * modules/getcwd (Files): Remove lib/getcwd.h.
35966         (Depends-on): Add unistd.
35967         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35968         (Include): Use <unistd.h> instad of getcwd.h.
35969
35970         * lib/ftruncate.c: Include <unistd.h> first.
35971         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
35972         Set HAVE_FTRUNCATE.
35973         * modules/ftruncate (Depends-on): Add unistd.
35974         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35975
35976         * lib/fchdir.c: Include <unistd.h> first.
35977         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
35978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
35979         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
35980         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35981         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
35982
35983         * lib/dup2.c: Include <unistd.h> first.
35984         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
35985         HAVE_DUP2.
35986         * modules/dup2 (Depends-on): Add unistd.
35987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35988
35989         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
35990         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
35991         REPLACE_CHOWN. Don't define chown as a macro here.
35992         * modules/chown (Depends-on): Add unistd.
35993         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35994
35995         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
35996         Add definition for GL_LINK_WARNING.
35997         (chown, dup2): New declarations.
35998         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
35999         link warning.
36000         (ftruncate): New declaration.
36001         (getcwd): New declaration, taken from old getcwd.h.
36002         (getlogin_r): New declaration, taken from old getlogin_r.h.
36003         (readlink): New declaration.
36004         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36005         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36006         (gl_PREREQ_UNISTD): Remove macro.
36007         (gl_UNISTD_MODULE_INDICATOR): New macro.
36008         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36009         many new variables. Don't set UNISTD_H.
36010         * modules/unistd (Description): Change.
36011         (Depends-on): Add link-warning.
36012         (configure.ac): Update.
36013         (Makefile.am): Create unistd.h always. Substitute many new variables
36014         into it.
36015
36016 2007-02-18  Bruno Haible  <bruno@clisp.org>
36017
36018         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36019         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36020         HAVE_GETSUBOPT.
36021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36022         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36023         * lib/getsubopt.h: Remove file.
36024         * modules/getsubopt (Files): Remove lib/getsubopt.h.
36025         (Depends-on): Add stdlib.
36026         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36027         (Includes): Use <stdlib.h> instead of getsubopt.h.
36028         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36029         Set HAVE_GETSUBOPT.
36030         * lib/getsubopt.c: Don't include getsubopt.h.
36031
36032 2007-02-18  Bruno Haible  <bruno@clisp.org>
36033
36034         * modules/fchdir (Depends-on): Add dup2.
36035
36036 2007-02-18  Bruno Haible  <bruno@clisp.org>
36037
36038         * lib/stdlib_.h: Handle glibc's special invocation convention
36039         specially.
36040
36041 2007-02-18  Bruno Haible  <bruno@clisp.org>
36042
36043         * modules/stdlib-tests: New file.
36044         * tests/test-stdlib.c: New file.
36045
36046         * modules/mkstemp (Files): Remove lib/mkstemp.h.
36047         (Depends-on): Add stdlib.
36048         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36049         (Includes): Use <stdlib.h> instead of mkstemp.h.
36050         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36051         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36052         * lib/mkstemp.c: Don't include mkstemp.h.
36053         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36054         * lib/stdlib--.h: Don't include mkstemp.h.
36055
36056         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36057         (Depends-on): Add stdlib.
36058         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36059         (Includes): Use <stdlib.h> instead of mkdtemp.h.
36060         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36061         HAVE_MKDTEMP.
36062         * lib/mkdtemp.c: Don't include mkdtemp.h.
36063         * lib/clean-temp.c: Don't include mkdtemp.h.
36064
36065         * modules/exit (Files): Remove lib/exit.h.
36066         (Depends-on): Add stdlib.
36067         (Makefile.am): Remove lib_SOURCES.
36068         (Include): Use <stdlib.h> instead of exit.h.
36069         * lib/argmatch.c: Don't include exit.h.
36070         * lib/execute.c: Likewise.
36071         * lib/pagealign_alloc.c: Likewise.
36072         * lib/pipe.c: Likewise.
36073         * lib/wait-process.c: Likewise.
36074         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36075         * lib/exitfail.c: Likewise.
36076         * lib/savewd.c: Likewise.
36077         * lib/xsetenv.c: Likewise.
36078
36079         * modules/stdlib: New file.
36080         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36081         and extra comments about mkstemp().
36082         * lib/exit.h: Remove file.
36083         * lib/mkdtemp.h: Remove file.
36084         * lib/mkstemp.h: Remove file.
36085         * m4/stdlib_h.m4: New file.
36086         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36087
36088 2007-02-18  Bruno Haible  <bruno@clisp.org>
36089
36090         * modules/math-tests: New file.
36091         * tests/test-math.c: New file.
36092
36093         * modules/math: New file.
36094         * modules/mathl (Files): Remove lib/mathl.h.
36095         (Depends-on): Add math.
36096         (Makefile.am): Don't mention mathl.h.
36097         (Include): Use <math.h> instead of mathl.h.
36098         * lib/math_.h: New file.
36099         * lib/mathl.h: Remove file.
36100         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36101         mathl.h.
36102         * lib/asinl.c: Likewise.
36103         * lib/atanl.c: Likewise.
36104         * lib/ceill.c: Likewise.
36105         * lib/cosl.c: Likewise.
36106         * lib/expl.c: Likewise.
36107         * lib/floorl.c: Likewise.
36108         * lib/frexpl.c: Likewise.
36109         * lib/ldexpl.c: Likewise.
36110         * lib/logl.c: Likewise.
36111         * lib/sincosl.c: Likewise.
36112         * lib/sinl.c: Likewise.
36113         * lib/sqrtl.c: Likewise.
36114         * lib/tanl.c: Likewise.
36115         * lib/trigl.c: Likewise.
36116         * m4/math_h.m4: New file.
36117         * MODULES.html.sh (Mathematics): Add math.
36118
36119 2007-02-17  Bruno Haible  <bruno@clisp.org>
36120
36121         * modules/wctype-tests: New file.
36122         * tests/test-wctype.c: New file.
36123
36124         * modules/wchar-tests: New file.
36125         * tests/test-wchar.c: New file.
36126
36127         * modules/unistd-tests: New file.
36128         * tests/test-unistd.c: New file.
36129
36130         * modules/time-tests: New file.
36131         * tests/test-time.c: New file.
36132
36133         * modules/sysexits-tests: New file.
36134         * tests/test-sysexits.c: New file.
36135
36136         * modules/sys_time-tests: New file.
36137         * tests/test-sys_time.c: New file.
36138
36139         * modules/sys_stat-tests: New file.
36140         * tests/test-sys_stat.c: New file.
36141
36142         * modules/sys_socket-tests: New file.
36143         * tests/test-sys_socket.c: New file.
36144
36145         * modules/sys_select-tests: New file.
36146         * tests/test-sys_select.c: New file.
36147
36148         * modules/string-tests: New file.
36149         * tests/test-string.c: New file.
36150
36151         * modules/stdbool-tests: New file.
36152         * tests/test-stdbool.c: New file.
36153
36154         * modules/netinet_in-tests: New file.
36155         * tests/test-netinet_in.c: New file.
36156
36157         * modules/inttypes-tests: New file.
36158         * tests/test-inttypes.c: New file.
36159
36160         * modules/fcntl-tests: New file.
36161         * tests/test-fcntl.c: New file.
36162
36163         * modules/byteswap-tests: New file.
36164         * tests/test-byteswap.c: New file.
36165
36166         * modules/arpa_inet-tests: New file.
36167         * tests/test-arpa_inet.c: New file.
36168
36169 2007-02-17  Bruno Haible  <bruno@clisp.org>
36170
36171         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36172         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36173         if the corresponding module is not enabled. Emit link warnings if
36174         the function is used nevertheless.
36175         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36176         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36177         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36178         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36179         * modules/inttypes (Depends-on): Add link-warning.
36180         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36181         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36182         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36183         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36184         * modules/imaxdiv (configure.ac): Likewise.
36185         * modules/strtoimax (configure.ac): Likewise.
36186         * modules/strtoumax (configure.ac): Likewise.
36187
36188 2007-02-17  Bruno Haible  <bruno@clisp.org>
36189
36190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36191         gl_STRING_MODULE_INDICATOR_DEFAULTS.
36192         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36193         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36194
36195 2007-02-17  Bruno Haible  <bruno@clisp.org>
36196
36197         * modules/link-warning: New file.
36198         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36199         * lib/string_.h (GL_LINK_WARNING): Remove definition.
36200         * modules/string (Depends-on): Add link-warning.
36201         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36202         string.h.
36203         * MODULES.html.sh (Support for building libraries and executables): Add
36204         link-warning.
36205
36206 2007-02-17  Bruno Haible  <bruno@clisp.org>
36207
36208         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36209         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36210         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36211         long lines.
36212
36213 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
36214             Bruno Haible  <bruno@clisp.org>
36215
36216         * modules/tmpfile: New file.
36217         * lib/tmpfile.c: New file.
36218         * m4/tmpfile.m4: New file.
36219         * MODULES.html.sh (func_all_modules): New section "Input/output".
36220
36221 2007-02-15  Bruno Haible  <bruno@clisp.org>
36222
36223         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36224         (supports_delete_on_close): New function.
36225         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36226
36227 2007-02-14  Bruno Haible  <bruno@clisp.org>
36228
36229         * modules/mbspcasecmp-tests: New file.
36230         * tests/test-mbspcasecmp.sh: New file.
36231         * tests/test-mbspcasecmp.c: New file.
36232
36233         New module mbspcasecmp.
36234         * modules/mbspcasecmp: New file.
36235         * lib/mbspcasecmp.c: New file.
36236         * lib/string_.h (strncasecmp): Change warning message.
36237         (mbspcasecmp): New declaration.
36238         * m4/mbspcasecmp.m4: New file.
36239         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36240         GNULIB_MBSPCASECMP.
36241         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36242         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36243
36244 2007-02-14  Bruno Haible  <bruno@clisp.org>
36245
36246         * modules/mbsncasecmp-tests: New file.
36247         * tests/test-mbsncasecmp.sh: New file.
36248         * tests/test-mbsncasecmp.c: New file.
36249
36250         New module mbsncasecmp.
36251         * modules/mbsncasecmp: New file.
36252         * lib/mbsncasecmp.c: New file.
36253         * lib/string_.h (mbsncasecmp): New declaration.
36254         * m4/mbsncasecmp.m4: New file.
36255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36256         GNULIB_MBSNCASECMP.
36257         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36258         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36259
36260 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36261
36262         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36263         Verify that it doesn't overlap with our flags.
36264         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36265         do not have the desired effect in multibyte locales; instead, use
36266         mbscasecmp.
36267         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36268         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
36269         we don't require GNU fnmatch ourselves (if our users require it, they
36270         should do so explicitly).
36271
36272         Fix regex code so it doesn't rely on strcasecmp.
36273         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36274         Otherwise, include gnulib's langinfo.h.
36275         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36276         undesirable behavior in non-C locales.  Instead, rely on localecharset.
36277         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36278         * modules/regex (FILES): Remove m4/codeset.m4.
36279         (Depends-on): Add localcharset.  Remove strcase.
36280
36281 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36282
36283         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36284         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36285
36286 2007-02-13  Bruno Haible  <bruno@clisp.org>
36287
36288         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36289         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36290
36291 2007-02-12  Bruno Haible  <bruno@clisp.org>
36292
36293         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36294         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
36295         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
36296         time warning rather than a link error.
36297
36298 2007-02-12  Bruno Haible  <bruno@clisp.org>
36299
36300         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
36301         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36303
36304 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36305
36306         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
36307         args, not 2.
36308
36309 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36310
36311         New module 'time', so that apps can include <time.h> as per
36312         POSIX and GNU instead of separate include files like time_r.h
36313         and timegm.h.  This implementation tries out a simpler approach
36314         for replacing decls in standard include files (as compared to
36315         the string module), somewhat as an experiment.
36316
36317         * config/srclist.txt: Comment out mktime.c for now.
36318         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
36319         since it doesn't apply any more.  Use generic wording instead.
36320         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
36321         'time'.
36322         * lib/time_.h, m4/time_h.m4, modules/time: New files.
36323         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
36324         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
36325         Don't include <sys/types.h>; no longer needed since we assume C89.
36326         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
36327         * lib/strftime.c: Likewise.
36328         * lib/time_r.c: Likewise.
36329         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
36330         * lib/nanosleep.c: Include <time.h> first, to check interface.
36331         * lib/strptime.c: Likewise.
36332         * lib/time_r.c: Likewise.
36333         * lib/timegm.c: Likewise.
36334         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
36335         needed.
36336         * lib/timegm.c: Don't include timegm.h; no longer needed.
36337         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
36338         time.h now handles any problems in that area.
36339         (struct timespec, nanosleep): Remove; time.h now arranges for these.
36340         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
36341         that time.h defines struct timespec.
36342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
36343         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
36344         handles that.
36345         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
36346         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
36347         needed.  Set REPLACE_LOCALTIME.
36348         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
36349         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
36350         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
36351         nanosleep; time_h.m4 now does that.  Don't require
36352         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
36353         module handles this now.
36354         * modules/getdate (Depends-on): Remove timespec.  Add time.
36355         * modules/nanosleep (Depends-on): Likewise.
36356         * modules/stat-time (Depends-on): Likewise.
36357         * modules/nanosleep (Include): Include time.h, not timespec.h.
36358         * modules/strptime (Files): Remove lib/strptime.h.
36359         (Depends-on): Add extensions, time.
36360         (Include): Include time.h, not strptime.h.
36361         * modules/time_r (Files): Remove lib/time_r.h.
36362         (Depends-on): Add time.
36363         (Include): Include time.h, not time_r.h.
36364         * modules/timegm: Likewise.
36365         * modules/timespec (Description): Now does timespec-related decls
36366         of our own, instead of struct timespec itself.
36367         (Depends-on): Add time; remove extensions.
36368         (Maintainer): Add self.
36369         * modules/utimecmp (Depends-on): Add time; remove timespec.
36370         * modules/utimens (Depends-on): Likewise.
36371         * modules/xnanosleep (Depends-on): Likewise.
36372
36373 2007-02-11  Bruno Haible  <bruno@clisp.org>
36374
36375         * lib/c-strstr.c: Include allocsa.h.
36376         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36377         * lib/c-strcasestr.c: Include allocsa.h.
36378         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36379         * lib/strcasestr.c: Include allocsa.h.
36380         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36381         * lib/mbsstr.c: Include allocsa.h.
36382         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36383         allocsa/freesa instead of malloc/free.
36384         * lib/mbscasestr.c: Include allocsa.h.
36385         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36386         allocsa/freesa instead of malloc/free.
36387         * modules/c-strstr (Depends-on): Add allocsa.
36388         * modules/c-strcasestr (Depends-on): Likewise.
36389         * modules/strcasestr (Depends-on): Likewise.
36390         * modules/mbsstr (Depends-on): Likewise.
36391         * modules/mbscasestr (Depends-on): Likewise.
36392
36393 2007-02-11  Bruno Haible  <bruno@clisp.org>
36394
36395         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
36396
36397         * modules/mbsspn-tests: New file.
36398         * tests/test-mbsspn.sh: New file.
36399         * tests/test-mbsspn.c: New file.
36400
36401 2007-02-11  Bruno Haible  <bruno@clisp.org>
36402
36403         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
36404
36405         * modules/mbspbrk-tests: New file.
36406         * tests/test-mbspbrk.sh: New file.
36407         * tests/test-mbspbrk.c: New file.
36408
36409 2007-02-11  Bruno Haible  <bruno@clisp.org>
36410
36411         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
36412         unneeded cast.
36413
36414         * modules/mbscspn-tests: New file.
36415         * tests/test-mbscspn.sh: New file.
36416         * tests/test-mbscspn.c: New file.
36417
36418 2007-02-11  Bruno Haible  <bruno@clisp.org>
36419
36420         * modules/mbscasecmp-tests: New file.
36421         * tests/test-mbscasecmp.sh: New file.
36422         * tests/test-mbscasecmp.c: New file.
36423
36424 2007-02-11  Bruno Haible  <bruno@clisp.org>
36425
36426         Ensure O(n) worst-case complexity of mbscasestr.
36427         * lib/mbscasestr.c: Include stdbool.h.
36428         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36429         functions.
36430         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
36431         the bookkeeping indicates that it's worth it.
36432         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
36433
36434         * modules/mbscasestr-tests: New file.
36435         * tests/test-mbscasestr1.c: New file.
36436         * tests/test-mbscasestr2.sh: New file.
36437         * tests/test-mbscasestr2.c: New file.
36438         * tests/test-mbscasestr3.sh: New file.
36439         * tests/test-mbscasestr3.c: New file.
36440         * tests/test-mbscasestr4.sh: New file.
36441         * tests/test-mbscasestr4.c: New file.
36442         * m4/locale-tr.m4: New file.
36443
36444 2007-02-11  Bruno Haible  <bruno@clisp.org>
36445
36446         Ensure O(n) worst-case complexity of mbsstr.
36447         * lib/mbsstr.c: Include stdbool.h.
36448         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36449         functions.
36450         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
36451         bookkeeping indicates that it's worth it.
36452         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
36453
36454         * modules/mbsstr-tests: New file.
36455         * tests/test-mbsstr1.c: New file.
36456         * tests/test-mbsstr2.sh: New file.
36457         * tests/test-mbsstr2.c: New file.
36458         * tests/test-mbsstr3.sh: New file.
36459         * tests/test-mbsstr3.c: New file.
36460         * m4/locale-fr.m4: New file.
36461
36462 2007-02-11  Bruno Haible  <bruno@clisp.org>
36463
36464         * lib/mbsrchr.c (mbsrchr): Fix bug.
36465
36466         * modules/mbsrchr-tests: New file.
36467         * tests/test-mbsrchr.sh: New file.
36468         * tests/test-mbsrchr.c: New file.
36469
36470 2007-02-11  Bruno Haible  <bruno@clisp.org>
36471
36472         * lib/mbschr.c (mbschr): Fix bug.
36473
36474         * modules/mbschr-tests: New file.
36475         * tests/test-mbschr.sh: New file.
36476         * tests/test-mbschr.c: New file.
36477         * m4/locale-zh.m4: New file.
36478
36479 2007-02-11  Bruno Haible  <bruno@clisp.org>
36480
36481         Support for copying multibyte string iterators.
36482         * lib/mbiter.h: Include <string.h>.
36483         (mbiter_multi_copy): New function.
36484         (mbi_copy): New macro.
36485         * lib/mbuiter.h: Include <string.h>.
36486         (mbuiter_multi_copy): New function.
36487         (mbui_copy): New macro.
36488
36489 2007-02-11  Bruno Haible  <bruno@clisp.org>
36490
36491         New module mbslen.
36492         * modules/mbslen: New file.
36493         * lib/mbslen.c: New file.
36494         * lib/string_.h (mbslen): New declaration.
36495         * m4/mbslen.m4: New file.
36496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36497         GNULIB_MBSLEN.
36498         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
36499         * MODULES.html.sh (Internationalization functions): Add mbslen.
36500
36501 2007-02-11  Bruno Haible  <bruno@clisp.org>
36502
36503         Ensure O(n) worst-case complexity of strcasestr substitute.
36504         * lib/strcasestr.c: Include stdbool.h.
36505         (knuth_morris_pratt): New function.
36506         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36507         bookkeeping indicates that it's worth it.
36508         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
36509
36510         * modules/strcasestr-tests: New file.
36511         * tests/test-strcasestr.c: New file.
36512
36513 2007-02-11  Bruno Haible  <bruno@clisp.org>
36514
36515         Ensure O(n) worst-case complexity of c_strcasestr.
36516         * lib/c-strcasestr.c: Include stdbool.h, string.h.
36517         (knuth_morris_pratt): New function.
36518         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
36519         the bookkeeping indicates that it's worth it.
36520         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
36521
36522         * modules/c-strcasestr-tests: New file.
36523         * tests/test-c-strcasestr.c: New file.
36524
36525 2007-02-11  Bruno Haible  <bruno@clisp.org>
36526
36527         Ensure O(n) worst-case complexity of c_strstr.
36528         * lib/c-strstr.c: Include stdbool.h, string.h.
36529         (knuth_morris_pratt): New function.
36530         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36531         bookkeeping indicates that it's worth it.
36532         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
36533
36534         * lib/c-strstr.c: Complete rewrite for maintainability.
36535
36536         * modules/c-strstr-tests: New file.
36537         * tests/test-c-strstr.c: New file.
36538
36539 2007-02-11  Bruno Haible  <bruno@clisp.org>
36540
36541         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
36542         5.2.1 and earlier, whereby \055 was treated just like the range
36543         delimiter '-'.
36544         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36545
36546 2007-02-08  Bruno Haible  <bruno@clisp.org>
36547
36548         * modules/regex (Depends-on): Add stdbool.
36549         Reported by Dalibor Topic <robilad@kaffe.org>.
36550
36551 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
36552
36553         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
36554         Prefer returning from main to exiting from it.
36555         Remove unnecessary parens after sizeof.
36556
36557 2007-02-05  Bruno Haible  <bruno@clisp.org>
36558
36559         New module mbssep.
36560         * modules/mbssep: New file.
36561         * lib/mbssep.c: New file.
36562         * lib/string_.h (strsep): Add a conditional link warning.
36563         (mbssep): New declaration.
36564         * m4/mbssep.m4: New file.
36565         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36566         GNULIB_MBSSEP.
36567         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
36568         * MODULES.html.sh (Internationalization functions): Add mbssep.
36569
36570 2007-02-05  Bruno Haible  <bruno@clisp.org>
36571
36572         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
36573         Optimize search in case of 1 delimiter.
36574
36575 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36576
36577         * lib/acl.h: Include sys/types.h before sys/acl.h.
36578
36579 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36580
36581         Merge upstream fix for glibc bugzilla #3957:
36582
36583         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
36584
36585         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
36586         bit for RE_HAT_LISTS_NOT_NEWLINE.
36587         (build_charclass_op): Remove bogus comment.
36588
36589 2007-02-05  Simon Josefsson  <simon@josefsson.org>
36590
36591         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
36592
36593 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36594
36595         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
36596         * lib/memmem.c [!defined _LIBC]: Include config.h.
36597
36598 2007-02-04  Bruno Haible  <bruno@clisp.org>
36599
36600         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
36601         warning message.
36602
36603 2007-02-04  Bruno Haible  <bruno@clisp.org>
36604
36605         New module mbstok_r.
36606         * modules/mbstok_r: New file.
36607         * lib/mbstok_r.c: New file.
36608         * lib/string_.h (strtok_r): Change argument names to match the
36609         comments. Add a conditional link warning.
36610         (mbstok_r): New declaration.
36611         * m4/mbstok_r.m4: New file.
36612         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36613         GNULIB_MBSTOK_R.
36614         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
36615         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
36616
36617 2007-02-04  Bruno Haible  <bruno@clisp.org>
36618
36619         New module mbsspn.
36620         * modules/mbsspn: New file.
36621         * lib/mbsspn.c: New file.
36622         * lib/string_.h (strspn): Add a conditional link warning.
36623         (mbsspn): New declaration.
36624         * m4/mbsspn.m4: New file.
36625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36626         GNULIB_MBSSPN.
36627         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
36628         * MODULES.html.sh (Internationalization functions): Add mbsspn.
36629
36630 2007-02-04  Bruno Haible  <bruno@clisp.org>
36631
36632         New module mbspbrk.
36633         * modules/mbspbrk: New file.
36634         * lib/mbspbrk.c: New file.
36635         * lib/string_.h (strpbrk): Add a conditional link warning.
36636         (mbspbrk): New declaration.
36637         * m4/mbspbrk.m4: New file.
36638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36639         GNULIB_MBSPBRK.
36640         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
36641         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
36642
36643 2007-02-04  Bruno Haible  <bruno@clisp.org>
36644
36645         New module mbscspn.
36646         * modules/mbscspn: New file.
36647         * lib/mbscspn.c: New file.
36648         * lib/string_.h (strcspn): Add a conditional link warning.
36649         (mbscspn): New declaration.
36650         * m4/mbscspn.m4: New file.
36651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36652         GNULIB_MBSCSPN.
36653         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
36654         * MODULES.html.sh (Internationalization functions): Add mbscspn.
36655
36656 2007-02-04  Bruno Haible  <bruno@clisp.org>
36657
36658         New module mbscasestr, reduced goal of strcasestr.
36659         * modules/mbscasestr: New file.
36660         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
36661         (mbscasestr): Renamed from strcasestr.
36662         * lib/strcasestr.c: Don't include mbuiter.h.
36663         (strcasestr): Remove support for multibyte locales.
36664         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
36665         Change the conditional link warning.
36666         (mbscasestr): New declaration.
36667         * m4/mbscasestr.m4: New file.
36668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
36669         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
36670         REPLACE_STRCASESTR.
36671         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
36672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36673         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36674         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
36675         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
36676         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36677         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
36678         (Depends-on): Remove mbuiter.
36679         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
36680
36681 2007-02-04  Bruno Haible  <bruno@clisp.org>
36682
36683         Simplify handling of strncasecmp.
36684         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
36685         the conditional link warning.
36686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36687         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
36688         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
36689         * modules/strcase (configure.ac): Don't invoke
36690         gl_STRING_MODULE_INDICATOR.
36691         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
36692
36693 2007-02-04  Bruno Haible  <bruno@clisp.org>
36694
36695         New module mbscasecmp, reduced goal of strcasecmp.
36696         * modules/mbscasecmp: New file.
36697         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
36698         (mbscasecmp): Renamed from strcasecmp.
36699         * lib/strcasecmp.c: Don't include mbuiter.h.
36700         (strcasecmp): Remove support for multibyte locales.
36701         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
36702         Change the conditional link warning.
36703         (mbscasecmp): New declaration.
36704         * m4/mbscasecmp.m4: New file.
36705         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
36706         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
36707         REPLACE_STRCASECMP.
36708         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
36709         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36710         GNULIB_MBSCASECMP.
36711         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
36712         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
36713         * modules/strcase (Files): Remove m4/mbrtowc.m4.
36714         (Depends-on): Remove mbuiter.
36715         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
36716
36717 2007-02-04  Bruno Haible  <bruno@clisp.org>
36718
36719         New module mbsstr. Remove module strstr.
36720         * modules/mbsstr: New file.
36721         * modules/strstr: Remove file.
36722         * lib/mbsstr.c: Renamed from lib/strstr.c.
36723         (mbsstr): Renamed from strstr.
36724         * lib/string_.h (strstr): Remove declaration. Change the conditional
36725         link warning.
36726         (mbsstr): New declaration.
36727         * m4/mbsstr.m4: New file.
36728         * m4/strstr.m4: Remove file.
36729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
36730         REPLACE_STRSTR.
36731         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
36732         Don't initialize GNULIB_STRSTR.
36733         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
36734         substitute GNULIB_STRSTR and REPLACE_STRSTR.
36735         * MODULES.html.sh (Internationalization functions): Add mbsstr.
36736         (Support for systems lacking ANSI C 89): Remove strstr.
36737
36738 2007-02-04  Bruno Haible  <bruno@clisp.org>
36739
36740         New module mbsrchr.
36741         * modules/mbsrchr: New file.
36742         * lib/mbsrchr.c: New file.
36743         * lib/string_.h (strrchr): Add a conditional link warning.
36744         (mbsrchr): New declaration.
36745         * m4/mbsrchr.m4: New file.
36746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36747         GNULIB_MBSRCHR.
36748         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
36749         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
36750
36751 2007-02-04  Bruno Haible  <bruno@clisp.org>
36752
36753         New module mbschr.
36754         * modules/mbschr: New file.
36755         * lib/mbschr.c: New file.
36756         * lib/string_.h (strchr): Add a conditional link warning.
36757         (mbschr): New declaration.
36758         * m4/mbschr.m4: New file.
36759         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36760         GNULIB_MBSCHR.
36761         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
36762         * MODULES.html.sh (Internationalization functions): Add mbschr.
36763
36764 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36765
36766         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
36767
36768         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
36769
36770 2007-02-04  Bruno Haible  <bruno@clisp.org>
36771
36772         New module description section 'configure.ac-early'.
36773         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
36774         (func_get_autoconf_early_snippet): New function.
36775         (func_import, func_create_testdir): Use it. Remove special cases for
36776         modules 'extensions' and 'lock'.
36777         * modules/extensions (configure.ac-early): Require
36778         gl_USE_SYSTEM_EXTENSIONS.
36779         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
36780
36781 2007-02-04  Bruno Haible  <bruno@clisp.org>
36782
36783         Make use of gcj-4.3's -fsource and -ftarget option.
36784         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
36785         and if so try the options -fsource and -ftarget.
36786         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
36787         source_version, ftarget_option, target_version arguments.
36788         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
36789         (is_envjavac_oldgcj_14_14_usable): Renamed from
36790         is_envjavac_gcj_14_14_usable.
36791         (is_envjavac_oldgcj_14_13_usable): Renamed from
36792         is_envjavac_gcj_14_13_usable.
36793         (is_gcj_present): Update.
36794         (is_gcj_43, is_gcj43_usable): New functions.
36795         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
36796         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
36797         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
36798         try the options -fsource and -ftarget.
36799
36800 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
36801
36802         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
36803         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
36804         larger value.
36805
36806 2007-02-03  Jim Meyering  <jim@meyering.net>
36807
36808         Give tools a better chance to allocate space for very large buffers.
36809         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
36810
36811         Make pwd and readlink work also when run with an unreadable parent dir
36812         on systems with openat support.
36813         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
36814         provided getcwd function, even when we have openat support.
36815         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
36816
36817 2007-02-02  Bruno Haible  <bruno@clisp.org>
36818
36819         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36820         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
36821         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
36822         portability problems if one of these functions is only used on specific
36823         platforms.
36824         Reported by Paul Eggert.
36825
36826 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
36827
36828         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
36829         is causing more trouble than it's curing.
36830         * lib/regex_internal.h (__mempcpy): Remove.
36831         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
36832         (and make the code a tad smaller to boot).
36833         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
36834
36835 2007-02-02  Jim Meyering  <jim@meyering.net>
36836
36837         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
36838         section, not in the Makefile.am: one.
36839
36840 2007-02-02  Eric Blake  <ebb9@byu.net>
36841
36842         * lib/strchrnul.c: Always include config.h first.
36843
36844         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
36845         gnulib strstr is not necessary here.
36846
36847 2007-02-02  Simon Josefsson  <simon@josefsson.org>
36848
36849         * m4/socklen.m4: Fix typo.
36850
36851 2007-02-02  Eric Blake  <ebb9@byu.net>
36852
36853         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
36854         * modules/netinet_in (Makefile.am): Likewise.
36855
36856 2007-02-01  Bruno Haible  <bruno@clisp.org>
36857
36858         * lib/string_.h (GL_LINK_WARNING): New macro.
36859         (strcasecmp, strstr, strcasestr): If provided by the system,
36860         conditionally define as a macro that leads to a warning instead of to
36861         an error.
36862         (strncasecmp): Conditionally define as a macro that leads to a warning.
36863
36864 2007-02-01  Karl Berry  <karl@gnu.org>
36865
36866         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
36867
36868 2007-02-01  Bruno Haible  <bruno@clisp.org>
36869
36870         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
36871         renamings.
36872
36873 2007-02-01  Eric Blake  <ebb9@byu.net>
36874
36875         * modules/regex (Depends-on): Revert dependence on mempcpy.
36876         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
36877         module's definition of mempcpy.
36878         Reported by Paul Eggert.
36879
36880 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
36881
36882         * lib/string_.h: If the gnulib module XYZ is not present, undefine
36883         the symbol XYZ before redefining it.  This fixes a problem with
36884         programs that don't use XYZ, when compiled on systems that define
36885         XYZ to something else.
36886
36887 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
36888
36889         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
36890         occurs when "mkdir -m foo" creates a setgid directory that is (1)
36891         writeable to group or other and (2) is intended to have a special
36892         mode bit that is set or cleared.  In such a case, the directory
36893         should be neither group- nor other-writeable until the special
36894         mode bits are right.
36895
36896 2007-01-31  Eric Blake  <ebb9@byu.net>
36897
36898         * modules/mountlist (Depends-on): Add strstr.
36899
36900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
36901         bug.
36902         * modules/string (Makefile.am): Remove redundant replacement.
36903         * modules/regex (Depends-on): Add mempcpy.
36904
36905 2007-01-31  Bruno Haible  <bruno@clisp.org>
36906
36907         New module description field 'Link'.
36908         * gnulib-tool (func_usage): Document --extract-link-directive.
36909         (sed_extract_prog): Recognize 'Link' directive.
36910         (func_get_link_directive): New function.
36911         (func_import): Show summary of link directives.
36912         Handle --extract-link-directive option.
36913         * modules/acl (Link): New section.
36914         * modules/clock-time (Link): New section.
36915         * modules/euidaccess (Link): New section.
36916         * modules/gettext (Link): New section.
36917         * modules/iconv (Link): New section.
36918         * modules/lock (Link): New section.
36919         * modules/nanosleep (Link): New section.
36920         * modules/readline (Link): New section.
36921
36922 2007-01-27  Bruno Haible  <bruno@clisp.org>
36923
36924         Enforce the use of gnulib modules for unportable <string.h> functions.
36925         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
36926         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
36927         (gl_HEADER_STRING_H_BODY): Require it.
36928         * lib/string_.h: If the gnulib module XYZ is not present, redefine
36929         the symbol XYZ to one that gives a link error.
36930         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
36931         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
36932         * modules/mempcpy (configure.ac): Likewise.
36933         * modules/memrchr (configure.ac): Likewise.
36934         * modules/stpcpy (configure.ac): Likewise.
36935         * modules/stpncpy (configure.ac): Likewise.
36936         * modules/strcase (configure.ac): Likewise.
36937         * modules/strcasestr (configure.ac): Likewise.
36938         * modules/strchrnul (configure.ac): Likewise.
36939         * modules/strdup (configure.ac): Likewise.
36940         * modules/strndup (configure.ac): Likewise.
36941         * modules/strnlen (configure.ac): Likewise.
36942         * modules/strpbrk (configure.ac): Likewise.
36943         * modules/strsep (configure.ac): Likewise.
36944         * modules/strstr (configure.ac): Likewise.
36945         * modules/strtok_r (configure.ac): Likewise.
36946
36947 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
36948
36949         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
36950
36951 2007-01-30  Jim Meyering  <jim@meyering.net>
36952
36953         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
36954
36955 2007-01-29  Bruno Haible  <bruno@clisp.org>
36956
36957         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
36958         * lib/execute.c: Likewise.
36959         * lib/pipe.c: Likewise.
36960         * lib/printf-args.h: Likewise.
36961         * lib/printf-args.c: Likewise.
36962         * lib/printf-parse.c: Likewise.
36963         * lib/vasnprintf.c: Likewise.
36964
36965 2007-01-29  Eric Blake  <ebb9@byu.net>
36966
36967         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
36968         declaration.
36969
36970 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36971
36972         * lib/strptime.h (strptime): Use 'restrict' for args where
36973         POSIX requires this.
36974         * lib/strptime.c (strptime): Likewise.
36975         Change license notice from LGPL to GPL, since gnulib-tool will
36976         change this as needed.
36977         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
36978         defined.
36979         Include "strptime.h" first, to check interface.
36980         Do not #undef _LIBC and _NL_CURRENT.
36981         Do not include <stdlib.h>; no longer needed.
36982         Include "time_r.h" and declare ptime_locale_status
36983         only if _LIBC is not defined.
36984         (__P): Remove unused macro.
36985         (match_string): Bring back glibc version, but use it only if _LIBC
36986         is defined.
36987         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
36988         Remove unnecessary assertion and abort() call.
36989         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
36990         * m4/strptime.m4: Fix serial number comment.
36991         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
36992         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
36993         (Depends-on): Add time_r.
36994
36995 2007-01-29  Bruno Haible  <bruno@clisp.org>
36996
36997         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36998         strptime.
36999         * modules/strptime (Depends-on): Add stdbool.
37000         * lib/strptime.h: Include <time.h> always. Add comments.
37001
37002 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37003
37004         * modules/strptime: New file.
37005         * lib/strptime.h: New file.
37006         * lib/strptime.c: New file.
37007         * m4/strptime.m4: New file.
37008
37009 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37010
37011         * MODULES.html.sh: New module mpsort.
37012         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37013
37014         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37015         a circularity problem with HP-UX ia64 reported by Bob Proulx in
37016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37017         All uses changed.
37018         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37019         All uses changed.
37020         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37021         to _Restrict_.
37022         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37023         the parameter matches the prototype.
37024
37025 2007-01-28  Jim Meyering  <jim@meyering.net>
37026
37027         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37028         sys/time.h here, reverting that part of the previous patch:
37029         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37030
37031 2007-01-28  Bruno Haible  <bruno@clisp.org>
37032
37033         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37034         value of $(SYS_TIME_H).
37035         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37036         remove it conditionally, too. [added by Jim Meyering]
37037         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37038         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37039         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37040         GETTIMEOFDAY_REPLACEMENT to 1.
37041
37042 2007-01-28  Bruno Haible  <bruno@clisp.org>
37043
37044         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37045         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37046         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37047         Set UNISTD_H instead of UNISTD_H2.
37048         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37049
37050 2007-01-28  Bruno Haible  <bruno@clisp.org>
37051
37052         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37053         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37054
37055 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37056
37057         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37058         (func_create_testdir): Ensure C locale for `grep' and `tr'
37059         character ranges.
37060         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
37061         ACLOCAL_AMFLAGS parsing state machine.
37062
37063 2007-01-27  Bruno Haible  <bruno@clisp.org>
37064
37065         * modules/unistr/base: Update.
37066
37067 2007-01-27  Bruno Haible  <bruno@clisp.org>
37068
37069         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37070         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37071         * modules/unistr/u32-mbtouc-unsafe: Renamed from
37072         modules/unistr/u32-mbtouc.
37073         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37074         * lib/unistr.h: Update.
37075         * lib/linebreak.c: Update.
37076         * modules/unistr/u32-mbtouc: Renamed from
37077         modules/unistr/u32-mbtouc-safe.
37078         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37079         * lib/unistr.h: Update.
37080         * lib/unistr/u32-to-u8.c: Update.
37081         * lib/unistr/u32-to-u16.c: Update.
37082
37083 2007-01-27  Bruno Haible  <bruno@clisp.org>
37084
37085         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37086         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37087         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37088         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37089         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37090         * modules/unistr/u16-mbtouc-unsafe: Renamed from
37091         modules/unistr/u16-mbtouc.
37092         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37093         * lib/unistr.h: Update.
37094         * lib/linebreak.c: Update.
37095         * modules/linebreak: Update.
37096         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37097         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37098         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37099         * modules/unistr/u16-mbtouc: Renamed from
37100         modules/unistr/u16-mbtouc-safe.
37101         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37102         * lib/unistr.h: Update.
37103         * lib/unistr/u16-to-u8.c: Update.
37104         * modules/unistr/u16-to-u8: Update.
37105         * lib/unistr/u16-to-u32.c: Update.
37106         * modules/unistr/u16-to-u32: Update.
37107
37108 2007-01-27  Bruno Haible  <bruno@clisp.org>
37109
37110         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37111         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37112         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37113         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37114         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37115         * modules/unistr/u8-mbtouc-unsafe: Renamed from
37116         modules/unistr/u8-mbtouc.
37117         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37118         * lib/unistr.h: Update.
37119         * lib/striconveh.c: Update.
37120         * modules/striconveh: Update.
37121         * lib/linebreak.c: Update.
37122         * modules/linebreak: Update.
37123         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37124         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37125         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37126         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37127         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37128         * lib/unistr.h: Update.
37129         * lib/striconveh.c: Update.
37130         * modules/striconveh: Update.
37131         * lib/unistr/u8-to-u16.c: Update.
37132         * modules/unistr/u8-to-u16: Update.
37133         * lib/unistr/u8-to-u32.c: Update.
37134         * modules/unistr/u8-to-u32: Update.
37135
37136 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37137
37138         Sync from Libtool.
37139         * lib/argz.c: Do not include strings.h nor memory.h, include
37140         string.h unconditionally.  Patch by Simon Josefsson.
37141
37142 2007-01-27  Bruno Haible  <bruno@clisp.org>
37143
37144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37145         from gl_HEADER_STRING_H_BODY.
37146         (gl_HEADER_STRING_H_BODY): Require it.
37147         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37148         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37149         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37150         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37151         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37152         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37153         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37154         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37155         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37156         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37157         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37158         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37159         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37160         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37161         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37162
37163 2007-01-27  Bruno Haible  <bruno@clisp.org>
37164
37165         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37166         check_PROGRAMS into noinst_PROGRAMS.
37167         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37168         check_PROGRAMS in this case.
37169         (func_import): Set for_test to false.
37170         (func_create_testdir): Set for_test to true.
37171
37172 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37173             Bruno Haible  <bruno@clisp.org>
37174
37175         * modules/strcasestr (Files): Remove lib/strcasestr.h.
37176         (Depends-on): Add string.
37177         (Includes): Use <string.h> instead of strcasestr.h.
37178         * modules/string (Makefile.am): Also substitute the value of
37179         REPLACE_STRCASESTR.
37180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37181         assume strcasestr is declared in <string.h> not <strings.h>. Also
37182         set REPLACE_STRCASESTR.
37183         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37184         REPLACE_STRCASESTR.
37185         * lib/strcasestr.h: Remove file.
37186         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37187         * lib/string_.h (strcasestr): New declaration.
37188
37189 2007-01-27  Bruno Haible  <bruno@clisp.org>
37190
37191         * lib/string_.h: Use 'extern'.
37192
37193 2007-01-27  Jim Meyering  <jim@meyering.net>
37194
37195         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37196         of set-but-not-used local, "q".
37197
37198         * lib/mempcpy.c: Include <config.h> before <string.h>.
37199         This fixes a compilation error on HP-UX, due to the system's
37200         "restrict"-using mempcpy prototype.
37201
37202 2007-01-26  Bruno Haible  <bruno@clisp.org>
37203
37204         Small optimization.
37205         * lib/javacomp.c: Include c-strstr.h.
37206          (is_envjavac_gcj): Use c_strstr instead of strstr.
37207         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37208
37209 2007-01-26  Bruno Haible  <bruno@clisp.org>
37210
37211         * MODULES.html.sh (Unicode string functions): Add the new modules.
37212
37213         * modules/uniconv/u32-strconv-to-locale: New file.
37214         * lib/uniconv/u32-strconv-to-locale.c: New file.
37215
37216         * modules/uniconv/u16-strconv-to-locale: New file.
37217         * lib/uniconv/u16-strconv-to-locale.c: New file.
37218
37219         * modules/uniconv/u8-strconv-to-locale: New file.
37220         * lib/uniconv/u8-strconv-to-locale.c: New file.
37221
37222         * modules/uniconv/u32-strconv-from-locale: New file.
37223         * lib/uniconv/u32-strconv-from-locale.c: New file.
37224
37225         * modules/uniconv/u16-strconv-from-locale: New file.
37226         * lib/uniconv/u16-strconv-from-locale.c: New file.
37227
37228         * modules/uniconv/u8-strconv-from-locale: New file.
37229         * lib/uniconv/u8-strconv-from-locale.c: New file.
37230
37231         * modules/uniconv/u32-strconv-to-enc: New file.
37232         * lib/uniconv/u32-strconv-to-enc.c: New file.
37233         * modules/uniconv/u32-strconv-to-enc-tests: New file.
37234         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37235
37236         * modules/uniconv/u16-strconv-to-enc: New file.
37237         * lib/uniconv/u16-strconv-to-enc.c: New file.
37238         * lib/uniconv/u-strconv-to-enc.h: New file.
37239         * modules/uniconv/u16-strconv-to-enc-tests: New file.
37240         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37241
37242         * modules/uniconv/u8-strconv-to-enc: New file.
37243         * lib/uniconv/u8-strconv-to-enc.c: New file.
37244         * modules/uniconv/u8-strconv-to-enc-tests: New file.
37245         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37246
37247         * modules/uniconv/u32-strconv-from-enc: New file.
37248         * lib/uniconv/u32-strconv-from-enc.c: New file.
37249         * modules/uniconv/u32-strconv-from-enc-tests: New file.
37250         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37251
37252         * modules/uniconv/u16-strconv-from-enc: New file.
37253         * lib/uniconv/u16-strconv-from-enc.c: New file.
37254         * modules/uniconv/u16-strconv-from-enc-tests: New file.
37255         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37256
37257         * modules/uniconv/u8-strconv-from-enc: New file.
37258         * lib/uniconv/u8-strconv-from-enc.c: New file.
37259         * lib/uniconv/u-strconv-from-enc.h: New file.
37260         * modules/uniconv/u8-strconv-from-enc-tests: New file.
37261         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37262
37263         * modules/uniconv/u32-conv-from-enc: New file.
37264         * lib/uniconv/u32-conv-from-enc.c: New file.
37265         * modules/uniconv/u32-conv-from-enc-tests: New file.
37266         * tests/uniconv/test-u32-conv-from-enc.c: New file.
37267
37268         * modules/uniconv/u16-conv-from-enc: New file.
37269         * lib/uniconv/u16-conv-from-enc.c: New file.
37270         * lib/uniconv/u-conv-from-enc.h: New file.
37271         * modules/uniconv/u16-conv-from-enc-tests: New file.
37272         * tests/uniconv/test-u16-conv-from-enc.c: New file.
37273
37274         * modules/uniconv/u8-conv-from-enc: New file.
37275         * lib/uniconv/u8-conv-from-enc.c: New file.
37276         * modules/uniconv/u8-conv-from-enc-tests: New file.
37277         * tests/uniconv/test-u8-conv-from-enc.c: New file.
37278
37279         * modules/uniconv/base: New file.
37280         * lib/uniconv.h: New file.
37281
37282 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37283
37284         * doc/gnulib-tool.texi (Initial import): Update to match current
37285         behavior with strdup module.
37286         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37287         * lib/memmem.h: Remove; all uses removed.  This is now done
37288         by <string.h>.
37289         * lib/mempcpy.h: Likewise.
37290         * lib/memrchr.h: Likewise.
37291         * lib/stpcpy.h: Likewise.
37292         * lib/stpncpy.h: Likewise.
37293         * lib/strcase.h: Likewise.
37294         * lib/strchrnul.h: Likewise.
37295         * lib/strdup.h: Likewise.
37296         * lib/strndup.h: Likewise.
37297         * lib/strnlen.h: Likewise.
37298         * lib/strpbrk.h: Likewise.
37299         * lib/strsep.h: Likewise.
37300         * lib/strstr.h: Likewise.
37301         * lib/strtok_r.h: Likewise.
37302         * lib/string_.h: New file.
37303         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
37304         Rely on <string.h> instead.
37305         * lib/canon-host.c: Likewise.
37306         * lib/chdir-long.c: Likewise.
37307         * lib/concatpath.c: Likewise.
37308         * lib/exclude.c: Likewise.
37309         * lib/fchdir.c: Likewise.
37310         * lib/getaddrinfo.c: Likewise.
37311         * lib/getcwd.c: Likewise.
37312         * lib/getsubopt.c: Likewise.
37313         * lib/glob.c: Likewise.
37314         * lib/hard-locale.c: Likewise.
37315         * lib/iconvme.c: Likewise.
37316         * lib/javacomp.c: Likewise.
37317         * lib/mempcpy.c: Likewise.
37318         * lib/memrchr.c: Likewise.
37319         * lib/regex_internal.h: Likewise.
37320         * lib/stpncpy.c: Likewise.
37321         * lib/strcasecmp.c: Likewise.
37322         * lib/strchrnul.c: Likewise.
37323         * lib/strdup.c: Likewise.
37324         * lib/striconv.c: Likewise.
37325         * lib/striconveh.c: Likewise.
37326         * lib/striconveha.c: Likewise.
37327         * lib/strncasecmp.c: Likewise.
37328         * lib/strndup.c: Likewise.
37329         * lib/strnlen.c: Likewise.
37330         * lib/strsep.c: Likewise.
37331         * lib/strstr.c: Likewise.
37332         * lib/strtok_r.c: Likewise.
37333         * lib/userspec.c: Likewise.
37334         * lib/w32spawn.h: Likewise.
37335         * lib/xstrndup.c: Likewise.
37336         * lib/mountlist.c (strstr): Remove decl.
37337         * m4/string_h.m4: New file.
37338         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
37339         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
37340         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
37341         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
37342         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
37343         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
37344         Set REPLACE_STRCASECMP if necessary.
37345         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
37346         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
37347         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
37348         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
37349         HAVE_DECL_STRDUP if necessary.
37350         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
37351         since gl_FUNC_STRNDUP does that now.
37352         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
37353         Check for decl here...
37354         (gl_PREREQ_STRNLEN): ... not here.
37355         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
37356         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
37357         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
37358         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
37359         necessary.
37360         * modules/string: New file.
37361         * modules/memmem (Files): Remove special-purpose include file.
37362         (Depends-on): Add string.
37363         (Include): Include <string.h>, not the removed file.
37364         * modules/mempcpy: Likewise.
37365         * modules/memrchr: Likewise.
37366         * modules/stpcpy: Likewise.
37367         * modules/stpncpy: Likewise.
37368         * modules/strcase: Likewise.
37369         * modules/strchrnul: Likewise.
37370         * modules/strdup: Likewise.
37371         * modules/strndup: Likewise.
37372         * modules/strnlen: Likewise.
37373         * modules/strpbrk: Likewise.
37374         * modules/strsep: Likewise.
37375         * modules/strstr: Likewise.
37376         * modules/strtok_r: Likewise.
37377         * tests/test-dirname.c: Don't include "strdup.h", since
37378         <string.h> now suffices.
37379         * tests/test-memmem.c: Don't include "memmem.h", since
37380         <string.h> now suffices.
37381
37382 2007-01-25  Bruno Haible  <bruno@clisp.org>
37383
37384         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
37385         *resultp is 0.
37386
37387         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
37388         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
37389         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
37390         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
37391
37392         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
37393         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
37394         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
37395         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
37396         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
37397         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
37398
37399 2007-01-24  Bruno Haible  <bruno@clisp.org>
37400
37401         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
37402         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
37403         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
37404         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
37405         gl_FUNC_FTS_CORE.
37406         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
37407         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
37408         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37409         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
37410         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
37411         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
37412         gl_FUNC_FCHOWNAT.
37413         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
37414         gl_FUNC_STRFTIME.
37415         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
37416         Reported by Ralf Wildenhues.
37417
37418 2007-01-24  Bruno Haible  <bruno@clisp.org>
37419
37420         Drop AC_REQUIRE calls that are redundant with the module dependencies.
37421         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
37422         gl_GETADDRINFO.
37423         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
37424         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
37425         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
37426
37427 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
37428
37429         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
37430         Don't use 'exit'; just return from 'main'.
37431         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
37432
37433         * lib/fnmatch_.h: Readjust white space and comments to match
37434         glibc, to avoid spurious diffs.
37435
37436 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37437
37438         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
37439         2004-12-01 change by Jakub Jelinek, since this code won't compile
37440         if !LIBC.  Problem reported by Bob Proulx.
37441
37442 2007-01-23  Bruno Haible  <bruno@clisp.org>
37443
37444         * lib/striconveh.c: Include c-strcaseeq.h.
37445         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
37446         * modules/striconveh (Depends-on): Add c-strcaseeq.
37447
37448 2007-01-23  Bruno Haible  <bruno@clisp.org>
37449
37450         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
37451
37452         * modules/c-strcaseeq: New file.
37453         * lib/c-strcaseeq.h: New file.
37454
37455         * modules/streq: New file.
37456         * lib/streq.h: New file.
37457
37458 2007-01-23  Bruno Haible  <bruno@clisp.org>
37459
37460         * modules/striconveha-tests: New file.
37461         * tests/test-striconveha.c: New file.
37462
37463         * lib/striconveha.h: Include <stdbool.h>.
37464         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
37465         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
37466         (mem_iconveha_notranslit): Renamed from mem_iconveha.
37467         (mem_iconveha): New function.
37468         (str_iconveha_notranslit): Renamed from str_iconveha.
37469         (str_iconveha): New function.
37470         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
37471         c-strcase.
37472
37473 2007-01-23  Bruno Haible  <bruno@clisp.org>
37474
37475         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
37476         encodings without forgiving before trying any encoding with handler.
37477         (str_iconveha): Try all encodings without forgiving before trying any
37478         encoding with handler.
37479
37480 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37481
37482         Import the following changes from libc.
37483
37484         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
37485
37486         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
37487
37488         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
37489
37490         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
37491         normal_bracket label.
37492
37493         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
37494
37495         [BZ #361]
37496         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
37497         to normal_bracket after fetching the next character.
37498
37499 2007-01-22  Bruno Haible  <bruno@clisp.org>
37500
37501         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
37502         argument.
37503         * lib/striconveh.c (iconv_carefully_1): New function.
37504         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
37505         argument.
37506         (str_cd_iconveh): Update.
37507         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
37508         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
37509         * tests/test-striconveh.c (MAGIC): New macro.
37510         (new_offsets): New function.
37511         (main): Test call with and without offsets.
37512
37513 2007-01-22  Bruno Haible  <bruno@clisp.org>
37514
37515         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
37516         * modules/sys_select (Makefile.am): Likewise.
37517         * modules/sys_socket (Makefile.am): Likewise.
37518         * modules/sys_time (Makefile.am): Likewise.
37519
37520 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
37521
37522         * modules/gettimeofday (License): Change from GPL to LGPL, since
37523         gettimeofday is a library function.
37524
37525 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37526
37527         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
37528
37529 2007-01-21  Bruno Haible  <bruno@clisp.org>
37530
37531         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
37532
37533 2007-01-21  Bruno Haible  <bruno@clisp.org>
37534
37535         * modules/striconveha: New file.
37536         * lib/striconveha.h: New file.
37537         * lib/striconveha.c: New file.
37538         * MODULES.html.sh (Internationalization functions): Add striconveha.
37539         * lib/striconv.c (str_iconv): Optimize the case of an empty input
37540         string.
37541         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
37542
37543 2007-01-21  Bruno Haible  <bruno@clisp.org>
37544
37545         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
37546         * lib/striconveh.c (str_iconveh): Likewise.
37547
37548 2007-01-21  Bruno Haible  <bruno@clisp.org>
37549
37550         * lib/striconveh.h (mem_iconveh): New declaration.
37551         * lib/striconveh.c (mem_iconveh): New function.
37552         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
37553
37554 2007-01-21  Bruno Haible  <bruno@clisp.org>
37555
37556         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
37557
37558         * lib/striconveh.h (mem_cd_iconveh): Change specification.
37559         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
37560         original result buffer.
37561         (str_cd_iconveh): Update.
37562         * tests/test-striconveh.c (main): Update.
37563
37564         * lib/striconv.h (mem_cd_iconv): Change specification.
37565         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
37566         result buffer.
37567         (str_cd_iconv): Update.
37568         * tests/test-striconv.c (main): Update.
37569
37570 2007-01-21  Bruno Haible  <bruno@clisp.org>
37571
37572         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
37573
37574 2007-01-20  Jim Meyering  <jim@meyering.net>
37575
37576         * lib/userspec.c (parse_with_separator): If a user or group string
37577         starts with "+", skip the corresponding name-to-ID look-up, since
37578         such a look-up must fail: user and group names may not include "+".
37579
37580 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
37581
37582         * lib/poll.c: Include sys/time.h and time.h unconditionally,
37583         since we now assume the sys_time module.
37584         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
37585         check for sys/time.h; no longer needed.
37586         * modules/poll (Depends-on): Depend on sys_time.
37587
37588 2007-01-18  Bruno Haible  <bruno@clisp.org>
37589
37590         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
37591         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37592
37593         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
37594         gettimeofday.
37595
37596         * tests/test-gettimeofday.c: Include <time.h>.
37597         (dummy): Remove variable.
37598
37599         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
37600         gl_HEADER_SYS_TIME_H.
37601         (gl_HEADER_SYS_TIME_H): New macro.
37602
37603         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
37604         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37605         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37606         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
37607         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37608         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
37609         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
37610         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37611         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
37612         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
37613         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37614
37615         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
37616         last change; it caused a compilation error when cross-compiling to
37617         Cygwin.
37618
37619 2007-01-18  Jim Meyering  <jim@meyering.net>
37620
37621         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
37622         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
37623         than the race-prone "test -d sys || mkdir sys".
37624         (configure.ac): Use AC_PROG_MKDIR_P.
37625         * modules/sys_select: Likewise.
37626         * modules/sys_socket: Likewise.
37627         * modules/sys_time: Likewise.
37628
37629 2007-01-18  Eric Blake  <ebb9@byu.net>
37630
37631         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
37632         replace gettimeofday.
37633         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
37634         name, to avoid infinite recursion.
37635
37636 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
37637
37638         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
37639         module sys_time.
37640         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
37641         assume timespec.h defines struct timeval.
37642         * lib/settime.c: Likewise.
37643         * lib/utimens.c: Likewise.
37644         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
37645         since we now assume the gettimeofday module.
37646         * lib/tempname.c (__gen_tempname): Likewise.
37647         * lib/gettimeofday.h: Remove.
37648         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
37649         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
37650         Include <time.h>, for 'time()'.
37651         (localtime_buffer_addr): Also use this workaround if
37652         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
37653         to simplify the uses.  All uses changed.
37654         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
37655         that #undef is inside {}, and 'const' follows type name consistently.
37656         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
37657         (gettimeofday): Do not use the maximum possible value for
37658         tv->tv_usec, since that might break usages other than ls.c.
37659         Instead, we'll leave ls.c alone.  This undoes today's patch
37660         by Bruno.  Add a compile-time warning for 1s-clock resolution;
37661         we've never observed the problem but might as well keep the
37662         canary.
37663         * lib/nanosleep.c: Include timespec.h first, for interface check.
37664         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
37665         now assume the sys_time module.
37666         * lib/tempname.c: Likewise.
37667         * lib/timespec.h: Likewise.
37668         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
37669         needed.
37670         * lib/strftime.c: Likewise.
37671         * lib/timespec.h: Likewise.
37672         * lib/posixtm.c: Include posixtm.h first, for interface check.
37673         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
37674         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
37675         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
37676         * lib/sys_time_.h: New file.
37677         * lib/timespec.h (struct timespec): Use long int, not long.
37678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37679         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
37680         Remove obsolescent call to AC_HEADER_TIME.
37681         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37682         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37683         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37684         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
37685         Likewise.
37686         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
37687         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
37688         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
37689         into the sys_time module.  Check for gettimeofday just once.
37690         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
37691         for gettimeofday signature to just check the signature.  Merely
37692         compile it, since linking doesn't test signature.  Improve test for
37693         whether gettimeofday.o is actually needed.
37694         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
37695         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
37696         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
37697         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37698         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
37699         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
37700         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
37701         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
37702         than worrying about sys/time.h.
37703         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37704         Don't bother worrying about TIME_WITH_SYS_TIME.
37705         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37706         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
37707         * m4/sys_time_h.m4: New file.
37708         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
37709         Don't include sys/time.h.  Return from main rather than exiting.
37710         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
37711         all uses changed.
37712         * modules/gethrxtime (Depends-on): Add sys_time.
37713         * modules/gettime (Depends-on): Likewise.
37714         * modules/gettimeofday (Depends-on): Likewise.
37715         * modules/nanosleep (Depends-on): Likewise.
37716         * modules/settime (Depends-on): Likewise.
37717         * modules/tempname (Depends-on): Likewise.
37718         * modules/utimens (Depends-on): Likewise.
37719         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
37720         (Include:) Change back to <sys/time.h>.
37721         (Maintainer:) Add self.
37722         * modules/sys_time: New file.
37723         * modules/tempname (Depends-on): Add gettimeofday.
37724         * tests/test-gettimeofday.c: Include <sys/time.h>
37725         rather than gettimeofday.h.
37726
37727 2007-01-17  Bruno Haible  <bruno@clisp.org>
37728
37729         * gnulib-tool (func_get_license): Revert last patch. Instead, let
37730         the license default to GPL.
37731         (func_create_testdir): Don't complain if a module is LGPL and its
37732         tests module depends on GPLed modules.
37733
37734 2007-01-17  Bruno Haible  <bruno@clisp.org>
37735
37736         * lib/gettimeofday.c (gettimeofday): Add code for the case
37737         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
37738         maximum possible value for tv->tv_usec, rather than the minimum one.
37739
37740 2005-10-08  Martin Lambers  <marlam@marlam.de>
37741 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37742 2007-01-16  Bruno Haible  <bruno@clisp.org>
37743
37744         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
37745         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
37746         gl_FUNC_GETTIMEOFDAY.
37747         (Include): Add gettimeofday.h.
37748         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
37749         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
37750         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
37751         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
37752         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
37753         * lib/gettimeofday.h: New file.
37754         * lib/gettimeofday.c: Include <sys/timeb.h>.
37755         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
37756         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37757         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
37758         fall back on time().
37759
37760         * tests/test-gettimeofday.c: New file.
37761         * modules/gettimeofday-tests: New file.
37762
37763 2007-01-16  Eric Blake  <ebb9@byu.net>
37764
37765         * modules/fnmatch (Depends-on): Depend on wchar.
37766         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
37767         * m4/fnmatch.m4: Likewise.
37768         * modules/mbchar (Makefile.am): Assume <wchar.h>.
37769         * m4/mbchar.m4: Likewise.
37770         * modules/mbswidth (Depends-on): Depend on wchar.
37771         * lib/mbswidth.c: Assume <wchar.h>.
37772         * m4/mbswidth.m4: Likewise.
37773         * modules/quotearg (Depends-on): Depend on wchar.
37774         * lib/quotearg.c: Assume <wchar.h>.
37775         * m4/quotearg.m4: Likewise.
37776         * modules/regex (Depends-on): Depend on wchar.
37777         * lib/regex_internal.h: Assume <wchar.h>.
37778         * m4/regex.m4: Likewise.
37779         * modules/stdint (Depends-on): Depend on wchar.
37780         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
37781         * m4/stdint.m4: Likewise.
37782         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
37783         * modules/strftime (Depends-on): Depend on wchar.
37784         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
37785         * modules/strtol (Depends-on): Depend on wchar.
37786         * lib/strtol.c: Assume <wchar.h>.
37787         * modules/wcwidth (Depends-on): Depend on wchar.
37788         * lib/wcwidth.h: Assume <wchar.h>.
37789         * m4/wcwidth.m4: Likewise.
37790
37791 2007-01-16  Bruno Haible  <bruno@clisp.org>
37792
37793         * modules/csharpexec-script: New, created from...
37794         * modules/csharpexec: ... this.
37795
37796 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37797
37798         * modules/javaexec-script: New, created from...
37799         * modules/javaexec: ... this.
37800
37801 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37802
37803         * modules/poll (Dependencies): Add sys_select.
37804
37805 2007-01-15  Jim Meyering  <jim@meyering.net>
37806
37807         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
37808         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
37809         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
37810         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
37811
37812 2007-01-15  Bruno Haible  <bruno@clisp.org>
37813
37814         * modules/striconveh: New file.
37815         * lib/striconveh.h: New file.
37816         * lib/striconveh.c: New file.
37817         * MODULES.html.sh (Internationalization functions): Add striconveh.
37818
37819         * modules/striconveh-tests: New file.
37820         * tests/test-striconveh.c: New file.
37821
37822 2007-01-15  Bruno Haible  <bruno@clisp.org>
37823
37824         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
37825         not from GNU libiconv or GNU libc.
37826
37827 2007-01-15  Bruno Haible  <bruno@clisp.org>
37828
37829         * doc/gnulib-intro.texi (Copyright): Explain the different license
37830         terms for module descriptions, autoconf macros, tests, documentation.
37831
37832 2007-01-14  Bruno Haible  <bruno@clisp.org>
37833
37834         * modules/striconv-tests: New file.
37835         * tests/test-striconv.c: New file.
37836
37837 2007-01-14  Bruno Haible  <bruno@clisp.org>
37838
37839         * modules/iconv-tests: New file.
37840         * tests/test-iconv.c: New file.
37841
37842 2007-01-14  Bruno Haible  <bruno@clisp.org>
37843
37844         * gnulib-tool (func_get_license): For test modules, use the license of
37845         the main module.
37846
37847 2007-01-14  Bruno Haible  <bruno@clisp.org>
37848
37849         * modules/iconv (Include): Clarify that <iconv.h> can only be included
37850         if iconv is found to exist.
37851
37852 2007-01-14  Bruno Haible  <bruno@clisp.org>
37853
37854         * modules/c-ctype-tests: New file.
37855         * tests/test-c-ctype.c: New file.
37856
37857 2007-01-14  Bruno Haible  <bruno@clisp.org>
37858
37859         * modules/binary-io-tests: New file.
37860         * tests/test-binary-io.sh: New file.
37861         * tests/test-binary-io.c: New file.
37862
37863 2007-01-14  Bruno Haible  <bruno@clisp.org>
37864
37865         * modules/array-oset-tests: New file.
37866         * tests/test-array_oset.c: New file.
37867
37868 2007-01-14  Bruno Haible  <bruno@clisp.org>
37869
37870         * modules/array-list-tests: New file.
37871         * tests/test-array_list.c: New file.
37872
37873 2007-01-14  Bruno Haible  <bruno@clisp.org>
37874
37875         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
37876         and make.
37877         Reported by Simon Josefsson in
37878         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
37879
37880 2007-01-14  Bruno Haible  <bruno@clisp.org>
37881
37882         * modules/allocsa-tests: New file.
37883         * tests/test-allocsa.c: New file.
37884
37885 2007-01-14  Bruno Haible  <bruno@clisp.org>
37886
37887         * modules/fchdir (Depends-on): Add absolute-header.
37888         * modules/unistd (Depends-on): Likewise.
37889
37890 2006-12-30  Bruno Haible  <bruno@clisp.org>
37891
37892         * modules/fchdir: New file.
37893         * modules/unistd (Files): Add lib/unistd_.h.
37894         (Makefile.am): Generate unistd.h from unistd_.h.
37895         * lib/fchdir.c: New file.
37896         * lib/dirent_.h: New file.
37897         * lib/unistd_.h: New file.
37898         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
37899         * m4/fchdir.m4: New file.
37900         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
37901         (gl_HEADER_UNISTD): Invoke it.
37902         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
37903         function.
37904         * lib/backupfile.c (opendir, closedir): Undefine.
37905         * lib/chown.c (open, close): Undefine.
37906         * lib/clean-temp.c (open, close): Undefine.
37907         * lib/copy-file.c (open, close): Undefine.
37908         * lib/execute.c (open, close): Undefine.
37909         * lib/fsusage.c (open, close): Undefine.
37910         * lib/gc-gnulib.c (open, close): Undefine.
37911         * lib/getcwd.c (opendir, closedir): Undefine.
37912         * lib/glob.c (opendir, closedir): Undefine.
37913         * lib/javacomp.c (open, close): Undefine.
37914         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
37915         * lib/openat-proc.c (open, close): Undefine.
37916         * lib/pagealign_alloc.c (open, close): Undefine.
37917         * lib/pipe.c (open, close): Undefine.
37918         * lib/progreloc.c (open, close): Undefine.
37919         * lib/savedir.c (opendir, closedir): Undefine.
37920         * lib/utime.c (open, close): Undefine.
37921         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
37922
37923 2007-01-10  Bruno Haible  <bruno@clisp.org>
37924
37925         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
37926
37927 2007-01-12  Eric Blake  <ebb9@byu.net>
37928
37929         Provide a robust <wchar.h>.  Further simplifications are now
37930         possible in other modules, but not included here.
37931         * modules/wchar: New module.
37932         * m4/wchar.m4: New file.
37933         * lib/wchar_.h: Likewise.
37934         * modules/mbchar (Depends-on): Depend on wchar, as the first use
37935         of the new module.
37936         * MODULES.html.sh (Extended multibyte and wide character utilities):
37937         New section.
37938
37939 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
37940
37941         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
37942         to a reasonable default for memory allocation.
37943         (xreadlink): Don't allocate a huge buffer, to work around a buggy
37944         file system that reports garbage st_size values for symlinks.
37945         Problem reported by Liyang Hu.
37946
37947 2007-01-11  Simon Josefsson  <simon@josefsson.org>
37948
37949         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
37950         Emacs .#* auto-save files).
37951
37952 2007-01-11  Bruno Haible  <bruno@clisp.org>
37953
37954         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
37955         directory.
37956
37957 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37958
37959         Use @...@ consistently in lib/wctype_.h.
37960         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
37961         on it being set to 1 or 0.
37962         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
37963         go back to AC_SUBSTing it.
37964         * modules/wctype (Makefile.am): Undo previous change.
37965
37966 2007-01-10  Eric Blake  <ebb9@byu.net>
37967
37968         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
37969         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
37970         * modules/wctype (Makefile.am): Likewise.
37971         Reported by Chris McGuire.
37972
37973 2007-01-10  Jim Meyering  <jim@meyering.net>
37974
37975         fts.c: a small readability/maintainability improvement
37976         * lib/fts.c (fts_read): Make this code slightly more readable and
37977         maintainable by hoisting the "sp->fts_cur = p" assignments to
37978         immediately follow the statements that set P.  Derived from
37979         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
37980
37981 2007-01-10  Eric Blake  <ebb9@byu.net>
37982
37983         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
37984         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
37985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37986         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37987         Reported by Chris McGuire.
37988
37989 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37990
37991         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
37992         in sed script.
37993
37994 2007-01-09  Bruno Haible  <bruno@clisp.org>
37995
37996         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
37997         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
37998         variables.
37999         (func_module): Use them.
38000
38001 2007-01-09  Bruno Haible  <bruno@clisp.org>
38002
38003         * modules/unistr/base: New file.
38004         * lib/unistr.h: New file.
38005
38006         * modules/unistr/u8-to-u16: New file.
38007         * lib/unistr/u8-to-u16.c: New file.
38008
38009         * modules/unistr/u8-to-u32: New file.
38010         * lib/unistr/u8-to-u32.c: New file.
38011
38012         * modules/unistr/u16-to-u8: New file.
38013         * lib/unistr/u16-to-u8.c: New file.
38014
38015         * modules/unistr/u16-to-u32: New file.
38016         * lib/unistr/u16-to-u32.c: New file.
38017
38018         * modules/unistr/u32-to-u8: New file.
38019         * lib/unistr/u32-to-u8.c: New file.
38020
38021         * modules/unistr/u32-to-u16: New file.
38022         * lib/unistr/u32-to-u16.c: New file.
38023
38024         * modules/unistr/u8-check: New file.
38025         * modules/unistr/u16-check: New file.
38026         * modules/unistr/u32-check: New file.
38027         * lib/unistr/u8-check.c: New file.
38028         * lib/unistr/u16-check.c: New file.
38029         * lib/unistr/u32-check.c: New file.
38030
38031         * modules/unistr/u8-chr: New file.
38032         * modules/unistr/u16-chr: New file.
38033         * modules/unistr/u32-chr: New file.
38034         * lib/unistr/u8-chr.c: New file.
38035         * lib/unistr/u16-chr.c: New file.
38036         * lib/unistr/u32-chr.c: New file.
38037
38038         * modules/unistr/u8-cmp: New file.
38039         * modules/unistr/u16-cmp: New file.
38040         * modules/unistr/u32-cmp: New file.
38041         * lib/unistr/u8-cmp.c: New file.
38042         * lib/unistr/u16-cmp.c: New file.
38043         * lib/unistr/u32-cmp.c: New file.
38044
38045         * modules/unistr/u8-cpy: New file.
38046         * modules/unistr/u16-cpy: New file.
38047         * modules/unistr/u32-cpy: New file.
38048         * lib/unistr/u8-cpy.c: New file.
38049         * lib/unistr/u16-cpy.c: New file.
38050         * lib/unistr/u32-cpy.c: New file.
38051         * lib/unistr/u-cpy.h: New file.
38052
38053         * modules/unistr/u8-cpy-alloc: New file.
38054         * modules/unistr/u16-cpy-alloc: New file.
38055         * modules/unistr/u32-cpy-alloc: New file.
38056         * lib/unistr/u8-cpy-alloc.c: New file.
38057         * lib/unistr/u16-cpy-alloc.c: New file.
38058         * lib/unistr/u32-cpy-alloc.c: New file.
38059         * lib/unistr/u-cpy-alloc.h: New file.
38060
38061         * modules/unistr/u8-endswith: New file.
38062         * modules/unistr/u16-endswith: New file.
38063         * modules/unistr/u32-endswith: New file.
38064         * lib/unistr/u8-endswith.c: New file.
38065         * lib/unistr/u16-endswith.c: New file.
38066         * lib/unistr/u32-endswith.c: New file.
38067         * lib/unistr/u-endswith.h: New file.
38068
38069         * modules/unistr/u8-mblen: New file.
38070         * modules/unistr/u16-mblen: New file.
38071         * modules/unistr/u32-mblen: New file.
38072         * lib/unistr/u8-mblen.c: New file.
38073         * lib/unistr/u16-mblen.c: New file.
38074         * lib/unistr/u32-mblen.c: New file.
38075
38076         * modules/unistr/u8-mbtouc: New file.
38077         * modules/unistr/u16-mbtouc: New file.
38078         * modules/unistr/u32-mbtouc: New file.
38079         * lib/unistr/u8-mbtouc.c: New file.
38080         * lib/unistr/u16-mbtouc.c: New file.
38081         * lib/unistr/u32-mbtouc.c: New file.
38082
38083         * modules/unistr/u8-mbtouc-safe: New file.
38084         * modules/unistr/u16-mbtouc-safe: New file.
38085         * modules/unistr/u32-mbtouc-safe: New file.
38086         * lib/unistr/u8-mbtouc-safe.c: New file.
38087         * lib/unistr/u16-mbtouc-safe.c: New file.
38088         * lib/unistr/u32-mbtouc-safe.c: New file.
38089
38090         * modules/unistr/u8-move: New file.
38091         * modules/unistr/u16-move: New file.
38092         * modules/unistr/u32-move: New file.
38093         * lib/unistr/u8-move.c: New file.
38094         * lib/unistr/u16-move.c: New file.
38095         * lib/unistr/u32-move.c: New file.
38096         * lib/unistr/u-move.h: New file.
38097
38098         * modules/unistr/u8-next: New file.
38099         * modules/unistr/u16-next: New file.
38100         * modules/unistr/u32-next: New file.
38101         * lib/unistr/u8-next.c: New file.
38102         * lib/unistr/u16-next.c: New file.
38103         * lib/unistr/u32-next.c: New file.
38104
38105         * modules/unistr/u8-prev: New file.
38106         * modules/unistr/u16-prev: New file.
38107         * modules/unistr/u32-prev: New file.
38108         * lib/unistr/u8-prev.c: New file.
38109         * lib/unistr/u16-prev.c: New file.
38110         * lib/unistr/u32-prev.c: New file.
38111
38112         * modules/unistr/u8-set: New file.
38113         * modules/unistr/u16-set: New file.
38114         * modules/unistr/u32-set: New file.
38115         * lib/unistr/u8-set.c: New file.
38116         * lib/unistr/u16-set.c: New file.
38117         * lib/unistr/u32-set.c: New file.
38118         * lib/unistr/u-set.h: New file.
38119
38120         * modules/unistr/u8-startswith: New file.
38121         * modules/unistr/u16-startswith: New file.
38122         * modules/unistr/u32-startswith: New file.
38123         * lib/unistr/u8-startswith.c: New file.
38124         * lib/unistr/u16-startswith.c: New file.
38125         * lib/unistr/u32-startswith.c: New file.
38126         * lib/unistr/u-startswith.h: New file.
38127
38128         * modules/unistr/u8-stpcpy: New file.
38129         * modules/unistr/u16-stpcpy: New file.
38130         * modules/unistr/u32-stpcpy: New file.
38131         * lib/unistr/u8-stpcpy.c: New file.
38132         * lib/unistr/u16-stpcpy.c: New file.
38133         * lib/unistr/u32-stpcpy.c: New file.
38134         * lib/unistr/u-stpcpy.h: New file.
38135
38136         * modules/unistr/u8-stpncpy: New file.
38137         * modules/unistr/u16-stpncpy: New file.
38138         * modules/unistr/u32-stpncpy: New file.
38139         * lib/unistr/u8-stpncpy.c: New file.
38140         * lib/unistr/u16-stpncpy.c: New file.
38141         * lib/unistr/u32-stpncpy.c: New file.
38142         * lib/unistr/u-stpncpy.h: New file.
38143
38144         * modules/unistr/u8-strcat: New file.
38145         * modules/unistr/u16-strcat: New file.
38146         * modules/unistr/u32-strcat: New file.
38147         * lib/unistr/u8-strcat.c: New file.
38148         * lib/unistr/u16-strcat.c: New file.
38149         * lib/unistr/u32-strcat.c: New file.
38150         * lib/unistr/u-strcat.h: New file.
38151
38152         * modules/unistr/u8-strchr: New file.
38153         * modules/unistr/u16-strchr: New file.
38154         * modules/unistr/u32-strchr: New file.
38155         * lib/unistr/u8-strchr.c: New file.
38156         * lib/unistr/u16-strchr.c: New file.
38157         * lib/unistr/u32-strchr.c: New file.
38158
38159         * modules/unistr/u8-strcmp: New file.
38160         * modules/unistr/u16-strcmp: New file.
38161         * modules/unistr/u32-strcmp: New file.
38162         * lib/unistr/u8-strcmp.c: New file.
38163         * lib/unistr/u16-strcmp.c: New file.
38164         * lib/unistr/u32-strcmp.c: New file.
38165
38166         * modules/unistr/u8-strcpy: New file.
38167         * modules/unistr/u16-strcpy: New file.
38168         * modules/unistr/u32-strcpy: New file.
38169         * lib/unistr/u8-strcpy.c: New file.
38170         * lib/unistr/u16-strcpy.c: New file.
38171         * lib/unistr/u32-strcpy.c: New file.
38172         * lib/unistr/u-strcpy.h: New file.
38173
38174         * modules/unistr/u8-strcspn: New file.
38175         * modules/unistr/u16-strcspn: New file.
38176         * modules/unistr/u32-strcspn: New file.
38177         * lib/unistr/u8-strcspn.c: New file.
38178         * lib/unistr/u16-strcspn.c: New file.
38179         * lib/unistr/u32-strcspn.c: New file.
38180         * lib/unistr/u-strcspn.h: New file.
38181
38182         * modules/unistr/u8-strdup: New file.
38183         * modules/unistr/u16-strdup: New file.
38184         * modules/unistr/u32-strdup: New file.
38185         * lib/unistr/u8-strdup.c: New file.
38186         * lib/unistr/u16-strdup.c: New file.
38187         * lib/unistr/u32-strdup.c: New file.
38188         * lib/unistr/u-strdup.h: New file.
38189
38190         * modules/unistr/u8-strlen: New file.
38191         * modules/unistr/u16-strlen: New file.
38192         * modules/unistr/u32-strlen: New file.
38193         * lib/unistr/u8-strlen.c: New file.
38194         * lib/unistr/u16-strlen.c: New file.
38195         * lib/unistr/u32-strlen.c: New file.
38196         * lib/unistr/u-strlen.h: New file.
38197
38198         * modules/unistr/u8-strmblen: New file.
38199         * modules/unistr/u16-strmblen: New file.
38200         * modules/unistr/u32-strmblen: New file.
38201         * lib/unistr/u8-strmblen.c: New file.
38202         * lib/unistr/u16-strmblen.c: New file.
38203         * lib/unistr/u32-strmblen.c: New file.
38204
38205         * modules/unistr/u8-strmbtouc: New file.
38206         * modules/unistr/u16-strmbtouc: New file.
38207         * modules/unistr/u32-strmbtouc: New file.
38208         * lib/unistr/u8-strmbtouc.c: New file.
38209         * lib/unistr/u16-strmbtouc.c: New file.
38210         * lib/unistr/u32-strmbtouc.c: New file.
38211
38212         * modules/unistr/u8-strncat: New file.
38213         * modules/unistr/u16-strncat: New file.
38214         * modules/unistr/u32-strncat: New file.
38215         * lib/unistr/u8-strncat.c: New file.
38216         * lib/unistr/u16-strncat.c: New file.
38217         * lib/unistr/u32-strncat.c: New file.
38218         * lib/unistr/u-strncat.h: New file.
38219
38220         * modules/unistr/u8-strncmp: New file.
38221         * modules/unistr/u16-strncmp: New file.
38222         * modules/unistr/u32-strncmp: New file.
38223         * lib/unistr/u8-strncmp.c: New file.
38224         * lib/unistr/u16-strncmp.c: New file.
38225         * lib/unistr/u32-strncmp.c: New file.
38226
38227         * modules/unistr/u8-strncpy: New file.
38228         * modules/unistr/u16-strncpy: New file.
38229         * modules/unistr/u32-strncpy: New file.
38230         * lib/unistr/u8-strncpy.c: New file.
38231         * lib/unistr/u16-strncpy.c: New file.
38232         * lib/unistr/u32-strncpy.c: New file.
38233         * lib/unistr/u-strncpy.h: New file.
38234
38235         * modules/unistr/u8-strnlen: New file.
38236         * modules/unistr/u16-strnlen: New file.
38237         * modules/unistr/u32-strnlen: New file.
38238         * lib/unistr/u8-strnlen.c: New file.
38239         * lib/unistr/u16-strnlen.c: New file.
38240         * lib/unistr/u32-strnlen.c: New file.
38241         * lib/unistr/u-strnlen.h: New file.
38242
38243         * modules/unistr/u8-strpbrk: New file.
38244         * modules/unistr/u16-strpbrk: New file.
38245         * modules/unistr/u32-strpbrk: New file.
38246         * lib/unistr/u8-strpbrk.c: New file.
38247         * lib/unistr/u16-strpbrk.c: New file.
38248         * lib/unistr/u32-strpbrk.c: New file.
38249         * lib/unistr/u-strpbrk.h: New file.
38250
38251         * modules/unistr/u8-strrchr: New file.
38252         * modules/unistr/u16-strrchr: New file.
38253         * modules/unistr/u32-strrchr: New file.
38254         * lib/unistr/u8-strrchr.c: New file.
38255         * lib/unistr/u16-strrchr.c: New file.
38256         * lib/unistr/u32-strrchr.c: New file.
38257
38258         * modules/unistr/u8-strspn: New file.
38259         * modules/unistr/u16-strspn: New file.
38260         * modules/unistr/u32-strspn: New file.
38261         * lib/unistr/u8-strspn.c: New file.
38262         * lib/unistr/u16-strspn.c: New file.
38263         * lib/unistr/u32-strspn.c: New file.
38264         * lib/unistr/u-strspn.h: New file.
38265
38266         * modules/unistr/u8-strstr: New file.
38267         * modules/unistr/u16-strstr: New file.
38268         * modules/unistr/u32-strstr: New file.
38269         * lib/unistr/u8-strstr.c: New file.
38270         * lib/unistr/u16-strstr.c: New file.
38271         * lib/unistr/u32-strstr.c: New file.
38272         * lib/unistr/u-strstr.h: New file.
38273
38274         * modules/unistr/u8-strtok: New file.
38275         * modules/unistr/u16-strtok: New file.
38276         * modules/unistr/u32-strtok: New file.
38277         * lib/unistr/u8-strtok.c: New file.
38278         * lib/unistr/u16-strtok.c: New file.
38279         * lib/unistr/u32-strtok.c: New file.
38280         * lib/unistr/u-strtok.h: New file.
38281
38282         * modules/unistr/u8-uctomb: New file.
38283         * modules/unistr/u16-uctomb: New file.
38284         * modules/unistr/u32-uctomb: New file.
38285         * lib/unistr/u8-uctomb.c: New file.
38286         * lib/unistr/u16-uctomb.c: New file.
38287         * lib/unistr/u32-uctomb.c: New file.
38288
38289         * MODULES.html.sh (Unicode string functions): Add the new modules.
38290
38291 2007-01-08  Bruno Haible  <bruno@clisp.org>
38292
38293         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
38294         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
38295         subdirectories.
38296
38297 2007-01-08  Karl Berry  <karl@gnu.org>
38298
38299         * doc/error.texi: mention that main() fns must set program_name
38300         when progname is used.
38301
38302 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
38303
38304         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
38305         WCTYPE_H is empty, for the benefit of builds from non-distclean
38306         directories.  Problem reported by Eric Blake in
38307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
38308
38309 2007-01-08  Bruno Haible  <bruno@clisp.org>
38310
38311         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
38312         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
38313         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
38314         PROVIDE_CANONICALIZE_FILENAME_MODE.
38315         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
38316
38317 2007-01-08  Bruno Haible  <bruno@clisp.org>
38318
38319         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
38320         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
38321         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
38322         * lib/fts.c: Likewise.
38323         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
38324
38325 2006-12-25  Bruno Haible  <bruno@clisp.org>
38326
38327         * modules/utf8-ucs4-safe: New file.
38328         * lib/utf8-ucs4-safe.h: New file.
38329         * lib/unistr/utf8-ucs4-safe.c: New file.
38330
38331         * modules/utf16-ucs4-safe: New file.
38332         * lib/utf16-ucs4-safe.h: New file.
38333         * lib/unistr/utf16-ucs4-safe.c: New file.
38334
38335         * MODULES.html.sh (Unicode string functions): Add the new modules.
38336
38337 2007-01-08  Bruno Haible  <bruno@clisp.org>
38338
38339         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
38340         (Depends-on): Add unitypes.
38341         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38342         (u8_mbtouc_aux): Move out to separate file.
38343         (u8_mbtouc): Use ucs4_t, uint8_t types.
38344         * lib/unistr/utf8-ucs4.c: New file.
38345
38346         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
38347         (Depends-on): Add unitypes.
38348         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38349         (u16_mbtouc_aux): Move out to separate file.
38350         (u16_mbtouc): Use ucs4_t, uint16_t types.
38351         * lib/unistr/utf16-ucs4.c: New file.
38352
38353         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
38354         (Depends-on): Add unitypes.
38355         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
38356         (u8_uctomb_aux): Move out to separate file.
38357         (u8_uctomb): Use ucs4_t, uint8_t types.
38358         * lib/unistr/ucs4-utf8.c: New file.
38359
38360         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
38361         (Depends-on): Add unitypes.
38362         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
38363         (u16_uctomb_aux): Move out to separate file.
38364         (u16_uctomb): Use ucs4_t, uint16_t types.
38365         * lib/unistr/ucs4-utf16.c: New file.
38366
38367 2006-12-25  Bruno Haible  <bruno@clisp.org>
38368
38369         * modules/unitypes: New file.
38370         * lib/unitypes.h: New file.
38371         * MODULES.html.sh (func_all_modules): New section "Unicode string
38372         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
38373         this section. Add unitypes.
38374
38375 2007-01-08  Bruno Haible  <bruno@clisp.org>
38376
38377         Avoid variable names that conflict with those from libtool.
38378         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
38379         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
38380         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
38381         library_names_spec to acl_library_names_spec, hardcode_* to
38382         acl_hardcode_*.
38383         Reported by Ralf Wildenhues.
38384
38385 2007-01-08  Bruno Haible  <bruno@clisp.org>
38386
38387         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
38388         definition.
38389         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
38390         definition.
38391         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
38392         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
38393         definition.
38394         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
38395         definition.
38396         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
38397         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
38398         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
38399         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
38400         definition.
38401         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
38402         definition.
38403         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
38404         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
38405         GC_USE_<algorithm>.
38406         * lib/gc-libgcrypt.c: Likewise.
38407         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
38408         * modules/gc-arctwo (configure.ac): Likewise.
38409         * modules/gc-des (configure.ac): Likewise.
38410         * modules/gc-hmac-md5 (configure.ac): Likewise.
38411         * modules/gc-hmac-sha1 (configure.ac): Likewise.
38412         * modules/gc-md2 (configure.ac): Likewise.
38413         * modules/gc-md4 (configure.ac): Likewise.
38414         * modules/gc-md5 (configure.ac): Likewise.
38415         * modules/gc-random (configure.ac): Likewise.
38416         * modules/gc-rijndael (configure.ac): Likewise.
38417         * modules/gc-sha1 (configure.ac): Likewise.
38418
38419 2007-01-08  Bruno Haible  <bruno@clisp.org>
38420
38421         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
38422         macro definition.
38423         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
38424         definition.
38425         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
38426         definition.
38427         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
38428         * modules/fcntl-safer (configure.ac): Likewise.
38429         * modules/fopen-safer (configure.ac): Likewise.
38430         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
38431         GNULIB_FWRITEERROR macro definition.
38432
38433 2007-01-08  Bruno Haible  <bruno@clisp.org>
38434
38435         * m4/gnulib-common.m4: New file.
38436         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
38437         (func_get_filelist): Add m4/gnulib-common.m4.
38438
38439 2007-01-08  Bruno Haible  <bruno@clisp.org>
38440
38441         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
38442         command.
38443
38444 2007-01-08  Jim Meyering  <jim@meyering.net>
38445
38446         Use a more robust test for a "can't happen" condition.
38447         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
38448         narrowed the st_size value.  Presuming the "can't happen" condition
38449         is true, that narrowing could conceivably convert an invalid st_size
38450         value into a valid one.  Instead, use a change based on Matthew
38451         Woehlke's original patch.
38452
38453         Slight readability improvement: use an assert-like macro
38454         in place of literal "abort ()" uses.
38455         * lib/fts.c (fts_assert): Define.
38456         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
38457         Use this macro instead of a bare 'abort'.
38458
38459 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
38460
38461         Don't worry about using IRIX 5.3's wctype.h broken definitions;
38462         simply work around them.
38463         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
38464         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
38465         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
38466         declaring.
38467         Don't bother to define as macros, since the standard doesn't require it.
38468         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
38469         longer worry about IRIX 5.3.
38470         (HAVE_WCTYPE_CTMP_BUG): Remove.
38471
38472 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38473
38474         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
38475         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
38476         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38477         Problems reported by Georg Schwarz for IRIX 5.3.
38478
38479         * gnulib-tool (autoconf_minversion): Take the maximum version number
38480         found, not the minimum.  Problem reported by James Youngman.
38481
38482 2007-01-03  Karl Berry  <karl@gnu.org>
38483
38484         * doc/error.texi: new file, explaining interaction with progname.
38485         * doc/gnulib.texi: include it.  Update copyright.
38486
38487 2007-01-03  Simon Josefsson  <simon@josefsson.org>
38488
38489         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
38490         AC_CANONICAL_HOST, to improve autobuild outputs.
38491
38492 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
38493             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38494
38495         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
38496         sockets, server sockets, and other file descriptors.  Count errors
38497         to compute the return value.  Reorder the code a bit to be easier
38498         to follow.  Don't set event bits that were not requested (except
38499         POLLERR and POLLHUP).
38500
38501 2007-01-01  Bruno Haible  <bruno@clisp.org>
38502
38503         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
38504
38505 2007-01-03  Jim Meyering  <jim@meyering.net>
38506
38507         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
38508
38509 2007-01-02  Bruno Haible  <bruno@clisp.org>
38510
38511         * modules/settime (Include): Require timespec.h.
38512         * modules/nanosleep (Include): Likewise.
38513
38514 2007-01-01  Bruno Haible  <bruno@clisp.org>
38515
38516         * gnulib-tool (func_emit_copyright_notice): Bump year.
38517         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
38518
38519 2007-01-01  Bruno Haible  <bruno@clisp.org>
38520
38521         Improve support for OpenBSD.
38522         * build-aux/config.rpath (libname_spec): Export.
38523         (library_names_spec): New variable. Export.
38524         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
38525         library_names_spec from the config.rpath output. Locate shared library
38526         through the name pattern in library_names_spec.
38527
38528 2007-01-01  Eric Blake  <ebb9@byu.net>
38529
38530         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
38531
38532 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
38533
38534         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
38535         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
38536         assume the C locale, and avoid an "eval" that could cause trouble.
38537         Problem with SORT reported by Bob Proulx.
38538
38539         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
38540         Define.  Trivial patch from Henning Nielsen Lund, originally
38541         sent to bug-grep@gnu.org today.
38542
38543 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38544
38545         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
38546         struct stat.  Problem reported by Henning Nielsen Lund.
38547         * lib/acl.c: Include acl.h first, to check interface.  Don't
38548         bother to include sys/types.h and sys/stat.h again.
38549
38550 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38551
38552         Import the following change from libc; problem reported by
38553         Sven Verdoolaege.
38554
38555         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
38556
38557         [BZ #1373]
38558         * lib/argp.h: Remove __NTH for __argp_usage inline function.
38559
38560 2006-12-28  Jim Meyering  <jim@meyering.net>
38561
38562         * build-aux/announce-gen: Do not assume that the package
38563         builds any of tar.gz, tar.bz2, and .xdelta files.
38564         Suggestion from Simon Josefsson.
38565
38566 2006-12-28  Simon Josefsson  <simon@josefsson.org>
38567
38568         * modules/announce-gen: New file.
38569
38570 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
38571
38572         * lib/mbchar.h: Just include <wctype.h>; the wctype module
38573         handles its gotchas now.
38574         * lib/mbswidth.c: Likewise.
38575         * lib/wcwidth.h: Likewise.
38576         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
38577         and iswcntrl; the wctype module does this stuff now.
38578         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38580         * modules/mbchar (Depends-on): Add wctype.
38581         * modules/mbswidth (Depends-on): Likewise.
38582         * modules/wcwidth (Depends-on): Likewise.
38583
38584 2006-12-27  Eric Blake  <ebb9@byu.net>
38585
38586         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
38587         module uses more than what <wctype.h> is required to provide.
38588
38589 2006-12-26  Eric Blake  <ebb9@byu.net>
38590
38591         * gnulib-tool (sed_extract_prog): Avoid space-tab.
38592
38593 2006-12-26  Eric Blake  <ebb9@byu.net>
38594
38595         * modules/absolute-header: New module.
38596         * modules/fcntl (Depends-on): Depend on it.
38597         * modules/inttypes (Depends-on): Likewise.
38598         * modules/stdint (Depends-on): Likewise.
38599         * modules/sys_stat (Depends-on): Likewise.
38600         * modules/wctype (Depends-on): Likewise.
38601         * MODULES.html.sh (Support for building libraries and
38602         executables): Document it.
38603
38604 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38605
38606         * gnulib-tool (SED): Remove, undoing previous change.
38607         The problem was that it broke coreutils on Solaris, because
38608         "sed --posix" leaked into a makefile.
38609         (sed): New alias, if 'alias' and GNU sed.
38610
38611 2006-12-24  Jim Meyering  <jim@meyering.net>
38612
38613         Work around an fchownat bug in glibc-2.4:
38614         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
38615         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
38616         in spite of the -P option.
38617         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
38618         New macros.
38619         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
38620         * modules/openat (Files): Add lib/fchownat.c.
38621         * lib/openat.c (fchownat): Don't define here.  Move to...
38622         * lib/fchownat.c: ...this new file.
38623
38624 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38625
38626         Fix bug reported by Bruno Haible in
38627         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
38628         where quotearg.c didn't compile on Mac OS X 10.2 because it
38629         lacks <wchar.h> and wint_t.
38630         * lib/wctype_.h (__wctype_wint_t): New type.
38631         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
38632         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
38633         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
38634         Arg is now of type __wctype_wint_t, not wint_t.
38635         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
38636         substitute HAVE_WINT_T.
38637         * modules/wctype (Files): Add m4/wint_t.m4.
38638         (wctype.h): Substitute HAVE_WINT_T.
38639
38640 2006-12-23  Bruno Haible  <bruno@clisp.org>
38641
38642         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
38643
38644 2006-12-23  Bruno Haible  <bruno@clisp.org>
38645
38646         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
38647         S_ISLNK.
38648         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
38649         mingw.
38650
38651 2006-12-22  Bruno Haible  <bruno@clisp.org>
38652
38653         * lib/copy-file.c: Include acl.h.
38654         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
38655         Close the file descriptors only after being done with copy_acl.
38656         * modules/copy-file (Depends-on): Add acl.
38657
38658 2006-12-22  Bruno Haible  <bruno@clisp.org>
38659
38660         * gnulib-tool (SED): New variable.
38661         Use $SED instead of sed everywhere.
38662
38663 2006-12-22  Bruno Haible  <bruno@clisp.org>
38664
38665         * modules/no-c++: New file.
38666         * m4/no-c++.m4: New file.
38667         * MODULES.html.sh (Support for building libraries and executables):
38668         Add no-c++.
38669
38670 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
38671
38672         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
38673         Include <limits.h>, and use its INT_MAX to rewrite the
38674         j loop so that it does not overflow 'int'.  Problem reported by
38675         Ralf Wildenhues in
38676         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
38677         Play it safe by shifting left by 1 rather than multiplying by 2,
38678         as GCC is less likely to optimize this away when the value
38679         is signed (when it assumes overflow leads to undefined behavior).
38680         Also, don't assume time_t uses two's complement.
38681
38682 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
38683
38684         * MODULES.html.sh: New module wctype.
38685         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
38686         * lib/fnmatch.c: Don't bother to include <wchar.h> before
38687         <wctype.h>, since the new wctype module should fix this.
38688         * lib/quotearg.c: Include <wctype.h> unconditionally, since
38689         the wctype module should arrange for it.
38690         * lib/regex_internal.h: Likewise.
38691         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
38692         since the wctype module should handle this now.
38693         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
38694         * modules/fnmatch (Depends-on): Add wctype.
38695         * modules/quotearg (Depends-on): Likewise.
38696         * modules/regex (Depends-on): Likewise.
38697
38698 2006-12-19  Bruno Haible  <bruno@clisp.org>
38699
38700         * lib/strdup.h [C++]: Wrap definitions in extern "C".
38701         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
38702
38703 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38704
38705         * modules/savewd (Depends-on): Fix dependency on fcntl.
38706
38707 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38708
38709         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
38710         conforms to C99, rather than relying on the user's environment
38711         setting of STDINT_H.
38712
38713 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38714         and Eric Blake  <ebb9@byu.net>
38715
38716         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
38717         This is more consistent with the other defines here.
38718         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
38719         Port to z/OS.  Problem reported by Paul Gilmartin.
38720         Change local vars to use gl_ prefix rather than ac_.
38721         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
38722         with other defines.
38723         * modules/double-slash-root: New module.
38724         * modules/dirname (Files): Remove m4/double-slash-root.m4.
38725         (Depends-on): Add double-slash-root.
38726         * MODULES.html.sh (File system functions): Mention new module.
38727
38728 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
38729
38730         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
38731         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
38732         This is for the benefit of gzip, which doesn't do i18n.
38733
38734 2006-12-12  Jim Meyering  <jim@meyering.net>
38735
38736         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
38737         Reported by Andreas Schwab <schwab@suse.de>.
38738
38739 2006-12-12  Bruno Haible  <bruno@clisp.org>
38740
38741         Merge these changes.
38742         2006-09-05  Bruno Haible  <bruno@clisp.org>
38743         * lib/iconvme.c (iconv_string): No need to save and restore errno when
38744         iconv_alloc succeeded.
38745         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
38746         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
38747         test for " && dest " at the end - dest is always != NULL there. Call
38748         iconv with 4xNULL arguments initially, to reset the state. Call iconv
38749         with 2xNULL arguments, also to flush the state storage. Handle the
38750         IRIX iconv behaviour. Realloc the final result, to throw away unused
38751         memory.
38752
38753 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
38754
38755         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
38756         and fchmodat unconditionally, since glibc 2.4 has them.
38757         Problem reported by Arkadiusz Miskiewicz.
38758
38759 2006-12-10  Bruno Haible  <bruno@clisp.org>
38760
38761         * gnulib-tool (func_import): Show the include files only for those
38762         modules that are copied and specified.
38763         Reported by Karl Berry.
38764
38765 2006-12-08  Jim Meyering  <jim@meyering.net>
38766
38767         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
38768         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
38769
38770         * build-aux/announce-gen: Add two new options, both optional:
38771         --bootstrap-tools=TOOL_LIST
38772               a comma-separated list of tools, e.g.,
38773               autoconf,automake,bison,gnulib
38774         --gnulib-snapshot-date=DATE
38775               if gnulib is in the bootstrap tool list,
38776               then report this as the snapshot date.
38777               If not specified, use the current date/time.
38778               If you specify a date here, be sure it's UTC.
38779
38780 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38781
38782         * tests/test-argp-2.sh: Fix test to match actual output.
38783         (func_compare): Fix sed script to be portable.
38784
38785 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
38786
38787         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
38788         workaround for this case.  It is not autoconfigured now; offhand
38789         it's hard to see how to autoconfigure it.
38790
38791 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38792
38793         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
38794         a directory that is about to be chowned.  Such a directory's
38795         initial file permissions should permit the owner only and this
38796         should not be changed until after the chown, since the group and
38797         other bits would be incorrect if they granted permission before
38798         the chown.
38799
38800         Fix porting problem for iswctype reported by Georg Schwarz in:
38801         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
38802         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
38803         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
38804         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
38805         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38806
38807 2006-12-03  Jim Meyering  <jim@meyering.net>
38808
38809         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
38810         p->fts_statp may not yet be defined.
38811         (fts_read): Instead, set it in the caller, once p->fts_statp is
38812         sure to be defined, and corresponds to a top-level directory.
38813         This bug made du -x fail.  Here's the coreutils test case:
38814         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
38815         Reported by Mike Frysinger.
38816
38817 2006-12-01  Jim Meyering  <jim@meyering.net>
38818
38819         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
38820         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
38821         Reported by Simon Josefsson.
38822
38823 2006-11-30  Jim Meyering  <jim@meyering.net>
38824
38825         * m4/warning.m4: Use the all-permissive copyright notice
38826         recommended by RMS (rather than LGPL).
38827         * m4/vararrays.m4: Likewise.
38828         * m4/flexmember.m4: Likewise.
38829
38830 2006-11-29  Bruno Haible  <bruno@clisp.org>
38831
38832         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38833         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
38834         using +=.
38835         Reported by Simon Josefsson <simon@josefsson.org>.
38836
38837 2006-11-28  James Youngman <jay@gnu.org>
38838
38839         * README: Advise users that they might find the bug-gnulib@gnu.org
38840         and autotools-announce@gnu.org mailing lists useful.
38841
38842 2006-11-28  Bruno Haible  <bruno@clisp.org>
38843
38844         * m4/ptrdiff_max.m4: Remove file.
38845
38846 2006-11-21  Bruno Haible  <bruno@clisp.org>
38847
38848         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
38849         _AC_COMPUTE_INT.
38850         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38851         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
38852         _AC_COMPUTE_INT.
38853         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38854         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
38855         _AC_COMPUTE_INT.
38856         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38857
38858 2006-11-28  Jim Meyering  <jim@meyering.net>
38859
38860         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
38861         warning from "gcc -Wshadow" about shadowing the builtin.
38862
38863 2006-11-27  Bruno Haible  <bruno@clisp.org>
38864
38865         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
38866         _AC_COMPUTE_INT.
38867         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38868
38869 2006-11-27  Bruno Haible  <bruno@clisp.org>
38870             Paul Eggert  <eggert@cs.ucla.edu>
38871
38872         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
38873
38874 2006-11-26  Bruno Haible  <bruno@clisp.org>
38875
38876         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38877         noinst_LTLIBRARIES.
38878
38879 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
38880             Bruno Haible  <bruno@clisp.org>
38881
38882         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
38883         if compiling with "gcc -ansi".
38884
38885 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
38886
38887         Fix some incompatibilities with gcc -ansi -pedantic.
38888         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
38889         if compiling pedantically with GCC, unless it's C99 or later.
38890         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
38891         it mishandles gcc -ansi -pedantic as well.
38892         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
38893         if gcc -pedantic.
38894         * lib/regexec.c (check_node_accept_bytes): Don't use auto
38895         initializers for struct if -pedantic, unless it's C99 or later.
38896
38897 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
38898
38899         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
38900         Don't close an fd more than once. Identical atimes indicate
38901         success, not failure.
38902
38903 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
38904
38905         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
38906
38907 2006-11-23  Jim Meyering  <jim@meyering.net>
38908
38909         * build-aux/announce-gen: New file.  From coreutils.
38910
38911 2006-11-22  Jim Meyering  <jim@meyering.net>
38912
38913         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
38914         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
38915         (fts_read): Use a temporary to narrow the overused st_size member
38916         before using it in a switch statement.  Reported by Matthew Woehlke.
38917
38918         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
38919         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38920
38921 2006-11-20  Bruno Haible  <bruno@clisp.org>
38922
38923         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
38924         changequote instead of pairs of brackets.
38925         Reported by Andreas Schwab <schwab@suse.de>.
38926
38927 2006-11-21  Jim Meyering  <jim@meyering.net>
38928
38929         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
38930         so as to remain compatible with older compilers.
38931         Patch from Michael Deutschmann.
38932
38933 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
38934
38935         * MODULES.html.sh (File system functions): Add openat.
38936
38937         * lib/openat.h (rpl_fstatat): New macro, if
38938         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
38939         (fstatat): Define to rpl_fstatat under the same conditions,
38940         unless COMPILING_FSTATAT.
38941         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
38942         seems to have the bug.
38943         * lib/fstatat.c: New file.
38944         * modules/openat (Files): Add it.
38945
38946 2006-11-20  Bruno Haible  <bruno@clisp.org>
38947
38948         * Makefile: New file.
38949
38950 2006-11-20  Jim Meyering  <jim@meyering.net>
38951
38952         The beginnings of syntax-related checks for gnulib.
38953         * lib/Makefile: New file.
38954         * lib/t-idcache: New script.  Ensure that the two halves of
38955         idcache.c stay in sync.
38956
38957         * lib/idcache.c: Adjust comments in user- and group- portions to
38958         be more accurate, and to be consistent with one another.
38959
38960 2006-11-20  Jim Meyering  <jim@meyering.net>
38961
38962         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
38963         continue using the flexible array member (thus, this module performs
38964         half as many malloc calls), with the addition that...
38965         (getgroup, getuser): Consistently record a non-match via an empty
38966         "name" string, and map an empty string match to a NULL return value.
38967         * modules/idcache (Depends-on): Re-add flexmember.
38968
38969         * lib/idcache.c (getuser): Remove all uses of the register keyword.
38970         (getuidbyname, getgroup, getgidbyname): Likewise.
38971
38972         Use cleaner syntax: NULL rather than 0.
38973         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
38974
38975 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
38976
38977         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
38978         It mishandled the case where the group was missing.
38979         Problem reported by Greg Schafer.
38980         * modules/idcache: Likewise.
38981
38982 2006-11-18  Jim Meyering  <jim@meyering.net>
38983
38984         * check-module (%exempt_header): Add exception for some
38985         conditionally-included headers.
38986
38987         * modules/i-ring (Depends-on): Add verify.
38988         (License): Change to LGPL.
38989
38990 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38991
38992         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
38993         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
38994         and inttostr.h.  Use snprintf rather than uinttostr, so that
38995         LGPLed code doesn't depend on GPLed.
38996
38997 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
38998
38999         * modules/inline (License): Change from GPL to LGPL.
39000
39001 2006-11-17  Jim Meyering  <jim@meyering.net>
39002
39003         * modules/d-type (License): Switch to LGPL.
39004
39005 2006-11-15  Bruno Haible  <bruno@clisp.org>
39006
39007         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39008
39009 2006-11-15  Eric Blake  <ebb9@byu.net>
39010
39011         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39012         the module dependency.
39013
39014 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39015             Bruno Haible  <bruno@clisp.org>
39016
39017         * gnulib-tool (func_create_testdir): Add license consistency check.
39018
39019 2006-11-15  Eric Blake  <ebb9@byu.net>
39020
39021         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39022         random "(cached)" in configure output.
39023
39024 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39025
39026         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39027         test for conforming inttypes.h is both announced and cached.
39028
39029         * MODULES.html.sh (seen_modules, seen_files): New variables.
39030         (func_module): Rewrite to use a few less gnulib-tool and sed
39031         invocations.  Avoid a couple of quadratic algorithms for ...
39032         (missed_modules, missed_files): ... these, with ...
39033         (func_append, func_tmpdir): ... these new functions, from
39034         gnulib-tool.  Analogously, install traps for cleanup.
39035
39036         * tests/test-gc.c (main): Remove unused variables.
39037         * tests/test-read-file.c: Include stdlib.h, for 'free'.
39038
39039 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
39040
39041         * modules/inttostr (License): Change to LGPL.
39042
39043 2006-11-14  Eric Blake  <ebb9@byu.net>
39044
39045         * modules/tempname (License): Change to LGPL.
39046
39047 2006-11-14  Eric Blake  <ebb9@byu.net>
39048
39049         * doc/functions.texi (Function Portability): *printf functions on
39050         Cygwin now understand all POSIX size specifiers.
39051
39052 2006-11-14  Bruno Haible  <bruno@clisp.org>
39053
39054         * modules/c-ctype (License): Change to LGPL.
39055
39056 2006-11-12  Bruno Haible  <bruno@clisp.org>
39057
39058         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39059         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39060         for GNOME libraries, for which the include files are installed in
39061         subdirectories of $prefix/include.
39062
39063 2006-11-12  Bruno Haible  <bruno@clisp.org>
39064
39065         * m4/lib-link.m4: Require at least autoconf-2.54.
39066         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39067         name to underscores for the --with option.
39068
39069 2006-11-13  Bruno Haible  <bruno@clisp.org>
39070
39071         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39072         the tests directory.
39073         Reported by Ralf Wildenhues.
39074
39075 2006-11-13  Bruno Haible  <bruno@clisp.org>
39076
39077         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39078         (func_emit_initmacro_end): Undo the override here.
39079         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39080         Works around the famous automake error in coreutils.
39081
39082 2006-11-13  Eric Blake  <ebb9@byu.net>
39083
39084         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39085         element, not its node.
39086
39087 2006-11-12  Bruno Haible  <bruno@clisp.org>
39088
39089         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39090         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39091
39092 2006-11-12  Bruno Haible  <bruno@clisp.org>
39093
39094         * gnulib-tool: New option --local-symlink.
39095         (func_usage): Document it.
39096         (lsymbolic): New variable.
39097         (func_import, func_create_testdir): If --symlink was not specified,
39098         test whether --local-symlink was specified and the file comes from
39099         the local_gnulib_dir.
39100
39101 2006-11-12  Bruno Haible  <bruno@clisp.org>
39102
39103         * gnulib-tool (func_ln): New function.
39104         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39105
39106 2006-11-12  Bruno Haible  <bruno@clisp.org>
39107
39108         Finish support for source files in subdirectories.
39109         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39110         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39111         AUTOMAKE_OPTIONS.
39112         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39113
39114 2006-11-12  Bruno Haible  <bruno@clisp.org>
39115
39116         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39117         EXTRA_lib_SOURCES augmentation.
39118         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39119
39120 2006-11-12  Jim Meyering  <jim@meyering.net>
39121
39122         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39123         file descriptors.  This also averts a failure on systems with
39124         native openat support when a traversed directory lacks "x" access.
39125         * lib/fts_.h: Include "i-ring.h"
39126         (struct FTS) [fts_fd_ring]: New member.
39127         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39128         (FCHDIR): Add parentheses.
39129         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39130         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
39131         When descending, rather than simply closing the previous
39132         fts_cwd_fd value, push that file descriptor onto the ring.
39133         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39134         (fts_open): Initialize the new fd_ring member.
39135         (fts_close): Clear the ring.
39136         (fts_safe_changedir): When possible, use our new fd_ring to skip
39137         the diropen and fstat and dev/ino comparison that would normally
39138         accompany a virtual `chdir ("..")'.
39139
39140         * modules/fts (Depends-on): Add i-ring.
39141         * modules/i-ring: New module.
39142         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39143         * m4/i-ring.m4: New file.
39144
39145 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39146
39147         * gnulib-tool (func_create_testdir): Fix replacement of
39148         `build-aux' in configure.ac.  Run autotools in gltests
39149         subdirectory.
39150         (func_create_testdir, func_create_megatestdir, test): There is
39151         no need for '--force' in most autotool invocations in a new
39152         tree.  Actually fail the whole test if any of the tools, or the
39153         configure or make stages fail.
39154
39155         Sync from Automake.
39156         * build-aux/gnupload: Revert last change.  Add pointer to upload
39157         instructions of the GNU Maintenance Instructions.
39158         Suggestion by Karl Berry.
39159
39160 2006-11-10  Jim Meyering  <jim@meyering.net>
39161
39162         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39163
39164 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39165
39166         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39167         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39168         (bind_textdomain_codeset) [! ENABLE_NLS]:
39169         Evaluate all the arguments.  That way, callers get compatible behavior
39170         if the arguments have side effects.  Also, it avoids some GCC
39171         diagnostics in some cases; Joel E. Denny reported problems when Bison
39172         was configured with --enable-gcc-warnigs.
39173
39174 2006-11-10  Jim Meyering  <jim@meyering.net>
39175
39176         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39177         relevant options in CFLAGS (like -O, -fno-inline) are taken into
39178         account.
39179
39180 2006-11-10  Jim Meyering  <jim@meyering.net>
39181
39182         * modules/inline: New file/module.
39183         * modules/xalloc (Files): Remove m4/inline.m4.
39184         (Depends-on): Add inline, instead.
39185         * modules/oset: Likewise.
39186         * modules/list: Likewise.
39187
39188 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39189
39190         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39191         Problem reported by Matthew Woehlke.
39192
39193 2006-11-09  Bruno Haible  <bruno@clisp.org>
39194
39195         * lib/tempname.c (gen_tempname): Remove variant that invokes
39196         __gen_tempname.
39197         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39198         __gen_tempname.
39199
39200 2006-11-08  Bruno Haible  <bruno@clisp.org>
39201
39202         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39203         to 'yes' instead of 'cross-compiling'.
39204
39205 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
39206
39207         * lib/quotearg.h (quotearg_free): New decl.
39208         * lib/quotearg.c (quotearg_free): New function.
39209         (slot0, nslots, slotvec0, slotvec):
39210         Now file-scope so that quotearg_free can get at them.
39211
39212 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39213
39214         Sync from Automake.
39215         * build-aux/gnupload: Add missing 'gnu' to example URL.
39216         Report by Karl Berry.
39217
39218 2006-11-08  Bruno Haible  <bruno@clisp.org>
39219
39220         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39221         Suggested by Paul Eggert.
39222
39223 2006-11-08  Jim Meyering  <jim@meyering.net>
39224
39225         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39226         It's already included if !_LIBC.
39227         (fts_safe_changedir): Add a comment.
39228
39229 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39230
39231         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39232         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39233         Matthew Woehlke.
39234
39235         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39236         definitions up, to avoid colliding with change below.
39237         (static_inline) [HAVE_INLINE]: New macro.
39238         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39239         Provide extern decls when !HAVE_INLINE.  Do not define unless
39240         static_inline is defined, either by us or by xmalloc.c.  Use
39241         static_inline rather than static inline.
39242         (XCALLOC): Optimize sizeof(T) = 1 case.
39243         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39244
39245 2006-11-07  Bruno Haible  <bruno@clisp.org>
39246
39247         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39248         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39249         AC_C_INLINE.
39250         * modules/xalloc (Files): Add m4/inline.m4.
39251
39252 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39253
39254         * README: Fix typo.
39255         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39256         (Miscellanous Notes): ...from this.
39257
39258 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39259
39260         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39261         Mention that offsetof should be used instead of sizeof.
39262         From Bruno Haible.
39263
39264 2006-11-07  Bruno Haible  <bruno@clisp.org>
39265
39266         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39267
39268 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39269
39270         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39271         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39272         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39273         (gl_tree_add_before, gl_tree_add_after):
39274         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39275         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39276         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39277         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39278         (gl_linked_add_after, gl_linked_add_at): Likewise.
39279         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39280         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39281         (gl_tree_add_before, gl_tree_add_after): Likewise.
39282         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39283         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39284         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39285
39286 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39287
39288         * lib/gl_oset.h: Use C comment style, not C++ comment style.
39289
39290 2006-11-06  Bruno Haible  <bruno@clisp.org>
39291
39292         * m4/inline.m4: New file.
39293         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
39294         * modules/list (Files): Add m4/inline.m4.
39295         * modules/oset (Files): Likewise.
39296
39297 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39298
39299         * lib/idcache.c: Include <stddef.h>, for offsetof.
39300         (struct userid.name): Change from char * to a flexible array member.
39301         All uses changed.
39302         * modules/idcache (Depends-on): Add flexmember.
39303
39304         * MODULES.html.sh (Core language properties): New module flexmember.
39305         * modules/flexmember, m4/flexmember.m4: New files.
39306
39307         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
39308         inline functions that are identical with the old xnmalloc_inline,
39309         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
39310         that we can avoid some unnecessary integer multiplications and
39311         divisions in the common case where the element size is known at
39312         compile time.
39313         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
39314         needed.
39315         (xnboundedmalloc): Remove.
39316         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
39317         arguments, for consistency with rest of this header.
39318         (xcharalloc): Rewrite using XNMALLOC.
39319         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
39320         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
39321         versions have been moved to lib/xalloc.h and renamed to be the
39322         non-*_inline versions.
39323         (xmalloc, xrealloc): Implement without reference to the xnmalloc
39324         and xnrealloc functions, since those functions are now inline and
39325         now call us.
39326         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
39327         renaming described above.
39328         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
39329         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
39330         captures the dependency in AC_C_INLINE.
39331
39332         New module canonicalize-lgpl, proposed by Charles Wilson in
39333         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
39334         with a few small changes afterwards.
39335         * MODULES.html.sh (File system functions): New module
39336         canonicalize-lgpl.
39337         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
39338         and canonicalize_file_name.
39339         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
39340         * modules/canonicalize-lgpl: New files.
39341
39342 2006-11-05  Bruno Haible  <bruno@clisp.org>
39343
39344         * gnulib-tool (func_import, func_create_testdir): Create directories
39345         also for files in subdirectories of lib/.
39346
39347 2006-11-05  Bruno Haible  <bruno@clisp.org>
39348
39349         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
39350         ANSI C compliant.
39351
39352 2006-11-03  Bruno Haible  <bruno@clisp.org>
39353
39354         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39355         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
39356         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
39357         (xnboundedmalloc): New inline function.
39358         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
39359         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
39360         xmalloc.
39361         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
39362         xmalloc.
39363         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
39364         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
39365         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
39366         xmalloc.
39367         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39368         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
39369         xmalloc.
39370         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
39371         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39372         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
39373         xmalloc.
39374         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39375         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
39376         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39377         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
39378         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
39379         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
39380         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
39381
39382 2006-11-03  Bruno Haible  <bruno@clisp.org>
39383
39384         * lib/c-ctype.h [C++]: Define functions without name mangling.
39385         * lib/fwriteerror.h [C++]: Likewise.
39386         * lib/gcd.h [C++]: Likewise.
39387         * lib/linebreak.h [C++]: Likewise.
39388
39389 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39390
39391         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
39392         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
39393         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
39394         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
39395         Check for functions and headers just once.
39396         Check for declaration of canonicalize_file_name.
39397         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
39398
39399 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39400
39401         * gnulib-tool (func_import): Fix typo in actioncmd.
39402
39403 2006-11-02  Bruno Haible  <bruno@clisp.org>
39404
39405         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
39406         newline sequence in the Makefile.am snippet as a space, like "make"
39407         does.
39408         Reported by Roger Persson <perrog@gmail.com>.
39409
39410 2006-11-01  Bruno Haible  <bruno@clisp.org>
39411
39412         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
39413         already declared in <string.h>.
39414         * lib/strcase.h (strncasecmp): Don't declare it if yes.
39415
39416 2006-11-01  Bruno Haible  <bruno@clisp.org>
39417
39418         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
39419         * lib/strcase.h: Include <string.h>.
39420         (strcasecmp): Define to rpl_strcasecmp here.
39421
39422 2006-11-01  Bruno Haible  <bruno@clisp.org>
39423
39424         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
39425
39426 2006-11-01  Eric Blake  <ebb9@byu.net>
39427
39428         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
39429
39430         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
39431
39432 2006-10-29  Bruno Haible  <bruno@clisp.org>
39433
39434         Make it compile in C++ mode.
39435         * lib/full-write.c (full_rw): Add a cast.
39436
39437 2006-11-01  Bruno Haible  <bruno@clisp.org>
39438
39439         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
39440         be POSIX compliant.
39441         Reported by Roger Persson <perrog@gmail.com>.
39442
39443 2006-11-01  Eric Blake  <ebb9@byu.net>
39444
39445         * lib/getopt_.h: Fix comments.
39446
39447 2006-10-31  Eric Blake  <ebb9@byu.net>
39448
39449         * modules/tmpdir (Depends-on): Add sys_stat.
39450         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
39451         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
39452         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
39453         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
39454         tempname.
39455
39456 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
39457
39458         Avoid some C++ diagnostics reported by Bruno Haible.
39459         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
39460         xmalloc.
39461         (quotearg_alloc): Use xcharalloc rather than xmalloc.
39462         (struct slotvec): Move to top level.
39463         (quotearg_n_options): Rewrite to avoid xmalloc.
39464         * lib/xalloc.h (xcharalloc): New function.
39465         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
39466         [defined __cplusplus]: Add function template that provides result
39467         type propagation.  This part of the change is from Bruno Haible.
39468
39469 2006-10-29  Bruno Haible  <bruno@clisp.org>
39470
39471         Make it compile in C++ mode.
39472         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
39473         * lib/strnlen1.c (strnlen1): Cast memchr result.
39474         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
39475         * lib/clean-temp.c (string_equals, string_hash): Add casts.
39476         (create_temp_dir): Rename local variable 'template'.
39477         (compile_csharp_using_sscli): Add cast.
39478         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
39479         * lib/findprog.c (find_in_path): Likewise.
39480         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
39481         * lib/wait-process.c (register_slave_subprocess): Likewise.
39482
39483 2006-10-22  Bruno Haible  <bruno@clisp.org>
39484
39485         * modules/tsearch: New file.
39486         * lib/tsearch.h: New file.
39487         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
39488         * m4/tsearch.m4: New file.
39489         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
39490
39491 2006-10-29  Eric Blake  <ebb9@byu.net>
39492
39493         * lib/arcfour.c: Assume config.h.
39494         * lib/arctwo.c: Likewise.
39495         * lib/base64.c: Likewise.
39496         * lib/check-version.c: Likewise.
39497         * lib/crc.c: Likewise.
39498         * lib/des.c: Likewise.
39499         * lib/gc-gnulib.c: Likewise.
39500         * lib/gc-libgcrypt.c: Likewise.
39501         * lib/gc-pbkdf2-sha1.c: Likewise.
39502         * lib/getaddrinfo.c: Likewise.
39503         * lib/getdelim.c: Likewise.
39504         * lib/getline.c: Likewise.
39505         * lib/hmac-md5.c: Likewise.
39506         * lib/hmac-sha1.c: Likewise.
39507         * lib/iconvme.c: Likewise.
39508         * lib/md2.c: Likewise.
39509         * lib/md4.c: Likewise.
39510         * lib/memxor.c: Likewise.
39511         * lib/read-file.c: Likewise.
39512         * lib/readline.c: Likewise.
39513         * lib/rijndael-alg-fst.c: Likewise.
39514         * lib/rijndael-api-fst.c: Likewise.
39515         * lib/xgetdomainname.c: Likewise.
39516
39517 2006-10-28  Eric Blake  <ebb9@byu.net>
39518
39519         * lib/xstrndup.c: Assume config.h.
39520
39521 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
39522
39523         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
39524         stat-macros.h is now for our own macros, whereas stat_h is for
39525         macros in the <sys/stat.h> name space.
39526         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
39527         (STAT_MACROS_H): Remove.
39528         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
39529         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
39530         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
39531         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
39532         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
39533         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
39534         Move these macros to ...
39535         * lib/stat_.h: here.  Don't include stat-macros.h.
39536         * lib/canonicalize.c: Don't include stat-macros.h.
39537         * lib/chown.c: Likewise.
39538         * lib/euidaccess.c: Likewise.
39539         * lib/file-type.c: Likewise.
39540         * lib/filemode.c: Likewise.
39541         * lib/glob.c: Likewise.
39542         * lib/isapipe.c: Likewise.
39543         * lib/lchown.c: Likewise.
39544         * lib/lstat.c: Likewise.
39545         * lib/mkdir-p.c: Likewise.
39546         * lib/rmdir.c: Likewise.
39547         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
39548         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
39549         unless mkdir isn't declared, to speed up 'configure'.
39550         Always create sys/stat.h, since it's unlikely any real sys/stat.h
39551         would define all the S_* symbols.
39552         * modules/canonicalize (Depends-on):
39553         Depend on sys_stat, not stat-macros.
39554         * modules/chown: Likewise.
39555         * modules/euidaccess: Likewise.
39556         * modules/filemode: Likewise.
39557         * modules/file-type: Likewise.
39558         * modules/glob: Likewise.
39559         * modules/isapipe: Likewise.
39560         * modules/lchown: Likewise.
39561         * modules/lstat: Likewise.
39562         * modules/mkancesdirs: Likewise.
39563         * modules/rmdir: Likewise.
39564         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
39565         * modules/modechange: Likewise.
39566         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
39567         (configure.ac): Remove gl_STAT_MACROS.
39568         * modules/sys_stat (Depends-on): Remove stat-macros.
39569
39570 2006-10-27  Bruno Haible  <bruno@clisp.org>
39571
39572         * m4/signed.m4: Remove file.
39573         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
39574         invocation.
39575         * modules/vasnprintf (Files): Remove m4/signed.m4.
39576
39577 2006-10-27  Bruno Haible  <bruno@clisp.org>
39578
39579         Update to GNU gettext 0.16.
39580         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
39581         m4/inttypes-h.m4, m4/signed.m4.
39582         * m4/gettext.m4: Update to GNU gettext 0.16.
39583         * m4/intl.m4: New file, from GNU gettext.
39584         * m4/intldir.m4: New file, from GNU gettext.
39585         * config/srclist.txt: Update
39586
39587 2006-10-27  Eric Blake  <ebb9@byu.net>
39588
39589         * MODULES.html.sh: Document tempname.
39590         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
39591         dependencies.
39592         (Files): Move lib/tempname.c...
39593         * modules/tempname: ...to this new module.
39594         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
39595         (gl_PREREQ_TEMPNAME): Move...
39596         * m4/tempname.m4: ...to this new file.
39597         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
39598         * modules/sys_stat (Depends-on): Add stat-macros.
39599         * lib/stat_.h (includes): Pick up stat macros.
39600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
39601         if stat macros are broken.
39602         * lib/tempname.c (includes): No need to include "stat-macros.h".
39603         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
39604         (direxists, __path_search) [!_LIBC]: Don't compile these in
39605         gnulib; the tmpdir module covers that.
39606         * lib/tempname.h: New file.
39607
39608 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
39609
39610         * COPYING: Explain how gnulib-tool converts licence headers.
39611         Almost all wording by Eric Blake.
39612
39613 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
39614
39615         * lib/mbchar.h (is_basic_table): Make read-only.
39616         * lib/mbchar.c (is_basic_table): Likewise.
39617         Reported by John Darrington.
39618
39619 2006-10-25  Bruno Haible  <bruno@clisp.org>
39620
39621         * lib/progname.h (set_program_name): Undefine before defining.
39622
39623 2006-10-25  Bruno Haible  <bruno@clisp.org>
39624
39625         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
39626         false for non-gcc C++ compilers.
39627         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39628
39629 2006-10-24  Bruno Haible  <bruno@clisp.org>
39630
39631         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
39632         iconv implementations like Irix iconv.
39633
39634 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39635
39636         * modules/vararrays: New file.
39637         * m4/vararrays.m4: New file, taken from diffutils.
39638         * MODULES.html.sh: New module vararrays.
39639
39640 2006-10-24  Karl Berry  <karl@gnu.org>
39641
39642         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
39643         Don't call GNU Unix.
39644
39645 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39646
39647         * users.txt: Add Libtool.
39648
39649         Sync from Libtool:
39650
39651         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39652
39653         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
39654         to gnulib's policy of including config.h unconditionally.
39655
39656 2006-10-24  Bruno Haible  <bruno@clisp.org>
39657
39658         * modules/wcwidth (Files): Add m4/wint_t.m4.
39659         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
39660         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
39661
39662 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39663
39664         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
39665         to pacify GCC with some -W flags enabled.  Problem reported by
39666         Bruno Haible.
39667
39668 2006-10-24  Jim Meyering  <jim@meyering.net>
39669
39670         * MODULES.html.sh: Remove uinttostr.  It's not a module.
39671         Reported by Karl Berry.
39672
39673 2006-10-23  Bruno Haible  <bruno@clisp.org>
39674
39675         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
39676
39677 2006-10-24  Bruno Haible  <bruno@clisp.org>
39678
39679         * lib/gl_list.h: Use C comment style, not C++ comment style.
39680
39681 2006-10-23  Eric Blake  <ebb9@byu.net>
39682
39683         * lib/getaddrinfo.c (includes): Add missing include.
39684
39685 2006-10-23  Bruno Haible  <bruno@clisp.org>
39686             Paul Eggert  <eggert@cs.ucla.edu>
39687
39688         Ability to rename obstack_free.
39689         * lib/obstack.h (__obstack_free): New macro. Declare instead of
39690         obstack_free.
39691         (obstack_free): Invoke the __obstack_free macro.
39692         * lib/obstack.c (obstack_free): Use __obstack_free macro.
39693
39694 2006-10-23  Bruno Haible  <bruno@clisp.org>
39695             Paul Eggert  <eggert@cs.ucla.edu>
39696
39697         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
39698         __argc, __argv from the declaration. (They are defined as macros on
39699         mingw.)
39700
39701 2006-10-22  Bruno Haible  <bruno@clisp.org>
39702
39703         * doc/gnulib-intro.texi: New file.
39704         * doc/gnulib.texi: Include it.
39705
39706 2006-10-21  Bruno Haible  <bruno@clisp.org>
39707
39708         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
39709         "Introduction", "Miscellanous Notes", "Particular Modules".
39710
39711 2006-10-21  Bruno Haible  <bruno@clisp.org>
39712
39713         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39714         Change mostlyclean-local rule to avoid sh syntax error from bash
39715         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
39716
39717 2006-10-23  Jim Meyering  <jim@meyering.net>
39718
39719         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
39720         in place of snprintf.
39721
39722         * modules/inttostr (Files): Add lib/uinttostr.c.
39723         * lib/uinttostr.c (inttostr): New file/function.
39724         * lib/inttostr.h (uinttostr): Declare.
39725         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
39726         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
39727         Add uinttostr.
39728         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
39729
39730 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39731
39732         * lib/canonicalize.c (ELOOP): Define if not already defined.
39733         Problem reported by Bruno Haible in
39734         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
39735
39736 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39737
39738         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
39739         Problem reported by Perry Smith and Ville Laurikari.
39740
39741         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
39742         uses.
39743
39744 2006-10-19  Bruno Haible  <bruno@clisp.org>
39745
39746         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
39747         for mingw.
39748
39749 2006-10-19  Bruno Haible  <bruno@clisp.org>
39750
39751         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
39752         Needed for mingw.
39753
39754 2006-10-19  Bruno Haible  <bruno@clisp.org>
39755
39756         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
39757
39758 2006-10-19  Bruno Haible  <bruno@clisp.org>
39759
39760         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
39761         it.
39762
39763 2006-10-19  Bruno Haible  <bruno@clisp.org>
39764
39765         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
39766         invocation.
39767
39768 2006-10-19  Bruno Haible  <bruno@clisp.org>
39769
39770         * gnulib-tool (func_create_testdir): Don't include ftruncate and
39771         mountlist by default.
39772
39773 2006-10-16  Bruno Haible  <bruno@clisp.org>
39774
39775         * lib/c-strstr.c: Include c-strstr.h.
39776
39777 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39778
39779         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
39780         in a slash.
39781
39782 2006-10-18  Bruno Haible  <bruno@clisp.org>
39783
39784         * lib/lock.h [C++]: Wrap definitions in extern "C".
39785
39786 2006-10-18  Bruno Haible  <bruno@clisp.org>
39787
39788         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
39789         gl_LIBOBJS list.
39790
39791 2006-10-18  Bruno Haible  <bruno@clisp.org>
39792
39793         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
39794
39795 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
39796
39797         * lib/xstrtol.h: Include gettext.h.
39798         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
39799         Problem reported by Eric Blake.
39800         * modules/xstrtol (Depends-on): Add gettext-h.
39801
39802 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
39803
39804         * lib/strftime.c (advance): New macro.
39805         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
39806         incomplete type, so you can't add 0 to it.  Problem and patch
39807         reported by Eelco Dolstra for dietlibc.
39808
39809 2006-10-18  Jim Meyering  <jim@meyering.net>
39810
39811         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
39812         type for a local, and rename it: s/up/user_proc/.
39813
39814 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
39815
39816         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
39817         READ_UTMP_USER_PROCESS.
39818         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
39819
39820 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39821
39822         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
39823         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
39824
39825 2006-10-17  Eric Blake  <ebb9@byu.net>
39826
39827         * lib/sigprocmask.c (sigprocmask): Fix typo.
39828
39829         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
39830
39831         * modules/clean-temp (Makefile.am): Don't add to make output...
39832         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
39833         config.h.
39834
39835 2006-10-17  Bruno Haible  <bruno@clisp.org>
39836
39837         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
39838         differently if DEFAULT_TEXT_DOMAIN is set.
39839
39840 2006-10-16  Bruno Haible  <bruno@clisp.org>
39841
39842         * lib/clean-temp.c: Include fwriteerror.h.
39843
39844 2006-10-16  Bruno Haible  <bruno@clisp.org>
39845
39846         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
39847
39848 2006-10-16  Bruno Haible  <bruno@clisp.org>
39849
39850         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
39851         * lib/sigprocmask.h: Include <sys/types.h>.
39852         (sigset_t): Use the system's definition if present.
39853
39854 2006-10-17  Eric Blake  <ebb9@byu.net>
39855
39856         * lib/xvasprintf.c (includes): Assume config.h.
39857         * lib/xasprintf.c (includes): Likewise.
39858
39859 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39860
39861         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
39862         at least as wide as intmax_t.
39863
39864 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
39865
39866         (Imported from Automake.)
39867         * build-aux/gnupload: Update to version 1.1 of directive file.
39868
39869 2006-10-16  Eric Blake  <ebb9@byu.net>
39870
39871         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
39872         match Automake 1.10a.
39873
39874 2006-10-14  Bruno Haible  <bruno@clisp.org>
39875
39876         * modules/sigprocmask: New file.
39877         * lib/sigprocmask.h: New file.
39878         * lib/sigprocmask.c: New file.
39879         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
39880         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
39881         request sigprocmask.o.
39882         (gl_PREREQ_SIGPROCMASK): New macro.
39883         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
39884         (Depends-on): Add sigprocmask.
39885         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
39886         gt_SIGNALBLOCKING. Test for 'raise' only once.
39887         * lib/fatal-signal.c: Include sigprocmask.h.
39888         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
39889         unblock_fatal_signals): Define always.
39890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39891         sigprocmask.
39892
39893 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
39894
39895         Sync from Automake.
39896         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
39897         which incorrectly sets the mode of an existing destination
39898         directory.  In some cases the unpatched install-sh could do the
39899         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
39900         system.  We hope this is rare in practice, but it's clearly worth
39901         fixing.  Problem reported by Alex Unleashed in
39902         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
39903         Also, don't bother to check for -m bugs unless we're using -m;
39904         suggested by Stepan Kasal.
39905
39906 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39907
39908         Sync from Automake.
39909         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
39910         `-c' flag, so they appear at the same position as in %FASTDEP%
39911         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
39912         which ignores unknown options only after the first non-option.
39913         Bug report against M4 by Nelson H. F. Beebe.
39914
39915 2006-10-13  Jim Meyering  <jim@meyering.net>
39916
39917         Fix a bug in yesterday's change.
39918         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
39919         p->fts_statp->st_dev would be used uninitialized.
39920         Ensures that we always call fts_stat on the very first entry.
39921         Miklos Szeredi reported that find -xdev stopped working.
39922
39923 2006-10-12  Bruno Haible  <bruno@clisp.org>
39924
39925         * gnulib-tool (func_get_automake_snippet): Append an automatically
39926         computed EXTRA_DIST augmentation.
39927         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
39928         * modules/alloca-opt (Makefile.am): Likewise.
39929         * modules/allocsa (Makefile.am): Likewise.
39930         * modules/arcfour (Makefile.am): Likewise.
39931         * modules/arctwo (Makefile.am): Likewise.
39932         * modules/argmatch (Makefile.am): Likewise.
39933         * modules/argz (Makefile.am): Likewise.
39934         * modules/atexit (Makefile.am): Likewise.
39935         * modules/backupfile (Makefile.am): Likewise.
39936         * modules/byteswap (Makefile.am): Likewise.
39937         * modules/c-strtod (Makefile.am): Likewise.
39938         * modules/c-strtold (Makefile.am): Likewise.
39939         * modules/calloc (Makefile.am): Likewise.
39940         * modules/canon-host (Makefile.am): Likewise.
39941         * modules/canonicalize (Makefile.am): Likewise.
39942         * modules/chdir-long (Makefile.am): Likewise.
39943         * modules/chdir-safer (Makefile.am): Likewise.
39944         * modules/check-version (Makefile.am): Likewise.
39945         * modules/chown (Makefile.am): Likewise.
39946         * modules/cloexec (Makefile.am): Likewise.
39947         * modules/close-stream (Makefile.am): Likewise.
39948         * modules/closeout (Makefile.am): Likewise.
39949         * modules/crc (Makefile.am): Likewise.
39950         * modules/csharpexec (Makefile.am): Likewise.
39951         * modules/cycle-check (Makefile.am): Likewise.
39952         * modules/des (Makefile.am): Likewise.
39953         * modules/dev-ino (Makefile.am): Likewise.
39954         * modules/dirfd (Makefile.am): Likewise.
39955         * modules/dirname (Makefile.am): Likewise.
39956         * modules/dup2 (Makefile.am): Likewise.
39957         * modules/eealloc (Makefile.am): Likewise.
39958         * modules/error (Makefile.am): Likewise.
39959         * modules/euidaccess (Makefile.am): Likewise.
39960         * modules/exclude (Makefile.am): Likewise.
39961         * modules/exitfail (Makefile.am): Likewise.
39962         * modules/fcntl-safer (Makefile.am): Likewise.
39963         * modules/fcntl (Makefile.am): Likewise.
39964         * modules/file-type (Makefile.am): Likewise.
39965         * modules/fileblocks (Makefile.am): Likewise.
39966         * modules/filemode (Makefile.am): Likewise.
39967         * modules/filenamecat (Makefile.am): Likewise.
39968         * modules/fnmatch (Makefile.am): Likewise.
39969         * modules/fopen-safer (Makefile.am): Likewise.
39970         * modules/fpending (Makefile.am): Likewise.
39971         * modules/fprintftime (Makefile.am): Likewise.
39972         * modules/free (Makefile.am): Likewise.
39973         * modules/fsusage (Makefile.am): Likewise.
39974         * modules/ftruncate (Makefile.am): Likewise.
39975         * modules/fts (Makefile.am): Likewise.
39976         * modules/gc-arcfour (Makefile.am): Likewise.
39977         * modules/gc-des (Makefile.am): Likewise.
39978         * modules/gc-hmac-md5 (Makefile.am): Likewise.
39979         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
39980         * modules/gc-md4 (Makefile.am): Likewise.
39981         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
39982         * modules/gc-sha1 (Makefile.am): Likewise.
39983         * modules/gc (Makefile.am): Likewise.
39984         * modules/getaddrinfo (Makefile.am): Likewise.
39985         * modules/getcwd (Makefile.am): Likewise.
39986         * modules/getdelim (Makefile.am): Likewise.
39987         * modules/getdomainname (Makefile.am): Likewise.
39988         * modules/getgroups (Makefile.am): Likewise.
39989         * modules/gethostname (Makefile.am): Likewise.
39990         * modules/gethrxtime (Makefile.am): Likewise.
39991         * modules/getline (Makefile.am): Likewise.
39992         * modules/getloadavg (Makefile.am): Likewise.
39993         * modules/getlogin_r (Makefile.am): Likewise.
39994         * modules/getndelim2 (Makefile.am): Likewise.
39995         * modules/getopt (Makefile.am): Likewise.
39996         * modules/getpagesize (Makefile.am): Likewise.
39997         * modules/getpass-gnu (Makefile.am): Likewise.
39998         * modules/getpass (Makefile.am): Likewise.
39999         * modules/getsubopt (Makefile.am): Likewise.
40000         * modules/gettime (Makefile.am): Likewise.
40001         * modules/gettimeofday (Makefile.am): Likewise.
40002         * modules/getugroups (Makefile.am): Likewise.
40003         * modules/getusershell (Makefile.am): Likewise.
40004         * modules/glob (Makefile.am): Likewise.
40005         * modules/group-member (Makefile.am): Likewise.
40006         * modules/hard-locale (Makefile.am): Likewise.
40007         * modules/hash (Makefile.am): Likewise.
40008         * modules/hmac-md5 (Makefile.am): Likewise.
40009         * modules/hmac-sha1 (Makefile.am): Likewise.
40010         * modules/human (Makefile.am): Likewise.
40011         * modules/idcache (Makefile.am): Likewise.
40012         * modules/imaxabs (Makefile.am): Likewise.
40013         * modules/imaxdiv (Makefile.am): Likewise.
40014         * modules/inet_ntop (Makefile.am): Likewise.
40015         * modules/inet_pton (Makefile.am): Likewise.
40016         * modules/intprops (Makefile.am): Likewise.
40017         * modules/inttostr (Makefile.am): Likewise.
40018         * modules/inttypes (Makefile.am): Likewise.
40019         * modules/isapipe (Makefile.am): Likewise.
40020         * modules/javaversion (Makefile.am): Likewise.
40021         * modules/lchmod (Makefile.am): Likewise.
40022         * modules/lchown (Makefile.am): Likewise.
40023         * modules/localcharset (Makefile.am): Likewise.
40024         * modules/long-options (Makefile.am): Likewise.
40025         * modules/lstat (Makefile.am): Likewise.
40026         * modules/malloc (Makefile.am): Likewise.
40027         * modules/mathl (Makefile.am): Likewise.
40028         * modules/mbchar (Makefile.am): Likewise.
40029         * modules/md2 (Makefile.am): Likewise.
40030         * modules/md4 (Makefile.am): Likewise.
40031         * modules/md5 (Makefile.am): Likewise.
40032         * modules/memcasecmp (Makefile.am): Likewise.
40033         * modules/memchr (Makefile.am): Likewise.
40034         * modules/memcmp (Makefile.am): Likewise.
40035         * modules/memcoll (Makefile.am): Likewise.
40036         * modules/memcpy (Makefile.am): Likewise.
40037         * modules/memmem (Makefile.am): Likewise.
40038         * modules/memmove (Makefile.am): Likewise.
40039         * modules/mempcpy (Makefile.am): Likewise.
40040         * modules/memrchr (Makefile.am): Likewise.
40041         * modules/memset (Makefile.am): Likewise.
40042         * modules/memxor (Makefile.am): Likewise.
40043         * modules/mkancesdirs (Makefile.am): Likewise.
40044         * modules/mkdir-p (Makefile.am): Likewise.
40045         * modules/mkdir (Makefile.am): Likewise.
40046         * modules/mkdtemp (Makefile.am): Likewise.
40047         * modules/mkstemp (Makefile.am): Likewise.
40048         * modules/mktime (Makefile.am): Likewise.
40049         * modules/modechange (Makefile.am): Likewise.
40050         * modules/mountlist (Makefile.am): Likewise.
40051         * modules/nanosleep (Makefile.am): Likewise.
40052         * modules/obstack (Makefile.am): Likewise.
40053         * modules/openat (Makefile.am): Likewise.
40054         * modules/pagealign_alloc (Makefile.am): Likewise.
40055         * modules/pathmax (Makefile.am): Likewise.
40056         * modules/physmem (Makefile.am): Likewise.
40057         * modules/poll (Makefile.am): Likewise.
40058         * modules/posixtm (Makefile.am): Likewise.
40059         * modules/posixver (Makefile.am): Likewise.
40060         * modules/putenv (Makefile.am): Likewise.
40061         * modules/quote (Makefile.am): Likewise.
40062         * modules/quotearg (Makefile.am): Likewise.
40063         * modules/raise (Makefile.am): Likewise.
40064         * modules/read-file (Makefile.am): Likewise.
40065         * modules/readline (Makefile.am): Likewise.
40066         * modules/readlink (Makefile.am): Likewise.
40067         * modules/readtokens (Makefile.am): Likewise.
40068         * modules/readutmp (Makefile.am): Likewise.
40069         * modules/realloc (Makefile.am): Likewise.
40070         * modules/regex (Makefile.am): Likewise.
40071         * modules/rename-dest-slash (Makefile.am): Likewise.
40072         * modules/rename (Makefile.am): Likewise.
40073         * modules/rijndael (Makefile.am): Likewise.
40074         * modules/rmdir (Makefile.am): Likewise.
40075         * modules/rpmatch (Makefile.am): Likewise.
40076         * modules/safe-read (Makefile.am): Likewise.
40077         * modules/safe-write (Makefile.am): Likewise.
40078         * modules/same-inode (Makefile.am): Likewise.
40079         * modules/same (Makefile.am): Likewise.
40080         * modules/save-cwd (Makefile.am): Likewise.
40081         * modules/savedir (Makefile.am): Likewise.
40082         * modules/setenv (Makefile.am): Likewise.
40083         * modules/settime (Makefile.am): Likewise.
40084         * modules/sha1 (Makefile.am): Likewise.
40085         * modules/sig2str (Makefile.am): Likewise.
40086         * modules/snprintf (Makefile.am): Likewise.
40087         * modules/stat-macros (Makefile.am): Likewise.
40088         * modules/stat-time (Makefile.am): Likewise.
40089         * modules/stdbool (Makefile.am): Likewise.
40090         * modules/stdint (Makefile.am): Likewise.
40091         * modules/stdlib-safer (Makefile.am): Likewise.
40092         * modules/stpcpy (Makefile.am): Likewise.
40093         * modules/stpncpy (Makefile.am): Likewise.
40094         * modules/strcase (Makefile.am): Likewise.
40095         * modules/strcasestr (Makefile.am): Likewise.
40096         * modules/strchrnul (Makefile.am): Likewise.
40097         * modules/strcspn (Makefile.am): Likewise.
40098         * modules/strdup (Makefile.am): Likewise.
40099         * modules/strerror (Makefile.am): Likewise.
40100         * modules/strftime (Makefile.am): Likewise.
40101         * modules/strndup (Makefile.am): Likewise.
40102         * modules/strnlen (Makefile.am): Likewise.
40103         * modules/strpbrk (Makefile.am): Likewise.
40104         * modules/strsep (Makefile.am): Likewise.
40105         * modules/strstr (Makefile.am): Likewise.
40106         * modules/strtod (Makefile.am): Likewise.
40107         * modules/strtoimax (Makefile.am): Likewise.
40108         * modules/strtok_r (Makefile.am): Likewise.
40109         * modules/strtol (Makefile.am): Likewise.
40110         * modules/strtoll (Makefile.am): Likewise.
40111         * modules/strtoul (Makefile.am): Likewise.
40112         * modules/strtoull (Makefile.am): Likewise.
40113         * modules/strtoumax (Makefile.am): Likewise.
40114         * modules/strverscmp (Makefile.am): Likewise.
40115         * modules/sys_socket (Makefile.am): Likewise.
40116         * modules/sys_stat (Makefile.am): Likewise.
40117         * modules/sysexits (Makefile.am): Likewise.
40118         * modules/time_r (Makefile.am): Likewise.
40119         * modules/timegm (Makefile.am): Likewise.
40120         * modules/timespec (Makefile.am): Likewise.
40121         * modules/tmpfile-safer (Makefile.am): Likewise.
40122         * modules/trim (Makefile.am): Likewise.
40123         * modules/unistd-safer (Makefile.am): Likewise.
40124         * modules/unlinkdir (Makefile.am): Likewise.
40125         * modules/unlocked-io (Makefile.am): Likewise.
40126         * modules/userspec (Makefile.am): Likewise.
40127         * modules/utime (Makefile.am): Likewise.
40128         * modules/utimecmp (Makefile.am): Likewise.
40129         * modules/utimens (Makefile.am): Likewise.
40130         * modules/vasnprintf (Makefile.am): Likewise.
40131         * modules/vasprintf (Makefile.am): Likewise.
40132         * modules/vsnprintf (Makefile.am): Likewise.
40133         * modules/xalloc (Makefile.am): Likewise.
40134         * modules/xgetcwd (Makefile.am): Likewise.
40135         * modules/xnanosleep (Makefile.am): Likewise.
40136         * modules/xreadlink (Makefile.am): Likewise.
40137         * modules/xstrtod (Makefile.am): Likewise.
40138         * modules/xstrtol (Makefile.am): Likewise.
40139         * modules/xstrtold (Makefile.am): Likewise.
40140         * modules/yesno (Makefile.am): Likewise.
40141         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40142
40143 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40144
40145         * modules/error (Makefile.am): Distribute files through
40146         EXTRA_DIST, not lib_SOURCES.
40147
40148 2006-10-12  Eric Blake  <ebb9@byu.net>
40149
40150         * modules/error (Makefile.am): Distribute files in /lib.
40151         * modules/obstack (Makefile.am): Likewise.
40152
40153 2006-10-12  Bruno Haible  <bruno@clisp.org>
40154
40155         * modules/acl (Makefile.am): Distribute all files in lib/ through
40156         EXTRA_DIST.
40157         * modules/arcfour (Makefile.am): Likewise.
40158         * modules/arctwo (Makefile.am): Likewise.
40159         * modules/argmatch (Makefile.am): Likewise.
40160         * modules/argz (Makefile.am): Likewise.
40161         * modules/atexit (Makefile.am): Likewise.
40162         * modules/backupfile (Makefile.am): Likewise.
40163         * modules/c-strtod (Makefile.am): Likewise.
40164         * modules/c-strtold (Makefile.am): Likewise.
40165         * modules/calloc (Makefile.am): Likewise.
40166         * modules/canon-host (Makefile.am): Likewise.
40167         * modules/canonicalize (Makefile.am): Likewise.
40168         * modules/chdir-long (Makefile.am): Likewise.
40169         * modules/chdir-safer (Makefile.am): Likewise.
40170         * modules/check-version (Makefile.am): Likewise.
40171         * modules/chown (Makefile.am): Likewise.
40172         * modules/cloexec (Makefile.am): Likewise.
40173         * modules/close-stream (Makefile.am): Likewise.
40174         * modules/closeout (Makefile.am): Likewise.
40175         * modules/crc (Makefile.am): Likewise.
40176         * modules/cycle-check (Makefile.am): Likewise.
40177         * modules/des (Makefile.am): Likewise.
40178         * modules/dirfd (Makefile.am): Likewise.
40179         * modules/dirname (Makefile.am): Likewise.
40180         * modules/dup2 (Makefile.am): Likewise.
40181         * modules/euidaccess (Makefile.am): Likewise.
40182         * modules/exclude (Makefile.am): Likewise.
40183         * modules/exitfail (Makefile.am): Likewise.
40184         * modules/fcntl-safer (Makefile.am): Likewise.
40185         * modules/file-type (Makefile.am): Likewise.
40186         * modules/fileblocks (Makefile.am): Likewise.
40187         * modules/filemode (Makefile.am): Likewise.
40188         * modules/filenamecat (Makefile.am): Likewise.
40189         * modules/fnmatch (Makefile.am): Likewise.
40190         * modules/fopen-safer (Makefile.am): Likewise.
40191         * modules/fpending (Makefile.am): Likewise.
40192         * modules/fprintftime (Makefile.am): Likewise.
40193         * modules/free (Makefile.am): Likewise.
40194         * modules/fsusage (Makefile.am): Likewise.
40195         * modules/ftruncate (Makefile.am): Likewise.
40196         * modules/fts (Makefile.am): Likewise.
40197         * modules/gc (Makefile.am): Likewise.
40198         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40199         * modules/getaddrinfo (Makefile.am): Likewise.
40200         * modules/getcwd (Makefile.am): Likewise.
40201         * modules/getdelim (Makefile.am): Likewise.
40202         * modules/getdomainname (Makefile.am): Likewise.
40203         * modules/getgroups (Makefile.am): Likewise.
40204         * modules/gethostname (Makefile.am): Likewise.
40205         * modules/gethrxtime (Makefile.am): Likewise.
40206         * modules/getline (Makefile.am): Likewise.
40207         * modules/getloadavg (Makefile.am): Likewise.
40208         * modules/getlogin_r (Makefile.am): Likewise.
40209         * modules/getopt (Makefile.am): Likewise.
40210         * modules/getpass (Makefile.am): Likewise.
40211         * modules/getpass-gnu (Makefile.am): Likewise.
40212         * modules/getsubopt (Makefile.am): Likewise.
40213         * modules/gettime (Makefile.am): Likewise.
40214         * modules/gettimeofday (Makefile.am): Likewise.
40215         * modules/getugroups (Makefile.am): Likewise.
40216         * modules/getusershell (Makefile.am): Likewise.
40217         * modules/glob (Makefile.am): Likewise.
40218         * modules/group-member (Makefile.am): Likewise.
40219         * modules/hard-locale (Makefile.am): Likewise.
40220         * modules/hash (Makefile.am): Likewise.
40221         * modules/hmac-md5 (Makefile.am): Likewise.
40222         * modules/hmac-sha1 (Makefile.am): Likewise.
40223         * modules/human (Makefile.am): Likewise.
40224         * modules/idcache (Makefile.am): Likewise.
40225         * modules/imaxabs (Makefile.am): Likewise.
40226         * modules/imaxdiv (Makefile.am): Likewise.
40227         * modules/inet_ntop (Makefile.am): Likewise.
40228         * modules/inet_pton (Makefile.am): Likewise.
40229         * modules/inttostr (Makefile.am): Likewise.
40230         * modules/isapipe (Makefile.am): Likewise.
40231         * modules/lchown (Makefile.am): Likewise.
40232         * modules/long-options (Makefile.am): Likewise.
40233         * modules/lstat (Makefile.am): Likewise.
40234         * modules/malloc (Makefile.am): Likewise.
40235         * modules/mathl (Makefile.am): Likewise.
40236         * modules/mbchar (Makefile.am): Likewise.
40237         * modules/md2 (Makefile.am): Likewise.
40238         * modules/md4 (Makefile.am): Likewise.
40239         * modules/md5 (Makefile.am): Likewise.
40240         * modules/memcasecmp (Makefile.am): Likewise.
40241         * modules/memchr (Makefile.am): Likewise.
40242         * modules/memcmp (Makefile.am): Likewise.
40243         * modules/memcoll (Makefile.am): Likewise.
40244         * modules/memcpy (Makefile.am): Likewise.
40245         * modules/memmem (Makefile.am): Likewise.
40246         * modules/memmove (Makefile.am): Likewise.
40247         * modules/mempcpy (Makefile.am): Likewise.
40248         * modules/memrchr (Makefile.am): Likewise.
40249         * modules/memset (Makefile.am): Likewise.
40250         * modules/memxor (Makefile.am): Likewise.
40251         * modules/mkancesdirs (Makefile.am): Likewise.
40252         * modules/mkdir (Makefile.am): Likewise.
40253         * modules/mkdir-p (Makefile.am): Likewise.
40254         * modules/mkdtemp (Makefile.am): Likewise.
40255         * modules/mkstemp (Makefile.am): Likewise.
40256         * modules/mktime (Makefile.am): Likewise.
40257         * modules/modechange (Makefile.am): Likewise.
40258         * modules/mountlist (Makefile.am): Likewise.
40259         * modules/nanosleep (Makefile.am): Likewise.
40260         * modules/openat (Makefile.am): Likewise.
40261         * modules/pagealign_alloc (Makefile.am): Likewise.
40262         * modules/physmem (Makefile.am): Likewise.
40263         * modules/poll (Makefile.am): Likewise.
40264         * modules/posixtm (Makefile.am): Likewise.
40265         * modules/posixver (Makefile.am): Likewise.
40266         * modules/putenv (Makefile.am): Likewise.
40267         * modules/quote (Makefile.am): Likewise.
40268         * modules/quotearg (Makefile.am): Likewise.
40269         * modules/raise (Makefile.am): Likewise.
40270         * modules/read-file (Makefile.am): Likewise.
40271         * modules/readline (Makefile.am): Likewise.
40272         * modules/readlink (Makefile.am): Likewise.
40273         * modules/readtokens (Makefile.am): Likewise.
40274         * modules/readutmp (Makefile.am): Likewise.
40275         * modules/realloc (Makefile.am): Likewise.
40276         * modules/regex (Makefile.am): Likewise.
40277         * modules/rename (Makefile.am): Likewise.
40278         * modules/rename-dest-slash (Makefile.am): Likewise.
40279         * modules/rijndael (Makefile.am): Likewise.
40280         * modules/rmdir (Makefile.am): Likewise.
40281         * modules/rpmatch (Makefile.am): Likewise.
40282         * modules/safe-read (Makefile.am): Likewise.
40283         * modules/safe-write (Makefile.am): Likewise.
40284         * modules/same (Makefile.am): Likewise.
40285         * modules/save-cwd (Makefile.am): Likewise.
40286         * modules/savedir (Makefile.am): Likewise.
40287         * modules/setenv (Makefile.am): Likewise.
40288         * modules/settime (Makefile.am): Likewise.
40289         * modules/sha1 (Makefile.am): Likewise.
40290         * modules/sig2str (Makefile.am): Likewise.
40291         * modules/snprintf (Makefile.am): Likewise.
40292         * modules/stdlib-safer (Makefile.am): Likewise.
40293         * modules/stpcpy (Makefile.am): Likewise.
40294         * modules/stpncpy (Makefile.am): Likewise.
40295         * modules/strcase (Makefile.am): Likewise.
40296         * modules/strcasestr (Makefile.am): Likewise.
40297         * modules/strchrnul (Makefile.am): Likewise.
40298         * modules/strcspn (Makefile.am): Likewise.
40299         * modules/strdup (Makefile.am): Likewise.
40300         * modules/strerror (Makefile.am): Likewise.
40301         * modules/strftime (Makefile.am): Likewise.
40302         * modules/strndup (Makefile.am): Likewise.
40303         * modules/strnlen (Makefile.am): Likewise.
40304         * modules/strpbrk (Makefile.am): Likewise.
40305         * modules/strsep (Makefile.am): Likewise.
40306         * modules/strstr (Makefile.am): Likewise.
40307         * modules/strtod (Makefile.am): Likewise.
40308         * modules/strtoimax (Makefile.am): Likewise.
40309         * modules/strtok_r (Makefile.am): Likewise.
40310         * modules/strtol (Makefile.am): Likewise.
40311         * modules/strtoll (Makefile.am): Likewise.
40312         * modules/strtoul (Makefile.am): Likewise.
40313         * modules/strtoull (Makefile.am): Likewise.
40314         * modules/strtoumax (Makefile.am): Likewise.
40315         * modules/strverscmp (Makefile.am): Likewise.
40316         * modules/time_r (Makefile.am): Likewise.
40317         * modules/timegm (Makefile.am): Likewise.
40318         * modules/tmpfile-safer (Makefile.am): Likewise.
40319         * modules/unistd-safer (Makefile.am): Likewise.
40320         * modules/unlinkdir (Makefile.am): Likewise.
40321         * modules/userspec (Makefile.am): Likewise.
40322         * modules/utime (Makefile.am): Likewise.
40323         * modules/utimecmp (Makefile.am): Likewise.
40324         * modules/utimens (Makefile.am): Likewise.
40325         * modules/vasnprintf (Makefile.am): Likewise.
40326         * modules/vasprintf (Makefile.am): Likewise.
40327         * modules/vsnprintf (Makefile.am): Likewise.
40328         * modules/xalloc (Makefile.am): Likewise.
40329         * modules/xgetcwd (Makefile.am): Likewise.
40330         * modules/xnanosleep (Makefile.am): Likewise.
40331         * modules/xreadlink (Makefile.am): Likewise.
40332         * modules/xstrtod (Makefile.am): Likewise.
40333         * modules/xstrtol (Makefile.am): Likewise.
40334         * modules/xstrtold (Makefile.am): Likewise.
40335         * modules/yesno (Makefile.am): Likewise.
40336
40337 2006-10-12  Jim Meyering  <jim@meyering.net>
40338
40339         * m4/getloadavg.m4: Revert the change below.
40340
40341         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
40342         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
40343         fail with a symlink, which is what coreutils' ./bootstrap now
40344         creates by default.
40345
40346 2006-10-12  Bruno Haible  <bruno@clisp.org>
40347
40348         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
40349         mingw.
40350         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
40351         MSVC and mingw explicitly.
40352
40353 2006-10-11  Simon Josefsson  <jas@extundo.com>
40354             Bruno Haible  <bruno@clisp.org>
40355
40356         Add support for multiple gnulib-tool invocations in the scope of a
40357         single configure.ac file.
40358         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
40359         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
40360         with the same contents as the _LIBADD variable.
40361         (func_emit_initmacro_start, func_emit_initmacro_end,
40362         func_emit_initmacro_done): New functions.
40363         (func_import, func_create_testdir): Invoke them. Allow the identifiers
40364         gl_LIBOBJS and gl_LTLIBOBJS.
40365
40366 2006-10-11  Bruno Haible  <bruno@clisp.org>
40367
40368         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
40369         (func_create_testdir): Don't create po/Makefile.am, don't invoke
40370         autoreconf. Instead, invoke autopoint explicitly but move back the
40371         *.m4 files from gnulib.
40372
40373 2006-10-11  Bruno Haible  <bruno@clisp.org>
40374
40375         * gnulib-tool (func_usage): Make module names after --create-testdir
40376         optional.
40377         (func_create_testdir): If no module was specified, use nearly all
40378         modules.
40379
40380 2006-10-12  Jim Meyering  <jim@meyering.net>
40381
40382         Big performance improvement for fts-based tools that use FTS_NOSTAT.
40383         Avoid spurious inode-mismatch problems on non-POSIX file systems.
40384         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
40385         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
40386         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
40387         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
40388         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
40389         (fts_set_stat_required): New function.
40390         (fts_open): Defer the calls to fts_stat, if possible or requested.
40391         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
40392         into fts_stat itself.
40393         (fts_read): Perform any required (deferred) fts_stat call.
40394         (fts_build): Likewise, for the directory we're about to open and read.
40395         In the readdir loop, carefully decide whether each entry will require
40396         an eventual call to fts_stat, using dirent.d_type info if available.
40397         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
40398         a command line argument into this function.  Update all callers.
40399         Map a return value of FTS_DOT to FTS_D for a command line argument.
40400         * modules/fts (Depends-on): Add d-type.  Alphabetize.
40401         Thanks to Miklos Szeredi for his tenacity and for the initial
40402         bug report about "find" failing on a FUSE-based file system.
40403
40404         * lib/fts.c (fts_open): Use consistent indentation.
40405
40406 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40407
40408         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
40409         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
40410         reported by Jim Meyering.  All uses of cache variables renamed
40411         to match Autoconf's.
40412         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
40413         the other one.
40414
40415         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40416         Fix misspelling in diagnostic.
40417
40418 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40419
40420         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
40421         defined.  Problem reported by Matthew Woehlke.
40422
40423         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
40424         Add support for Tandem NonStop R series.
40425         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
40426         Use new macro.
40427
40428         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
40429         (has_trailing_slash): Omit size arg; all callers changed.
40430         Omit 'inline', since it doesn't help performance and we'd
40431         need to configure it.
40432         Don't count //, ///, etc. as having a trailing slash.
40433         As a side effect, this removes a C99ism reported by Matthew Woehlke.
40434         (rpl_rename_dest_slash): On failure, use rename's errno rather
40435         than (in some cases) an incorrect or junk errno.
40436         Simplify code by removing need to compute length; this does
40437         cause it to make two passes instead of one over the file name,
40438         but it's worth it.
40439
40440         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
40441         change, since Autoconf's version may no longer be appropriate now
40442         that we are using CVS Autoconf's version.  Add support for Tandem.
40443
40444 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40445             Bruno Haible  <bruno@clisp.org>
40446
40447         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
40448         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
40449         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
40450         gl_AC_TYPE_LONG_LONG.
40451
40452         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
40453         instead of HAVE_LONG_LONG.
40454         * lib/printf-args.c (printf_fetchargs): Likewise.
40455         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
40456         * lib/vasnprintf.c (VASNPRINTF): Likewise.
40457         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
40458         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
40459         gl_AC_TYPE_LONG_LONG.
40460
40461 2006-10-11  Bruno Haible  <bruno@clisp.org>
40462
40463         * m4/longlong.m4: Add comments.
40464         * m4/ulonglong.m4: Likewise.
40465
40466 2006-10-10  Bruno Haible  <bruno@clisp.org>
40467
40468         Make it possible to #define stpcpy, strdup to aliases.
40469         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
40470         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
40471
40472 2006-10-10  Bruno Haible  <bruno@clisp.org>
40473
40474         Make it possible to #define gcd to an alias.
40475         * lib/gcd.c: Include config.h.
40476
40477 2006-10-10  Bruno Haible  <bruno@clisp.org>
40478
40479         Make it possible to #define c_isascii to an alias.
40480         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
40481         defined. Undefine the macros before defining them, to avoid gcc
40482         warnings.
40483         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
40484         define NO_C_CTYPE_MACROS early.
40485
40486 2006-10-10  Bruno Haible  <bruno@clisp.org>
40487
40488         Make it possible to #define set_program_name to an alias.
40489         * lib/progname.c: Don't undefine set_program_name; instead, undefine
40490         ENABLE_RELOCATABLE early.
40491
40492 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40493
40494         Port to Tandem NSK OSS, which has 64-bit signed int but at most
40495         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
40496         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
40497         More generally, don't assume that 64-bit signed int is available
40498         if unsigned int is, and vice versa.
40499         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
40500         unsigned symbols, not on their signed counterparts.
40501         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
40502         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
40503         (UINT64_C, UINTMAX_C):
40504         Likewise.
40505         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
40506         unsigned counterparts.
40507         (Have_long_long, Unsigned): New macros.
40508         (Int): Renamed from INT.
40509         (strtoimax): Use the new macros.
40510         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
40511         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
40512         * modules/inttypes (inttypes.h): Substitute
40513         HAVE_UNSIGNED_LONG_LONG_INT.
40514         * modules/stdint (stdint.h): Likewise.
40515         (Files): Add m4/ulonglong.m4.
40516
40517 2006-10-10  Bruno Haible  <bruno@clisp.org>
40518
40519         Fix a gcc -Wshadow warning.
40520         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
40521         to 'bucket'.
40522         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
40523         gl_linked_indexof_from_to): Likewise.
40524         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
40525         Likewise.
40526         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
40527         Likewise.
40528         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
40529         Reported by Eric Blake.
40530
40531 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
40532
40533         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
40534         for NetBSD.  Problem reported by Bruno Haible.
40535
40536 2006-10-09  Jim Meyering  <jim@meyering.net>
40537
40538         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
40539         Patch from Bruno Haible.
40540
40541 2006-10-09  Jim Meyering  <jim@meyering.net>
40542
40543         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
40544         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
40545         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
40546
40547 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40548
40549         Don't include <config.h> twice; this doesn't work in some cases,
40550         e.g., when config.h has "#define intmax_t long long int" and
40551         we include <config.h>, <inttypes.h>, <config.h> in that order.
40552         Problem reported by Matthew Woehlke in:
40553         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
40554         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
40555         * lib/fts-cycle.c: Don't include config.h.
40556         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
40557         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
40558         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
40559         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
40560         inttypes.h.
40561         * lib/xstrtoumax.c: Likewise.
40562         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
40563         __strtol and the like, so that this module is more like its siblings.
40564         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
40565         Remove; no longer needed now that we assume gnulib inttypes.h.
40566
40567 2006-10-08  Bruno Haible  <bruno@clisp.org>
40568
40569         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
40570         option.
40571
40572 2006-10-07  Jim Meyering  <jim@meyering.net>
40573
40574         * modules/inttypes (inttypes.h): Revert what seems to have been
40575         an inadvertent part of today's change: use "|", not "/" in the
40576         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
40577
40578 2006-10-07  Bruno Haible  <bruno@clisp.org>
40579
40580         * modules/sublist: New file.
40581
40582 2006-10-07  Bruno Haible  <bruno@clisp.org>
40583
40584         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
40585         * modules/argz (argz.h): Likewise.
40586         * modules/arpa_inet (arpa/inet.h): Likewise.
40587         * modules/byteswap (byteswap.h): Likewise.
40588         * modules/configmake (configmake.h): Likewise.
40589         * modules/fcntl (fcntl.h): Likewise.
40590         * modules/fnmatch (fnmatch.h): Likewise.
40591         * modules/getopt (getopt.h): Likewise.
40592         * modules/glob (glob.h): Likewise.
40593         * modules/inttypes (inttypes.h): Likewise.
40594         * modules/netinet_in (netinet/in.h): Likewise.
40595         * modules/poll (poll.h): Likewise.
40596         * modules/stdbool (stdbool.h): Likewise.
40597         * modules/stdint (stdint.h): Likewise.
40598         * modules/sys_select (sys/select.h): Likewise.
40599         * modules/sys_socket (sys/socket.h): Likewise.
40600         * modules/sys_stat (sys/stat.h): Likewise.
40601         * modules/sysexits (sysexits.h): Likewise.
40602         * modules/unistd (unistd.h): Likewise.
40603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40604         Add a "DO NOT EDIT" comment to the generated file.
40605         (func_import): Likewise for gnulib-comp.m4.
40606
40607 2006-10-07  Bruno Haible  <bruno@clisp.org>
40608
40609         * lib/gl_sublist.h: New file.
40610         * lib/gl_sublist.c: New file.
40611
40612 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40613
40614         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
40615         name (relative to the original working directory) and the file
40616         name component (relative to the temporary working directory).  All
40617         callers changed.
40618         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
40619         * lib/mkdir-p.c (make_dir_parents): Likewise.
40620         * lib/mkdir-p.h (make_dir_parents): Likewise.
40621
40622 2006-10-06  Eric Blake  <ebb9@byu.net>
40623
40624         Define several macros for use by the clean-temp module.
40625         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
40626         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
40627         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
40628
40629         * lib/clean-temp.h (close_stream_temp): New declaration.
40630         * lib/clean-temp.c (includes): Pull in headers according to what
40631         other modules are in use.
40632         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
40633
40634 2006-10-06  Bruno Haible  <bruno@clisp.org>
40635
40636         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
40637         instead of fopen, fwriteerror.
40638
40639 2006-10-06  Bruno Haible  <bruno@clisp.org>
40640
40641         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
40642         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
40643         int.
40644         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
40645         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
40646         Return an error indicator.
40647         Suggested by Eric Blake.
40648
40649 2006-10-06  Bruno Haible  <bruno@clisp.org>
40650
40651         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
40652         Reported by Eric Blake.
40653
40654 2006-10-06  Bruno Haible  <bruno@clisp.org>
40655
40656         * modules/closeout (Description): Mention stderr too.
40657
40658 2006-10-06  Bruno Haible  <bruno@clisp.org>
40659         and Paul Eggert  <eggert@cs.ucla.edu>
40660
40661         * lib/closeout.c (close_stdout): Also close stderr.
40662         * lib/closeout.h: Update comment.
40663
40664 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40665
40666         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
40667         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
40668         * lib/dirchownmod.c: Include lchown.h.
40669         * lib/lchown.c: Don't include files that lchown.h now includes.
40670         Don't declare chown, since lchown.h now does that.
40671         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
40672         (lchown): Define to rpl_chown if lchown is declared but
40673         does not exist.  Declare using a prototype if lchown is not
40674         declared.  Add a copyright notice.
40675         * lib/mkstemp.h: Include <unistd.h>.
40676         * lib/openat.c: Include lchown.h.
40677
40678         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
40679         we now test for that separately.
40680         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
40681         rather than O_NOFOLLOW, when testing whether it's possible to
40682         avoid a race condition reliably.
40683         * lib/savewd.c (savewd_chdir): Likewise.
40684
40685         Remove macros that are no longer needed now that stdint.h is
40686         reliable.
40687         * lib/fsusage.c (UINTMAX_MAX): Remove.
40688         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
40689         * lib/utimecmp.c (SIZE_MAX): Remove.
40690
40691         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
40692
40693         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
40694         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
40695         O_NOATIME works.
40696
40697 2006-10-05  Bruno Haible  <bruno@clisp.org>
40698
40699         * lib/gl_list.h (gl_sortedlist_search_from_to,
40700         gl_sortedlist_indexof_from_to): New declarations.
40701         (gl_list_implementation): New fields sortedlist_search_from_to,
40702         sortedlist_indexof_from_to.
40703         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
40704         inline functions.
40705         * lib/gl_list.c (gl_sortedlist_search_from_to,
40706         gl_sortedlist_indexof_from_to): New functions.
40707         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
40708         function.
40709         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
40710         (gl_array_sortedlist_search_from_to): New function.
40711         (gl_array_list_implementation): Update.
40712         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
40713         function.
40714         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
40715         (gl_carray_sortedlist_search_from_to): New function.
40716         (gl_carray_list_implementation): Update.
40717         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
40718         gl_linked_sortedlist_indexof_from_to): New functions.
40719         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40720         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40721         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
40722         gl_tree_sortedlist_indexof_from_to): New functions.
40723         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40724         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40725         Update.
40726         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40727         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
40728         Update.
40729
40730 2006-10-05  Bruno Haible  <bruno@clisp.org>
40731
40732         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
40733         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
40734         (struct gl_list_implementation): Add fields search_from_to,
40735         indexof_from_to. Remove fields search, indexof.
40736         (gl_list_search): Use the search_from_to method.
40737         (gl_list_search_from, gl_list_search_from_to): New functions.
40738         (gl_list_indexof): Use the indexof_from_to method.
40739         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40740         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
40741         (gl_list_search_from, gl_list_search_from_to): New functions.
40742         (gl_list_indexof): Use the indexof_from_to method.
40743         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40744         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
40745         gl_array_indexof. Add start_index, end_index arguments.
40746         (gl_array_search_from_to): Renamed from gl_array_search. Add
40747         start_index, end_index arguments.
40748         (gl_array_remove, gl_array_list_implementation): Update.
40749         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
40750         gl_carray_indexof. Add start_index, end_index arguments.
40751         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
40752         start_index, end_index arguments.
40753         (gl_carray_remove, gl_carray_list_implementation): Update.
40754         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
40755         gl_linked_search. Add start_index, end_index arguments.
40756         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
40757         start_index, end_index arguments.
40758         (gl_linked_remove): Update.
40759         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40760         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40761         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
40762         field to 'size_t'.
40763         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
40764         gl_tree_search. Add start_index, end_index arguments.
40765         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40766         start_index, end_index arguments.
40767         (gl_tree_remove): Update.
40768         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40769         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40770         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
40771         function.
40772         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
40773         gl_tree_search. Add start_index, end_index arguments.
40774         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40775         start_index, end_index arguments.
40776         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40777         Update.
40778         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40779
40780 2006-10-05  Bruno Haible  <bruno@clisp.org>
40781
40782         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
40783
40784         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
40785         fwriteerror_temp): New declarations.
40786         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
40787         (descriptors): New variable.
40788         (cleanup): First, close the descriptors.
40789         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
40790         fclose_temp, fwriteerror_temp): New functions.
40791
40792 2006-10-04  Jim Meyering  <jim@meyering.net>
40793
40794         * lib/fts.c (fts_open): Tiny comment change.
40795
40796 2006-10-04  Bruno Haible  <bruno@clisp.org>
40797
40798         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
40799         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
40800         gl_LOCK_BODY.
40801         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
40802         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
40803         gl_LOCK_EARLY_BODY.
40804         (gl_LOCK): Require gl_LOCK_BODY.
40805
40806 2006-10-04  Bruno Haible  <bruno@clisp.org>
40807
40808         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
40809         (gl_oset_search_atleast): New declaration.
40810         (struct gl_oset_implementation): Add field 'search_atleast'.
40811         (gl_oset_search_atleast): New inline function.
40812         * lib/gl_oset.c (gl_oset_search_atleast): New function.
40813         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
40814         (gl_array_oset_implementation): Update.
40815         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
40816         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
40817         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
40818
40819 2006-10-04  Bruno Haible  <bruno@clisp.org>
40820
40821         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
40822
40823 2006-10-03  Bruno Haible  <bruno@clisp.org>
40824
40825         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
40826         from gl_avltreehash_list_implementation.
40827
40828 2006-10-03  Bruno Haible  <bruno@clisp.org>
40829
40830         * lib/gl_oset.c (gl_oset_add): Fix return type.
40831
40832 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
40833
40834         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
40835
40836 2006-10-02  Eric Blake  <ebb9@byu.net>
40837
40838         * modules/strnlen (Depends-on): Add extensions.
40839
40840 2006-10-02  Eric Blake  <ebb9@byu.net>
40841
40842         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
40843         definition in 2.60+.
40844
40845 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
40846
40847         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
40848         checks.
40849
40850 2006-10-02  Bruno Haible  <bruno@clisp.org>
40851
40852         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
40853         to the AUTOMAKE_OPTIONS.
40854         Reported by Jim Meyering.
40855
40856 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
40857
40858         Work around bug in Solaris 10 /proc file system:
40859         /proc/self/fd/NNN/.. isn't the parent directory of
40860         the directory whose file descriptor is NNN.  This needs to
40861         be worked around at run time, not compile time, since a
40862         program might be built on Solaris 8, where things work, and
40863         run on Solaris 10.
40864         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
40865         to use the following interface instead:
40866         (OPENAT_BUFFER_SIZE): New macro.
40867         (openat_proc_name): New function.
40868         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
40869         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
40870         Likewise.
40871         * lib/openat-proc.c: New file.
40872         * modules/openat (Files): Add lib/openat-proc.c.
40873         (Depends-on): Add same-inode, stdbool.
40874         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
40875
40876 2006-09-29  Bruno Haible  <bruno@clisp.org>
40877
40878         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
40879         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
40880         argument. Set stdout_closed before testing for ferror, not after.
40881         (fwriteerror, fwriteerror_no_ebadf): New functions.
40882
40883 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40884
40885         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
40886
40887 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
40888
40889         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
40890         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
40891
40892 2006-09-28  Jim Meyering  <jim@meyering.net>
40893
40894         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
40895         Include <unistd.h>.
40896
40897 2006-09-28  Bruno Haible  <bruno@clisp.org>
40898
40899         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
40900         * modules/linkedhash-list (Depends-on): Likewise.
40901         * modules/rbtreehash-list (Depends-on): Likewise.
40902
40903 2006-09-28  Bruno Haible  <bruno@clisp.org>
40904
40905         * lib/strndup.h: Simplify the redefinition of strndup.
40906         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
40907         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
40908
40909 2006-09-28  Bruno Haible  <bruno@clisp.org>
40910
40911         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
40912         * lib/gl_linkedhash_list.c: Likewise.
40913         * lib/gl_rbtreehash_list.c: Likewise.
40914
40915 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
40916
40917         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
40918         getaddrinfo.
40919
40920         * lib/__fpending.h: Don't include <stdio_ext.h> unless
40921         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
40922         it causes <stdio_ext.h> to cause a compile-time error.
40923         Problem reported by Nelson H. F. Beebe.
40924         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
40925         of HAVE_DECL___PENDING.
40926
40927         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
40928         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
40929         declaration.
40930
40931 2006-09-27  Jim Meyering  <jim@meyering.net>
40932
40933         This file could end up with a definition for a function
40934         named __strndup, rather than rpl_strndup on a system with
40935         incomplete weak_alias support.
40936         * lib/strndup.c (strndup): Rename from __strndup.
40937         Remove #defines that used to map __strndup to strndup.
40938         Don't use K&R prototypes.
40939         Remove LIBC-related code, since this file is not sync'd with glibc.
40940         * lib/strndup.h: Revamp, accordingly.
40941         * m4/strndup.m4: Modernize.
40942
40943 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
40944
40945         * modules/savewd (Depends-on): Add 'raise'.
40946         * lib/savewd.c: Include <signal.h>, for 'raise'.
40947
40948 2006-09-26  Jim Meyering  <jim@meyering.net>
40949
40950         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
40951         when we detect Darwin 8.7.0's acl_get_file bug.
40952         Rearrange to perform the new (below) run-test while $LIBS
40953         contains any acl-related library.  Set USE_ACL at the end.
40954         (gl_ACL_GET_FILE): New function.
40955
40956 2006-09-26  Eric Blake  <ebb9@byu.net>
40957
40958         * lib/verror.c: Include <config.h> unconditionally.
40959
40960 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
40961
40962         * modules/clock-time (Maintainer): Add self.
40963         * modules/getlogin_r (Depends-on): Add extensions.
40964
40965 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40966
40967         * modules/clock-time: New module.
40968         * modules/nanosleep (Depends-on): Add clock-time.
40969         * modules/gethrxtime (Depends-on): Likewise.
40970         * modules/gettime (Depends-on): Likewise.
40971         * modules/settime (Depends-on): Likewise.
40972
40973         * modules/fts-lgpl: Depend on openat.
40974         * modules/mkancesdirs: Depend on savewd.
40975         * modules/mkdir-p: Likewise.
40976
40977 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40978
40979         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
40980
40981         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
40982         `gl_have_arbitrary_file_name_length_limit' to
40983         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
40984         actually works between configure runs.
40985
40986 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40987             Bruno Haible  <bruno@clisp.org>
40988
40989         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
40990
40991 2006-09-25  Jim Meyering  <jim@meyering.net>
40992
40993         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
40994         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
40995
40996 2006-09-25  Eric Blake  <ebb9@byu.net>
40997
40998         * gnulib-tool (func_import, func_create_testdir): Fix typos in
40999         exec's in 2006-09-18 patch when shuffling fds.
41000
41001 2006-09-25  Bruno Haible  <bruno@clisp.org>
41002
41003         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41004         Reported by Jim Meyering.
41005
41006 2006-09-24  Jim Meyering  <jim@meyering.net>
41007
41008         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41009         compare a pointer against a literal "0".  That caused failures with
41010         at least HP-UX's hpcc.
41011
41012 2006-09-22  Simon Josefsson  <jas@extundo.com>
41013
41014         * modules/gc-sha1:
41015         * modules/gc-md4:
41016         * modules/gc-hmac-sha1:
41017         * modules/gc-hmac-md5:
41018         * modules/gc-des:
41019         * modules/gc-arcfour: Distribute more files.
41020
41021 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41022
41023         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41024         (gl_linked_iterator_from_to): Initialize struct completely.
41025         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41026         (gl_tree_iterator_from_to): Likewise
41027         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41028         * lib/gl_array_list.c [lint] (gl_array_iterator)
41029         (gl_array_iterator_from_to): Likewise.
41030         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41031         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41032         (gl_carray_iterator_from_to): Likewise.
41033
41034         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41035         * lib/md4.c (md4_process_block): Remove unused variable.
41036         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41037         parentheses for clarity.
41038
41039 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41040
41041         * modules/bison-i18n (Depends-on): Add gettext.
41042
41043 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41044
41045         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41046         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41047         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41048         also add missing comma that caused broken test.
41049         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41050         stdlib.h, for `abort'.
41051         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41052         variables.
41053         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41054         include unistd.h if present, for `rmdir'.
41055         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41056         variables.
41057         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41058         in the process include standard headers for prototypes.
41059         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41060         gets declared on GNU/Linux.
41061         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41062         unistd.h, for `rmdir'.
41063         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41064
41065         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41066         always true.
41067         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41068
41069         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41070
41071 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41072
41073         * gnulib-tool (func_version): Create output all at once.  This
41074         may help avoid triggering unnecessary SIGPIPEs, and at any
41075         rate it doesn't hurt.
41076
41077 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41078             Bruno Haible  <bruno@clisp.org>
41079
41080         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41081         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41082         * m4/signed.m4 (bh_C_SIGNED): Likewise.
41083
41084         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41085         (gl_FUNC_VASPRINTF): Invoke it.
41086
41087 2006-09-22  Bruno Haible  <bruno@clisp.org>
41088
41089         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41090         getloadavg.c as first argument.
41091
41092 2006-09-22  Bruno Haible  <bruno@clisp.org>
41093
41094         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41095         at the beginning of the gl_INIT macro.
41096         * modules/getloadavg (configure.ac): Pass $gl_source_base to
41097         gl_GETLOADAVG.
41098
41099 2006-09-22  Bruno Haible  <bruno@clisp.org>
41100
41101         * gnulib-tool (func_create_megatestdir): Don't include the config-h
41102         module.
41103         Suggested by Ralf Wildenhues.
41104
41105 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
41106
41107         Import this patch from libc:
41108
41109         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
41110
41111         * lib/regex_internal.c (re_string_reconstruct): Handle
41112         offset < pstr->valid_raw_len && pstr->offsets_needed case.
41113         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
41114         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41115         re_string_context_at.
41116
41117         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41118         now requires it.
41119         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41120         gl_REGEX now does it for us.
41121         (gl_REGEX): Add test taken from
41122         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41123
41124         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41125         Check that large offsets work.  Modernize Autoconf usages.
41126         Prefer "yes" to mean a good thing rather than a bad.
41127         Don't put "#define mkstemp" in config.h, as this might interfere
41128         with standard system headers that "#define mkstemp mkstemp64".
41129
41130         * modules/mkstemp (Depends-on): Add extensions, so that
41131         mkstemp is visible on some platforms.
41132         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41133         (Include): Change to "mkstemp.h" from <stdlib.h>.
41134         (Files): Add mkstemp.h.
41135
41136         * lib/mkstemp.h: New file, since some standard headers
41137         #define mkstemp.
41138         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41139         Include "mkstemp.h".
41140         Make the _LIBC code resemble glibc original more,
41141         e.g., use K&R style.
41142         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41143         (mkstemp): Remove, since mkstemp.h does this for us.
41144         * lib/stdlib--.h: Include mkstemp.h.
41145
41146         Import this patch from libc:
41147
41148         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41149
41150         * lib/tempname.c (__gen_tempname): Change attempts_min
41151         into a macro.  Use preprocessor to decide how to initialize
41152         attempts [Coverity CID 67].
41153
41154 2006-09-20  Bruno Haible  <bruno@clisp.org>
41155
41156         * lib/mkdtemp.c: Import from libc.
41157         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41158                 * sysdeps/posix/tempname.c (__gen_tempname): Change
41159                 attempts_min into a macro.  Use preprocessor to decide how to
41160                 initialize attempts [Coverity CID 67].
41161         2001-11-27  Paul Eggert  <eggert@twinsun.com>
41162                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41163                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41164
41165 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41166
41167         * gnulib-tool (func_exit): New function, to allow to pass the
41168         exit status portably through the trap.  Use everywhere.
41169         (--help, --version): Signal a write error.
41170         (trap): catch SIGPIPE, for write errors.
41171         Exit at the end of the trap, with the correct exit status.
41172
41173 2006-09-19  Karl Berry  <karl@gnu.org>
41174
41175         * doc/gnulib.texi: note about the license texinfo files.
41176
41177 2006-09-19  Eric Blake  <ebb9@byu.net>
41178
41179         * gnulib-tool: Avoid space-tab.
41180
41181 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41182
41183         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41184         that prevented coreutils 6.1 from building.  Problem reported
41185         by Petter Reinholdtsen.
41186
41187 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41188
41189         * gnulib-tool (avoidlist): Fix typo that broke options like
41190         --avoid=lock that are used by coreutils bootstrap.
41191
41192 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
41193
41194         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41195         more systematically.
41196
41197 2006-09-18  Jim Meyering  <jim@meyering.net>
41198
41199         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41200
41201 2006-09-18  Bruno Haible  <bruno@clisp.org>
41202
41203         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41204
41205 2006-09-18  Bruno Haible  <bruno@clisp.org>
41206
41207         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41208         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41209         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41210         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41211         * m4/gettext.m4: Require autoconf >= 2.52.
41212         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41213         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41214         of gl_cv_header_inttypes_h.
41215
41216 2006-09-18  Bruno Haible  <bruno@clisp.org>
41217
41218         * lib/javaversion.c: Include configmake.h.
41219
41220 2006-09-18  Bruno Haible  <bruno@clisp.org>
41221
41222         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41223         avoid that the while loops be executed in a subshell.
41224
41225 2006-09-18  Bruno Haible  <bruno@clisp.org>
41226
41227         * MODULES.html.sh (func_module): Break long lines.
41228         Suggested by Bruce Korb <bkorb@gnu.org>.
41229
41230 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41231
41232         Speed up by a factor of 1.12.
41233         * gnulib-tool (nl): New variable.
41234         (func_import): Rewrite include directive extraction to only read each
41235         directive once.
41236
41237 2006-09-17  Bruno Haible  <bruno@clisp.org>
41238
41239         * modules/javaversion (Makefile.am): Remove DEFS setting.
41240         (Depends-on): Add configmake, for PKGDATADIR definition.
41241
41242 2006-09-17  Bruno Haible  <bruno@clisp.org>
41243
41244         * gnulib-tool (func_create_testdir): Rewrite all files at once.
41245
41246 2006-09-17  Bruno Haible  <bruno@clisp.org>
41247
41248         * gnulib-tool (func_append): New function, stolen from libtool.m4.
41249         (func_modules_transitive_closure, func_modules_add_dummy,
41250         func_modules_to_filelist, func_import, func_create_testdir,
41251         func_create_megatestdir, ...): Use it wherever possible.
41252         Suggested by Ralf Wildenhues.
41253
41254 2006-09-16  Karl Berry  <karl@gnu.org>
41255
41256         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41257         to avoid sectioning errors.
41258         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41259         [ifinfo]: blank line after @center-ed titles.
41260         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41261         Spell FSF address consistently with others.
41262         (These changes approved by rms.)
41263
41264 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41265
41266         Speed up by a factor of 1.61.
41267         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41268         already checked module names again.
41269
41270 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41271
41272         Speed up by a factor of 1.13.
41273         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41274         for new_files, and the input to func_add_or_update.
41275
41276 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41277
41278         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41279         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41280
41281 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41282
41283         * modules/mkancesdirs (Depends-on): Add fcntl.
41284         * modules/savewd: New file.
41285         * MODULES.html.sh (File system functions): Add savewd.
41286
41287         * modules/configmake (Makefile.am): Add support for the
41288         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41289
41290 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41291
41292         * m4/savewd.m4: New file.
41293
41294 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41295
41296         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
41297         (dirchownmod): New arg FD.  All callers changed.
41298         Use FD rather than opening the directory ourself, as opening is
41299         now the caller's responsibility.
41300         * lib/dirchownmod.h: Likewise.
41301         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
41302         hosts that require <sys/types.h> before <sys/stat.h>.  Include
41303         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
41304         (test_dir): Remove.
41305         (mkancesdirs): Return length of prefix of FILE that has already
41306         been made, or -2 if there is a child doing the work.  Redo
41307         algorithm so that it is O(N) rather than O(N**2).  Optimize away
41308         ".", and treat ".." specially since it might stray back into
41309         already-created areas.  Use a subprocess if necessary.  New arg
41310         WD; all users changed.  MAKE_DIR function should now return 1
41311         if it creates a directory that is not readable.  Return -2 if
41312         a child process is spun off.
41313         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
41314         Adjust signature to match code.
41315         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
41316         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
41317         all users changed.
41318         * lib/savewd.c, lib/savewd.h: New files.
41319
41320 2006-09-15  Jim Meyering  <jim@meyering.net>
41321
41322         * modules/rename-dest-slash: New module.
41323         * MODULES.html.sh (posix_compat): Add it here.
41324
41325         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
41326
41327 2006-09-15  Jim Meyering  <jim@meyering.net>
41328
41329         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
41330         file.
41331
41332         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
41333
41334 2006-09-15  Jim Meyering  <jim@meyering.net>
41335
41336         * lib/rename-dest-slash.c (has_trailing_slash): Use
41337         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
41338         (rpl_rename_dest_slash): Perform the cheaper trailing slash
41339         test before testing whether SRC is a directory.
41340         Suggestions from Bruno Haible.
41341
41342         Avoid a warning about an unused variable.
41343         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
41344         into the #ifdef block where it's used.
41345
41346         * lib/rename-dest-slash.c: New file.
41347
41348 2006-09-14  Bruno Haible  <bruno@clisp.org>
41349
41350         * lib/allocsa.c: Include <config.h> unconditionally.
41351         * lib/asnprintf.c: Likewise.
41352         * lib/asprintf.c: Likewise.
41353         * lib/c-strcasecmp.c: Likewise.
41354         * lib/c-strcasestr.c: Likewise.
41355         * lib/c-strncasecmp.c: Likewise.
41356         * lib/c-strstr.c: Likewise.
41357         * lib/classpath.c: Likewise.
41358         * lib/clean-temp.c: Likewise.
41359         * lib/concatpath.c: Likewise.
41360         * lib/copy-file.c: Likewise.
41361         * lib/csharpcomp.c: Likewise.
41362         * lib/csharpexec.c: Likewise.
41363         * lib/execute.c: Likewise.
41364         * lib/fatal-signal.c: Likewise.
41365         * lib/findprog.c: Likewise.
41366         * lib/fwriteerror.c: Likewise.
41367         * lib/gl_array_list.c: Likewise.
41368         * lib/gl_array_oset.c: Likewise.
41369         * lib/gl_avltree_list.c: Likewise.
41370         * lib/gl_avltree_oset.c: Likewise.
41371         * lib/gl_avltreehash_list.c: Likewise.
41372         * lib/gl_carray_list.c: Likewise.
41373         * lib/gl_linked_list.c: Likewise.
41374         * lib/gl_linkedhash_list.c: Likewise.
41375         * lib/gl_list.c: Likewise.
41376         * lib/gl_oset.c: Likewise.
41377         * lib/gl_rbtree_list.c: Likewise.
41378         * lib/gl_rbtree_oset.c: Likewise.
41379         * lib/gl_rbtreehash_list.c: Likewise.
41380         * lib/imaxabs.c: Likewise.
41381         * lib/imaxdiv.c: Likewise.
41382         * lib/javacomp.c: Likewise.
41383         * lib/javaexec.c: Likewise.
41384         * lib/javaversion.c: Likewise.
41385         * lib/linebreak.c: Likewise.
41386         * lib/localcharset.c: Likewise.
41387         * lib/lock.c: Likewise.
41388         * lib/mbchar.c: Likewise.
41389         * lib/mbswidth.c: Likewise.
41390         * lib/mkdtemp.c: Likewise.
41391         * lib/pipe.c: Likewise.
41392         * lib/printf-args.c: Likewise.
41393         * lib/printf-parse.c: Likewise.
41394         * lib/progname.c: Likewise.
41395         * lib/progreloc.c: Likewise.
41396         * lib/readlink.c: Likewise.
41397         * lib/sh-quote.c: Likewise.
41398         * lib/stpcpy.c: Likewise.
41399         * lib/stpncpy.c: Likewise.
41400         * lib/strcasecmp.c: Likewise.
41401         * lib/strcasestr.c: Likewise.
41402         * lib/strcspn.c: Likewise.
41403         * lib/striconv.c: Likewise.
41404         * lib/strncasecmp.c: Likewise.
41405         * lib/strnlen1.c: Likewise.
41406         * lib/strstr.c: Likewise.
41407         * lib/strtok_r.c: Likewise.
41408         * lib/tls.c: Likewise.
41409         * lib/tmpdir.c: Likewise.
41410         * lib/unicodeio.c: Likewise.
41411         * lib/unsetenv.c: Likewise.
41412         * lib/vasnprintf.c: Likewise.
41413         * lib/vasprintf.c: Likewise.
41414         * lib/wait-process.c: Likewise.
41415         * lib/xallocsa.c: Likewise.
41416         * lib/xsetenv.c: Likewise.
41417         * lib/xstriconv.c: Likewise.
41418
41419 2006-09-13  Simon Josefsson  <jas@extundo.com>
41420
41421         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
41422         that internally, suggested by Ralf Wildenhues
41423         <Ralf.Wildenhues@gmx.de>.
41424
41425 2006-09-13  Simon Josefsson  <jas@extundo.com>
41426
41427         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
41428         @LIBOBJS@.
41429         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41430
41431 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
41432
41433         * lib/_fpending.c: Include <config.h> unconditionally, since we no
41434         longer worry about uses that don't define HAVE_CONFIG_H.
41435         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
41436         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
41437         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
41438         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
41439         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
41440         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
41441         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
41442         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
41443         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
41444         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
41445         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
41446         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
41447         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
41448         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
41449         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
41450         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
41451         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
41452         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
41453         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
41454         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
41455         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
41456         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
41457         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
41458         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
41459         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
41460         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
41461         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
41462         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
41463         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
41464         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
41465         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
41466         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
41467         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
41468         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
41469         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
41470         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
41471         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
41472         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
41473         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
41474         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
41475         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
41476         Likewise.
41477
41478 2006-09-13  Eric Blake  <ebb9@byu.net>
41479
41480         * lib/getopt.c: Fix typo in last commit.
41481
41482 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41483
41484         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
41485         dgettext.
41486
41487 2006-09-12  Jim Meyering  <jim@meyering.net>
41488
41489         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
41490         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
41491         Reported by Nelson H. F. Beebe.
41492
41493 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
41494
41495         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
41496         program_invocation_name and program_invocation_short_name are
41497         initialized.
41498         * lib/argp-namefrob.h: Move declarations of program_invocation_name
41499         and program_invocation_short_name to argp.h, so they are visible
41500         to user programs.
41501         * lib/argp.h: Likewise
41502
41503 2006-09-10  Bruno Haible  <bruno@clisp.org>
41504
41505         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41506         m4/inttypes_h.m4, m4/uintmax_t.m4.
41507
41508 2006-09-10  Bruno Haible  <bruno@clisp.org>
41509
41510         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
41511         gl_AC_TYPE_UINTMAX_T.
41512
41513 2006-09-10  Bruno Haible  <bruno@clisp.org>
41514
41515         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
41516
41517 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41518
41519         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
41520         convention.  Text proposed by Bruno Haible.
41521         (struct argp_option): Document the use of N_() wrappers.
41522
41523         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
41524         '\v', and translate the two parts separately, instead of feeding
41525         the whole string to gettext.  This allows to exclude
41526         '\v' from the strings visible to the translator by writing doc
41527         strings as N_("..") "\v" N_("..").
41528
41529 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
41530
41531         * config/srclist.txt: Undo latest change; the bug was fixed.
41532
41533 2006-09-09  Bruno Haible  <bruno@clisp.org>
41534
41535         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
41536         assignments if building a library without libtool.
41537         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
41538         in func_emit_lib_Makefile_am.
41539         (func_import): When building a static library libfoo.a, arrange to
41540         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
41541         (func_create_testdir): Likewise.
41542         * modules/gc (configure.ac, Makefile.am): If building statically,
41543         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
41544         * modules/iconvme (configure.ac, Makefile.am): Likewise.
41545         * modules/striconv (configure.ac, Makefile.am): Likewise.
41546         Based on a suggestion by Ralf Wildenhues.
41547
41548 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41549
41550         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41551         Check for unistd.h too, since Autoconf doesn't assume POSIX.
41552         Also:
41553
41554         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41555         Add year_2050_test to catch glibc bug 2821
41556         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41557
41558         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41559         Prefer #ifdef to #if.
41560
41561         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
41562         Return from 'main' instead of calling 'exit'.
41563
41564 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41565
41566         * lib/mktime.c (guess_time_tm): Fix bug where mktime
41567         returned the maximum time_t value rather than (time_t) -1.
41568         Problem originally reported by William Bardwell
41569         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41570
41571         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41572         Moved to here ...
41573         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41574         ... from here.
41575
41576 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41577
41578         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
41579         2821 is fixed.
41580
41581 2006-09-08  Jim Meyering  <jim@meyering.net>
41582
41583         Don't make generated files read-only.  That would bother too many
41584         people.  However, do retain the ability to work when targets are
41585         read-only: remove the destination and temporary files before writing
41586         them (when generated via sed or echo), or by using the -f option for
41587         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
41588         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41589         * modules/byteswap, modules/configmake, modules/fcntl:
41590         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41591         * modules/localcharset, modules/netinet_in, modules/poll:
41592         * modules/stdbool, modules/stdint, modules/sys_select:
41593         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41594
41595 2006-09-08  Jim Meyering  <jim@meyering.net>
41596
41597         Avoid new build failure on FreeBSD 6.0.
41598         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
41599         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
41600         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
41601
41602 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41603
41604         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
41605
41606 2006-09-07  Jim Meyering  <jim@meyering.net>
41607
41608         Fix global typo in last change: use chmod u-w, not chmod u-x.
41609         Spotted by Paul Eggert and Bruce Korb.
41610         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41611         * modules/byteswap, modules/configmake, modules/fcntl:
41612         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41613         * modules/localcharset, modules/netinet_in, modules/poll:
41614         * modules/stdbool, modules/stdint, modules/sys_select:
41615         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41616
41617 2006-09-06  Jim Meyering  <jim@meyering.net>
41618
41619         Make generated files be read-only.
41620         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
41621         Ensure that each generated file is now read-only.
41622         * modules/argz: Likewise.
41623         * modules/arpa_inet: Likewise.
41624         * modules/byteswap: Likewise.
41625         * modules/configmake: Likewise.
41626         * modules/fcntl: Likewise.
41627         * modules/fnmatch: Likewise.
41628         * modules/getopt: Likewise.
41629         * modules/glob: Likewise.
41630         * modules/inttypes: Likewise.
41631         * modules/netinet_in: Likewise.
41632         * modules/poll: Likewise.
41633         * modules/stdbool: Likewise.
41634         * modules/stdint: Likewise.
41635         * modules/sys_select: Likewise.
41636         * modules/sys_socket: Likewise.
41637         * modules/sys_stat: Likewise.
41638         * modules/sysexits: Likewise.
41639         * modules/localcharset: Same as above, but continue using temporary
41640         file named "t-$@" (why different?) rather than the "$@-t" used
41641         everywhere else.
41642
41643         * modules/sysexits (Makefile.am): Replace literal occurrences
41644         of "sysexit.h" more readable, and more consistent, "$@".
41645
41646 2006-09-06  Bruno Haible  <bruno@clisp.org>
41647
41648         * modules/striconv: New file.
41649         * modules/xstriconv: New file.
41650         * MODULES.html.sh (Internationalization functions): Add striconv,
41651         xstriconv.
41652
41653 2006-09-06  Bruno Haible  <bruno@clisp.org>
41654
41655         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
41656         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
41657         not using libtool correctly.
41658
41659 2006-09-06  Bruno Haible  <bruno@clisp.org>
41660
41661         * lib/striconv.h: New file.
41662         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
41663         iconvstring.c.
41664         * lib/xstriconv.h: New file.
41665         * lib/xstriconv.c: New file.
41666
41667 2006-09-06  Bruno Haible  <bruno@clisp.org>
41668
41669         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41670         lib_..._LDFLAGS.
41671
41672 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41673
41674         * lib/argz_.h: Sync from Libtool.
41675
41676         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
41677                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41678
41679         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
41680
41681 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41682
41683         * modules/trim: New file.
41684
41685 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41686
41687         * lib/trim.h: New file.
41688         * lib/trim.c: New file.
41689
41690 2006-09-05  Bruno Haible  <bruno@clisp.org>
41691
41692         * MODULES.html.sh (String handling): Add trim.
41693
41694 2006-09-04  Karl Berry  <karl@gnu.org>
41695
41696         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
41697         until next release.
41698
41699 2006-09-03  Bruno Haible  <bruno@clisp.org>
41700
41701         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
41702         correctly.
41703
41704 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41705
41706         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
41707         not gl_GETLOADAVG.  Omit unneeded semicolons.
41708         Problems reported by Ralf Wildenhues in
41709         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41710         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
41711         at the end, which is the usual gnulib style.
41712
41713         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
41714         of doing all the work ourselves.
41715         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
41716         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
41717
41718 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41719
41720         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
41721         Problem reported by Ralf Wildenhues in
41722         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41723
41724         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
41725         HAVE_STRUCT_STATFS_F_FSTYPENAME.
41726
41727 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41728
41729         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
41730         yesterday's patch by changing test -n to test -z.
41731
41732 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41733
41734         * modules/getloadavg (Files): Add m4/getloadavg.m4.
41735         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
41736         the former is now obsolescent.
41737
41738         * modules/chdir-long (Depends-on): Add fcntl.
41739
41740 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41741
41742         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
41743         obsolescent, and programs should use gnulib instead.
41744         * m4/getloadavg.m4: New file, with contents taken from Autoconf
41745         but with prefixes changed.
41746
41747 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41748
41749         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
41750         or stdbool.h, because they might not exist while configuring.
41751
41752         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
41753         Don't include unistd.h or limits.h; not needed, since chdir-long.h
41754         does that for us.
41755         (O_DIRECTORY): Remove.
41756
41757 2006-08-31  Eric Blake  <ebb9@byu.net>
41758
41759         * gnulib-tool: Don't let emacs change spaces to TAB.
41760
41761 2006-08-31  Bruno Haible  <bruno@clisp.org>
41762
41763         * gnulib-tool: When calling func_import more than once, do it in a
41764         subshell.
41765         Reported by Eric Blake <ebb9@byu.net>.
41766
41767 2006-08-31  Bruno Haible  <bruno@clisp.org>
41768
41769         * gnulib-tool (nl): Remove variable.
41770         (sed_transform_lib_file): Use more robust test for config-h module.
41771         (func_import): Fix typo in 2006-08-25 patch.
41772
41773 2006-08-31  Bruno Haible  <bruno@clisp.org>
41774
41775         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
41776         specified, augment Makefile.am variables instead of assigning them.
41777
41778 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41779
41780         Work around a bug in both the Linux and SunOS 64-bit kernels:
41781         nanosleep mishandles sleeps for longer than 2**31 seconds.
41782         Problem reported by Frank v Waveren in
41783         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
41785         Check for nanosleep bug.
41786         (LIB_NANOSLEEP): Append clock_gettime library if needed.
41787
41788 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41789
41790         Work around a bug in both the Linux and SunOS 64-bit kernels:
41791         nanosleep mishandles sleeps for longer than 2**31 seconds.
41792         Problem reported by Frank v Waveren in
41793         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41794         * lib/nanosleep.c (BILLION): New constant.
41795         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
41796         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
41797         implementation.
41798
41799 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41800
41801         * modules/nanosleep (Depends-on): Add gettime.
41802
41803 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41804         and Simon Josefsson  <jas@extundo.com>
41805         and Oskar Liljeblad  <oskar@osk.mine.nu>
41806
41807         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
41808         * gnulib-tool (func_import): New license type 'unmodifiable license
41809         text'.
41810         * modules/fdl: Use it.  Longer description.
41811         * module/gpl, module/lgpl: New files.
41812
41813 2006-08-30  Jim Meyering  <jim@meyering.net>
41814
41815         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
41816         shadowing the parameter.
41817
41818 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41819
41820         Sync from Libtool:
41821
41822         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41823
41824         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
41825         sharing with gnulib.  Report by Eric Blake.
41826
41827 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41828
41829         * modules/isapipe: New file.
41830         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
41831
41832 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41833
41834         * modules/configmake (Makefile.am): Add a comment, and omit
41835         the CONFIGMAKE_ prefix from generated macro names.  Suggested
41836         by Bruno Haible.
41837
41838 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41839
41840         * m4/isapipe.m4: New file.
41841
41842 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41843
41844         * lib/isapipe.c, lib/isapipe.h: New files.
41845
41846 2006-08-29  Jim Meyering  <jim@meyering.net>
41847
41848         * modules/configmake (Makefile.am): Make configmake.h depend on
41849         Makefile.  Otherwise, a stale configmake.h could hang around.
41850
41851 2006-08-29  Eric Blake  <ebb9@byu.net>
41852
41853         * lib/error.c (error_at_line, print_errno_message): Match libc, after
41854         resolution of upstream bug 3044.
41855
41856 2006-08-29  Bruno Haible  <bruno@clisp.org>
41857
41858         * modules/localcharset (Depends-on): Add configmake.
41859         (Makefile.am): Remove setting of LIBDIR through DEFS.
41860
41861 2006-08-29  Bruno Haible  <bruno@clisp.org>
41862
41863         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
41864         defined.
41865
41866 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41867
41868         * modules/fcntl: New file.
41869         * modules/chdir-safer (Depends-on): Add fcntl.
41870         * modules/fts: Likewise.
41871         * modules/mkdir-p: Likewise.
41872
41873         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
41874         This undoes the most recent change, since we're now addressing the
41875         problem in a different way.
41876
41877         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
41878         into output, since the output might be called Makefile.am even
41879         if $makefile_name is something different.
41880         (func_import): Use $makefile_am rather than
41881         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
41882         empty.
41883
41884         * modules/inttypes (Files): Add m4/inttypes-h.m4.
41885
41886 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41887
41888         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
41889         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
41890         recent change to stdint.m4, since we're now addressing the problem in a
41891         different way.
41892
41893 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41894
41895         * m4/fcntl_h.m4: New file.
41896
41897 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41898
41899         * lib/fcntl_.h: New file.
41900         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
41901         the fcntl module.
41902         * lib/dirchownmod.c: Likewise.
41903         * lib/fts.c: Likewise.
41904
41905         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
41906         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
41907         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
41908         just before including <inttypes.h>, to avoid circular inclusion.
41909
41910 2006-08-28  Jim Meyering  <jim@meyering.net>
41911
41912         * doc/visibility.texi: Actually read and correct the grammar of the
41913         sentence affected by yesterday's change.
41914
41915 2006-08-28  Eric Blake  <ebb9@byu.net>
41916
41917         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
41918         needs wrapper.
41919
41920 2006-08-28  Eric Blake  <ebb9@byu.net>
41921
41922         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
41923
41924 2006-08-28  Eric Blake  <ebb9@byu.net>
41925
41926         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
41927
41928 2006-08-28  Bruno Haible  <bruno@clisp.org>
41929
41930         * modules/c-strstr: New file, from GNU gettext.
41931         * MODULES.html.sh (String handling): Add c-strstr.
41932
41933 2006-08-28  Bruno Haible  <bruno@clisp.org>
41934
41935         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
41936         macros.
41937         Reported by Eric Blake.
41938
41939 2006-08-28  Bruno Haible  <bruno@clisp.org>
41940
41941         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
41942         (VASNPRINTF): Return a string of length > INT_MAX without failing.
41943         * lib/vasprintf.c: Include errno.h, limits.h.
41944         (EOVERFLOW): New fallback definition.
41945         (vasprintf): Test here whether the string length is > INT_MAX.
41946         * lib/vsnprintf.c: Include errno.h, limits.h.
41947         (EOVERFLOW): New fallback definition.
41948         (vsnprintf): Fix bug when generated string was too long for the buffer.
41949         Test here whether the string length is > INT_MAX.
41950
41951 2006-08-28  Bruno Haible  <bruno@clisp.org>
41952
41953         * lib/inttypes_.h (SCNX*): Remove definitions.
41954         Reported by Eric Blake.
41955
41956 2006-08-28  Bruno Haible  <bruno@clisp.org>
41957
41958         * lib/c-strstr.h: New file, from GNU gettext.
41959         * lib/c-strstr.c: New file, from GNU gettext.
41960
41961 2006-08-28  Bruno Haible  <bruno@clisp.org>
41962
41963         * gnulib-tool: Reorder some statements.
41964
41965 2006-08-28  Bruno Haible  <bruno@clisp.org>
41966
41967         * gnulib-tool: New option --makefile-name.
41968         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
41969         $makefile_name.
41970         (func_import): Write $makefile_name to the cache file, and read it from
41971         there unless explicitly specified. Use $makefile_name as file name
41972         instead of Makefile.am. Adjust the recommendations accordingly.
41973
41974 2006-08-28  Bruno Haible  <bruno@clisp.org>
41975
41976         * gnulib-tool (func_verify_module): Check against misapplying patch.
41977
41978 2006-08-28  Bruno Haible  <bruno@clisp.org>
41979
41980         * gnulib-tool (func_relativize, func_relconcat): New functions.
41981         Give an error if --local-dir is given with --update.
41982         Remove trailing slashes from $local_gnulib_dir.
41983         (func_import): Store the relativized $local_gnulib_dir in
41984         gnulib-cache.m4, and read it from there if not specified explicitly.
41985
41986 2006-08-28  Bruno Haible  <bruno@clisp.org>
41987
41988         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
41989         is the current directory. Respect also $local_gnulib_dir.
41990
41991 2006-08-28  Bruno Haible  <bruno@clisp.org>
41992             Simon Josefsson  <jas@extundo.com>
41993
41994         BeOS portability.
41995         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
41996
41997 2006-08-27  Jim Meyering  <jim@meyering.net>
41998
41999         * doc/visibility.texi: Remove duplicate word: "pointer".
42000
42001 2006-08-26  Bruno Haible  <bruno@clisp.org>
42002
42003         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42004         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42005         (Makefile.am): Create inttypes.h from inttypes_.h.
42006         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42007
42008         * modules/imaxabs: New file.
42009
42010         * modules/imaxdiv: New file.
42011
42012 2006-08-26  Bruno Haible  <bruno@clisp.org>
42013
42014         * m4/inttypes.m4: New file.
42015         * m4/_inttypes_h.m4: Remove file.
42016         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42017         PRI_MACROS_BROKEN.
42018         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42019
42020         * m4/imaxabs.m4: New file.
42021
42022         * m4/imaxdiv.m4: New file.
42023
42024 2006-08-26  Bruno Haible  <bruno@clisp.org>
42025
42026         * lib/inttypes_.h: New file.
42027         * lib/inttypes.h: Remove file.
42028         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42029
42030         * lib/imaxabs.c: New file.
42031
42032         * lib/imaxdiv.c: New file.
42033
42034 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42035
42036         New config-h module, so that "make" output needn't be cluttered
42037         by -DHAVE_CONFIG_H.
42038         * MODULES.html.sh (Support for building libraries and executables):
42039         Add config-h.
42040         * modules/config-h: New file.
42041         * gnulib-tool (nl, sed_transform_lib_file): New vars.
42042         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42043         the config-h module is used.
42044
42045         New configmake module, so that "make" output needn't be cluttered
42046         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42047         * MODULES.html.sh (Support for building libraries and executables):
42048         Add configmake.
42049         * modules/configmake: New file.
42050
42051 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42052
42053         * m4/config-h.m4: New file.
42054
42055 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42056
42057         * config/srclist.txt: Add elisp-comp.
42058
42059 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42060
42061         * MODULES.html.sh (Support for building libraries and executables):
42062         Add elisp-comp.
42063         * build-aux/elisp-comp: New file.
42064         * modules/elisp-comp: New file.
42065
42066 2006-08-24  Bruno Haible  <bruno@clisp.org>
42067
42068         * gnulib-tool (func_create_testdir): Use non-default values of
42069         sourcebase and m4base.
42070
42071 2006-08-24  Bruno Haible  <bruno@clisp.org>
42072
42073         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42074         HTML structure.
42075
42076 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42077
42078         * modules/openat (Depends-on): Add lchown.
42079
42080 2006-08-23  Bruno Haible  <bruno@clisp.org>
42081
42082         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42083         of gl_LOCK_EARLY instead of gl_LOCK.
42084
42085 2006-08-23  Bruno Haible  <bruno@clisp.org>
42086
42087         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42088         on OSF/1 to no.
42089         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42090
42091 2006-08-23  Bruno Haible  <bruno@clisp.org>
42092
42093         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42094         as unusable.
42095
42096         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42097         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42098         (gl_LOCK): New macro.
42099
42100 2006-08-22  Simon Josefsson  <jas@extundo.com>
42101
42102         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42103         to md5 module.
42104
42105 2006-08-22  Simon Josefsson  <jas@extundo.com>
42106
42107         * MODULES.html.sh: Add "Support for maintaining and release
42108         projects".
42109
42110         * build-aux/gnupload: New file, from coreutils.
42111
42112 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42113
42114         Avoid the need for AC_LIBSOURCES in m4 macros.
42115         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42116         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42117         * modules/check-version (EXTRA_DIST): Add check-version.h.
42118         * modules/crc (EXTRA_DIST): Add crc.h.
42119         * modules/des (EXTRA_DIST): Add des.h.
42120         * modules/gc (EXTRA_DIST): Add gc.h.
42121         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42122         * modules/getline (EXTRA_DIST): Add getline.h.
42123         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42124         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42125         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42126         * modules/md2 (EXTRA_DIST): Add md2.h.
42127         * modules/md4 (EXTRA_DIST): Add md4.h.
42128         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42129         * modules/read-file (EXTRA_DIST): Add read-file.h.
42130         * modules/readline (EXTRA_DIST): Add readline.h.
42131         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42132         rijndael-api-fst.h.
42133
42134 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42135
42136         * m4/rijndael.m4 (gl_ARCFOUR):
42137         * m4/arctwo.m4 (gl_ARCTWO):
42138         * m4/check-version.m4 (gl_CHECK_VERSION):
42139         * m4/crc.m4 (gl_CRC):
42140         * m4/des.m4 (gl_DES):
42141         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42142         * m4/gc.m4 (gl_GC):
42143         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42144         * m4/getline.m4 (gl_FUNC_GETLINE):
42145         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42146         * m4/hmac-md5.m4 (gl_HMAC_MD5):
42147         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42148         * m4/md2.m4 (gl_MD2):
42149         * m4/md4.m4 (gl_MD4):
42150         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42151         * m4/read-file.m4 (gl_FUNC_READ_FILE):
42152         * m4/readline.m4 (gl_FUNC_READLINE):
42153         * m4/rijndael.m4 (gl_RIJNDAEL):
42154         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42155         to get the necessary .h files and whatnot.
42156
42157 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42158
42159         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42160         gnulib rather than the other way around.
42161         * config/srclistvars.sh (COREUTILS): Remove.
42162
42163 2006-08-22  Jim Meyering  <jim@meyering.net>
42164
42165         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42166
42167         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42168
42169 2006-08-22  Eric Blake  <ebb9@byu.net>
42170
42171         * modules/regexprops-generic: New file.
42172         * MODULES.html.sh (Support for building documentation): List it.
42173
42174 2006-08-22  Eric Blake  <ebb9@byu.net>
42175
42176         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42177         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42178         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42179         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42180
42181 2006-08-22  Bruno Haible  <bruno@clisp.org>
42182
42183         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42184         and lib_LTLIBRARIES like the other lib_* variables.
42185
42186 2006-08-22  Bruno Haible  <bruno@clisp.org>
42187
42188         * build-aux/x-to-1.in: New file, from GNU gettext.
42189
42190 2006-08-22  Bruno Haible  <bruno@clisp.org>
42191
42192         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42193         <utmpx.h> exists.
42194
42195 2006-08-22  Bruno Haible  <bruno@clisp.org>
42196
42197         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42198         <utmpx.h> exists.
42199
42200 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42201
42202         BeOS portability.
42203         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42204         exist.
42205         Problem reported by Bruno Haible.
42206
42207 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42208
42209         Avoid the need for AC_LIBSOURCES in m4 macros.
42210         * modules/acl (EXTRA_DIST): Add acl.h.
42211         * modules/argmatch (Files): Add m4/argmatch.m4.
42212         (configure.ac): Add gl_ARGMATCH.
42213         (EXTRA_DIST): Renamed from lib_SOURCES, for
42214         consistency with the other modules.  Remove argmatch.c.
42215         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42216         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42217         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42218         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42219         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42220         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42221         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42222         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42223         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42224         * modules/closeout (EXTRA_DIST): Add closeout.h.
42225         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42226         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42227         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42228         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
42229         dirname.h; remove basename.c and stripslash.c.
42230         * modules/exclude (EXTRA_DIST): Add exclude.h.
42231         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42232         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42233         * modules/file-type (EXTRA_DIST): Add file-type.h.
42234         * modules/filemode (EXTRA_DIST): Add filemode.h.
42235         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42236         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42237         * modules/fpending (EXTRA_DIST): Add __fpending.h.
42238         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42239         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42240         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42241         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42242         * modules/getdate (EXTRA_DIST): Add getdate.c.
42243         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42244         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42245         * modules/getpass (EXTRA_DIST): Add getpass.h.
42246         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42247         * modules/group-member (EXTRA_DIST): Add group-member.h.
42248         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42249         * modules/hash (EXTRA_DIST): Add hash.h.
42250         * modules/human (EXTRA_DIST): Add human.h.
42251         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42252         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42253         * modules/lchown (EXTRA_DIST): Add lchown.h.
42254         * modules/long-options (EXTRA_DIST): Add long-options.h.
42255         * modules/lstat (EXTRA_DIST): Add lstat.h.
42256         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42257         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42258         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42259         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42260         * modules/memxor (EXTRA_DIST): Add memxor.h.
42261         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42262         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42263         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42264         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42265         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42266         * modules/physmem (EXTRA_DIST): Add physmem.h.
42267         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42268         * modules/posixver (EXTRA_DIST): Add posixver.h.
42269         * modules/quote (EXTRA_DIST): Add quote.h.
42270         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42271         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42272         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42273         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42274         regex_internal.h regexec.c.
42275         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42276         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42277         * modules/same (EXTRA_DIST): Add same.h.
42278         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42279         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42280         * modules/savedir (EXTRA_DIST): Add savedir.h.
42281         * modules/sha1 (EXTRA_DIST): Add sha1.h.
42282         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42283         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42284         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42285         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42286         * modules/strdup (EXTRA_DIST): Add strdup.h.
42287         * modules/strftime (EXTRA_DIST): Add strftime.h.
42288         * modules/strndup (EXTRA_DIST): Add strndup.h.
42289         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42290         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42291         * modules/time_r (EXTRA_DIST): Add time_r.h.
42292         * modules/timespec (EXTRA_DIST): Add timespec.h.
42293         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42294         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
42295         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
42296         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
42297         * modules/userspec (EXTRA_DIST): Add userspec.h.
42298         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
42299         * modules/utimens (EXTRA_DIST): Add utimens.h.
42300         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
42301         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
42302         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
42303         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
42304         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
42305         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
42306         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
42307         * modules/yesno (EXTRA_DIST): Add yesno.h.
42308
42309 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42310
42311         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
42312
42313         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
42314         * m4/dev-ino.m4, same-inode.m4: Remove.
42315
42316         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
42317         * m4/acl.m4 (AC_FUNC_ACL):
42318         * m4/backupfile.m4 (gl_BACKUPFILE):
42319         * m4/c-strtod.m4 (gl_C99_STRTOLD):
42320         * m4/canon-host.m4 (gl_CANON_HOST):
42321         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42322         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
42323         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
42324         * m4/cloexec.m4 (gl_CLOEXEC):
42325         * m4/close-stream.m4 (gl_CLOSE_STREAM):
42326         * m4/closeout.m4 (gl_CLOSEOUT):
42327         * m4/dirfd.m4 (gl_FUNC_DIRFD):
42328         * m4/dirname.m4 (gl_DIRNAME):
42329         * m4/exclude.m4 (gl_EXCLUDE):
42330         * m4/exitfail.m4 (gl_EXITFAIL):
42331         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
42332         * m4/file-type.m4 (gl_FILE_TYPE):
42333         * m4/filemode.m4 (gl_FILEMODE):
42334         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
42335         * m4/fpending.m4 (gl_FUNC_FPENDING):
42336         * m4/fprintftime.m4 (gl_FPRINTFTIME):
42337         * m4/fts.m4 (gl_FUNC_FTS):
42338         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
42339         * m4/getdate.m4 (gl_GETDATE):
42340         * m4/gethrxtime.m4 (gl_GETHRXTIME):
42341         * m4/getpagesize.m4 (gl_GETPAGESIZE):
42342         * m4/getpass.m4 (gl_FUNC_GETPASS):
42343         * m4/gettime.m4 (gl_GETTIME):
42344         * m4/getugroups.m4 (gl_GETUGROUPS):
42345         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
42346         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
42347         * m4/hard-locale.m4 (gl_HARD_LOCALE):
42348         * m4/hash.m4 (gl_HASH):
42349         * m4/idcache.m4 (gl_IDCACHE):
42350         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
42351         * m4/lchown.m4 (gl_FUNC_LCHOWN):
42352         * m4/long-options.m4 (gl_LONG_OPTIONS):
42353         * m4/lstat.m4 (gl_FUNC_LSTAT):
42354         * m4/md5.m4 (gl_MD5):
42355         * m4/memcasecmp.m4 (gl_MEMCASECMP):
42356         * m4/memcoll.m4 (gl_MEMCOLL):
42357         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
42358         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
42359         * m4/memxor.m4 (gl_MEMXOR):
42360         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
42361         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
42362         * m4/modechange.m4 (gl_MODECHANGE):
42363         * m4/mountlist.m4 (gl_MOUNTLIST):
42364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42365         * m4/openat.m4 (gl_FUNC_OPENAT):
42366         * m4/pathmax.m4 (gl_PATHMAX):
42367         * m4/physmem.m4 (gl_PHYSMEM):
42368         * m4/posixtm.m4 (gl_POSIXTM):
42369         * m4/posixver.m4 (gl_POSIXVER):
42370         * m4/quote.m4 (gl_QUOTE):
42371         * m4/quotearg.m4 (gl_QUOTEARG):
42372         * m4/readtokens.m4 (gl_READTOKENS):
42373         * m4/readutmp.m4 (gl_READUTMP):
42374         * m4/regex.m4 (gl_REGEX):
42375         * m4/safe-read.m4 (gl_SAFE_READ):
42376         * m4/safe-write.m4 (gl_SAFE_WRITE):
42377         * m4/same.m4 (gl_SAME):
42378         * m4/save-cwd.m4 (gl_SAVE_CWD):
42379         * m4/savedir.m4 (gl_SAVEDIR):
42380         * m4/settime.m4 (gl_SETTIME):
42381         * m4/sha1.m4 (gl_SHA1):
42382         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
42383         * m4/stat-macros.m4 (gl_STAT_MACROS):
42384         * m4/stat-time.m4 (gl_STAT_TIME):
42385         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
42386         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
42387         * m4/strdup.m4 (gl_FUNC_STRDUP):
42388         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
42389         * m4/strndup.m4 (gl_FUNC_STRNDUP):
42390         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
42391         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
42392         * m4/time_r.m4 (gl_TIME_R):
42393         * m4/timespec.m4 (gl_TIMESPEC):
42394         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
42395         * m4/unlinkdir.m4 (gl_UNLINKDIR):
42396         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
42397         * m4/userspec.m4 (gl_USERSPEC):
42398         * m4/utimecmp.m4 (gl_UTIMECMP):
42399         * m4/utimens.m4 (gl_UTIMENS):
42400         * m4/xalloc.m4 (gl_XALLOC):
42401         * m4/xgetcwd.m4 (gl_XGETCWD):
42402         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
42403         * m4/xreadlink.m4 (gl_XREADLINK):
42404         * m4/xstrtod.m4 (gl_XSTRTOD):
42405         * m4/yesno.m4 (gl_YESNO):
42406         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42407         to get the necessary .h files and whatnot.
42408
42409 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
42410             Bruno Haible  <bruno@clisp.org>
42411
42412         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
42413         /bin/sh understanding of '!' conditional negation.
42414
42415 2006-08-21  Jim Meyering  <jim@meyering.net>
42416
42417         * modules/openat (Depends-on): Really alphabetize.
42418
42419         * modules/acl (Depends-on): Add error and quote.
42420
42421         * check-module (find_included_lib_files): Add at-func.c to the
42422         ok-to-include-more-than-once white list.
42423
42424         * modules/openat (Depends-on): Add lstat.  Alphabetize.
42425
42426 2006-08-21  Bruno Haible  <bruno@clisp.org>
42427
42428         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42429         Emit a pkgdata_DATA variable only if some snippets add contents to it.
42430         Reported by Martin Lambers <marlam@marlam.de>.
42431
42432 2006-08-21  Bruno Haible  <bruno@clisp.org>
42433
42434         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
42435         specify an installation location, don't emit a noinst_LIBRARIES or
42436         noinst_LTLIBRARIES assignment.
42437
42438 2006-08-21  Bruno Haible  <bruno@clisp.org>
42439
42440         BeOS portability.
42441         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
42442         BeOS has mbrtowc() but no <wctype.h>.
42443
42444 2006-08-21  Bruno Haible  <bruno@clisp.org>
42445
42446         BeOS portability.
42447         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
42448         exist.
42449
42450 2006-08-21  Bruno Haible  <bruno@clisp.org>
42451
42452         BeOS portability.
42453         * lib/mbchar.h: Include <wctype.h> only if it exists.
42454
42455 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42456
42457         Remove files that are no longer needed by their respective modules.
42458         * m4/obstack.m4: Remove.
42459         * m4/strerror_r.m4: Remove.
42460         * m4/uint32_t.m4: Remove.
42461         * m4/uintptr_t.m4: Remove.
42462         * m4/ullong_max.m4: Remove.
42463         * m4/xstrtoimax.m4: Remove.
42464         * m4/xstrtoumax.m4: Remove.
42465
42466         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
42467         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
42468         dependencies now capture this.
42469
42470         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
42471         Do not use AC_LIBSOURCES, since gnulib modules now do this.
42472         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
42473         * m4/human.m4 (gl_HUMAN): Likewise.
42474         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
42475         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
42476
42477         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
42478
42479         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
42480         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
42481         stdint.
42482         * m4/human.m4 (gl_HUMAN): Likewise.
42483         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
42484         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
42485         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42486         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42487         * m4/xstrtol (gl_XSTRTOL): Likewise.
42488
42489         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
42490         AC_TYPE_LONG_LONG_INT.
42491         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42492         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
42493         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
42494         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42495
42496         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
42497         on stdbool.
42498
42499         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
42500         (gl_PREREQ_XSTRTOUL): Remove.
42501
42502         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
42503
42504         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
42505         mode.
42506
42507 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42508
42509         Add and change modules to make it easier for coreutils to use
42510         gnulib-tool.
42511         * modules/backupfile (Files): Remove m4/d-ino.m4.
42512         (Depends-on): Add d-ino.
42513         * modules/cycle-check (Depends-on): Add stdint.
42514         (lib_SOURCES): Add cycle-check.h.
42515         * modules/d-ino: New module.
42516         * modules/d-type: New module.
42517         * modules/error (Files): Remove m4/strerror_r.m4.
42518         * modules/filemode (Files): Add m4/st_dm_mode.m4.
42519         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42520         m4/inttypes_h.m4, m4/uintmax_t.m4.
42521         (Depends-on): Add stdint.
42522         (lib_SOURCES): Add fsusage.h.
42523         * modules/getcwd (Files): Remove d-ino.m4.
42524         (Depends-on): Add d-ino.
42525         * modules/getndelim2 (Depends-on): Add stdint.
42526         * modules/glob (Files): Remove m4/d-type.m4.
42527         (Depends-on): Add d-type.
42528         * modules/host-os: New module.
42529         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
42530         m4/inttypes_h.m4, m4/uintmax_t.m4.
42531         * Depends-on: Add stdint.
42532         (lib_SOURCES): Add human.h.
42533         * modules/inttostr (Files): Remove m4/intmax_t.m4,
42534         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
42535         m4/uintmax_t.m4, m4/ulonglong.m4.
42536         (Depends-on): Add stdint.
42537         (EXTRA_DIST): Add inttostr.h.
42538         * modules/lchmod: New module.
42539         * modules/link-follow: New module.
42540         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
42541         (Depends-on): Add lchmod.
42542         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
42543         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
42544         (Depends-on): Add stdint.
42545         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
42546         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
42547         (Depends-on): Add stdint.
42548         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
42549         * modules/perl: New module.
42550         * modules/regex (Depends-on): Add stdint.
42551         * modules/rmdir-errno: New module.
42552         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42553         m4/intmax_t.m4.
42554         (Depends-on): Add stdint.
42555         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42556         m4/uintmax_t.m4.
42557         (Depends-on): Add stdint.
42558         * modules/unlink-busy: New module.
42559         * modules/utimecmp (Depends-on): Add stdint.
42560         * modules/uptime: New module.
42561         * modules/winsz-ioctl: New module.
42562         * modules/winsz-termios: New module.
42563         * modules/xnanosleep (Depends-on): Add nanosleep.
42564         * modules/ullong_max: Remove.
42565         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
42566         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
42567         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
42568         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
42569         (Depends-on): Add inttypes.
42570         (lib_SOURCES): Add xstrtol.h.
42571         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
42572         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
42573         * MODULES.html.sh: Move 'assert' into the assert section.
42574         Move 'dummy' into the linking section.
42575         Remove ullong_max.
42576         Add section for compatibility checks for POSIX:2001 functions,
42577         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
42578         winsz-ioctl, and winsz-termios into it.
42579         Add lchmod.
42580         Add top-level Misc section and put host-os, perl, and uptime
42581         into it.
42582
42583 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42584
42585         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
42586         now assume the stdint module.  Do not include inttypes.h.
42587         * lib/fsusage.h: Likewise.
42588         * lib/getndelim2.c: Likewise.
42589         * lib/human.h: Likewise.
42590         * lib/inttostr.h: Likewise.
42591         * lib/obstack.c: Likewise.
42592         * lib/regex_internal.h: Likewise.
42593         * lib/tempname.c: Likewise.
42594         * lib/utimecmp.c: Likewise.
42595         * lib/xstrtol.h: Likewise.
42596
42597         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
42598
42599         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
42600         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
42601         * lib/xtime.h: Likewise.
42602
42603 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42604
42605         * modules/openat (Files): Add lib/fchmodat.c.
42606         Fixes problem reported by Jay Youngman.
42607
42608 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42609
42610         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
42611         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
42612
42613 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
42614             Bruno Haible  <bruno@clisp.org>
42615
42616         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
42617         and is a script that invokes bison. Tighten the code. Add comments.
42618
42619 2006-08-18  Jim Meyering  <jim@meyering.net>
42620
42621         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
42622         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
42623         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
42624         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
42625
42626 2006-08-18  Bruno Haible  <bruno@clisp.org>
42627
42628         * modules/bison-i18n: New file.
42629         * MODULES.html.sh (Internationalization functions): Add it.
42630
42631 2006-08-18  Bruno Haible  <bruno@clisp.org>
42632
42633         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
42634         sys/statvfs.h. When getmntinfo was found, check its declaration and
42635         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
42636
42637 2006-08-18  Bruno Haible  <bruno@clisp.org>
42638
42639         * m4/bison-i18n.m4: New file, from bison.
42640
42641 2006-08-18  Bruno Haible  <bruno@clisp.org>
42642
42643         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
42644         (ME_DUMMY): Treat "kernfs" as a dummy.
42645         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
42646
42647 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42648
42649         Update from coreutils.
42650
42651         2006-08-15  Jim Meyering  <jim@meyering.net>
42652
42653         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
42654
42655         2006-01-17  Jim Meyering  <jim@meyering.net>
42656
42657         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
42658
42659         2006-01-11  Jim Meyering  <jim@meyering.net>
42660
42661         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
42662         Check for the lchmod function.
42663
42664 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42665
42666         Update from coreutils.
42667
42668         * lib/__fpending.h: Add copyright notice.
42669         * lib/fprintftime.h: Likewise.
42670         * lib/savedir.c: Use (C) in copyright notice.
42671         * lib/savedir.h: Likewise.
42672
42673         2006-08-15  Jim Meyering  <jim@meyering.net>
42674
42675         * lib/at-func.c: New file, with the logic of all emulated at-functions.
42676         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
42677         in support of the EXPECTED_ERRNO macro.
42678         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
42679         definitions.  Instead, define the appropriate symbols and include
42680         "at-func.c".
42681         * lib/mkdirat.c (mkdirat): Likewise.
42682         * lib/fchmodat.c (fchmodat): Likewise.
42683         (ENOSYS): Remove definition.
42684         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
42685         it.  Don't include "unistd--.h" -- it wasn't ever used.
42686
42687         2006-01-17  Jim Meyering  <jim@meyering.net>
42688
42689         Rewrite fts.c not to change the current working directory,
42690         by using openat, fstatat, fdopendir, etc..
42691
42692         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
42693         (HAVE_OPENAT_SUPPORT): Define.
42694         [_LIBC] (fchdir): Don't undef or define; no longer used.
42695         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
42696         Now, this `function' always succeeds, and consumes its file descriptor
42697         parameter -- so callers must not close such FDs.  Update callers.
42698         (diropen_fd, opendirat, cwd_advance_fd): New functions.
42699         (diropen): Add parameter, SP.  Adjust all callers.
42700         Implement using diropen_fd, rather than open.
42701         (fts_open): Initialize new member, fts_cwd_fd.
42702         Remove fts_rft-setting code.
42703         (fts_close): Close fts_cwd_fd, if necessary.
42704         (__opendir2): Define in terms of opendir or opendirat,
42705         depending on whether the FST_NOCHDIR flag is set.
42706         (fts_build): Since fts_safe_changedir consumes its FD, and since
42707         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
42708         and close the dup'd file descriptor upon failure.
42709         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
42710         (fts_safe_changedir): Tweak semantics to reflect that this function
42711         now calls cwd_advance_fd and hence consumes its FD argument.
42712         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
42713         [struct FTS] (fts_rft): Remove now-unused member.
42714         [struct FTS] (fts_cycle.state): Improve comment.
42715
42716         * lib/openat.c (openat_needs_fchdir): New function.
42717         * lib/openat.h (openat_needs_fchdir): Declare it.
42718
42719 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
42720
42721         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
42722         Problem and fix reported by Pádraig Brady in
42723         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
42724
42725 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42726
42727         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
42728
42729 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42730
42731         * lib/memcoll.c (memcoll): Optimize for the common case where the
42732         arguments are bytewise equal.
42733
42734 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42735
42736         * doc/regexprops-generic.texi: Add a copyright notice.
42737
42738 2006-08-15  Bruno Haible  <bruno@clisp.org>
42739
42740         * modules/tmpdir (License): Change to LGPL.
42741
42742 2006-08-15  Bruno Haible  <bruno@clisp.org>
42743
42744         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
42745         module.
42746
42747 2006-08-14  Simon Josefsson  <jas@extundo.com>
42748
42749         * config/srclist.txt: Add gnupload.
42750
42751 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42752
42753         Change copyright notice from LGPL 2 to GPL 2, since that's the
42754         standard form used in the gnulib repository.
42755         * tests/test-lock.c: Likewise.
42756         * tests/test-stdint.c: Likewise.
42757         * tests/test-tls.c: Likewise.
42758
42759         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
42760         prelude-manager.  User shorter URLs for GNU projects, without '?'.
42761         Add copyright notice.
42762
42763         * check-module: Add copyright notice.  Output a copyright
42764         notice if "--version" is specified.
42765         * modules/COPYING: New file.
42766         * tests/test-getaddrinfo.c: Add copyright notice.
42767         * tests/test-verify.c: Likewise.
42768
42769 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42770
42771         Change copyright notice from LGPL 2 to GPL 2, since that's the
42772         standard form used in the gnulib repository.
42773         * lib/lock.c: LGPL -> GPL.
42774         * lib/lock.h: Likewise.
42775         * lib/strnlen1.c: Likewise.
42776         * lib/strnlen1.h: Likewise.
42777         * lib/tls.c: Likewise.
42778         * lib/tls.h: Likewise.
42779         * lib/tmpdir.c: Likewise.
42780
42781         * lib/TODO: Remove; this belongs only in coreutils.
42782
42783 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42784
42785         Add copyright notices to long-enough files that lack them, since
42786         otherwise the files aren't clearly free.  Use the same notice that
42787         getdate.texi already uses.
42788         * doc/alloca-opt.texi: Add copyright notice.
42789         * doc/alloca.texi: Likewise.
42790         * doc/ctime.texi: Likewise.
42791         * doc/functions.texi: Likewise.
42792         * doc/gcd.texi: Likewise.
42793         * doc/gnulib-tool.texi: Likewise.
42794         * doc/inet_ntoa.texi: Likewise.
42795         * doc/visibility.texi: Likewise.
42796
42797         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
42798         * doc/quote.texi: Add copyright notice.
42799
42800         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
42801         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
42802         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
42803         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
42804         is now obsolete, and give a pointer to the Sun list.
42805         Add copyright notice.
42806
42807 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42808
42809         * config/srclistvars.sh: Add copyright notice.
42810
42811 2006-08-14  Eric Blake  <ebb9@byu.net>
42812
42813         Import the following change from libc:
42814
42815         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
42816
42817         Upstream bug 2997.
42818         * lib/misc/error.c: Add space between program name and message if file
42819         name is missing.
42820
42821 2006-08-12  Karl Berry  <karl@gnu.org>
42822
42823         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
42824         remove, these originate in gnulib now.
42825
42826 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42827
42828         * doc/Makefile (standards.info standards.html standards.dvi):
42829         Also depend on make-stds.texi.
42830
42831 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42832
42833         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
42834         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
42835
42836         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
42837         in wchar_t.  Problem reported by Eric Blake.
42838
42839         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
42840         LEN is smaller than SIZE.  Suggested by Bruno Haible.
42841         Also, help the compiler to keep LEN in a register.
42842
42843 2006-08-11  Eric Blake  <ebb9@byu.net>
42844
42845         * users.txt: Sort.  Add tar.
42846
42847 2006-08-11  Bruno Haible  <bruno@clisp.org>
42848
42849         * users.txt: New file.
42850
42851 2006-08-11  Bruno Haible  <bruno@clisp.org>
42852
42853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
42854         before <wchar.h>. Needed for OSF/1 and BSD/OS.
42855
42856 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42857
42858         * modules/snprintf (Depends-on): Remove minmax.
42859         (Maintainer): Add self and Bruno.
42860
42861 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42862
42863         * lib/.cppi-disable: Add snprintf.h, socket_.h.
42864         * lib/snprintf.c: Include <errno.h> and <limits.h>.
42865         (EOVERFLOW): Define if the system does not.
42866         Do not include "minmax.h"; it wasn't used.
42867         (snprintf): Don't assume size_t promotes to an unsigned type.
42868         Fix bug when generated string was too long for the buffer: the
42869         buffer's contents are supposed to be the initial prefix of the
42870         output.  Don't assume vasnprintf returns EOVERFLOW if the size
42871         exceeds INT_MAX; do the check ourselves.
42872
42873         Import the following changes from libc:
42874
42875         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
42876
42877         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
42878         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
42879         set wc to the byte which couldn't be converted.
42880         (re_string_reconstruct): Don't clear valid_raw_len before calling
42881         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
42882         tip_context using re_string_context_at.
42883
42884         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
42885
42886         * lib/posix/regex.h: g++ still cannot handled [restrict].
42887
42888         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
42889
42890         * lib/posix/regex.h: Remove special handling for VMS.
42891
42892 2006-08-10  Jim Meyering  <jim@meyering.net>
42893
42894         * modules/same-inode: New module.
42895         * modules/dev-ino: New module.
42896         * modules/cycle-check: Depend on these modules, rather than simply
42897         including their .h files.
42898         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
42899         required via m4/cycle-check.m4.
42900         * modules/same: Depend on new same-inode module, rather than
42901         including same-inode.h.
42902         * modules/chdir-safer: New file.
42903
42904         * modules/chown (Depends-on): Add stat-macros.
42905
42906 2006-08-10  Jim Meyering  <jim@meyering.net>
42907
42908         * m4/cycle-check.m4: New file.
42909         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
42910         * m4/dev-ino.m4, m4/same-inode.m4: New files.
42911
42912 2006-08-10  Eric Blake  <ebb9@byu.net>
42913
42914         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
42915         in from original proposal.
42916
42917 2006-08-10  Eric Blake  <ebb9@byu.net>
42918         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42919
42920         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
42921         namespace.
42922
42923 2006-08-10  Bruno Haible  <bruno@clisp.org>
42924
42925         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
42926         as well.
42927
42928 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42929
42930         Sync from coreutils.
42931
42932         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
42933
42934         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
42935         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
42936
42937 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42938
42939         * modules/restrict: Remove; no longer needed now that we assume
42940         Autoconf 2.59 or later.
42941         * MODULES.html.sh: Remove 'restrict'.
42942         * modules/argp (Depends-on): Remove 'restrict'.
42943         * modules/base64 (Depends-on): Likewise.
42944         * modules/gc (Depends-on): Likewise.
42945         * modules/getaddrinfo (Depends-on): Likewise.
42946         * modules/glob (Depends-on): Likewise.
42947         * modules/inet_ntop (Depends-on): Likewise.
42948         * modules/inet_pton (Depends-on): Likewise.
42949         * modules/memxor (Depends-on): Likewise.
42950         * modules/regex (Depends-on): Likewise.
42951         * modules/strtok_r (Depends-on): Likewise.
42952         * modules/time_r (Depends-on): Likewise.
42953
42954 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42955
42956         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
42957         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
42958         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42959         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
42960         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
42961         * m4/memxor.m4 (gl_MEMXOR): Likewise.
42962         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
42963         gl_C_RESTRICT replaced by AC_C_RESTRICT.
42964
42965         Merge from coreutils.
42966         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
42967         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
42968         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42969         * m4/time_r.m4 (gl_TIME_R): Likewise.
42970
42971 2006-08-09  Karl Berry  <karl@gnu.org>
42972
42973         * config/srclist.txt: no more gettext-tools, per Bruno.
42974
42975 2006-08-08  Eric Blake  <ebb9@byu.net>
42976
42977         * modules/verror: New module.
42978         * MODULES.html.sh: Document it.
42979
42980 2006-08-08  Eric Blake  <ebb9@byu.net>
42981
42982         * lib/verror.h, lib/verror.c: New files.
42983
42984 2006-08-08  Eric Blake  <ebb9@byu.net>
42985
42986         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
42987         verror_at_line output complies with GNU Coding Standards even when
42988         file is NULL.
42989
42990 2006-08-07  Bruno Haible  <bruno@clisp.org>
42991
42992         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
42993         versions of AIX.
42994         Reported by Ralf Wildenhues.
42995
42996 2006-08-07  Bruno Haible  <bruno@clisp.org>
42997
42998         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
42999         in an AC_DEFUN. Needed so that the autoconf snippets can use
43000         AC_REQUIRE.
43001
43002 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43003
43004         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43005         Initialize pkgdata_DATA.
43006         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43007         overriding it.
43008
43009 2006-08-06  Eric Blake  <ebb9@byu.net>
43010
43011         * lib/error.h: Fold in some upstream changes from glibc.
43012         * lib/error.c: Likewise.
43013
43014 2006-08-04  Bruno Haible  <bruno@clisp.org>
43015
43016         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43017         Make the mostlyclean-local rule depend on mostlyclean-generic.
43018         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43019
43020 2006-07-31  Bruno Haible  <bruno@clisp.org>
43021
43022         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43023         <stdlib.h>, <string.h>.
43024
43025 2006-07-30  Bruno Haible  <bruno@clisp.org>
43026
43027         * modules/readlink (License): Change to LGPL.
43028
43029 2006-07-30  Bruno Haible  <bruno@clisp.org>
43030
43031         * modules/javaversion (Makefile.am): Distribute javaversion.java and
43032         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43033         set PKGDATADIR to point to it.
43034
43035 2006-07-30  Bruno Haible  <bruno@clisp.org>
43036
43037         * modules/csharpexec (configure.ac): Comment out macro invocation.
43038         * modules/javaexec (configure.ac): Likewise.
43039         * modules/javacomp-script (configure.ac): Likewise.
43040
43041         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43042
43043 2006-07-30  Bruno Haible  <bruno@clisp.org>
43044
43045         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43046         linked-list.
43047
43048 2006-07-30  Bruno Haible  <bruno@clisp.org>
43049
43050         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43051
43052 2006-07-30  Bruno Haible  <bruno@clisp.org>
43053
43054         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43055         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43056         get removed.
43057
43058 2006-07-29  Bruno Haible  <bruno@clisp.org>
43059
43060         Make it possible for gnulib-tool to work with locally modified or
43061         augmented gnulib repositories.
43062         * gnulib-tool (func_usage): Document --local-dir option.
43063         (local_gnulib_dir): New variable.
43064         Handle --local-dir option.
43065         (func_lookup_file): New function.
43066         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43067         (func_get_description, func_get_filelist, func_get_description,
43068         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43069         func_get_automake_snippet, func_get_include_directive,
43070         func_get_license, func_get_maintainer): Use func_lookup_file.
43071         (func_import, func_create_testdir): Use func_lookup_file.
43072
43073 2006-07-29  Bruno Haible  <bruno@clisp.org>
43074
43075         * modules/setenv (Depends-on): Add unistd.
43076
43077 2006-07-29  Bruno Haible  <bruno@clisp.org>
43078
43079         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43080
43081 2006-07-29  Bruno Haible  <bruno@clisp.org>
43082
43083         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43084
43085 2006-07-29  Bruno Haible  <bruno@clisp.org>
43086
43087         * gnulib-tool (import, update): If there is no Makefile.am, look at
43088         aclocal.m4, instead of bailing out.
43089
43090 2006-07-29  Bruno Haible  <bruno@clisp.org>
43091
43092         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43093         Categorize the options by when they are useful.
43094
43095 2006-07-29  Bruno Haible  <bruno@clisp.org>
43096
43097         * gnulib-tool (func_usage): Document option --no-libtool.
43098         Handle option --no-libtool.
43099         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43100         for changed semantics of $libtool variable.
43101         (func_import): Likewise. If libtool is not used, show this through
43102         an option --no-libtool.
43103         (func_create_testdir): Update.
43104
43105 2006-07-29  Bruno Haible  <bruno@clisp.org>
43106
43107         * gnulib-tool (func_import): Extend error message about missing
43108         --doc-base.
43109
43110 2006-07-29  Bruno Haible  <bruno@clisp.org>
43111
43112         * gnulib-tool (func_import): Don't create the $docbase directory if
43113         there is no file to store there.
43114
43115 2006-07-29  Bruno Haible  <bruno@clisp.org>
43116
43117         * gnulib-tool (autoconf_minversion): If a --dir option is given and
43118         relevant, look for configure.ac there, not in the current directory.
43119         Also use a simple search for AC_PREREQ, not "autoconf --trace".
43120
43121 2006-07-29  Bruno Haible  <bruno@clisp.org>
43122
43123         * gnulib-tool (SORT): New variable.
43124         (func_usage): Undocument --assume-autoconf option.
43125         Remove --assume-autoconf option handling.
43126         (autoconf_minversion): Determine from the contents of configure.ac.
43127         (func_import): Remove autoconf_minversion handling.
43128         Suggested by Eric Blake.
43129
43130 2006-07-29  Bruno Haible  <bruno@clisp.org>
43131
43132         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43133
43134 2006-07-29  Bruno Haible  <bruno@clisp.org>
43135
43136         * config/srclist.txt (*setenv.[ch]): Remove rules.
43137
43138 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43139
43140         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43141
43142 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43143
43144         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43145         arpa/inet.h.
43146
43147 2006-07-28  Simon Josefsson  <jas@extundo.com>
43148
43149         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43150         * modules/inet_pton (Depends-on): Likewise.
43151
43152 2006-07-28  Simon Josefsson  <jas@extundo.com>
43153
43154         * m4/netinet_in_h.m4: New file.
43155
43156 2006-07-28  Simon Josefsson  <jas@extundo.com>
43157
43158         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43159         #include's.
43160
43161 2006-07-28  Simon Josefsson  <jas@extundo.com>
43162
43163         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43164         #include's.
43165
43166 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
43167
43168         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43169         setgid on directories only if they set these bits.
43170         * lib/modechange.h: Remove obsolete comment about masks.
43171
43172 2006-07-28  Eric Blake  <ebb9@byu.net>
43173
43174         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43175         macro expansion.
43176
43177 2006-07-28  Bruno Haible  <bruno@clisp.org>
43178
43179         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43180
43181 2006-07-28  Bruno Haible  <bruno@clisp.org>
43182
43183         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43184
43185 2006-07-28  Bruno Haible  <bruno@clisp.org>
43186
43187         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43188         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43189         Define fallbacks.
43190         Avoids link error on FreeBSD 4.x.
43191         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43192
43193         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43194         encoding.
43195         * lib/mbswidth.c (iswcntrl): Likewise.
43196
43197 2006-07-27  Bruno Haible  <bruno@clisp.org>
43198
43199         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43200         test.
43201
43202 2006-07-27  Bruno Haible  <bruno@clisp.org>
43203
43204         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43205         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43206         defined.
43207
43208 2006-07-26  Eric Blake  <ebb9@byu.net>
43209
43210         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43211
43212 2006-07-26  Eric Blake  <ebb9@byu.net>
43213
43214         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43215         like mingw that lack mkstemp.
43216         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43217         avoid compilation warning on mingw.
43218
43219 2006-07-26  Bruno Haible  <bruno@clisp.org>
43220
43221         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43222         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43223         INT_FAST*_MIN, INTPTR_MIN.
43224
43225 2006-07-25  Bruno Haible  <bruno@clisp.org>
43226
43227         * modules/version-etc (Depends-on): Add stdarg.
43228
43229 2006-07-25  Bruno Haible  <bruno@clisp.org>
43230
43231         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43232         complex commands.
43233
43234 2006-07-25  Bruno Haible  <bruno@clisp.org>
43235
43236         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43237         defined in <stdarg.h> or config.h.
43238
43239 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43240
43241         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43242         (gl_STDIO_SAFER): Remove.
43243
43244 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43245
43246         * MODULES.html.sh (File stream based Input/Output):
43247         Add fopen-safer, tmpfile-safer; remove stdio-safer.
43248         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43249         * modules/fopen-safer, modules/tmpfile-safer: New files.
43250         * modules/stdio-safer: Remove.
43251
43252 2006-07-24  Bruno Haible  <bruno@clisp.org>
43253
43254         * modules/tmpdir: New file.
43255         * MODULES.html.sh (File system functions): Add it.
43256
43257 2006-07-24  Bruno Haible  <bruno@clisp.org>
43258
43259         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43260         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43261
43262 2006-07-24  Bruno Haible  <bruno@clisp.org>
43263
43264         * modules/clean-temp: New file.
43265
43266 2006-07-24  Bruno Haible  <bruno@clisp.org>
43267
43268         * m4/tmpdir.m4: New file, from GNU gettext.
43269
43270 2006-07-24  Bruno Haible  <bruno@clisp.org>
43271
43272         * lib/tmpdir.h: New file, from GNU gettext.
43273         * lib/tmpdir.c: New file, from GNU gettext.
43274
43275 2006-07-24  Bruno Haible  <bruno@clisp.org>
43276
43277         * lib/clean-temp.h: New file, from GNU gettext.
43278         * lib/clean-temp.c: New file, from GNU gettext.
43279
43280 2006-07-23  Eric Blake  <ebb9@byu.net>
43281
43282         * modules/stdio-safer (Files): Add tmpfile-safer.c.
43283         (Depends-on): Add binary-io.
43284
43285 2006-07-23  Eric Blake  <ebb9@byu.net>
43286
43287         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43288
43289 2006-07-23  Eric Blake  <ebb9@byu.net>
43290
43291         * lib/tmpfile-safer.c: New file.
43292         * lib/stdio-safer.h (fopen_safer): Add prototype.
43293         * lib/stdio--.h (tmpfile): Make safer.
43294
43295 2006-07-23  Bruno Haible  <bruno@clisp.org>
43296
43297         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
43298         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
43299         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
43300         gl_linked_remove_at): Use it.
43301
43302 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43303         and Simon Josefsson <jas@extundo.com>
43304
43305         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
43306
43307         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
43308
43309 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43310
43311         * modules/close-stream: New file.
43312         * modules/closeout (Description): Make it clear that it exits
43313         with a diagnostic on error.
43314         (Depends-on): Add close-stream.  Remove fpending, stdbool.
43315         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
43316
43317 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43318
43319         * m4/close-stream.m4: New file.
43320
43321 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43322
43323         * lib/close-stream.c, lib/close-stream.h: New files.
43324
43325 2006-07-22  Bruno Haible  <bruno@clisp.org>
43326
43327         Merge from GNU gettext 0.15.
43328
43329         2006-05-01  Bruno Haible  <bruno@clisp.org>
43330
43331                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
43332
43333         2006-07-22  Bruno Haible  <bruno@clisp.org>
43334
43335                 * modules/javaversion: New file.
43336                 * MODULES.html.sh (Java): Add javaversion.
43337
43338         2006-03-12  Bruno Haible  <bruno@clisp.org>
43339
43340                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
43341
43342         2005-12-04  Bruno Haible  <bruno@clisp.org>
43343
43344                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
43345                 (untested).
43346
43347         2006-06-21  Bruno Haible  <bruno@clisp.org>
43348
43349                 Avoid warnings from recent versions of mcs.
43350                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
43351                 -o, -L, -r any more. Use options documented since mcs-1.0
43352                 instead. Similarly for -g.
43353
43354         2005-12-04  Bruno Haible  <bruno@clisp.org>
43355
43356                 * build-aux/csharpcomp.sh.in: Suffix for resources is
43357                 .resources, not .resource.
43358
43359         2005-07-09  Bruno Haible  <bruno@clisp.org>
43360
43361                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
43362                 add a .dll suffix.
43363                 Reported by Mark Junker <mjscod@gmx.de>.
43364
43365         2006-07-22  Bruno Haible  <bruno@clisp.org>
43366
43367                 * modules/gettext: Upgrade to gettext-0.15.
43368                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
43369                 m4/visibility.m4.
43370                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
43371
43372 2006-07-22  Bruno Haible  <bruno@clisp.org>
43373
43374         Merge from GNU gettext 0.15.
43375
43376         2006-03-25  Bruno Haible  <bruno@clisp.org>
43377
43378                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
43379
43380         2006-07-21  Bruno Haible  <bruno@clisp.org>
43381
43382                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
43383                 "1.1".
43384
43385         2006-05-09  Bruno Haible  <bruno@clisp.org>
43386
43387                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
43388                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
43389                 for the conftestver execution.
43390
43391         2006-05-01  Bruno Haible  <bruno@clisp.org>
43392
43393                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
43394                 optional target-version argument. Verify that the compiler
43395                 groks source of the specified source-version, or add -source
43396                 option as necessary. Verify that the compiler produces
43397                 bytecode in the specified target-version, or add -target and
43398                 -source options as necessary. Make the result of the test
43399                 available as variable CONF_JAVAC. Also log error output in
43400                 config.log.
43401
43402         2006-03-11  Bruno Haible  <bruno@clisp.org>
43403
43404                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
43405
43406         2006-05-09  Bruno Haible  <bruno@clisp.org>
43407
43408                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
43409                 CLASSPATH_SEPARATOR to a semicolon.
43410
43411         2006-03-12  Bruno Haible  <bruno@clisp.org>
43412
43413                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
43414                 available as variable CONF_JAVA, for subsequent autoconf
43415                 tests. Also log error output in config.log.
43416
43417         2006-07-19  Bruno Haible  <bruno@clisp.org>
43418
43419                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
43420                 that getline works on glibc2 systems. Needed to avoid trouble
43421                 in relocatable.c.
43422                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
43423
43424         2005-12-04  Bruno Haible  <bruno@clisp.org>
43425
43426                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
43427                 launcher (untested).
43428
43429         2005-12-04  Bruno Haible  <bruno@clisp.org>
43430
43431                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
43432
43433         2006-07-22  Bruno Haible  <bruno@clisp.org>
43434
43435                 * gettext.m4: Update from GNU gettext-0.15.
43436                 * nls.m4: Likewise.
43437                 * po.m4: Likewise.
43438                 * inttypes-pri.m4: Likewise.
43439                 * inttypes-h.m4: Renamed from inttypes.m4.
43440                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
43441
43442 2006-07-22  Bruno Haible  <bruno@clisp.org>
43443
43444         Merge from GNU gettext 0.15.
43445
43446         2005-07-05  Bruno Haible  <bruno@clisp.org>
43447
43448                 * printf-args.c (printf_fetchargs): Work around broken
43449                 definition of wint_t on mingw.
43450
43451         2005-02-12  Bruno Haible  <bruno@clisp.org>
43452
43453                 * xallocsa.h: Add extern "C" for C++.
43454
43455         2006-05-17  Bruno Haible  <bruno@clisp.org>
43456
43457                 Cygwin portability.
43458                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
43459
43460         2006-04-30  Bruno Haible  <bruno@clisp.org>
43461
43462                 * progreloc.c: Include <mach-o/dyld.h> if available.
43463                 (find_executable): Use _NSGetExecutablePath when possible.
43464
43465         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
43466
43467                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
43468                 function.
43469
43470         2005-12-29  Bruno Haible  <bruno@clisp.org>
43471
43472                 * progreloc.c (set_program_name_and_installdir): Fix
43473                 compilation error.
43474
43475         2005-12-04  Bruno Haible  <bruno@clisp.org>
43476
43477                 Cygwin portability.
43478                 * progreloc.c: Include <windows.h> also on Cygwin.
43479                 (find_executable): Add support for Cygwin.
43480                 (set_program_name_and_installdir): Handle also platforms with
43481                 nonempty EXEEXT.
43482
43483         2006-07-11  Bruno Haible  <bruno@clisp.org>
43484
43485                 * javacomp.c: Fix a comment.
43486                 Reported by Jim Meyering.
43487
43488         2006-04-30  Bruno Haible  <bruno@clisp.org>
43489
43490                 * javacomp.h (compile_java_class): Add source_version,
43491                 target_version arguments.
43492                 * javacomp.c: Rewritten to choose only a compiler that
43493                 respects the specified source_version and target_version.
43494
43495         2006-06-27  Bruno Haible  <bruno@clisp.org>
43496
43497                 Assume correct S_ISDIR macro.
43498                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
43499
43500         2006-07-22  Bruno Haible  <bruno@clisp.org>
43501
43502                 * javaversion.h: New file, from GNU gettext.
43503                 * javaversion.c: New file, from GNU gettext.
43504                 * javaversion.java: New file, from GNU gettext.
43505                 * javaversion.class: New file, from GNU gettext.
43506
43507         2006-05-17  Bruno Haible  <bruno@clisp.org>
43508
43509                 Cygwin portability.
43510                 * javaexec.c (execute_java_class): Test for jview program
43511                 also on Cygwin.
43512
43513         2006-04-09  Bruno Haible  <bruno@clisp.org>
43514
43515                 * fatal-signal.c: Don't include string.h.
43516                 (at_fatal_signal): Use a copying loop instead of memcpy.
43517
43518         2005-12-04  Bruno Haible  <bruno@clisp.org>
43519
43520                 * csharpexec.c: Add support for 'clix' launcher (untested).
43521                 (execute_csharp_using_sscli): New function.
43522                 (execute_csharp_program): Call it.
43523
43524         2006-06-21  Bruno Haible  <bruno@clisp.org>
43525
43526                 Avoid warnings from recent versions of mcs.
43527                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
43528                 -o, -L, -r any more. Use options documented since mcs-1.0
43529                 instead. Similarly for -g.
43530
43531         2005-07-09  Bruno Haible  <bruno@clisp.org>
43532
43533                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
43534                 add a .dll suffix.
43535                 Reported by Mark Junker <mjscod@gmx.de>.
43536
43537         2006-06-17  Bruno Haible  <bruno@clisp.org>
43538
43539                 * config.charset: Update for NetBSD 3.0.
43540
43541         2006-05-17  Bruno Haible  <bruno@clisp.org>
43542
43543                 Cygwin portability.
43544                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
43545
43546         2006-05-16  Bruno Haible  <bruno@clisp.org>
43547
43548                 * localcharset.c [CYGWIN]: Include <windows.h>.
43549                 (get_charset_aliases): For Cygwin, return the same CPxxx
43550                 aliases list as under WIN32.
43551                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
43552                 the environment variables. Fall back to GetACP().
43553
43554         2006-04-05  Bruno Haible  <bruno@clisp.org>
43555
43556                 * config.charset: Update Juan Manuel Guerrero's address.
43557
43558         2005-02-12  Bruno Haible  <bruno@clisp.org>
43559
43560                 * allocsa.h: Add extern "C" for C++.
43561
43562         2005-02-10  Bruno Haible  <bruno@clisp.org>
43563
43564                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
43565                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
43566
43567         2006-07-22  Bruno Haible  <bruno@clisp.org>
43568
43569                 * gettext.h: Update to GNU gettext-0.15.
43570
43571 2006-07-22  Bruno Haible  <bruno@clisp.org>
43572
43573         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
43574         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
43575         lib-prefix.m4, longdouble.m4, ssize_t.m4.
43576
43577 2006-07-21  Eric Blake  <ebb9@byu.net>
43578
43579         * modules/stdlib-safer: New file.
43580         * MODULES.html.sh (File stream based Input/Output): Add
43581         stdlib-safer.
43582
43583 2006-07-21  Eric Blake  <ebb9@byu.net>
43584
43585         * lib/stdlib-safer.h: New file from coreutils, required by
43586         stdlib--.h.
43587
43588 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
43589
43590         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
43591
43592 2006-07-20  Bruno Haible  <bruno@clisp.org>
43593
43594         * gnulib-tool: Recognize new option --assume-autoconf.
43595         (autoconf_minversion): New variable.
43596         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
43597
43598 2006-07-20  Bruno Haible  <bruno@clisp.org>
43599
43600         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
43601
43602 2006-07-19  Derek R. Price  <derek@ximbiot.com>
43603
43604         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
43605         Reindent and repaginate.
43606
43607 2006-07-19  Derek Price  <derek@ximbiot.com>
43608
43609         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
43610         Correct grammar.
43611
43612 2006-07-17  Bruno Haible  <bruno@clisp.org>
43613
43614         * modules/list: New file.
43615         * modules/array-list: New file.
43616         * modules/carray-list, modules/carray-list-tests: New files.
43617         * modules/linked-list, modules/linked-list-tests: New files.
43618         * modules/avltree-list, modules/avltree-list-tests: New files.
43619         * modules/rbtree-list, modules/rbtree-list-tests: New files.
43620         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
43621         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
43622         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
43623         * modules/oset: New file.
43624         * modules/array-oset: New file.
43625         * modules/avltree-oset, modules/avltree-oset-tests: New files.
43626         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
43627         * tests/test-carray_list.c: New file.
43628         * tests/test-linked_list.c: New file.
43629         * tests/test-avltree_list.c: New file.
43630         * tests/test-rbtree_list.c: New file.
43631         * tests/test-linkedhash_list.c: New file.
43632         * tests/test-avltreehash_list.c: New file.
43633         * tests/test-rbtreehash_list.c: New file.
43634         * tests/test-avltree_oset.c: New file.
43635         * tests/test-rbtree_oset.c: New file.
43636         * MODULES.html.sh (Container data structures): New section.
43637
43638 2006-07-17  Bruno Haible  <bruno@clisp.org>
43639
43640         * m4/gl_list.m4: New file.
43641
43642 2006-07-17  Bruno Haible  <bruno@clisp.org>
43643
43644         * lib/gl_list.h: New file.
43645         * lib/gl_list.c: New file.
43646         * lib/gl_array_list.h: New file.
43647         * lib/gl_array_list.c: New file.
43648         * lib/gl_carray_list.h: New file.
43649         * lib/gl_carray_list.c: New file.
43650         * lib/gl_linked_list.h: New file.
43651         * lib/gl_linked_list.c: New file.
43652         * lib/gl_anylinked_list1.h: New file.
43653         * lib/gl_anylinked_list2.h: New file.
43654         * lib/gl_avltree_list.h: New file.
43655         * lib/gl_avltree_list.c: New file.
43656         * lib/gl_anyavltree_list1.h: New file.
43657         * lib/gl_anyavltree_list2.h: New file.
43658         * lib/gl_rbtree_list.h: New file.
43659         * lib/gl_rbtree_list.c: New file.
43660         * lib/gl_anyrbtree_list1.h: New file.
43661         * lib/gl_anyrbtree_list2.h: New file.
43662         * lib/gl_anytree_list1.h: New file.
43663         * lib/gl_anytree_list2.h: New file.
43664         * lib/gl_linkedhash_list.h: New file.
43665         * lib/gl_linkedhash_list.c: New file.
43666         * lib/gl_anyhash_list1.h: New file.
43667         * lib/gl_anyhash_list2.h: New file.
43668         * lib/gl_avltreehash_list.h: New file.
43669         * lib/gl_avltreehash_list.c: New file.
43670         * lib/gl_rbtreehash_list.h: New file.
43671         * lib/gl_rbtreehash_list.c: New file.
43672         * lib/gl_anytreehash_list1.h: New file.
43673         * lib/gl_anytreehash_list2.h: New file.
43674
43675         * lib/gl_oset.h: New file.
43676         * lib/gl_oset.c: New file.
43677         * lib/gl_array_oset.h: New file.
43678         * lib/gl_array_oset.c: New file.
43679         * lib/gl_avltree_oset.h: New file.
43680         * lib/gl_avltree_oset.c: New file.
43681         * lib/gl_rbtree_oset.h: New file.
43682         * lib/gl_rbtree_oset.c: New file.
43683         * lib/gl_anytree_oset.h: New file.
43684
43685 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43686
43687         * m4/mkancesdirs.m4: New file.
43688         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
43689         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
43690         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
43691         it.
43692
43693 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43694
43695         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
43696         * lib/mkancesdirs.h: New files.
43697         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
43698         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
43699         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
43700         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
43701         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
43702         callers changed.  Revamp internals significantly, by not
43703         attempting to create directories that are temporarily more
43704         permissive than the final results.  Do not attempt to use
43705         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
43706         This removes some race conditions, fixes some bugs, and simplifies
43707         things.  Use new dirchownmod function to do owner and mode changes.
43708         * lib/mkdir-p.h: Likewise.
43709         * lib/modechange.c (octal_to_mode): New function.
43710         (struct mode_change): New member mentioned.
43711         (make_node_op_equals): New arg mentioned.  All callers changed.
43712         (mode_compile): Keep track of which mode bits the user has explicitly
43713         mentioned.
43714         (mode_adjust): New arg DIR, so that we implement the X op correctly.
43715         New arg PMODE_BITS, to keep track of which mode bits the user
43716         mentioned; it treats S_ISUID and S_ISGID speciall.
43717         All callers changed.
43718         * lib/modechange.h: Likewise.
43719
43720 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43721
43722         * MODULES.html.sh: Add mkancestors.
43723         * modules/mkancesdirs: New module.
43724         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
43725         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
43726         The chdir-safer and afs files are now orphans; I'll remove them
43727         unless someone speaks up.
43728         Add lib/dirchownmod.c, lib/dirchownmod.h.
43729         (Depends-on): Remove alloca, chown, save-cwd, dirname.
43730         Add lchown, mkancesdirs.
43731         (Maintainer): Add self.
43732
43733 2006-07-15  Karl Berry  <karl@gnu.org>
43734
43735         * gnulib-tool: help message wording/arrangement.
43736
43737 2006-07-14  Simon Josefsson  <jas@extundo.com>
43738
43739         * doc/gnulib.texi (Libtool and Windows): New section.
43740
43741 2006-07-12  Simon Josefsson  <jas@extundo.com>
43742
43743         * modules/gendocs (License): Fix license, approved by Karl.
43744
43745 2006-07-12  Eric Blake  <ebb9@byu.net>
43746
43747         * MODULES.html.sh: Add gendocs.
43748
43749 2006-07-11  Eric Blake  <ebb9@byu.net>
43750
43751         * modules/fdl: New module, to install doc/fdl.texi.
43752         * MODULES.html.sh: Add new section for documentation modules.
43753         * gnulib-tool: Avoid space-tab.
43754         (--doc-base): New option, to manage files from doc.
43755
43756 2006-07-11  Eric Blake  <ebb9@byu.net>
43757
43758         * m4/absolute-header.m4: Fix comments to match recent change.
43759
43760 2006-07-11  Eric Blake  <ebb9@byu.net>
43761
43762         * gnulib-tool: List --doc-base before --tests-base.
43763
43764 2006-07-11  Derek R. Price  <derek@ximbiot.com>
43765
43766         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
43767
43768 2006-07-11  Bruno Haible  <bruno@clisp.org>
43769
43770         * README: Mention where to put documentation.
43771
43772 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43773
43774         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
43775
43776 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43777
43778         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
43779         to stdint.m4.
43780
43781 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43782
43783         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
43784         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
43785         "no/such/file/stdint.h" when there is no such file, so that
43786         the resulting C code can be parsed by dodgy compilers.
43787         Problems reported by Bob Proulx.
43788
43789 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43790
43791         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
43792         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43793         macros into the GNU _D_EXACT_NAMLEN.
43794         * lib/savedir.c:  Likewise.
43795         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
43796
43797 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43798         and Paul Eggert  <eggert@cs.ucla.edu>
43799
43800         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
43801         * m4/savedir.m4:
43802         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43803         macros into the GNU _D_EXACT_NAMLEN.
43804
43805 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43806
43807         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
43808         around the absolute name, to work around a problem with the HP-UX
43809         11.23 native C compiler, reported by Bob Proulx.
43810
43811 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43812
43813         * doc/maintain.texi, make-stds.texi: Sync from
43814         <http://savannah.gnu.org/projects/gnustandards>.
43815
43816 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43817
43818         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
43819
43820 2006-07-09  Jim Meyering  <jim@meyering.net>
43821
43822         * m4/glob.m4: Remove a doubled word in a comment.
43823
43824 2006-07-09  Jim Meyering  <jim@meyering.net>
43825
43826         * lib/argp-pv.c: Remove a doubled word in a comment.
43827         * lib/check-version.c (check_version): Likewise.
43828         * lib/javacomp.c (compile_java_class): Likewise.
43829
43830 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
43831
43832         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
43833         for the benefit of people using Autoconf 2.60.  If you want to
43834         support older Autoconf versions you can copy m4/onceonly_2_57.m4
43835         (or m4/onceonly.m4, if pre-2.57) manually.
43836
43837 2006-07-08  Jim Meyering  <jim@meyering.net>
43838
43839         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
43840         comment.
43841         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
43842         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
43843         comment.
43844
43845 2006-07-08  Jim Meyering  <jim@meyering.net>
43846
43847         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
43848
43849 2006-07-07  Simon Josefsson  <jas@extundo.com>
43850
43851         * tests/test-crc.c: Change expected crc value, the test vector
43852         were probably computed using the old broken crc.c?
43853
43854 2006-07-06  Simon Josefsson  <jas@extundo.com>
43855
43856         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
43857         now the canonical place for the M4 file).
43858
43859         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
43860         from the sys_socket dependency now.
43861
43862         * modules/inet_pton (Files): Ditto.
43863
43864         * modules/inet_ntop (Files): Ditto.
43865
43866 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
43867
43868         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
43869         not gl_PREREQ_GETUSERSHELL.
43870
43871 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43872
43873         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
43874         with only one argument, for Autoconf 2.60.
43875         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
43876         expand to nothing, so add a shell command to avoid syntax error.
43877         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43878
43879 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43880
43881         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
43882
43883 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43884
43885         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
43886         no longer needed.  Check for isblank decl.
43887         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
43888         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
43889         of existence.
43890
43891 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43892
43893         * lib/getloadavg.c: Use __VMS, not VMS.
43894         * lib/getopt.c: Likewise.
43895         * lib/getpagesize.h: Likewise.
43896         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
43897         and probably does not work.
43898
43899 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43900
43901         * lib/.cppi-disable: Add wcwidth.
43902         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
43903         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
43904         (ISGRAPH): Remove.  All uses changed to isgraph.
43905         (FOLD) [!defined _LIBC]: Remove special case.
43906         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
43907         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
43908         HAVE_ISBLANK.
43909         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
43910         case.
43911
43912 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
43913
43914         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
43915         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
43916         brackets.  Other minor changes to suppress some compiler
43917         warnings.
43918
43919 2006-07-06  Derek R. Price  <derek@ximbiot.com>
43920         and Paul Eggert  <eggert@cs.ucla.edu>
43921
43922         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
43923         of invoking obsolescent AC_HEADER_DIRENT macro.
43924         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
43925         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
43926         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43927         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
43928         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
43929         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43930         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
43931         * m4/readdir.m4: Remove; no longer needed.
43932
43933 2006-07-06  Derek R. Price  <derek@ximbiot.com>
43934         and Paul Eggert  <eggert@cs.ucla.edu>
43935
43936         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
43937         Don't worry about this obsolete case any more.
43938         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
43939         directories.
43940         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
43941         worry about this obsolete case any more.
43942         * lib/fts.c: Likewise.
43943         * lib/getcwd.c: Likewise.
43944         * lib/glob.h: Likewise.
43945         * lib/savedir.c: Likewise.
43946
43947 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43948
43949         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
43950         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
43951         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
43952         needed.
43953         All uses removed.
43954         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43955         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
43956         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
43957         needed.
43958         * m4/getdate.m4 (gl_GETDATE): Likewise.
43959         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
43960         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
43961         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43962         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43963         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
43964         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43965         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
43966         needed.
43967
43968 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43969
43970         * lib/memcasecmp.c: Include <limits.h>.
43971         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
43972         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
43973         Don't assume isdigit succeeds only on '0' through '9'.
43974
43975 2006-07-05  Eric Blake  <ebb9@byu.net>
43976
43977         * modules/getaddrinfo (Depends-on): Add snprintf.
43978
43979 2006-07-05  Eric Blake  <ebb9@byu.net>
43980
43981         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
43982         to avoid 'header present but could not be compiled' on cygwin.
43983
43984 2006-07-05  Eric Blake  <ebb9@byu.net>
43985
43986         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
43987         missing from netdb.h.
43988         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
43989
43990 2006-07-05  Derek R. Price  <derek@ximbiot.com>
43991
43992         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
43993         no longer needed.
43994         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
43995         * m4/getdate.m4 (gl_GETDATE): Likewise.
43996         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
43997         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
43998         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43999         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44000         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44001
44002 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44003
44004         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44005         All uses of is_space replaced by isspace.
44006         * lib/exit.h: Don't talk about STDC_HEADERS.
44007         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
44008         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44009         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
44010         replaced by isprint etc.
44011         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44012         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44013         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44014         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44015         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44016         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44017
44018 2006-07-05  Bruno Haible  <bruno@clisp.org>
44019
44020         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44021         the function exists, before testing against AIX.
44022         Reported by Martin Lambers <marlam@marlam.de>.
44023
44024 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44025
44026         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44027         From Mark D. Baushke.
44028
44029 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44030
44031         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44032         to the absolute name, not just one, to bypass Sun C 5.8's
44033         "warning: #include of /usr/include/... may be non-portable".
44034
44035 2006-07-04  Eric Blake  <ebb9@byu.net>
44036
44037         * modules/dirname-tests: New test module.
44038         * tests/test-dirname.c: New file, replacing dirname.c
44039         TEST_DIRNAME section that was recently deleted.
44040
44041 2006-07-04  Bruno Haible  <bruno@clisp.org>
44042
44043         Assume ANSI C header files and <ctype.h> functions.
44044         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44045         (mbsnwidth): Use isprint, iscntrl instead.
44046
44047 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44048
44049         Merge from coreutils.
44050         * MODULES.html.sh: Add xstrtold.
44051         * modules/xstrtold: New file.
44052         * modules/cycle-check (Files): Add lib/same-inode.h.
44053         * modules/dirname (Files): Add m4/double-slash-root.m4.
44054         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44055         * modules/mkdir-p (Files): Add lib/same-inode.h.
44056         * modules/same (Files): Add lib/same-inode.h.
44057
44058 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44059
44060         * m4/absolute-header.m4: Renamed from full-header-path.m4.
44061         This is to keep the terminology clean; POSIX talks about
44062         "absolute pathnames", not "full pathnames", but the GNU
44063         Coding Standards say to use "path" for something else;
44064         so use "absolute" to keep both sides happy.
44065         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44066         Set gl_absolute_header, not gl_full_header_path.
44067         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44068         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44069         All uses changed.
44070
44071         Merge from coreutils.
44072
44073         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44074
44075         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44076         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44077         want to require the building of c-strtod.o.
44078         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44079         needs -lm directly.
44080         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44081
44082         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44083
44084         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44085         --as-needed option if available.  Problem reported by Albert Chin in
44086         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44087         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44088         cc merely issues a bunch of annoying warnings for --as-needed
44089         (this problem was reported by Bob Proulx).  Also, try linking with
44090         -lm to detect a bug in binutils 2.16 (this problem was reported
44091         by Ralf Wildenhues).
44092
44093         2006-06-18  Jim Meyering  <jim@meyering.net>
44094
44095         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44096         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44097         macro.
44098         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44099         also check for glibc-2.4's abort-inducing bug.
44100
44101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44102         Low-probability clean-up should be to use rmdir to get rid of
44103         the just-created directory, not unlink.
44104
44105         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44106         configure fail, and request a bug report to inform us about it.
44107         Add a comment that, barring reports to the contrary, in 2007 we'll
44108         assume ftruncate is universally available.
44109
44110         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44111
44112         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44113
44114         2006-03-12  Jim Meyering  <jim@meyering.net>
44115
44116         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44117         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44118         * m4/same.m4 (gl_SAME): Likewise.
44119         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44120
44121         2006-03-11  Eric Blake  <ebb9@byu.net>
44122
44123         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44124         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44125         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44126         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44127
44128 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44129
44130         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44131         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
44132         reported by Mark D. Baushke, one in
44133         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44134
44135         Merge from coreutils.
44136
44137         * lib/.cppi-disable: Add stdint_.h.
44138         * lib/.cvsignore: Add stdint.h.
44139
44140         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44141
44142         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44143         both double and long double versions.
44144         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
44145         * lib/xstrtold.c: New file.
44146         * lib/xstrtod.h (xstrtold): New decl.
44147
44148         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44149
44150         * lib/filemode.c (setst): Remove.
44151         (strmode): Rewrite to avoid setst.  This makes the code shorter,
44152         (arguably) clearer, and the generated code is a bit smaller on my
44153         Debian GNU/Linux stable x86 host.
44154
44155         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44156
44157         * lib/filemode.c: Include "filemode.h" first, to test the interface.
44158         Assume that filemode.h includes sys/types.h and sys/stat.h.
44159         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44160         (ftypelet): Reorder to put common cases first, for efficiency.
44161         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
44162         to do 'M'.
44163         (strmode): Renamed from mode_string, and now stores 12 bytes instead
44164         of 10, for compatibility with FreeBSD.  All callers changed.
44165         (filemodestring): Now stores 12 bytes instead of 10, and sets file
44166         types that can't be deduced solely from st_mode.  First arg is now a
44167         const pointer.
44168         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44169         (strmode): Renamed from mode_string.
44170         (filemodestring): New decl.
44171         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44172         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44173         needed.
44174         (S_ISPORT, S_ISWHT): New macros, if not already defined.
44175
44176         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
44177
44178         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44179         fsusage.h now does that.  Include fsusage.h first, to test interface.
44180         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
44181         at most one method (the old code could have generated decls that
44182         didn't conform to C89, not that this was ever exercised).
44183         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44184
44185         2006-03-19  Jim Meyering  <jim@meyering.net>
44186
44187         Work even in a chroot where d_ino values for entries in "/"
44188         don't match the stat.st_ino values for the same names.
44189         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44190         number, iterate through all entries again, using lstat instead.
44191         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44192         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44193
44194         * lib/getcwd.c (__getcwd): Clarify a comment.
44195         Use memcpy in place of a call to strcpy.
44196
44197         2006-03-12  Jim Meyering  <jim@meyering.net>
44198
44199         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44200         matches that of the current directory (which we're about to chdir ".."
44201         out of), then save the dev-ino of the parent, instead.
44202
44203         * lib/same-inode.h (SAME_INODE): New file/macro.
44204         * lib/chdir-safer.c (SAME_INODE): Remove definition.
44205         Include "same-inode.h", instead.
44206         * lib/same.c: Likewise.
44207         * lib/cycle-check.h: Include "same-inode.h".
44208         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44209         * lib/cycle-check.c (SAME_INODE): Remove definition.
44210         * lib/root-dev-ino.h: Include "same-inode.h".
44211
44212         2006-03-11  Eric Blake  <ebb9@byu.net>
44213
44214         * lib/same.c (same_name): s/base_name/last_component/
44215         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44216         * lib/filenamecat.c (file_name_concat): Likewise.
44217
44218         2006-03-11  Eric Blake  <ebb9@byu.net>,
44219                     Paul Eggert  <eggert@cs.ucla.edu>
44220
44221         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44222         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44223         drive prefix.
44224         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44225         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44226         (last_component): New method.
44227         * lib/dirname.c (dir_len): Determine when drive letters need a
44228         subsequent slash.  Preserve // when it is special.
44229         (dir_name): Don't append dot when drive letter is absolute.
44230         [TEST_DIRNAME]: Move into a full-blown gnulib test.
44231         * lib/basename.c (base_name): New semantics - malloc the result.
44232         Preserve // when it is special.  Preserve relative files that look
44233         like drive letters.
44234         (base_len): Preserve // when it is special.
44235         (last_component): New method, similar to old base_name semantics.
44236         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44237         base_name.  Strip redundant slashes from ///.
44238
44239 2006-07-03  Jim Meyering  <jim@meyering.net>
44240
44241         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44242         macro is used before the first cycle_check call.
44243
44244 2006-07-03  Eric Blake  <ebb9@byu.net>
44245
44246         * modules/dirname (Depends-on): Add xstrndup.
44247
44248 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44249
44250         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44251         test cases, so that config.log is a bit easier to follow.
44252
44253 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44254
44255         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44256         both are 64 bits, since this seems to be the tradition, and this
44257         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
44258         we ever run into a host that prefers long long to long in this
44259         case, we'll need another configure-time test.  Problem reported by
44260         Jim Meyering.
44261
44262 2006-07-02  Eric Blake  <ebb9@byu.net>
44263
44264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44265
44266 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44267
44268         * modules/inttypes (Depends-on): No longer depends on stdint.
44269         * modules/stdint (Description): Say more about assumptions.
44270         Say that the fast types might differ.  Say macros are used.
44271         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
44272         (Makefile.am): Revise list of substituted symbols to match
44273         new stdint.m4.
44274         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44275         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44276         * tests/test-stdint.c (verify_same_types)
44277         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44278         the code conforms to C99/C89.
44279         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44280         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44281
44282 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44283
44284         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44285         but fix a bug, by requiring at least 64 bits.
44286         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44287         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44288         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
44289         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44290
44291         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44292         changes.  Make 2.59 a prerequisite.  Check and substitute for
44293         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
44294         inttypes.h.  Do not use special include files; just use the
44295         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
44296         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
44297         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
44298         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
44299         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
44300         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
44301         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
44302         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
44303         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
44304         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
44305         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
44306         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
44307         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
44308         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
44309         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
44310         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
44311         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
44312         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
44313         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
44314         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
44315         WINT_MAX.  Check for C99 conformance more strictly, by detecting
44316         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
44317         not check for things that C99 does not require, e.g., int8_t.  If
44318         a test isn't needed unless <stdint.h> isn't working, and is
44319         unlikely to be needed for any other reason, then don't do it
44320         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
44321         size_t, since we assume C89 freestanding at least.  Do not check
44322         for sig_atomic_t, wchar_t, or wint_t, since the code now does
44323         the right thing even if the types are not defined.  Instead use:
44324         (gl_STDINT_TYPE_PROPERTIES): New macro.
44325         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
44326         testing whether <sys/types.h> clashes, as Autoconf does this for
44327         us now.  All uses removed.
44328         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
44329         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
44330         (gl_CHECK_TYPE_SAME):
44331         Remove; no longer needed.
44332         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
44333         exists, since we'll return 0 anyway in that case.
44334         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
44335
44336 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44337
44338         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
44339         possible collision with system files.
44340         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
44341         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
44342         WCHAR_MIN and WCHAR_MAX in this case.
44343         (<stddef.h>): Do not include; no longer needed.
44344         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
44345         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
44346         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
44347         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
44348         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
44349         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
44350         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
44351         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
44352         !defined(__c99))]: Include in this case too, since it's harmless
44353         now.
44354         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
44355         dangerous to do so.
44356         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
44357         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
44358         (_STDINT_MIN, _STDINT_MAX): New macros.
44359         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
44360         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
44361         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
44362         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
44363         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
44364         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
44365         macros, not typedefs; this simplifies things quite a bit.
44366         Use long int for all types narrower than int64_t.
44367         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
44368         Define in terms of long long int or int64_t or long int,
44369         not int64_t or int32_t.  This saves some compile-time testing.
44370         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
44371         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
44372         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
44373         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
44374         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
44375         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
44376         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
44377         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
44378         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
44379         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
44380         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44381         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44382         undef any previous version and define our own version, for
44383         simplicity and consistency with the new macros for types.
44384         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44385         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44386         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
44387         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
44388         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
44389         @WINT_T_SUFFIX@ to keep things simple here.
44390         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
44391         Simplify by assuming typical 8/16/32/64 host, since we're
44392         already doing that elsewhere anyway.
44393         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
44394         and assume long long int is 64 bits if available.  This
44395         speeds up 'configure'.
44396
44397 2006-07-01  Eric Blake  <ebb9@byu.net>
44398
44399         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
44400         Reported by Andreas Buening.
44401
44402 2006-07-01  Eric Blake  <ebb9@byu.net>
44403
44404         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
44405
44406 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44407
44408         * lib/getaddrinfo.c: fixed typo
44409
44410 2006-06-29  Jim Meyering  <jim@meyering.net>
44411
44412         * modules/strftime (Maintainer): Add my name, since with the
44413         FPRINTFTIME changes strftime.c has forked from glibc.
44414
44415 2006-06-29  Eric Blake  <ebb9@byu.net>
44416
44417         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
44418
44419 2006-06-29  Eric Blake  <ebb9@byu.net>
44420
44421         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
44422
44423 2006-06-29  Eric Blake  <ebb9@byu.net>
44424
44425         * lib/stat_.h: New file.
44426
44427 2006-06-29  Eric Blake  <ebb9@byu.net>
44428
44429         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
44430         unused static function.
44431
44432 2006-06-29  Eric Blake  <ebb9@byu.net>
44433
44434         * doc/functions.texi (Function Portability): Document missing lstat
44435         on mingw.
44436
44437 2006-06-29  Eric Blake  <ebb9@byu.net>
44438
44439         * MODULES.html.sh: Add sys_stat.
44440         * modules/sys_stat: New module.
44441         * modules/mkstemp (Depends-on): Add sys_stat.
44442
44443 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44444
44445         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
44446
44447 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44448
44449         * m4/c-bs-a.m4: Removed.
44450
44451 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44452
44453         * lib/strftime.c: Assume strftime() exists.
44454
44455 2006-06-29  Derek Price  <derek@ximbiot.com>
44456
44457         * modules/c-bs-a: Removed - \a is C89.
44458         * MODULES.html.sh: Remove c-bs-a.
44459
44460 2006-06-29  Bruno Haible  <bruno@clisp.org>
44461
44462         * modules/wcwidth (License): Change to LGPL.
44463
44464 2006-06-28  Simon Josefsson  <jas@extundo.com>
44465
44466         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
44467         on _WIN32.
44468
44469         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
44470         getnameinfo.
44471
44472 2006-06-28  Simon Josefsson  <jas@extundo.com>
44473
44474         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
44475
44476 2006-06-28  Simon Josefsson  <jas@extundo.com>
44477
44478         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
44479         functions there.  It will succeed on Windows XP, but on Windows
44480         2000 and (presumably) earlier, it will fail, and use the internal
44481         re-implementation.
44482         (use_win32_p): New function.
44483         (getaddrinfo): Use strtoul on servname, to support numeric ports.
44484         Support AI_NUMERICSERV to disable getservbyname.
44485         (getnameinfo): New function, only supports
44486         NI_NUMERICHOST|NI_NUMERICSERV for now.
44487
44488         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
44489         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
44490         getnameinfo.
44491
44492 2006-06-28  Eric Blake  <ebb9@byu.net>
44493
44494         * modules/wcwidth: New file.
44495         * modules/mbchar (Depends-on): Add wcwidth.
44496         * modules/mbswidth (Depends-on): Add wcwidth.
44497         * MODULES.html.sh: Add wcwidth.
44498
44499 2006-06-28  Eric Blake  <ebb9@byu.net>
44500
44501         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
44502         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
44503
44504 2006-06-28  Eric Blake  <ebb9@byu.net>
44505
44506         * lib/xvasprintf.h: Fix comments.
44507
44508 2006-06-28  Eric Blake  <ebb9@byu.net>
44509
44510         * lib/mbchar.h (wcwidth): Include wcwidth.h.
44511         * lib/mbswidth.c (wcwidth): Move from here...
44512         * lib/wcwidth.h: ...to this new file.
44513
44514 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44515
44516         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
44517
44518         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
44519         it's obsolete.
44520         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
44521
44522 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44523
44524         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
44525         Autoconf 2.60 says this stuff was obsolete.
44526
44527 2006-06-28  Bruno Haible  <bruno@clisp.org>
44528
44529         * modules/wcwidth (Files): Add m4/wchar_t.m4.
44530
44531 2006-06-28  Bruno Haible  <bruno@clisp.org>
44532
44533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
44534         gt_TYPE_WCHAR_T.
44535
44536 2006-06-28  Bruno Haible  <bruno@clisp.org>
44537
44538         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
44539         declaration for wcwidth.
44540         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
44541
44542 2006-06-28  Bruno Haible  <bruno@clisp.org>
44543
44544         * lib/mkdtemp.c [MINGW]: Include <io.h>.
44545         (mkdir): Define using _mkdir.
44546
44547 2006-06-28  Bruno Haible  <bruno@clisp.org>
44548
44549         * lib/getaddrinfo.h: Fix POSIX URL.
44550         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
44551         _WIN32.
44552         (use_win32_p): Make static.
44553         (getaddrinfo): Reject service name if it is empty or does not consist
44554         solely of decimal digits, or if its value is > 65535.
44555         (getnameinfo): Remove useless casts.
44556
44557 2006-06-27  Simon Josefsson  <jas@extundo.com>
44558
44559         * modules/sys_select: New file, suggested by Bruno Haible, Paul
44560         Eggert and Martin Lambers.
44561
44562 2006-06-27  Simon Josefsson  <jas@extundo.com>
44563
44564         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
44565         Eggert and Martin Lambers.
44566
44567 2006-06-27  Bruno Haible  <bruno@clisp.org>
44568
44569         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
44570         result to 0, not to empty.
44571         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
44572
44573 2006-06-27  Bruno Haible  <bruno@clisp.org>
44574
44575         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
44576
44577 2006-06-26  Simon Josefsson  <jas@extundo.com>
44578
44579         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
44580         present.
44581
44582 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
44583
44584         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
44585         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
44586         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
44587
44588 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
44589
44590         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
44591
44592 2006-06-26  Bruno Haible  <bruno@clisp.org>
44593
44594         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
44595
44596 2006-06-26  Bruno Haible  <bruno@clisp.org>
44597
44598         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
44599
44600 2006-06-26  Bruno Haible  <bruno@clisp.org>
44601
44602         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
44603         SGI C compiler in pre-C99 mode.
44604         Suggested by Mark D. Baushke and Larry Jones.
44605
44606 2006-06-26  Bruno Haible  <bruno@clisp.org>
44607
44608         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
44609         WCHAR_MAX.
44610         Reported by Mark D. Baushke and Larry Jones.
44611
44612 2006-06-26  Bruno Haible  <bruno@clisp.org>
44613
44614         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
44615         in pre-C99 mode.
44616         Suggested by Mark D. Baushke and Larry Jones.
44617
44618 2006-06-23  Simon Josefsson  <jas@extundo.com>
44619             Bruno Haible  <bruno@clisp.org>
44620
44621         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
44622         Emit mostlyclean-local rule.
44623         (func_emit_tests_Makefile_am): Likewise.
44624         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
44625
44626 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
44627
44628         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
44629
44630 2006-06-23  Bruno Haible  <bruno@clisp.org>
44631
44632         * tests/test-stdint.c: Update to match ISO C 99 Technical
44633         Corrigendum 1.
44634
44635 2006-06-23  Bruno Haible  <bruno@clisp.org>
44636
44637         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
44638
44639 2006-06-23  Bruno Haible  <bruno@clisp.org>
44640
44641         * lib/stdint_.h: Treat IRIX like OpenBSD.
44642
44643 2006-06-23  Bruno Haible  <bruno@clisp.org>
44644
44645         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
44646         ISO C 99 Technical Corrigendum 1.
44647
44648 2006-06-22  Simon Josefsson  <jas@extundo.com>
44649
44650         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
44651         MinGW.
44652
44653 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44654
44655         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
44656         needed.  Some compiler complained about some of them.  Problem reported
44657         by Larry Jones in
44658         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
44659
44660 2006-06-21  Simon Josefsson  <jas@extundo.com>
44661
44662         * tests/test-getaddrinfo.c: New file.
44663
44664         * modules/getaddrinfo-tests: New file.
44665
44666         * MODULES.html.sh: Add inet_pton.
44667
44668         * modules/inet_pton: New file.
44669
44670 2006-06-21  Simon Josefsson  <jas@extundo.com>
44671
44672         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
44673         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
44674         of using the (limited) gnulib implementation on Windows XP.
44675
44676         * m4/inet_pton.m4: New file.
44677
44678 2006-06-21  Simon Josefsson  <jas@extundo.com>
44679
44680         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
44681         variable.
44682
44683         * lib/socket_.h: Don't define WINVER.
44684
44685         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
44686         slightly modified to work in gnulib.
44687
44688 2006-06-21  Simon Josefsson  <jas@extundo.com>
44689
44690         * doc/gnulib.texi (Windows sockets): Add.
44691
44692 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44693
44694         * lib/read-file.c (fread_file): Start with buffer allocation of
44695         0 bytes rather than 1 byte; this simplifies the code.
44696         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
44697         code to free buffer and save/restore errno.
44698         (internal_read_file): Remove unused local.
44699
44700 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44701
44702         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
44703         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
44704         Problem reported by Denis Excoffier in
44705         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
44706
44707 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44708
44709         * modules/sys_socket, modules/socklen: Include sys/types since
44710         FreeBSD 4.x's sys/socket.h needs it.
44711
44712 2006-06-19  Simon Josefsson  <jas@extundo.com>
44713
44714         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
44715
44716 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44717
44718         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
44719
44720 2006-06-19  Bruno Haible  <bruno@clisp.org>
44721
44722         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
44723         and FULL_PATH_INTTYPES_H in angle brackets.
44724         Reported by Mark D. Baushke <mdb@gnu.org>.
44725
44726 2006-06-17  Eric Blake  <ebb9@byu.net>
44727
44728         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
44729         errno.
44730
44731 2006-06-17  Bruno Haible  <bruno@clisp.org>
44732
44733         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
44734         <sys/inttypes.h>.
44735
44736 2006-06-17  Bruno Haible  <bruno@clisp.org>
44737
44738         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
44739         whether errno is declared. Assume <errno.h> declares errno.
44740
44741 2006-06-17  Bruno Haible  <bruno@clisp.org>
44742
44743         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
44744
44745 2006-06-17  Bruno Haible  <bruno@clisp.org>
44746
44747         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
44748         problem on Solaris 2.5.1.
44749
44750 2006-06-16  Eric Blake  <ebb9@byu.net>
44751
44752         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
44753         * lib/unicodeio.c [!defined errno]: Likewise.
44754         * lib/strtol.c [!defined errno]: Likewise.
44755         * lib/strtod.c [!defined errno]: Likewise.
44756
44757 2006-06-15  Eric Blake  <ebb9@byu.net>
44758
44759         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
44760
44761 2006-06-15  Eric Blake  <ebb9@byu.net>
44762
44763         * config/srclist.txt (ssize_t.m4): Lose sync.
44764
44765 2006-06-15  Bruno Haible  <bruno@clisp.org>
44766
44767         * modules/stdint (Files): Include m4/full-header-path.m4,
44768         m4/size_max.m4, m4/wchar_t.m4.
44769         (Makefile.am): Many more substitutions.
44770         * modules/stdint-tests: New file.
44771         * tests/test-stdint.c: New file.
44772
44773 2006-06-15  Bruno Haible  <bruno@clisp.org>
44774
44775         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
44776         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
44777         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
44778         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
44779         gl_CHECK_TYPE_SAME): New macros.
44780
44781 2006-06-15  Bruno Haible  <bruno@clisp.org>
44782
44783         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
44784
44785 2006-06-15  Bruno Haible  <bruno@clisp.org>
44786
44787         * lib/stdint_.h: Rewritten to be fully auto-configured.
44788         Fixes bug on HP-UX/IA64.
44789
44790 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
44791
44792         * lib/getdate.y (__attribute__): Don't define if already defined.
44793         Problem reported by Larry Jones.
44794         * lib/utimens.c (__attribute__): Likewise.
44795
44796 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
44797
44798         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
44799         reported by Andreas Schwab.
44800
44801 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44802             Bruno Haible  <bruno@clisp.org>
44803
44804         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
44805         check for the declaration of strnlen and a run test that exposes the
44806         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
44807         rpl_strndup.
44808
44809 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44810             Bruno Haible  <bruno@clisp.org>
44811
44812         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
44813
44814 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44815
44816         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
44817         compile test, for Tru64 4.0D.
44818
44819 2006-05-28  Karl Berry  <karl@gnu.org>
44820
44821         * config/srclist.txt (printf-args.c): lose sync.
44822
44823 2006-05-26  Martin Lambers  <marlam@marlam.de>
44824
44825         * lib/getpass.c: Updates the test for the native W32 API, and adds
44826         missing includes, thus fixing compilation warnings.
44827
44828 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44829
44830         * lib/exclude.c (exclude_fnmatch): New function.
44831         (excluded_file_name): Call exclude_fnmatch.
44832         * lib/exclude.h (excluded_file_name): New prototype
44833
44834 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
44835
44836         * lib/tempname.c (small_open, large_open): New macros.
44837         (__open, __open64) [!_LIBC]: Remove.
44838         (__gen_tempname): Use small_open and large_open instead of __open
44839         and __open64.  This fixes a portability bug on HP-UX 11.11i
44840         reported by Simon Wing-Tang in
44841         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
44842
44843 2006-05-24  Bruno Haible  <bruno@clisp.org>
44844
44845         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
44846         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
44847         Reported by Thorsten Maerz <torte@netztorte.de> via
44848         Aaron Stone <aaron@serendipity.cx>.
44849
44850 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44851
44852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
44853         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
44854         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
44855         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
44856         not really conditional on the cache.
44857         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
44858
44859 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44860
44861         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
44862         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
44863         (my_usleep): Don't mishandle maximum value.
44864
44865 2006-05-19  Jim Meyering  <jim@meyering.net>
44866
44867         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
44868
44869 2006-05-17  Bruno Haible  <bruno@clisp.org>
44870
44871         Cygwin portability.
44872         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
44873
44874 2006-05-17  Bruno Haible  <bruno@clisp.org>
44875
44876         * lib/stdint_.h: Fix recognition of Cygwin.
44877
44878 2006-05-15  Bruno Haible  <bruno@clisp.org>
44879
44880         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
44881         on libtool patch by Ralf Wildenhues.
44882
44883 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
44884
44885         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
44886         test for C99 conformance; (bool) 0.5 is an integer constant
44887         expression, but (bool) -0.5 is not.  Problem reported by Fedor
44888         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
44889
44890 2006-05-11  Simon Josefsson  <jas@extundo.com>
44891
44892         * m4/xvasprintf.m4: Fix obvious typo.
44893
44894 2006-05-11  Jim Meyering  <jim@meyering.net>
44895
44896         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
44897         James Lemley.
44898
44899 2006-05-10  Simon Josefsson  <jas@extundo.com>
44900
44901         * lib/md4.c: Typo fix, update copyright years.
44902         (K1, K2): Don't use L because it turn computations into 64-bit on
44903         64-bit platforms.
44904
44905 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
44906
44907         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
44908         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
44909         unwanted sign propagation, e.g., on hosts with 64-bit int.
44910         There still are some problems with reeelly weird theoretical hosts
44911         (e.g., 33-bit int) but it's not worth worrying about now.
44912         * lib/sha1.c (rol): Likewise.
44913         (K1, K2, K3, K4): Remove unnecessary L suffix.
44914
44915 2006-05-10  Bruno Haible  <bruno@clisp.org>
44916
44917         * lib/des.c: Cast to avoid warnings.
44918
44919 2006-05-09  Bruno Haible  <bruno@clisp.org>
44920
44921         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
44922         (Depends-on): Depend also on xsize, stdarg.
44923         (configure.ac): Add gl_XVASPRINTF.
44924
44925 2006-05-09  Bruno Haible  <bruno@clisp.org>
44926
44927         * m4/xvasprintf.m4: New file.
44928
44929 2006-05-09  Bruno Haible  <bruno@clisp.org>
44930
44931         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
44932         (EOVERFLOW): Define fallback value.
44933         (xstrcat): New function.
44934         (xvasprintf): Recognize the special case of a string concatenation.
44935
44936 2006-05-08  Eric Blake  <ebb9@byu.net>
44937
44938         * gnulib-tool (func_version): Base copyright year on CVS date.
44939         (func_emit_copyright_notice): New function.
44940         (func_emit_lib_Makefile_am): Use it.
44941         (func_emit_tests_Makefile_am): Likewise.
44942         (func_import): Likewise.
44943
44944 2006-05-08  Bruno Haible  <bruno@clisp.org>
44945
44946         * modules/stdarg: New file.
44947         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
44948
44949 2006-05-08  Bruno Haible  <bruno@clisp.org>
44950
44951         * m4/stdarg.m4: New file, from GNU gettext.
44952
44953 2006-05-08  Bruno Haible  <bruno@clisp.org>
44954
44955         * config/srclist.txt (build-aux/config.rpath): different from latest
44956         release.
44957
44958 2006-05-08  Bruno Haible  <bruno@clisp.org>
44959
44960         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
44961
44962 2006-05-05  Jim Meyering  <jim@meyering.net>
44963
44964         * m4/warning.m4: New file, derived from bison's file by the same name.
44965
44966 2006-05-03  Bruno Haible  <bruno@clisp.org>
44967
44968         * lib/stdint_.h: Shorter URL.
44969         * lib/inttypes.h: Likewise.
44970
44971 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44972
44973         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
44974
44975 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44976
44977         * lib/verify.h: Document the internals better.  Most of this change
44978         was written by Bruno Haible.
44979
44980 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44981
44982         * doc/verify.texi: New file, partly based on a proposal by
44983         Bruno Haible.
44984
44985 2006-05-02  Bruno Haible  <bruno@clisp.org>
44986
44987         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
44988         test from here...
44989         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
44990
44991 2006-04-29  Bruno Haible  <bruno@clisp.org>
44992
44993         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
44994         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
44995
44996 2006-04-29  Bruno Haible  <bruno@clisp.org>
44997
44998         * gnulib-tool: Make --update option actually work.
44999
45000 2006-04-29  Bruno Haible  <bruno@clisp.org>
45001
45002         * doc/gcd.texi: New file.
45003         * doc/gnulib.texi: Include it.
45004
45005 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
45006
45007         * lib/getdate.y (get_date): When adding relative date, start with the
45008         initial time, not with the result of the first mktime call.
45009
45010 2006-04-25  Bruno Haible  <bruno@clisp.org>
45011
45012         * gnulib-tool (func_import): Output the include directives in three
45013         blocks, sorted separately.
45014         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45015
45016 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45017
45018         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45019         to define main with arguments, for C++.  Reported by Eric Blake.
45020         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45021         Prefer 'int main ()' to 'int main (void)', for C++.
45022         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45023         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45024         for 'main', for C99 and C++.
45025
45026 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45027
45028         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45029         Don't assume that exit status -1 is valid.
45030         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45031         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45032         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45033         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45034         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45035         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45036         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
45037         functions can be used without declaring them, or that you can
45038         exit with status -1.
45039         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45040
45041 2006-04-24  Karl Berry  <karl@gnu.org>
45042
45043         * config/srclist.txt (longdouble.m4): sync lost.
45044
45045 2006-04-24  Eric Blake  <ebb9@byu.net>
45046
45047         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45048
45049 2006-04-24  Bruno Haible  <bruno@clisp.org>
45050
45051         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45052         poll() implementation in AIX.
45053         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45054
45055 2006-04-24  Bruno Haible  <bruno@clisp.org>
45056
45057         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45058         assigned exactly once.
45059
45060 2006-04-23  Claudio Fontana  <claudio@gnu.org>
45061             Bruno Haible  <bruno@clisp.org>
45062
45063         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45064         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45065         for AM_CPPFLAGS.
45066
45067 2006-04-23  Bruno Haible  <bruno@clisp.org>
45068
45069         * modules/copy-file: Depend on unistd.
45070         * modules/execute: Likewise.
45071         * modules/fatal-signal: Likewise.
45072         * modules/findprog: Likewise.
45073         * modules/mkdtemp : Likewise.
45074         * modules/pipe: Likewise.
45075         * modules/wait-process: Likewise.
45076
45077 2006-04-23  Bruno Haible  <bruno@clisp.org>
45078
45079         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45080         condition was already detected.
45081         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45082
45083 2006-04-23  Bruno Haible  <bruno@clisp.org>
45084
45085         * lib/copy-file.c: Include <unistd.h> unconditionally.
45086         * lib/execute.c: Likewise.
45087         * lib/fatal-signal.c: Likewise.
45088         * lib/findprog.c: Likewise.
45089         * lib/mkdtemp.c: Likewise.
45090         * lib/pipe.h: Likewise.
45091         * lib/pipe.c: Likewise.
45092         * lib/wait-process.h: Likewise.
45093
45094 2006-04-23  Bruno Haible  <bruno@clisp.org>
45095
45096         * gnulib-tool (func_usage): Fix --import description. Document
45097         --update.
45098         (func_import): Create temporary file in a temporary directory, if
45099         --dry-run is specified. Silence errors from 'grep' when there are no
45100         m4 files in $m4dir.
45101         (func_create_testdir): Silence errors from 'grep' when there are no
45102         m4 files in $m4dir.
45103         Reported by Karl Berry <karl@freefriends.org>.
45104
45105 2006-04-20  Bruno Haible  <bruno@clisp.org>
45106
45107         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45108         one argument, so that the code will be portable to Autoconf 2.60.
45109         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45110         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45111         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45112
45113 2006-04-19  Derek Price  <derek@ximbiot.com>
45114             Eric Blake  <ebb9@byu.net>
45115
45116         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45117         rather than "/full/path.h".  Update comment to match.  Shorten &
45118         generalize m4_translit call via AS_TR_CPP.
45119
45120 2006-04-19  Derek Price  <derek@ximbiot.com>
45121             Eric Blake  <ebb9@byu.net>
45122
45123         * lib/inttypes.h: Correct grammar in comment.
45124
45125 2006-04-18  Derek Price  <derek@ximbiot.com>
45126             Paul Eggert  <eggert@cs.ucla.edu>
45127
45128         * modules/inttypes: New file.
45129         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45130
45131 2006-04-18  Derek Price  <derek@ximbiot.com>
45132             Paul Eggert  <eggert@cs.ucla.edu>
45133
45134         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45135         New files.
45136
45137 2006-04-18  Derek Price  <derek@ximbiot.com>
45138             Paul Eggert  <eggert@cs.ucla.edu>
45139
45140         * lib/inttypes.h: New file.
45141         * lib/strtoimax.c: Assume <inttypes.h>.
45142
45143 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
45144
45145         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45146         isn't mounted.  Problem reported by Kir Kolyshkin.
45147
45148 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45149
45150         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45151         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
45152         Derek R. Price.
45153         * lib/regex.h (RE_DUP_MAX): Update comment to match current
45154         implementation.
45155
45156 2006-04-12  Eric Blake  <ebb9@byu.net>
45157
45158         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45159         is now done automatically by the corresponding Autoconf macro.
45160
45161 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
45162
45163         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45164         time_r.h.
45165
45166 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45167
45168         Merge regex changes from libc, removing some of our
45169         POSIX-conformance changes that were rejected and redoing them in a
45170         less-intrusive way.
45171
45172         * lib/regcomp.c (re_compile_internal, init_dfa):
45173         Length arg is now size_t, not Idx.  All uses changed.
45174         (peek_token): Forward decl now says internal_function.
45175         (__re_error_msgid, __re_error_msgid_idx):
45176         Now static rather than extern with attribute_hidden.
45177         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45178         For some reason libc prefers K&R style defns for external functions.
45179         (regerror) [!defined _LIBC]: Likewise.
45180         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45181         (seek_collating_symbol_entry, lookup_collation_sequence_value):
45182         (build_range_exp, build_collating_symbol):
45183         Use K&R-style defn.
45184         (re_compile_fastmap): Use '\0' to memset, not 0.
45185         (utf8_sb_map): Make the calculations more obvious.
45186         (init_dfa, parse_bracket_exp, build_charclass_op):
45187         Call calloc and cast result, as glibc does.
45188         (init_word_char, fetch_token, peek_token, peek_token_bracket):
45189         (build_range_exp, build_collating_symbol):
45190         Now internal functions.
45191
45192         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45193
45194         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
45195         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45196         Don't depend on VMS; depend on __VMS instead, for POSIX
45197         namespace cleanness.
45198         (regoff_t): Define to ssize_t, not long int.
45199
45200         Remove the REG_ macros named below.  Instead, make the old names
45201         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45202         __USE_GNU_REGEX.
45203         (REG_BACKSLASH_ESCAPE_IN_LISTS):
45204         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45205         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45206         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45207         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45208         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45209         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45210         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45211         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45212         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45213         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45214         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45215         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45216         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45217         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45218         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45219         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45220         (REG_NREGS):
45221         Remove.  All uses replaced by the old RE_* names.
45222         (RE_BACKSLASH_ESCAPE_IN_LISTS):
45223         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45224         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45225         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45226         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45227         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45228         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45229         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45230         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45231         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45232         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45233         Don't bother having these macros be independent of each others'
45234         values, since they no longer exist in the POSIX name space.
45235
45236         Rename the following member names back to their old names,
45237         unless !__USE_GNU_REGEX.  All uses changed back.
45238         (buffer): Renamed from re_buffer.
45239         (allocated): Renamed from re_allocated.
45240         (used): Renamed from re_used.
45241         (syntax): Renamed from re_syntax.
45242         (fastmap): Renamed from re_fastmap.
45243         (translate): Renamed from re_translate.
45244         (can_be_null): Renamed from re_can_be_null.
45245         (regs_allocated): Renamed from re_regs_allocated.
45246         (fastmap_accurate): Renamed from re_fastmap_accurate.
45247         (no_sub): Renamed from re_no_sub.
45248         (not_bol): Renamed from re_not_bol.
45249         (not_eol): Renamed from re_not_eol.
45250         (newline_anchor): Renamed from re_newline_anchor.
45251         (num_regs): Renamed from rm_num_regs.
45252         (start): Renamed from rm_start.
45253         (end): Renamed from rm_end.
45254
45255         (free_state): Move up a bit.
45256
45257         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45258         #define to be empty.
45259         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45260         when that is what is intended.
45261         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45262         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45263         (MAX): New macro.
45264         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45265         All uses changed back to re_malloc, etc.  It's now the caller's
45266         responsibility to check for overflow; all callers changed.
45267         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45268         (re_x2nrealloc): Remove.
45269         (free_state): Remove decl.
45270
45271         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45272         (re_set_registers, re_exec):
45273         Use K&R-style defn.
45274
45275         2006-01-31  Roland McGrath  <roland@redhat.com>
45276
45277         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45278         Reported by Mike Frysinger <vapier@gentoo.org>.
45279
45280         2006-01-15  Andreas Jaeger  <aj@suse.de>
45281
45282         [BZ #1950]
45283         * lib/regex_internal.c (re_string_reconstruct): Adjust for
45284         build_wcs_upper_buffer change.
45285         (build_wcs_upper_buffer): Change return type.
45286
45287         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
45288
45289         * lib/regex_internal.h: Include <stdint.h> if available.
45290
45291         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
45292
45293         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
45294
45295         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45296
45297         * lib/regcomp.c: Adjust for changed secondary hash function.
45298
45299         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
45300
45301         * lib/regex.h: Pretty printing.
45302         Clean up namespace a bit.
45303
45304         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
45305
45306         * lib/regexec.c (update_cur_sifted_state, check_arrival,
45307         check_arrival_add_next_nodes): Avoid using uninitialized variable.
45308
45309         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45310                     Ulrich Drepper  <drepper@redhat.com>
45311
45312         [BZ #1302]
45313         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
45314         changed.
45315         (bitset_word_t): Renamed from bitset_word.  All uses changed.
45316
45317         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
45318
45319         [BZ #281]
45320         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
45321         * lib/regcomp.c: Remove unnecessary uses of
45322         unsigned RE_TRANSLATE_TYPE.
45323         * lib/regex_internal.h: Likewise.
45324         * lib/regex_internal.c: Likewise.
45325         * lib/regexec.c: Likewise.
45326         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
45327
45328         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
45329
45330         * lib/regexec.c (find_recover_state): Remove unnecessary
45331         initialization.
45332         (transit_state_bkref): Make DFA a const pointer.
45333         (get_subexp): Likewise.
45334         (check_arrival): Likewise.
45335         (update_cur_sifted_state): Likewise.
45336         (re_search_internal): Likewise.
45337         (prune_impossible_nodes): Likewise.
45338         (acquire_init_state_context): Likewise.
45339         (proceed_next_node): Likewise.
45340         (set_regs): Likewise.
45341         (free_fail_stack_return): Likewise.
45342         (check_arrival_expand_ecl): Mark DFA parameter as const.
45343         (check_arrival_expand_ecl_sub): Likewise.
45344         (check_subexp_limits): Likewise.
45345         (sub_epsilon_src_nodes):  Likewise.
45346         (add_epsilon_src_nodes):  Likewise.
45347         (merge_state_array): Likewise.
45348         (update_regs): Likewise.
45349         (build_trtable): Likewise.
45350         (sift_states_backward): Mark MCTX parameter as const.
45351         (build_sifted_states): Likewise.
45352         (update_cur_sifted_state): Likewise.
45353         (sift_states_mkref): Likewise.
45354         (check_arrival_expand_ecl): Mark eclosure as const.
45355         (check_dst_limits_calc_pos_1): Likewise.
45356         * lib/regex_internal.h (re_match_context_t): Make dfa a const
45357         pointer.
45358
45359         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
45360
45361         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
45362         (transit_state_sb): Likewise.
45363         (transit_state_mb): Likewise.
45364         (sift_states_iter_mb): Likewise.
45365         (check_arrival_add_next_nodes): Likewise.
45366         (check_node_accept_bytes): Change first parameter to pointer-to-const.
45367         [_LIBC] (re_search_2_stub): Use mempcpy.
45368
45369         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
45370         mbrtowc for very simple UTF-8 case.
45371
45372         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
45373         a pointer-to-const.
45374         (re_acquire_state_context): Likewise.
45375         * lib/regex_internal.h: Adjust prototypes.
45376
45377         * lib/regex.c: Prevent using C++ compilers.
45378
45379         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
45380         (re_acquire_state_context): Likewise.
45381
45382 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45383
45384         * modules/regex (Depends-on): Add ssize_t.
45385
45386 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45387
45388         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
45389         translation table.
45390
45391 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45392
45393         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
45394
45395 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
45396             Bruno Haible  <bruno@clisp.org>
45397
45398         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
45399         <sys/types.h> and <inttypes.h>.
45400
45401 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45402
45403         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
45404         `__error_t_defined', so argp.h will not typedef the former.
45405
45406 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45407
45408         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
45409         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
45410         glibc names.  Even if glibc is changed to conform to POSIX, the
45411         traditional names will be available anyway, since regex depends on
45412         the extensions module.  Also, fix a longstanding typo in the
45413         implementation of Spencer ERE test #75 from grep 2.3.  Problems
45414         reported by Emanuele Giaquinta.  Also, change sense of cached
45415         variable, so that the message makes sense.
45416
45417 2006-03-24  Simon Josefsson  <jas@extundo.com>
45418
45419         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
45420         including some doc fixes.
45421         (base64_encode_alloc): Fix +1 bug on allocation failures.
45422
45423 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45424
45425         * lib/base64.c (base64_encode): Do not read past end of array with
45426         unsanitized input on systems with CHAR_BIT > 8.
45427
45428 2006-03-24  Eric Blake  <ebb9@byu.net>
45429
45430         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
45431
45432 2006-03-22  Karl Berry  <karl@gnu.org>
45433
45434         * config/srclist.txt (*setenv.[ch]): get from coreutils.
45435         * config/srclistvars.sh (COREUTILS): new var.
45436
45437 2006-03-17  Jim Meyering  <jim@meyering.net>
45438
45439         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
45440         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
45441
45442 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45443
45444         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
45445         no longer needs it.  Instead, check that regoff_t is as least
45446         as wide as ptrdiff_t.
45447
45448         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
45449         so that our regex.h stays compatible with the installed regex.
45450         This is helpful for installers who configure --without-included-regex.
45451         Problem reported by Emanuele Giaquinta.
45452
45453 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45454
45455         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
45456         Typedef to long int, not to off_, as POSIX will likely change
45457         in that direction.
45458
45459 2006-03-15  Eric Blake  <ebb9@byu.net>
45460
45461         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
45462
45463 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45464
45465         * lib/argp-help.c (validate_uparams): Fix typo
45466         * lib/argp-parse.c (argp_default_options): Consistently begin help
45467         messages with a lowercase letter.
45468
45469 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
45470
45471         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
45472         overrun buffers and shouldn't be used (much as gets shouldn't be
45473         used).
45474         * lib/time_r.c (asctime_r, ctime_r): Likewise.
45475
45476 2006-03-08  Simon Josefsson  <jas@extundo.com>
45477
45478         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
45479         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45480
45481 2006-03-08  Simon Josefsson  <jas@extundo.com>
45482
45483         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
45484         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45485
45486 2006-03-08  Simon Josefsson  <jas@extundo.com>
45487
45488         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
45489         signal that configure disabled the device.
45490
45491 2006-03-08  Simon Josefsson  <jas@extundo.com>
45492
45493         * build-aux/maint.mk: Fix refresh-po, to handle no translated
45494         languages.
45495
45496 2006-03-07  Simon Josefsson  <jas@extundo.com>
45497
45498         * modules/getopt (Depends-on): Add unistd.
45499
45500         * modules/unistd: New file.
45501
45502 2006-03-07  Simon Josefsson  <jas@extundo.com>
45503
45504         * modules/gc-random: New file.
45505
45506 2006-03-07  Simon Josefsson  <jas@extundo.com>
45507
45508         * m4/unistd_h.m4: New file.
45509
45510 2006-03-07  Simon Josefsson  <jas@extundo.com>
45511
45512         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
45513         test to be side-effect free by storing the result in the cache
45514         variable gl_cv_lib_readline, and moving the assignment of
45515         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
45516         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45517
45518 2006-03-07  Simon Josefsson  <jas@extundo.com>
45519
45520         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
45521         error on missing devices (the functions will return an error).
45522
45523         * m4/gc.m4: Move random stuff to gc-random.m4
45524
45525 2006-03-07  Simon Josefsson  <jas@extundo.com>
45526
45527         * lib/unistd_.h: New file.
45528
45529 2006-03-07  Simon Josefsson  <jas@extundo.com>
45530
45531         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
45532
45533 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45534
45535         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
45536         Problem reported by Juan Manuel Guerrero.
45537
45538 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45539
45540         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
45541         the unistd module.
45542         * lib/getlogin_r.c: Likewise.
45543         * lib/getlogin_r.h: Likewise.
45544         * lib/glob.c: Likewise.
45545         * lib/pagealign_alloc.c: Likewise.
45546         * lib/unistd_.h: Remove; no longer needed.
45547
45548 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45549
45550         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45551         Add unistd.
45552         * modules/c-stack (Depends-on): Add unistd.
45553         * modules/getlogin_r: Likewise.
45554         * modules/glob: Likewise.
45555         * modules/pagealign_alloc: Likewise.
45556         * modules/unistd (Files): Remove lib/unistd_.h.
45557         (EXTRA_DIST): Remove.
45558         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
45559         need unistd_.h.
45560         (MOSTLYCLEANFILES): Remove unistd.h-t.
45561
45562 2006-03-03  Simon Josefsson  <jas@extundo.com>
45563
45564         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
45565
45566 2006-03-03  Simon Josefsson  <jas@extundo.com>
45567
45568         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
45569         libidn and bison.
45570
45571 2006-03-03  Simon Josefsson  <jas@extundo.com>
45572
45573         * build-aux/maint.mk: Add indent target.
45574
45575 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
45576
45577         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
45578         our replacement poll.h in any case, to avoid a differing
45579         declaration from a system header.  Seen on AIX.
45580
45581 2006-03-01  Simon Josefsson  <jas@extundo.com>
45582
45583         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
45584         <kasal@ucw.cz>.
45585
45586 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45587
45588         * modules/gettime (Depends-on): Add extensions module.
45589         * modules/nanosleep (Depends-on): Likewise.
45590         * modules/settime (Depends-on): Likewise.
45591
45592 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45593
45594         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
45595         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
45596         pedantically.
45597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45598         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
45599
45600         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
45601         not "==".  Reported by Ralf Wildenhues.
45602
45603 2006-03-01  Karl Berry  <karl@gnu.org>
45604
45605         * doc/Copyright/request-*: new files, synced from gnuorg.
45606
45607 2006-03-01  Karl Berry  <karl@gnu.org>
45608
45609         * config/srclist.txt (Copyright/*): new entries.
45610
45611 2006-02-28  Simon Josefsson  <jas@extundo.com>
45612
45613         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
45614
45615 2006-02-27  Simon Josefsson  <jas@extundo.com>
45616
45617         * lib/base64.h: Indent #define's.  From Jim Meyering
45618         <jim@meyering.net>.
45619
45620 2006-02-27  Jim Meyering  <jim@meyering.net>
45621
45622         Revert the change of 2006-02-24, so these files can continue
45623         to be sync'd from gettext.
45624         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
45625         of `config.h'.
45626
45627 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
45628
45629         * modules/intprops: New file.
45630         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45631         Add intprops.
45632         * modules/getloadavg (Files): Remove lib/intprops.h.
45633         (Depends-on): Add intprops.
45634         * modules/human: Likewise.
45635         * modules/inttostr: Likewise.
45636         * modules/openat: Likewise.
45637         * modules/sig2str: Likewise.
45638         * modules/userspec: Likewise.
45639         * modules/utimecmp: Likewise.
45640         * modules/xnanosleep: Likewise.
45641         * modules/xstrtol: Likewise.
45642
45643 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
45644
45645         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
45646         * modules/lock-tests (TESTS): Use $(EXEEXT).
45647         * modules/tls-tests: Likewise.
45648         * modules/argp-tests: Likewise.
45649         (check_PROGRAMS): New var, replacing...
45650         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
45651
45652 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45653
45654         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
45655         `config.h'.
45656
45657 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45658
45659         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
45660
45661 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45662
45663         Sync from coreutils.
45664         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
45665         gl_CHDIR_SAFER.
45666
45667 2006-02-22  Jim Meyering  <jim@meyering.net>
45668
45669         Sync from coreutils.
45670         * m4/chdir-safer.m4: New file.
45671
45672 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45673
45674         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
45675         AT_FDCWD exceeds INT_MAX.
45676         * lib/openat.h (AT_FDCWD): Likewise.
45677
45678 2006-02-17  Eric Blake  <address@hidden>
45679
45680         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
45681
45682 2006-02-16  Simon Josefsson  <jas@extundo.com>
45683
45684         * modules/getaddrinfo (Depends-on): Add sys_socket.
45685
45686 2006-02-15  Simon Josefsson  <jas@extundo.com>
45687
45688         * build-aux/maint.mk: Add dsyntax-check rule.
45689
45690 2006-02-15  Eric Blake  <ebb9@byu.net>
45691
45692         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
45693         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
45694         'present but cannot compile' warnings on cygwin.
45695         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
45696         use ws2tcpip.h if sys/socket.h works.
45697         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
45698         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
45699
45700 2006-02-14  Simon Josefsson  <jas@extundo.com>
45701
45702         * modules/maintainer-makefile (Files): Rename.
45703
45704         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
45705         and (the local) Makefile.cfg to maint-cfg.mk.
45706
45707         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
45708         to the latter.
45709
45710         * modules/maintainer-makefile: New module.
45711
45712         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
45713         severaly stripped to make it possible to build it up from scratch
45714         with reliable tests.
45715
45716         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
45717         fixes to permit overriding the default actions when configure and
45718         makefile are not available.
45719
45720 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45721
45722         Sync from coreutils.
45723         * modules/lstat (Depends-on): Don't depend on xalloc.
45724         (License): Change from GPL to LGPL, since this is now simply a
45725         replacement for a libc function.
45726
45727 2006-02-14  Jim Meyering  <jim@meyering.net>
45728
45729         Sync from coreutils.
45730
45731         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
45732         failure on deficient systems, and simplify gnulib lgpl dependencies.
45733         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
45734         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
45735
45736         * lib/xalloc-die.c: Remove unused definition of N_.
45737
45738 2006-02-14  Jim Meyering  <jim@meyering.net>
45739
45740         Sync from coreutils.
45741         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
45742         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
45743         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
45744         double-quote uses of that variable, to accommodate the rare case in
45745         which getmntent is available in none of the libraries checked.  This
45746         happens at least on FreeBSD 5.0.
45747
45748 2006-02-13  Simon Josefsson  <jas@extundo.com>
45749
45750         * gnulib-tool (Usage): Fix --import, from
45751         karl@freefriends.org (Karl Berry).
45752
45753 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45754
45755         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
45756
45757 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
45758
45759         * lib/argp-namefrob.h: Restore changes accidentally lost during the
45760         "autoupdate" on 2005-12-12.
45761
45762 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45763
45764         * modules/closeout (Depends-on): Remove atexit.
45765
45766 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45767
45768         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
45769         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
45770
45771 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45772
45773         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
45774         __EXTENSIONS__ if this causes compilation to fail.  Problem
45775         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
45776         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
45777
45778 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
45779
45780         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
45781         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
45782         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
45783         All uses changed.
45784
45785 2006-01-26  Simon Josefsson  <jas@extundo.com>
45786
45787         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
45788         prototype is visible on mingw32.
45789
45790         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
45791         for mingw32.
45792
45793         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
45794         mingw32).
45795
45796 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45797
45798         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
45799         attempt to open for write; this always fails, at least on POSIX
45800         hosts.  This reinstates the 2006-01-09 change, which was
45801         inadvertently removed.
45802
45803 2006-01-26  Bruno Haible  <bruno@clisp.org>
45804
45805         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
45806         Reported by Paul Eggert.
45807
45808 2006-01-26  Bruno Haible  <bruno@clisp.org>
45809             Paul Eggert  <eggert@cs.ucla.edu>
45810
45811         * lib/stdbool_.h (_Bool)
45812         [(! (defined __cplusplus || defined __BEOS__)
45813           && !defined __GNUC__
45814           && !(defined __HP_cc || defined __xlc__
45815                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
45816                || defined __sgi))]:
45817         #define to signed char in these cases too; this simplifies
45818         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
45819         etc., separately) and makes it more conservative.
45820
45821 2006-01-25  Simon Josefsson  <jas@extundo.com>
45822
45823         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
45824         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
45825         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
45826
45827 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45828
45829         * lib/argp-namefrob.h: Bugfix. Remove stray #
45830
45831 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45832
45833         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
45834         so that we test the test.
45835         Check for yet another HP-UX cc bug involving *bool |= bool.
45836
45837 2006-01-25  Karl Berry  <karl@gnu.org>
45838
45839         * config/srclist.txt (vasnprintf.c): sync lost.
45840
45841 2006-01-25  Jim Meyering  <jim@meyering.net>
45842
45843         Sync from the stable (b5) branch of coreutils:
45844
45845         * lib/fts.c (fts_children): Don't let close() clobber errno from
45846         failed fchdir().
45847
45848         * lib/fts.c (fts_stat): When following a symlink-to-directory,
45849         don't necessarily interpret stat-fails+lstat-succeeds as indicating
45850         a dangling symlink.  That can also happen at least for ELOOP.
45851         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
45852         FYI, this bug predates the inclusion of fts.c in coreutils.
45853
45854         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
45855         in their own block, so pre-c99 compilers don't object.
45856
45857         Avoid the double-free (first in fts_read, second in fts_close) that
45858         would occur when an `active' directory is made inaccessible (e.g.,
45859         via chmod a-x) during a traversal.
45860         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
45861         before returning.  Reproduce this failure by
45862         mkdir -p a/b; cd a; chmod a-x . b
45863         Reported by Stavros Passas.
45864
45865 2006-01-25  Jim Meyering  <jim@meyering.net>
45866
45867         * lib/fileblocks.c: Remove more useless parentheses.
45868         * lib/readutmp.h: Likewise.
45869
45870 2006-01-25  Bruno Haible  <bruno@clisp.org>
45871
45872         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
45873         warnings.
45874         Reported by Paul Eggert.
45875
45876 2006-01-25  Bruno Haible  <bruno@clisp.org>
45877
45878         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
45879         rid of a trap command. For Solaris sh.
45880         Reported by Mark D. Baushke <mdb@gnu.org>.
45881
45882 2006-01-24  Simon Josefsson  <jas@extundo.com>
45883
45884         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
45885         Bruno.
45886
45887 2006-01-24  Karl Berry  <karl@gnu.org>
45888
45889         * config/srclist.txt (argp-namefrob.h): sync lost.
45890
45891 2006-01-24  Jim Meyering  <jim@meyering.net>
45892
45893         * modules/openat (Files): Add lib/intprops.h.
45894         From Mark D. Baushke.
45895
45896 2006-01-24  Jim Meyering  <jim@meyering.net>
45897
45898         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
45899         Reported by Mark D. Baushke.
45900
45901 2006-01-24  Jim Meyering  <jim@meyering.net>
45902
45903         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
45904
45905 2006-01-24  Bruno Haible  <bruno@clisp.org>
45906
45907         * modules/strnlen (Maintainer): Change from glibc to all.
45908
45909 2006-01-24  Bruno Haible  <bruno@clisp.org>
45910
45911         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
45912         Patch by Paul Eggert.
45913
45914 2006-01-24  Bruno Haible  <bruno@clisp.org>
45915
45916         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
45917         already has it.
45918         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
45919         2005-11-26.
45920
45921         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
45922         'signed char' to avoid problems with the built-in _Bool type.
45923         Reported by Paul Eggert on 2005-11-26.
45924
45925 2006-01-24  Bruno Haible  <bruno@clisp.org>
45926
45927         * gnulib-tool (func_import): Avoid constructing complicated sed
45928         expressions inside backquote.
45929         Report and solution by Mark D. Baushke <mdb@gnu.org>.
45930
45931 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
45932
45933         These changes imported from libc.
45934         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
45935         test and two separate function calls.
45936         * lib/strndup.c (__strndup): Add libc_hidden_def.
45937
45938 2006-01-23  Simon Josefsson  <jas@extundo.com>
45939
45940         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
45941         Remove the test_*_SOURCES variable: automake infers it by default.
45942         * modules/tls-tests: Likewise.
45943
45944 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45945
45946         Work around porting bugs reported by Dieter in
45947         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
45948         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
45949         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
45950         Include "getopt.h" first, to check interface.
45951         (getenv): Declare only if defined HAVE_DECL_GETENV &&
45952         !HAVE_DECL_GETENV.
45953         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
45954         (__strndup): Revert to K&R-style function dfns, the glibc style.
45955         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
45956         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
45957         Include strnlen.h first, to get prototype properly.
45958         (strnlen): Renamed from __strnlen.
45959         Remove weak alias.
45960
45961 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45962
45963         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
45964
45965 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45966
45967         * config/srclist.txt: Adjust to reflect glibc reorganization.
45968         This affects only comments.
45969
45970 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45971
45972          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
45973          Reported by Bruce Korb <bkorb@gnu.org>.
45974
45975 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
45976
45977         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
45978         to pacify gcc -Wswitch-default.
45979
45980 2006-01-22  Bruno Haible  <bruno@clisp.org>
45981
45982         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
45983         temporary buffer for sprintf, take into account the precision also
45984         for 'd', 'i', 'u', 'o', 'x', 'X'.
45985
45986 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
45987
45988         * modules/argp-tests: New module
45989         * tests/test-argp.c: New file
45990         * tests/test-argp-2.sh: New file
45991
45992 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
45993
45994         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
45995         (__argp_base_name): Removed
45996         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
45997         typo.
45998         (__argp_base_name): Provide macro definition or extern declaration
45999         depending on the configuration
46000
46001 2006-01-20  Simon Josefsson  <jas@extundo.com>
46002
46003         * modules/inet_ntop (Depends-on): Depend on sys_socket.
46004
46005 2006-01-20  Simon Josefsson  <jas@extundo.com>
46006
46007         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46008
46009 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46010
46011         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46012         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46013         Suggested by Bruno Haible.
46014
46015 2006-01-20  Karl Berry  <karl@gnu.org>
46016
46017         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46018         until changes propagate, I guess.
46019
46020 2006-01-19  Simon Josefsson  <jas@extundo.com>
46021
46022         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46023
46024 2006-01-19  Simon Josefsson  <jas@extundo.com>
46025
46026         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46027
46028 2006-01-19  Simon Josefsson  <jas@extundo.com>
46029
46030         * gnulib-tool: Set check_PROGRAMS.
46031
46032         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46033         modules/des-tests, modules/gc-arcfour-tests,
46034         modules/gc-arctwo-tests, modules/gc-des-tests,
46035         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46036         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46037         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46038         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46039         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46040         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46041         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46042         test_*_SOURCES.
46043
46044 2006-01-18  Simon Josefsson  <jas@extundo.com>
46045
46046         * modules/socklen (Depends-on): Depend on sys_socket.
46047
46048 2006-01-18  Simon Josefsson  <jas@extundo.com>
46049
46050         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46051         modules/des-tests, modules/gc-arcfour-tests,
46052         modules/gc-arctwo-tests, modules/gc-des-tests,
46053         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46054         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46055         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46056         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46057         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46058         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46059         $(EXEEXT) to automake TESTS variable, for mingw32.
46060
46061 2006-01-17  Simon Josefsson  <jas@extundo.com>
46062
46063         * modules/socklen (Include): Need sys/socket.h.
46064
46065 2006-01-17  Bruno Haible  <bruno@clisp.org>
46066
46067         * modules/ssize_t (Include): Add <sys/types.h>.
46068
46069 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
46070
46071         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46072         it's not portable and it doesn't work with cross-compiles.
46073         Problem reported by Bruno Haible.  Fix missing-$ typo in
46074         'test "gl_cv_ignore_unused_libraries" ...' that prevented
46075         -zignore from being used with Sun's C compiler.
46076
46077 2006-01-12  Simon Josefsson  <jas@extundo.com>
46078
46079         * lib/base64.c: Fix warning, reported by Bruno Haible
46080         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46081
46082 2006-01-12  Bruno Haible  <bruno@clisp.org>
46083
46084         * modules/ldd: New file.
46085         * build-aux/ldd.sh.in: New file.
46086         * MODULES.html.sh (Support for building libraries and executables): Add
46087         ldd.
46088
46089 2006-01-12  Bruno Haible  <bruno@clisp.org>
46090
46091         * m4/ldd.m4: New file.
46092
46093 2006-01-12  Bruno Haible  <bruno@clisp.org>
46094
46095         * gnulib-tool (func_import, func_create_testdir): Don't go into an
46096         endless loop while replacing $auxdir with build-aux.
46097
46098 2006-01-11  Simon Josefsson  <jas@extundo.com>
46099
46100         * lib/stdint_.h (SIZE_MAX): Add missing (.
46101
46102 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
46103
46104         Sync from coreutils.
46105         * lib/md5.c: Fix commentary typos.
46106         (alignof, UNALIGNED_P): No need for a GCC-specific version.
46107         * lib/md5.h (__attribute__): Remove; unused.
46108         * lib/sha1.c: Fix commentary to match md5 better.
46109         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46110         so that we don't need to worry about alignment.  All uses changed.
46111         This merges the 2005-10-28 md5 change into sha1.
46112
46113 2006-01-11  Jim Meyering  <jim@meyering.net>
46114
46115         Sync from coreutils.
46116         * lib/md5.c (OP): Fix spacing.
46117
46118 2006-01-11  Bruno Haible  <bruno@clisp.org>
46119
46120         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46121         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46122         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46123
46124 2006-01-11  Bruno Haible  <bruno@clisp.org>
46125
46126         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46127         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46128         the "early" section as well.
46129
46130 2006-01-11  Bruno Haible  <bruno@clisp.org>
46131
46132         Avoid "ar: no archive members specified" error on MacOS X.
46133         * gnulib-tool (func_modules_add_dummy): New function.
46134         (func_import, func_create_testdir): Invoke it.
46135
46136 2006-01-11  Bruno Haible  <bruno@clisp.org>
46137
46138         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46139         with $auxdir in AC_CONFIG_FILES statements.
46140
46141 2006-01-11  Bruno Haible  <bruno@clisp.org>
46142
46143         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46144         Initialize also noinst_HEADERS to empty.
46145
46146 2006-01-11  Bruno Haible  <bruno@clisp.org>
46147
46148         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46149         variables.
46150         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46151         autoreconf.
46152
46153 2006-01-11  Bruno Haible  <bruno@clisp.org>
46154
46155         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46156         overridable by the user.
46157         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46158
46159 2006-01-10  Simon Josefsson  <jas@extundo.com>
46160
46161         * modules/sys_socket: New file.
46162
46163 2006-01-10  Simon Josefsson  <jas@extundo.com>
46164
46165         * m4/sys_socket_h.m4: New file.
46166
46167 2006-01-10  Simon Josefsson  <jas@extundo.com>
46168
46169         * lib/socket_.h: New file.
46170
46171 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46172
46173         * modules/readutmp (Maintainer): Add myself.
46174
46175 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46176
46177         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46178         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
46179         People who are still concerned with buggy memcmp implementations
46180         can invoke gl_FUNC_MEMCMP themselves.
46181
46182 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46183
46184         * lib/regex_internal.h (BITSET_WORD_BITS):
46185         Work around a bug in 64-bit PGC (before version 6.1-2), where the
46186         preprocessor mishandles large unsigned values as if they were signed.
46187         Problem reported by Claudio Fontana in
46188         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46189
46190 2006-01-10  Jim Meyering  <jim@meyering.net>
46191
46192         Avoid the double-free (first in fts_read, second in fts_close) that
46193         would occur when an `active' directory is made inaccessible (e.g.,
46194         via chmod a-x) during a traversal.
46195         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46196         before returning.  Reproduce this failure by
46197         mkdir -p a/b; cd a; chmod a-x . b
46198         Reported by Stavros Passas.
46199
46200         Sync from coreutils.
46201         * lib/sha1.c: Tweak grammar in a comment.
46202
46203 2006-01-10  Jim Meyering  <jim@meyering.net>
46204
46205         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46206         Patch by Joerg Sonnenberger.
46207
46208 2006-01-10  Bruno Haible  <bruno@clisp.org>
46209
46210         * modules/readutmp: Depend on module free.
46211         * modules/strtok_r: Depend on module restrict.
46212
46213 2006-01-10  Bruno Haible  <bruno@clisp.org>
46214
46215         * modules/gettext (configure.ac): Add an invocation of
46216         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46217
46218 2006-01-10  Bruno Haible  <bruno@clisp.org>
46219
46220         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46221         Reported by Werner Lemberg <wl@gnu.org>.
46222
46223 2006-01-10  Bruno Haible  <bruno@clisp.org>
46224
46225         * lib/localcharset.c: Update from GNU gettext.
46226
46227 2006-01-10  Bruno Haible  <bruno@clisp.org>
46228
46229         * lib/argp.h (__const): Remove macro. Use const instead.
46230         * lib/argp-fmtstream.h (__const): Likewise.
46231         * lib/glob_.h (__const): Remove macro.
46232         * lib/glob-libc.h: Use const instead of __const.
46233
46234 2006-01-10  Bruno Haible  <bruno@clisp.org>
46235
46236         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46237         variable.
46238         Needed to avoid an automake error regarding the 'gettext' module.
46239
46240 2006-01-09  Simon Josefsson  <jas@extundo.com>
46241
46242         * modules/inet_ntop (Depends-on): Add restrict.
46243
46244 2006-01-09  Simon Josefsson  <jas@extundo.com>
46245
46246         * modules/gc-rijndael-tests (License): Put under LGPL.
46247
46248         * modules/gc-des-tests (License): Likewise.
46249
46250         * modules/gc-arcfour-tests (License): Likewise.
46251
46252         * modules/gc-arctwo-tests (License): Likewise.
46253
46254         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46255
46256         * modules/gc-hmac-sha1-tests (Files): Likewise.
46257
46258         * modules/gc-hmac-md5-tests (License): Likewise.
46259
46260         * modules/gc-sha1-tests (License): Likewise.
46261
46262         * modules/gc-md5-tests (License): Likewise.
46263
46264         * modules/gc-md4-tests (License): Likewise.
46265
46266         * modules/gc-md2-tests (License): Likewise.
46267
46268         * modules/gc-tests (License): Likewise.
46269
46270         * modules/des-tests (License): Likewise.
46271
46272         * modules/md4-tests (License): Likewise.
46273
46274         * modules/md2-tests (License): Likewise.
46275
46276 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46277
46278         Sync from coreutils:
46279
46280         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46281         * modules/lib-ignore: New file.
46282         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46283         chdir-safer.m4, lchmod.m4.
46284         * modules/openat: Add mkdirat.c, openat-priv.h.
46285
46286 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46287
46288         Sync from coreutils.
46289         * m4/lib-ignore.m4: New file.
46290         * m4/lchmod.m4: New file.
46291
46292 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46293
46294         Sync from coreutils.
46295         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
46296         for write access: POSIX says that must fail.
46297         * lib/fts.c (diropen): Likewise.
46298         * lib/save-cwd.c (save_cwd): Likewise.
46299         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
46300         well, for minor improvements on hosts that lack O_DIRECTORY.
46301         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
46302         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
46303         Fall back on chown if open failed with EACCES.
46304
46305         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
46306         Report an error at compile-time if only a 1-second nominal clock
46307         resolution is found.
46308
46309         * lib/lchmod.h: New file.
46310         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
46311         (make_dir_parents): Use lchown rather than chown, and
46312         lchmod rather than chmod.
46313
46314         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
46315         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
46316         "proc" reported by n0dalus.
46317
46318         * lib/mountlist.c: Include <limits.h>.
46319         (dev_from_mount_options)
46320         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
46321         New function.  It no longer assumes "dev=" has the System V meaning
46322         on Linux (since it doesn't).  It also parses "dev=" more carefully.
46323         (read_file_system_list)
46324         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
46325         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
46326         dev= in that case.
46327
46328         * lib/posixtm.h (PDS_PRE_2000): New macro.
46329         * lib/posixtm.c (year): Arg is now syntax_bits rather than
46330         allow_century.  All usages changed.  Reject dates outside the range
46331         1969-1999 if PDS_PRE_2000 is used.
46332
46333 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46334
46335         Sync from coreutils.
46336         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
46337         (Time of day items): Mention the possibility of leap seconds.
46338         Problem reported by Dr. David Alan Gilbert.
46339
46340 2006-01-09  Jim Meyering  <jim@meyering.net>
46341
46342         Sync from coreutils.
46343
46344         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
46345
46346         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
46347
46348         * lib/modechange.c (mode_compile): Reject an invalid mode string
46349         that starts with an octal digit.  From Andreas Gruenbacher.
46350
46351         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
46352         and dup to open_safer and dup_safer, respectively.
46353         (openat_permissive): Fix typo in comment.
46354
46355         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
46356         "gettext.h"; either no longer needed or are guaranteed by openat.h.
46357         (_): Remove; no longer needed.
46358         (openat): Renamed from rpl_openat; no need for rpl_openat
46359         since openat.h renames openat for us.
46360         Replace most of the body with a call to openat_permissive,
46361         to avoid duplicate code.
46362         Port to (probably hypothetical) environments were mode_t is
46363         wider than int.
46364         (openat_permissive): Require mode arg, so that we can check
46365         types better.  Put it just after flags.  Change cwd failure
46366         indicator from pointer-to-bool to pointer-to-errno-value.
46367         All callers changed.
46368         Invoke openat_save_fail and/or openat_restore_fail if
46369         cwd_errno is null, so that openat can call us.
46370         (openat_permissive, fdopendir, fstatat, unlinkat):
46371         Simplify errno handling to avoid some duplicate code,
46372         as it's OK to set errno on success.
46373         * lib/openat.h: Revamp code so that function macros depend on
46374         __OPENAT_PREFIX only, not also on AT_FDCWD.
46375         (openat_ro): Remove.  Caller changed to use openat_permissive.
46376         (openat_permissive): Now a macro, if not a function.
46377         (openat_restore_fail, openat_save_fail): Now always functions,
46378         since mkdirat needs them even if __OPENAT_PREFIX is defined.
46379
46380         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
46381         and openat.c.
46382         * lib/mkdirat.c: Include openat-priv.h.
46383         Remove definitions of macros defined therein.
46384         * lib/openat.c: Likewise.
46385
46386         * lib/mkdirat.c (mkdirat): New file and function.
46387         * lib/openat.h (mkdirat): Declare.
46388
46389         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
46390
46391         * lib/openat.h (openat_permissive): Declare.
46392         (openat_ro): Define.
46393
46394         * lib/openat.c (EXPECTED_ERRNO): New macro.
46395         (openat_permissive): New function -- used in remove.c rewrite.
46396         (all functions): Set errno just before returning, only if there
46397         was an actual failure.
46398         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
46399
46400         Emulate openat-family functions using Linux's procfs, if possible.
46401         Idea and some code based on Ulrich Drepper's glibc changes.
46402
46403         * lib/openat.c: (BUILD_PROC_NAME): New macro.
46404         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
46405         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
46406         before falling back on save_cwd and restore_cwd.
46407         (fdopendir, fstatat, unlinkat): Likewise.
46408
46409         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
46410         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
46411
46412         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
46413         as second argument to va_arg.  Otherwise, some versions of gcc
46414         warn that `if this code is reached, the program will abort'.
46415
46416 2006-01-09  Jim Meyering  <jim@meyering.net>
46417
46418         Sync from coreutils.
46419         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
46420         Require openat-priv.h.
46421
46422 2006-01-09  Bruno Haible  <bruno@clisp.org>
46423
46424         * modules/strnlen (Include): Use strnlen.h.
46425
46426 2006-01-09  Bruno Haible  <bruno@clisp.org>
46427
46428         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
46429
46430 2006-01-09  Bruno Haible  <bruno@clisp.org>
46431
46432         * lib/sysexit_.h (EX_OK): New macro.
46433         Suggested by Martin Lambers <marlam@marlam.de>.
46434
46435 2006-01-09  Bruno Haible  <bruno@clisp.org>
46436
46437         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
46438         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
46439
46440 2006-01-09  Bruno Haible  <bruno@clisp.org>
46441
46442         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
46443         numbers.
46444
46445 2006-01-09  Bruno Haible  <bruno@clisp.org>
46446
46447         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
46448         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
46449         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
46450         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
46451
46452 2006-01-09  Bruno Haible  <bruno@clisp.org>
46453
46454         * build-aux/javacomp.sh.in: New file, moved from lib/.
46455         * modules/javacomp-script (Files): Update.
46456         (configure.ac): Add AC_CONFIG_FILES invocation.
46457         (EXTRA_DIST): Remove variable.
46458
46459         * build-aux/javaexec.sh.in: New file, moved from lib/.
46460         * modules/javaexec (Files): Update.
46461         (configure.ac): Add AC_CONFIG_FILES invocation.
46462         (EXTRA_DIST): Remove javaexec.sh.in.
46463
46464         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
46465         * modules/csharpcomp-script (Files): Update.
46466         (configure.ac): Add AC_CONFIG_FILES invocation.
46467         (EXTRA_DIST): Remove variable.
46468
46469         * build-aux/csharpexec.sh.in: New file, moved from lib/.
46470         * modules/csharpexec (Files): Update.
46471         (configure.ac): Add AC_CONFIG_FILES invocation.
46472         (EXTRA_DIST): Remove csharpexec.sh.in.
46473
46474 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46475
46476         Sync from coreutils.
46477
46478         Add POSIX ACL support
46479         * lib/acl.h (copy_acl, set_acl): Add declarations.
46480         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
46481         systems other than Linux.
46482         (chmod_or_fchmod): New function: use fchmod when possible,
46483         and chmod otherwise.
46484         (file_has_acl): Add a POSIX ACL implementation, with a
46485         Linux-specific subcase.
46486         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
46487         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
46488         acls are unsupported.
46489         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
46490         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
46491         are unsupported.
46492
46493 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46494
46495         Sync from coreutils.
46496         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
46497
46498 2006-01-07  Bruno Haible  <bruno@clisp.org>
46499
46500         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
46501         gl_EARLY.
46502
46503 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46504
46505         * lib/strftime.c (tzname): Don't declare if it is already #defined.
46506         Problem reported for Mingw by Mark Junker.
46507
46508 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46509
46510         * README: Gnulib normally doesn't generate a tarball.
46511
46512 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
46513
46514         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
46515         long int, not int, for nanosecond counts, so that people who are
46516         used to POSIX struct timespec won't be surprised.  Reported by Jim
46517         Meyering.
46518
46519 2005-12-28  Bruno Haible  <bruno@clisp.org>
46520
46521         * build-aux/config.rpath: Update from GNU gettext.
46522
46523 2005-12-16  Jim Meyering  <jim@meyering.net>
46524
46525         * modules/fprintftime: New module.
46526         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
46527
46528 2005-12-16  Jim Meyering  <jim@meyering.net>
46529
46530         * m4/fprintftime.m4: New file.
46531
46532 2005-12-16  Jim Meyering  <jim@meyering.net>
46533
46534         * lib/fprintftime.c, lib/fprintftime.h: New files.
46535
46536 2005-12-15  Simon Josefsson  <jas@extundo.com>
46537
46538         * modules/socklen (configure.ac): Fix M4 macro name, to align with
46539         new m4/socklen.m4.
46540
46541 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46542
46543         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
46544         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
46545
46546 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46547
46548         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
46549         * lib/argp-help.c (fill_in_uparams): Check if the constructed
46550         struct uparams is valid. Fall back to the default values if it is
46551         not.
46552
46553 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46554
46555         * modules/argp (Files): Add argp-pin.c
46556         (Depends-on): dirname
46557         (lib_SOURCES): Add argp-pin.c
46558
46559 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46560
46561         * m4/argp.m4:  Check if program_invocation_name and
46562         program_invocation_short_name are declared and define appropriate
46563         macros if they are not.
46564
46565 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46566
46567         * lib/argp-help.c (__argp_base_name): New function
46568         (__argp_short_program_name): Rewrite using __argp_base_name
46569         * lib/argp-namefrob.h: Define program_invocation_name and
46570         program_invocation_short_name if requested
46571         (__argp_base_name): Add prototype
46572         * lib/argp-parse.c (argp_def): Use gettext wrappers
46573         (argp_default_parser): Use __argp_base_name
46574         * lib/argp-pin.c: New file. Defines program_invocation_name and
46575         program_invocation_short_name on systems that lack them.
46576
46577 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46578
46579         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
46580         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46581         porting problem reported by Georg Schwarz in
46582         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46583
46584 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46585
46586         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
46587         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46588         porting problem reported by Georg Schwarz in
46589         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46590
46591 2005-12-05  Bruno Haible  <bruno@clisp.org>
46592
46593         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
46594         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
46595         Reported by Mark Junker <mjscod@gmx.de>.
46596
46597 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
46598
46599         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
46600         Use implementation from Albert Chin, with some
46601         comments/corrections by Stepan Kasal and myself.
46602
46603 2005-12-02  Bruno Haible  <bruno@clisp.org>
46604
46605         * gnulib-tool (func_import): Accept GPLed build tool modules when
46606         --lgpl is given.
46607         * modules/csharpcomp-script: New file.
46608         * modules/csharpcomp: Depend on it.
46609         * modules/javacomp-script: New file.
46610         * modules/javacomp: Depend on it.
46611         Suggested by Simon Josefsson.
46612
46613 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
46614
46615         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
46616         statement, to work around an HP-UX 10.20 compiler bug reported by
46617         Peter O'Gorman.
46618
46619 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46620
46621         * modules/savedir (Depends-on): Add openat.
46622
46623 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46624
46625         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
46626         (uintmax_t) [defined uintmax_t]: Do not declare.
46627         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
46628         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
46629         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
46630         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
46631         sake of portability to weird hosts that C allows (though we don't
46632         know of any practical examples).
46633
46634         * lib/savedir.h (fdsavedir): New decl.
46635         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
46636         contains most of the former guts of savedir.
46637         (savedir): Use savedirstream.
46638         Include "openat.h".
46639
46640 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
46641
46642         * modules/obstack (Files): Add m4/ulonglong.m4.
46643         Problem reported by Davide Angelocola.
46644
46645 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46646
46647         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
46648         coreutils no longer futzes with rounding modes.
46649
46650 2005-11-14  Jim Meyering  <jim@meyering.net>
46651
46652         * lib/mkstemp-safer.c: Include <config.h>, required for possible
46653         replacement of mkstemp.
46654
46655 2005-11-10  Simon Josefsson  <jas@extundo.com>
46656
46657         * lib/readline.c: Remove EOL.
46658
46659 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46660
46661         * modules/gethrxtime (Depends-on): Add gettime.
46662
46663 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46664
46665         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
46666         or gettimeofday; no longer needed.
46667
46668 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46669
46670         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
46671         time business.
46672         (gethrxtime) [! (HAVE_NANOUPTIME
46673         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
46674         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
46675         our own approximation.
46676
46677 2005-11-08  Eric Blake  <ebb9@byu.net>
46678
46679         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46680
46681 2005-11-08  Eric Blake  <ebb9@byu.net>
46682
46683         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46684
46685 2005-11-04  Bruno Haible  <bruno@clisp.org>
46686
46687         * gnulib-tool: Implement --update mode.
46688
46689 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46690
46691         Fix porting problem reported by Theodoros V. Kalamatianos.
46692         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
46693         Don't assume that futimes failing means we must fail.
46694
46695 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46696
46697         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
46698         variables to suggest the intended function of the PATH_MAX check.
46699
46700 2005-10-30  Kean Johnston  <jkj@sco.com>
46701
46702         Trivial changes to support SCO systems.
46703         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
46704         as PATH_MAX.
46705         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
46706         where __ptr is null when no I/O is pending.
46707
46708 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
46709
46710         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
46711         leave errno alone.  Problem reported by Dmitry V. Levin.
46712
46713 2005-10-28  Simon Josefsson  <jas@extundo.com>
46714
46715         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
46716         Test more.
46717
46718         * tests/test-gc-md2.c, tests/test-md2.c: New files.
46719
46720         * modules/md2, modules/md2-tests: New files.
46721
46722 2005-10-28  Simon Josefsson  <jas@extundo.com>
46723
46724         * m4/inet_ntop.m4: More tests.
46725
46726         * m4/gc-md2.m4, md2.m4: New file.
46727
46728 2005-10-28  Simon Josefsson  <jas@extundo.com>
46729
46730         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
46731         "restrict" keywords, as per POSIX.  Protect the function
46732         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
46733         Don't use K&R prototypes.  Check the sprintf return values.
46734         Re-define EAFNOSUPPORT if not present.  Indent.
46735
46736         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
46737         suggested by Bruno Haible <bruno@clisp.org>.
46738
46739         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
46740
46741         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
46742
46743         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
46744         libgcrypt).
46745
46746         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
46747
46748         * lib/md2.h, lib/md2.c: New files.
46749
46750 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
46751
46752         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
46753         errno alone.  Problem reported by Frederic Jolliton.
46754
46755 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46756
46757         * modules/verify (License): Change from GPL to LGPL.  This is a
46758         tiny module and there are apparently near-equivalents that are
46759         under the BSD license.
46760
46761 2005-10-24  Simon Josefsson  <jas@extundo.com>
46762
46763         * modules/sha1: Relicense to LGPL.
46764
46765 2005-10-24  Simon Josefsson  <jas@extundo.com>
46766
46767         * lib/md4.h: Shrink buffer size, now that we changed the type.
46768
46769 2005-10-23  Simon Josefsson  <jas@extundo.com>
46770
46771         * gnulib-tool (func_import): Fix --tests-base.
46772
46773 2005-10-22  Simon Josefsson  <jas@extundo.com>
46774
46775         * modules/arcfour (Depends-on): Need stdint.
46776
46777 2005-10-22  Simon Josefsson  <jas@extundo.com>
46778
46779         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
46780         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
46781
46782 2005-10-22  Simon Josefsson  <jas@extundo.com>
46783
46784         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
46785         suggested by Bruno Haible <bruno@clisp.org>.
46786
46787 2005-10-22  Simon Josefsson  <jas@extundo.com>
46788
46789         * lib/crc.h: Include stddef.h, for size_t.
46790
46791 2005-10-22  Simon Josefsson  <jas@extundo.com>
46792
46793         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
46794         arcfour_context struct (simplify test vector testing in GNU
46795         Shishi).
46796
46797 2005-10-21  Simon Josefsson  <jas@extundo.com>
46798
46799         * modules/des, modules/des-tests: New files.
46800
46801         * modules/gc-des, modules/gc-des-tests: New files.
46802
46803         * tests/test-des.c, tests/test-gc-des.c: New file.
46804
46805 2005-10-21  Simon Josefsson  <jas@extundo.com>
46806
46807         * modules/arctwo, modules/arctwo-tests: New files.
46808
46809         * tests/test-arctwo.c: New file.
46810
46811         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
46812
46813         * tests/test-gc-arctwo.c: New file.
46814
46815 2005-10-21  Simon Josefsson  <jas@extundo.com>
46816
46817         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
46818         Bruno Haible <bruno@clisp.org>.
46819
46820         * m4/gc-des.m4: New file.
46821
46822 2005-10-21  Simon Josefsson  <jas@extundo.com>
46823
46824         * m4/arctwo.m4: New file.
46825
46826         * m4/gc-arctwo.m4: New file.
46827
46828 2005-10-21  Simon Josefsson  <jas@extundo.com>
46829
46830         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
46831         block.
46832
46833 2005-10-21  Simon Josefsson  <jas@extundo.com>
46834
46835         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
46836         <bruno@clisp.org>.
46837
46838         * lib/hmac-sha1.c (hmac_sha1): Likewise.
46839
46840         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
46841         Bruno Haible <bruno@clisp.org>.
46842
46843         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
46844         <bruno@clisp.org>.
46845
46846 2005-10-21  Simon Josefsson  <jas@extundo.com>
46847
46848         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
46849
46850 2005-10-21  Simon Josefsson  <jas@extundo.com>
46851
46852         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
46853
46854 2005-10-21  Simon Josefsson  <jas@extundo.com>
46855
46856         * lib/des.h, lib/des.c: New files.
46857
46858         * lib/gc-gnulib.c: Support DES.c
46859
46860 2005-10-21  Simon Josefsson  <jas@extundo.com>
46861
46862         * lib/arctwo.h, lib/arctwo.c: New files.
46863
46864         * lib/gc-gnulib.c: Support ARCTWO.
46865
46866 2005-10-21  Simon Josefsson  <jas@extundo.com>
46867
46868         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
46869         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46870
46871 2005-10-21  Simon Josefsson  <jas@extundo.com>
46872
46873         * gnulib-tool (func_import, func_create_testdir): Define automake
46874         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
46875         Makefile.am snippet),
46876         suggested by Bruno Haible <bruno@clisp.org>.
46877
46878         * modules/gc (Makefile.am): Use it.
46879
46880 2005-10-21  Bruno Haible  <bruno@clisp.org>
46881
46882         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
46883         patch.
46884
46885 2005-10-19  Simon Josefsson  <jas@extundo.com>
46886
46887         * tests/test-gc-rijndael.c: New file.
46888
46889         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
46890
46891 2005-10-19  Simon Josefsson  <jas@extundo.com>
46892
46893         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
46894         interface too.
46895
46896 2005-10-19  Simon Josefsson  <jas@extundo.com>
46897
46898         * tests/test-gc-arcfour.c: New file.
46899
46900         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
46901
46902 2005-10-19  Simon Josefsson  <jas@extundo.com>
46903
46904         * modules/gc-md4, modules/gc-md4-tests: New file.
46905
46906         * tests/test-gc-md4.c: New file.
46907
46908 2005-10-19  Simon Josefsson  <jas@extundo.com>
46909
46910         * m4/gc-md4.m4: New file.
46911
46912 2005-10-19  Simon Josefsson  <jas@extundo.com>
46913
46914         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
46915         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
46916         <kasal@ucw.cz>.
46917
46918 2005-10-19  Simon Josefsson  <jas@extundo.com>
46919
46920         * m4/gc-arcfour.m4: New file.
46921
46922         * m4/gc-rijndael.m4: New file.
46923
46924 2005-10-19  Simon Josefsson  <jas@extundo.com>
46925
46926         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
46927
46928 2005-10-19  Simon Josefsson  <jas@extundo.com>
46929
46930         * lib/gc-gnulib.c: Support ARCFOUR.
46931
46932 2005-10-19  Simon Josefsson  <jas@extundo.com>
46933
46934         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
46935         support.
46936
46937         * lib/gc.h: Add ECB enum type.
46938
46939         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
46940
46941 2005-10-18  Simon Josefsson  <jas@extundo.com>
46942
46943         * tests/test-md5.c: New file.
46944
46945         * modules/md5-tests: New file.
46946
46947 2005-10-18  Simon Josefsson  <jas@extundo.com>
46948
46949         * tests/test-md4.c: New file.
46950
46951         * modules/md4, modules/md4-tests: New files.
46952
46953 2005-10-18  Simon Josefsson  <jas@extundo.com>
46954
46955         * m4/md4.m4: New file.
46956
46957 2005-10-18  Simon Josefsson  <jas@extundo.com>
46958
46959         * lib/md4.h, lib/md4.c: New files, based on md5.?.
46960
46961 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
46962
46963         * gnulib-tool (func_create_testdir): Omit the second check whether
46964         BUILT_SOURCES in nonempty.
46965
46966 2005-10-17  Simon Josefsson  <jas@extundo.com>
46967
46968         * tests/test-rijndael.c: New file.
46969
46970 2005-10-17  Simon Josefsson  <jas@extundo.com>
46971
46972         * modules/sha1: Depend on stdint instead of md5.
46973
46974         * modules/md5: Depend on stdint, remove uint32_t.
46975
46976 2005-10-17  Simon Josefsson  <jas@extundo.com>
46977
46978         * modules/gc-sha1-tests: New file.
46979
46980         * tests/test-gc-sha1.c: New file.
46981
46982 2005-10-17  Simon Josefsson  <jas@extundo.com>
46983
46984         * m4/md5.m4: Remove call to uint32_t.m4.
46985
46986 2005-10-17  Simon Josefsson  <jas@extundo.com>
46987
46988         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
46989
46990         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
46991         md5.h.
46992
46993         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
46994
46995         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
46996
46997 2005-10-17  Simon Josefsson  <jas@extundo.com>
46998
46999         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47000
47001 2005-10-17  Simon Josefsson  <jas@extundo.com>
47002
47003         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47004
47005 2005-10-17  Simon Josefsson  <jas@extundo.com>
47006
47007         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47008
47009         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47010
47011 2005-10-17  Bruno Haible  <bruno@clisp.org>
47012
47013         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47014         that it can also be used in a test.
47015
47016 2005-10-16  Bruno Haible  <bruno@clisp.org>
47017
47018         * gnulib-tool (func_emit_tests_Makefile_am): Also define
47019         TESTS_ENVIRONMENT, so that individual tests can augment it.
47020
47021         * gnulib-tool (func_create_testdir): Use an intermediate target for
47022         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47023         macros, like $(ALLOCA_H), which cannot be passed through the command
47024         line.
47025
47026 2005-10-15  Simon Josefsson  <jas@extundo.com>
47027
47028         * modules/rijndael-tests: New file.
47029
47030         * modules/rijndael: New file.
47031
47032 2005-10-15  Simon Josefsson  <jas@extundo.com>
47033
47034         * m4/rijndael.m4: New file.
47035
47036 2005-10-15  Simon Josefsson  <jas@extundo.com>
47037
47038         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47039
47040         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47041
47042 2005-10-14  Simon Josefsson  <jas@extundo.com>
47043
47044         * tests/test-arcfour.c: New file.
47045
47046         * modules/arcfour, modules/arcfour-tests: New files.
47047
47048 2005-10-14  Simon Josefsson  <jas@extundo.com>
47049
47050         * m4/arcfour.m4: New file.
47051
47052 2005-10-14  Simon Josefsson  <jas@extundo.com>
47053
47054         * lib/arcfour.h, lib/arcfour.c: New files.
47055
47056 2005-10-14  Roland McGrath  <roland@redhat.com>
47057
47058         Import from libc.  [BZ #1331]
47059         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47060         macro argument.
47061         Reported by Matej Vela <vela@debian.org>.
47062
47063 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47064
47065         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47066         include <wchar.h>; no longer needed.
47067
47068 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47069
47070         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47071
47072 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
47073         and  Ulrich Drepper  <drepper@redhat.com>
47074
47075         Import from libc.
47076         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47077         instead of inline stream orientation test and two separate
47078         function calls.  Pay no attention to USE_IN_LIBIO.
47079
47080 2005-10-13  Simon Josefsson  <jas@extundo.com>
47081
47082         * modules/gc-hmac-md5-tests: New file.
47083
47084         * tests/test-gc-hmac-sha1.c: New file.
47085
47086         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47087
47088         * modules/gc-hmac-md5-tests: New file.
47089
47090         * tests/test-gc-md5.c: New file.
47091
47092         * modules/gc-md5-tests: New file.
47093
47094 2005-10-13  Simon Josefsson  <jas@extundo.com>
47095
47096         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47097         Move memory allocation outside of loop.
47098
47099 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47100
47101         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47102         intermediate directory is in a read-only file system.  Problem
47103         reported by Eric Blake.
47104
47105 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
47106
47107         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47108
47109 2005-10-12  Simon Josefsson  <jas@extundo.com>
47110
47111         * tests/test-hmac-sha1.c: New file.
47112
47113         * modules/hmac-sha1-tests: New file.
47114
47115         * modules/hmac-sha1: New file.
47116
47117 2005-10-12  Simon Josefsson  <jas@extundo.com>
47118
47119         * modules/gc-sha1: New file.
47120
47121 2005-10-12  Simon Josefsson  <jas@extundo.com>
47122
47123         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47124
47125         * tests/test-gc-pbkdf2-sha1.c: New file.
47126
47127 2005-10-12  Simon Josefsson  <jas@extundo.com>
47128
47129         * modules/gc-md5, modules/gc-hmac-md5: New files.
47130
47131         * modules/gc (Files): Remove md5, memxor and hmac files.
47132
47133 2005-10-12  Simon Josefsson  <jas@extundo.com>
47134
47135         * m4/gc-pbkdf2-sha1.m4: New file.
47136
47137         * m4/gc-hmac-sha1.m4: New file.
47138
47139         * m4/gc-sha1: New file.
47140
47141         * m4/hmac-sha1.m4: New file.
47142
47143 2005-10-12  Simon Josefsson  <jas@extundo.com>
47144
47145         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47146
47147         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47148
47149 2005-10-12  Simon Josefsson  <jas@extundo.com>
47150
47151         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47152         suggested by Bruno Haible <bruno@clisp.org>.
47153
47154 2005-10-12  Simon Josefsson  <jas@extundo.com>
47155
47156         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47157
47158 2005-10-12  Simon Josefsson  <jas@extundo.com>
47159
47160         * lib/gc-pbkdf2-sha1.c: New file.
47161
47162         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47163
47164 2005-10-12  Simon Josefsson  <jas@extundo.com>
47165
47166         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47167
47168         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47169
47170 2005-10-12  Simon Josefsson  <jas@extundo.com>
47171
47172         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47173         GC_USE_HMAC_MD5, respectively.
47174
47175         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47176         (gc_md5): Fix typo.
47177
47178         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47179
47180         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47181
47182         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47183
47184 2005-10-12  Bruno Haible  <bruno@clisp.org>
47185
47186         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47187         Reported by Stepan Kasal <kasal@ucw.cz>.
47188
47189 2005-10-11  Simon Josefsson  <jas@extundo.com>
47190
47191         * tests/test-crc.c: New file.
47192
47193         * modules/crc, modules/crc-tests: New files.
47194
47195 2005-10-11  Simon Josefsson  <jas@extundo.com>
47196
47197         * m4/crc.m4: New file.
47198
47199 2005-10-11  Simon Josefsson  <jas@extundo.com>
47200
47201         * lib/gc.h: Add gc_hash and gc_hash_buffer.
47202
47203         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
47204
47205         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47206
47207 2005-10-11  Simon Josefsson  <jas@extundo.com>
47208
47209         * lib/crc.h, lib/crc.c: New files.
47210
47211         * lib/gc.h (gc_hash_buffer): Add doc.
47212
47213 2005-10-11  Bruno Haible  <bruno@clisp.org>
47214
47215         * modules/c-strcasestr: New file.
47216         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47217
47218 2005-10-11  Bruno Haible  <bruno@clisp.org>
47219
47220         * modules/c-strcase: New file.
47221         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47222
47223 2005-10-11  Bruno Haible  <bruno@clisp.org>
47224
47225         * lib/strcasecmp.c: Include limits.h.
47226         (strcasecmp): Avoid integer overflow on exotic platforms.
47227         * lib/strncasecmp.c: Include limits.h.
47228         (strncasecmp): Avoid integer overflow on exotic platforms.
47229         Reported by Paul Eggert.
47230
47231 2005-10-11  Bruno Haible  <bruno@clisp.org>
47232
47233         * lib/c-strcasestr.h: New file, from GNU gettext.
47234         * lib/c-strcasestr.c: New file, from GNU gettext.
47235
47236 2005-10-11  Bruno Haible  <bruno@clisp.org>
47237
47238         * lib/c-strcase.h: New file, from GNU gettext.
47239         * lib/c-strcasecmp.c: New file, from GNU gettext.
47240         * lib/c-strncasecmp.c: New file, from GNU gettext.
47241
47242 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47243
47244         * modules/mempcpy (License): GPL -> LGPL.
47245         * modules/strchrnul (License): Likewise.
47246         * modules/sysexits (License): Likewise.
47247
47248 2005-10-08  Simon Josefsson  <jas@extundo.com>
47249
47250         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47251
47252 2005-10-07  Simon Josefsson  <jas@extundo.com>
47253
47254         * m4/memxor.m4: Remove gl_C_RESTRICT call.
47255
47256 2005-10-06  Simon Josefsson  <jas@extundo.com>
47257
47258         * tests/test-hmac-md5.c: New file.
47259
47260         * modules/hmac-md5-tests: New file.
47261
47262         * modules/hmac-md5: New file.
47263
47264 2005-10-06  Simon Josefsson  <jas@extundo.com>
47265
47266         * m4/hmac-md5.m4: New file.
47267
47268         * m4/memxor.m4: Require gl_C_RESTRICT.
47269
47270 2005-10-06  Simon Josefsson  <jas@extundo.com>
47271
47272         * lib/memxor.c (memxor): Avoid casts and warnings.
47273
47274 2005-10-06  Simon Josefsson  <jas@extundo.com>
47275
47276         * lib/hmac-md5.c: New file.
47277
47278         * lib/hmac.h: New file.
47279
47280 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47281
47282         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47283         promotes to int, not unsigned int, to catch the AIX 5.3
47284         compiler bug.
47285
47286 2005-10-05  Simon Josefsson  <jas@extundo.com>
47287
47288         * modules/memxor: New file.
47289
47290         * modules/iconv (Files): Move config.rpath to havelib, it is used
47291         there.
47292
47293         * modules/havelib (Files): Add config.rpath.
47294
47295 2005-10-05  Simon Josefsson  <jas@extundo.com>
47296
47297         * m4/memxor.m4: New file.
47298
47299 2005-10-05  Simon Josefsson  <jas@extundo.com>
47300
47301         * lib/memxor.c (memxor): Fix compiler error.
47302
47303         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
47304         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
47305
47306         * lib/memxor.h, lib/memxor.c: New files.
47307
47308         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
47309         we assume all systems have it, suggested by Jim Meyering
47310         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
47311         any systems lack sys/socket.h; mingw32 is known to lack it, but we
47312         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
47313         same reasons.
47314
47315 2005-10-05  Simon Josefsson  <jas@extundo.com>
47316
47317         * config/srclist.txt: Add glibc bug 1423 for md5.h.
47318
47319 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47320
47321         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
47322         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
47323         needed, since the source code now assumes these .h files.
47324
47325 2005-10-05  Derek Price  <derek@ximbiot.com>
47326
47327         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
47328
47329 2005-10-05  Bruno Haible  <bruno@clisp.org>
47330
47331         * modules/stdint (License): Change to LGPL.
47332
47333 2005-10-04  Simon Josefsson  <jas@extundo.com>
47334
47335         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
47336         D. Baushke" <mdb@gnu.org>.
47337
47338 2005-10-04  Bruno Haible  <bruno@clisp.org>
47339
47340         * lib/verify.h (verify_true): Provide alternative definition for C++.
47341
47342 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
47343
47344         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
47345         (SSIZE_MAX): New macro, if not already defined.
47346         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
47347         than 2 GiB.
47348
47349 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47350
47351         Sync from coreutils.
47352         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
47353         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
47354         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
47355         ULLONG_MAX doesn't work with 2.7.2.1.
47356
47357 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47358
47359         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
47360         From Ben Pfaff.
47361
47362         * modules/exclude (Depends-on): Depend on verify.
47363         * modules/strtoimax (Depends-on): Likewise.
47364         * modules/utimecmp (Depends-on): Likewise.
47365
47366 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47367
47368         * lib/exclude.c: Include verify.h.
47369         (verify): Remove.  All callers changed to use verify.h's version.
47370         * lib/strtoimax.c: Likewise.
47371         * lib/utimecmp.c: Likewis.e
47372
47373         Sync from coreutils.
47374         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
47375         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
47376         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
47377         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
47378         bother returning ENOSYS if settimeofday or stime fails; just let
47379         them return whatever errno they want to return.
47380         * lib/utimens.c: Include unistd.h, for dup2.
47381         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
47382         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
47383
47384 2005-10-02  Jim Meyering  <jim@meyering.net>
47385
47386         Sync from coreutils.
47387         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
47388         from glibc-2.2.5 that fails for read-only files.
47389
47390 2005-10-02  Jim Meyering  <jim@meyering.net>
47391
47392         Sync from coreutils.
47393         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
47394         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
47395         `#if HAVE_CONFIG_H'.
47396         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
47397         Remove AT_FDCWD test.
47398         Do not consume the fd unless successful.
47399         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
47400         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
47401         block, so that we don't even try to compile it if settimeofday is
47402         available.  This works around a compilation failure on OSF1 V5.1,
47403         due to stime requiring a `long int*' while tv_sec is `int'.
47404
47405 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
47406
47407         Sync from coreutils.
47408         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
47409         against `yes', rather than just testing for nonempty.
47410
47411 2005-10-01  Simon Josefsson  <jas@extundo.com>
47412
47413         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
47414         and Darwin.
47415
47416         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
47417         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
47418         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
47419         freeaddrinfo and gai_strerror are declared by the POSIX headers.
47420         Check if struct addrinfo is declared.
47421
47422 2005-10-01  Simon Josefsson  <jas@extundo.com>
47423
47424         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
47425         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
47426         AI_* and EAI_* definitions.  Protect function declarations.
47427
47428 2005-10-01  Jim Meyering  <jim@meyering.net>
47429
47430         Sync from coreutils.
47431
47432         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
47433         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
47434         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
47435         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47436         in the inet and nsl libraries.  Required on Solaris 5.7.
47437
47438 2005-10-01  Jim Meyering  <jim@meyering.net>
47439
47440         Sync from coreutils.
47441         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47442         in the inet and nsl libraries.  Required on Solaris 5.7.
47443
47444 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
47445
47446         * lib/getdelim.c (getdelim): Remove unused variables.
47447
47448 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47449
47450         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
47451         so that the code works even with ancient cpp.  Portability problem
47452         with GCC 2.7.2.1 reported by Thomas M.Ott.
47453
47454 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47455
47456         * modules/regex (Depends-on): Add strcase.
47457
47458         * modules/gethostname (Licence): Change from GPL to LGPL, since
47459         gethostname.c is a trivial implementation of a standard library
47460         function.
47461         * modules/poll (License): Change from GPL to LGPL, since it's
47462         derived from LGPL code.
47463
47464 2005-09-27  Jim Meyering  <jim@meyering.net>
47465
47466         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
47467         HAVE_CONFIG_H.
47468
47469         * lib/intprops.h (signed_type_or_expr__): Define.
47470         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
47471         for unsigned types.
47472
47473 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47474
47475         * lib/verify.h (verify_expr): Remove, replacing with:
47476         (verify_true): New macro that returns true instead of void.
47477         (verify_type__): Remove.
47478         (verify): Use verify_true rather than verify_type__.
47479
47480 2005-09-26  Bruno Haible  <bruno@clisp.org>
47481
47482         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
47483         is necessary.
47484         (lib_SOURCES): Remove mbchar.c.
47485         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
47486         (Files): Add m4/mbrtowc.m4.
47487         * modules/mbiter: Likewise.
47488         * modules/mbuiter: Likewise.
47489
47490 2005-09-26  Bruno Haible  <bruno@clisp.org>
47491
47492         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
47493         compile mbchar.c if they are not both present.
47494         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
47495         * m4/mbiter.m4 (gl_MBITER): Likewise.
47496         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
47497         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
47498         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
47499
47500 2005-09-25  Jim Meyering  <jim@meyering.net>
47501
47502         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
47503         also uses socklen_t.
47504
47505 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47506
47507         * lib/utimens.c (ENOSYS): Define if not already defined.
47508         (futimens): Support having a null PATH if the file descriptor
47509         is nonnegative.
47510
47511         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
47512         Remove.
47513         (__attribute): Define to empty unless GCC 3.1 or later.
47514         This works around a core dump on OpenBSD 3.4, which has GCC
47515         2.95.3, which dumps core when given __attribute__(()).  It also
47516         simplifies other tests, since we really don't want to bother with
47517         worrying about which ancient version of GCC supported what.
47518         Original problem reported by Yoann Vandoorselaere, with part of
47519         the fix suggested by Derek Price.
47520
47521 2005-09-24  Jim Meyering  <jim@meyering.net>
47522
47523         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
47524         so we can once again use a positive bitfield width of 1 -- now we
47525         don't have to explain why we were using a bitfield width of 2.
47526
47527 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47528
47529         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
47530         and similarly for the other external symbols.  Problem reported
47531         by James Gallager.
47532
47533         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
47534         bug reported by Jim Meyering.
47535
47536         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
47537         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
47538         not needed, since socklen is a prerequisite module.
47539
47540 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47541
47542         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
47543         Problem reported by Eric Blake.
47544         (getaddrinfo): Initialize se so that it's not garbage.
47545         Redo internal storage allocation so that it doesn't make unportable
47546         assumptions about alignment.
47547         Fix a memory leak.
47548
47549         * lib/utimens.c (futimens): Use futimesat if available.
47550         Prefer it to futimes since it doesn't have the futimes bug.
47551
47552         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
47553         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
47554         Instead, declare a function that returns a pointer to an array,
47555         and use verify_type__ to declare the size of the array.
47556         Problem and germ of a solution reported by Bruno Haible.
47557         (verify_type__): Use 2, not 1, for bitfield size, to avoid
47558         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
47559
47560 2005-09-23  Jim Meyering  <jim@meyering.net>
47561
47562         Sync from coreutils.
47563         Correct build failure (socklen_t not defined) on at least
47564         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
47565         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
47566
47567 2005-09-23  Jim Meyering  <jim@meyering.net>
47568
47569         * modules/getaddrinfo (Depends-on): Add socklen.
47570
47571 2005-09-23  Bruno Haible  <bruno@clisp.org>
47572
47573         * tests/test-verify.c: New file.
47574
47575 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47576
47577         Sync from coreutils.
47578
47579         * modules/argmatch (Depends-on): Add verify.
47580         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
47581         unistd-safer.
47582         * modules/save-cwd (Depends-on): Likewise.
47583
47584         * modules/openat (Files): Add lib/openat-die.c.
47585         (Depends-on): Remove error, exitfail.
47586         Add dirname.
47587
47588         * modules/verify: New file.
47589         * MODULES.html.sh (Diagnostics <assert.h>): New section,
47590         with "verify" module.
47591
47592 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47593
47594         Sync from coreutils.
47595
47596         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
47597         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
47598         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
47599         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
47600         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
47601         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
47602         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
47603         Don't bother checking for string.h, stdlib.h, unistd.h.
47604         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
47605         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
47606         module's job.
47607         * m4/jm-macros.m4 (gl_MACROS): Likewise.
47608         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
47609
47610         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
47611         (gl_GETDATE): Use it.
47612
47613         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
47614
47615 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47616
47617         Sync from coreutils.
47618
47619         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
47620         stat-time.h.
47621         * lib/argmatch.h: Include verify.h
47622         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
47623         (ARGMATCH_ASSERT): Remove; unused.
47624         * lib/canonicalize.c: Assume STDC_HEADERS.
47625         * lib/exclude.c: Include "strcase.h".
47626         * lib/regex_internal.h [!defined _LIBC]: Likewise.
47627         * lib/getusershell.c: Include stdio--.h rather than stdio.h
47628         and stdio-safer.h.
47629         (getusershell): Call fopen, not fopen_safer.
47630         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
47631         Do not include unistd-safer.h.
47632         (save_cwd): Don't call fd_safer; no longer needed
47633         now that we include fcntl--.h.
47634
47635         * lib/getdate.y (relative_time): New type.
47636         (RELATIVE_TIME_0): New constant.
47637         (parser_control): Use relative_time instead of doing it ourselves.
47638         (%union): Add new relative_time rel member.
47639         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
47640         Now typeless.
47641         (relunit, relunit_snumber): Now of type rel.
47642         (zone, rel, relunit, get_date): Adjust to above changes.
47643
47644         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
47645         Do not include unistd-safer.h.
47646         (getloadavg): Don't call fd_safer; no longer needed
47647         now that we include fcntl--.h.
47648
47649         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
47650         (make_dir_parents): Treat ENOSYS like EEXIST.
47651
47652         Improve quality of diagnostics on restore_cwd failure.
47653         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
47654         (make_dir_parents): Last arg is now int * (for errno), not bool *.
47655         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
47656         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
47657         each time through the loop.  Do not diagnose restore_cwd failure;
47658         that is the caller's job (and perhaps the caller does not care).
47659
47660         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
47661         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
47662         If the file already exists but is not a directory, don't bother
47663         to try to make its parents.
47664         Close potential file descriptor leak if we can't chdir("/") (!).
47665         Don't always return true if chdir($PWD) fails; return true only
47666         if the requested action was done successfully (except for the
47667         chdir($PWD)).
47668         Don't log final directory unless we actually made it.
47669         Refactor to avoid duplicate code to fix up permissions.
47670         Don't attempt to fix up parent permissions if chdir($PWD) fails.
47671
47672         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
47673         to make it a bit faster and (I hope) clearer.
47674         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
47675         Fix bug in formats like %2N.
47676
47677         * lib/verify.h: New file.
47678
47679 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47680
47681         Sync from coreutils.
47682         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
47683
47684 2005-09-22  Jim Meyering  <jim@meyering.net>
47685
47686         Sync from coreutils.
47687
47688         * m4/lstat.m4 (gl_FUNC_LSTAT):
47689         Use AC_LIBSOURCES to require lstat.c and lstat.h.
47690         Remove obsolete comment.
47691         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
47692         * m4/xstrtod.m4: Likewise.
47693
47694         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
47695
47696 2005-09-22  Jim Meyering  <jim@meyering.net>
47697
47698         Sync from coreutils.
47699
47700         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
47701
47702         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
47703         the .tm_year member, since otherwise gcc-4.0 would now warn about
47704         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
47705
47706         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
47707         order to avoid an unsuppressible warning from gcc on 64-bit systems.
47708
47709         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
47710         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
47711         when run in a time zone for which daylight savings time is in effect
47712         for the starting date.
47713
47714         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
47715         stop us from restricting permissions of just-created absolute-named
47716         directories.
47717         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
47718         to restore initial working directory.
47719         * lib/mkdir-p.c (make_dir_parents): New parameter:
47720         different_working_dir, to tell caller if/when we change the working
47721         directory and are unable to return to the initial one.
47722         * lib/mkdir-p.h (make_dir_parents): Update prototype.
47723         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
47724         `return false'.  This fixes a bug introduced on 2004-07-30.
47725
47726         * lib/openat.c (fdopendir): Be sure to close the supplied
47727         file descriptor before returning.  This makes our replacement
47728         implementation a little closer to Solaris's, where fdopendir
47729         ties the file descriptor to the returned DIR* pointer.
47730         * lib/openat.c (unlinkat): New function.
47731         * lib/openat.h (unlinkat): Add prototype.
47732         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
47733         (openat_restore_fail): Rename from openat_restore_die.
47734         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
47735
47736         Provide an alternative to exiting immediately upon save_cwd or
47737         restore_cwd failure.  Now, an application can arrange e.g.,
47738         to perform a longjump in that case.
47739         * lib/openat.c: Include dirname.h.
47740         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
47741         (rpl_openat, fdopendir, fstatat): Call openat_save_die
47742         and openat_restore_die rather than calling error directly.
47743         Don't include "error.h" or "exitfail.h"; they're no longer needed.
47744
47745         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
47746         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
47747         define.
47748
47749         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
47750         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
47751                             int utc, int nanoseconds);
47752         Background:
47753         date should not have to allocate a megabyte of virtual memory to
47754         handle a format argument like +%1048575T.  When implemented with
47755         strftime, it must allocate such a buffer, use strftime to fill it
47756         in, print it, then free it.
47757         With fprintftime, it simply prints everything and exits.
47758         With no need for memory allocation, that's one fewer way to fail.
47759         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
47760         optional field width, not before, so we accept %9:z, not %:9z.
47761         (my_strftime): Be sure to use L_('x') for literals.
47762
47763         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
47764         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
47765         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
47766         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
47767         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
47768         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
47769         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
47770         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
47771         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
47772         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
47773         * lib/xgethostname.c, lib/xreadlink.c:
47774         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
47775
47776         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
47777         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
47778         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
47779         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
47780         and don't include <sys/file.h>).
47781
47782 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
47783
47784         Sync from coreutils.
47785
47786         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
47787         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
47788         [!LDAV_DONE]: Avoid unused variable warning.
47789
47790 2005-09-21  Bruno Haible  <bruno@clisp.org>
47791
47792         * lib/unicodeio.h (unicode_to_mb): New declaration.
47793
47794 2005-09-20  Derek Price  <derek@ximbiot.com>
47795
47796         * lib/getaddrinfo.c: Don't include <netdb.h> included from
47797         getaddrinfo.h.
47798
47799 2005-09-20  Bruno Haible  <bruno@clisp.org>
47800
47801         * gnulib-tool: Remove trailing slashes from the values specified for
47802         --source-base, --m4-base, --tests-base, --aux-dir.
47803         Suggested by Simon Josefsson <jas@extundo.com>.
47804
47805 2005-09-20  Bruno Haible  <bruno@clisp.org>
47806
47807         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
47808         func_modules_to_filelist, func_import, func_create_testdir): Make all
47809         sorting results locale-independent, so that gnulib-cache.m4 doesn't
47810         change when gnulib-tool is invoked in a different locale.
47811
47812 2005-09-19  Simon Josefsson  <jas@extundo.com>
47813
47814         * m4/socklen.m4: Fix typo.
47815
47816 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47817
47818         Use a consistent style for including <config.h>.
47819         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
47820         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
47821         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
47822         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
47823         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
47824         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
47825         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
47826         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
47827         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
47828         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
47829         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
47830         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
47831         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
47832         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
47833         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
47834         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
47835         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
47836         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
47837         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
47838         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
47839         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
47840         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
47841         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
47842         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
47843         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
47844         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
47845         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
47846         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
47847         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
47848         lib/xstrtoumax.c, lib/yesno.c:
47849         Standardize inclusion of config.h.
47850         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
47851         lib/inttostr.h:  Removed inclusion of config.h from header files.
47852         * lib/inttostr.c:  Adjusted in-tree users.
47853         * lib/timespec.h: Remove superfluous warning to include config.h.
47854         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
47855         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
47856         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
47857         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
47858         config.h with HAVE_CONFIG_H.
47859
47860 2005-09-19  Jim Meyering  <jim@meyering.net>
47861
47862         * modules/pathmax (License): Change to LGPL.
47863
47864 2005-09-19  Derek Price  <derek@ximbiot.com>
47865
47866         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
47867
47868 2005-09-19  Bruno Haible  <bruno@clisp.org>
47869
47870         * gnulib-tool (import): Provide default for --tests-base.
47871
47872 2005-09-19  Bruno Haible  <bruno@clisp.org>
47873
47874         * doc/quote.texi: New file, extracted from gnulib.texi.
47875         * doc/ctime.texi: New file, extracted from gnulib.texi.
47876         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
47877         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
47878         * doc/gnulib.texi: Include them.
47879
47880 2005-09-18  Bruno Haible  <bruno@clisp.org>
47881
47882         Portability fix.
47883         * gnulib-tool (func_readlink): New function.
47884         (func_ln_if_changed): Use it.
47885
47886 2005-09-18  Bruno Haible  <bruno@clisp.org>
47887
47888         * gnulib-tool: Support --with-tests also with --import.
47889         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
47890         (func_import): Use variables $testsbase and $inctests. Emit a
47891         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
47892         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
47893         SUBDIRS += $testsdir.
47894         (func_create_testdir): Update.
47895
47896 2005-09-18  Bruno Haible  <bruno@clisp.org>
47897
47898         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
47899         instead of $dry_run.
47900         (func_cp_if_changed, func_mv_if_changed): Remove functions.
47901         (func_ln_if_changed): Don't handle dry-run here.
47902         (func_import): In dry-run mode, detect more precisely which actions
47903         would be performed, and don't use "...ing" verbs.
47904
47905 2005-09-18  Bruno Haible  <bruno@clisp.org>
47906
47907         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
47908         (func_import): Use join on two temporary files instead of three nested
47909         loops, in order to determine which files are new or old.
47910
47911 2005-09-18  Bruno Haible  <bruno@clisp.org>
47912
47913         * gnulib-tool (func_import): Comment out code that spits out the
47914         new files with --dry-run.
47915
47916 2005-09-18  Bruno Haible  <bruno@clisp.org>
47917
47918         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
47919
47920 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47921
47922         * lib/stat-time.h: New file.
47923         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
47924         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
47925         in a different way.
47926         (timespec_cmp): New function.
47927         * lib/utimecmp.c: Include stat-time.h.
47928         (SYSCALL_RESOLUTION): Depend on whether various struct stat
47929         members exist, not on the obsolescent ST_MTIM_NSEC.
47930         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
47931
47932 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47933
47934         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
47935
47936 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47937
47938         * MODULES.html.sh (File system functions): Add stat-time.
47939         * modules/stat-time: New file.
47940         * modules/timespec (Files): Remove m4/st_mtim.m4; this
47941         is now done in a different way, by the stat-time module.
47942         * modules/utimecmp (Depends-on): Add stat-time.
47943
47944 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47945
47946         * m4/st_mtim.m4: Remove.  Superseded by...
47947         * m4/stat-time.m4: New file.
47948         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
47949         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
47950
47951 2005-09-15  Derek Price  <derek@ximbiot.com>
47952
47953         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
47954
47955 2005-09-15  Derek Price  <derek@ximbiot.com>
47956
47957         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
47958         * lib/regex_internal.c: Ditto, using this...
47959         (__GNUC_PREREQ): ...new macro.
47960         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
47961         using...
47962         (__GNUC_PREREQ): ...this new macro.
47963
47964         * lib/strstr.h: Include string.h. Define strstr as a macro here.
47965
47966 2005-09-15  Derek Price  <derek@ximbiot.com>
47967             Paul Eggert  <eggert@cs.ucla.edu>
47968
47969         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
47970         changes, consolidating in...
47971         * lib/regex_internal.h: ...this file.
47972
47973 2005-09-13  Jim Meyering  <jim@meyering.net>
47974
47975         * lib/canon-host.c: Filter through gnu indent and reword comments
47976         slightly.
47977         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
47978
47979 2005-09-13  Derek Price  <derek@ximbiot.com>
47980
47981         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
47982         failure.
47983         Reported by Jim Meyering  <jim@meyering.net>.
47984
47985 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47986
47987         * lib/base64.c: Typo.
47988         (base64_encode): Put b64str in initialized data section.
47989
47990 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
47991
47992         Merge glibc and coreutils changes into gnulib, plus a few
47993         extra fixes.
47994         * lib/md5.c: Use #error rather than a string.
47995         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
47996         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
47997         (__attribute__): Define to empty for non recent-GCC.
47998         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
47999         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48000         Renamed from their non-__ counterparts, with new macros replacing
48001         them if not _LIBC.  Add __THROW attribute.
48002         (rol): Remove.
48003         (struct md5_ctx): Align buffer if using GCC.
48004         * lib/sha1.h (struct sha1_ctx): Likewise.
48005         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
48006         The old name was backwards.
48007         (NOTSWAP): Remove; not used.
48008         (rol): New macro, moved here from md5.h.
48009         (sha1_process_block): Remove a FIXME that doesn't make sense.
48010
48011 2005-09-12  Derek Price  <derek@ximbiot.com>
48012
48013         Return usable errors from canon-host.
48014         * lib/canon-host.h: New file.
48015         * lib/canon-host.c (canon_host): Wrap...
48016         (canon_host_r): ...this new function, which now relies exclusively on
48017         getaddrinfo.
48018         (ch_strerror): New function.
48019         (last_cherror): New global.
48020         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48021         interface.
48022         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
48023         void *.
48024         (freeaddrinfo): Free ai->ai_canonname when set.
48025
48026 2005-09-12  Derek Price  <derek@ximbiot.com>
48027
48028         Make canon-host require getaddrinfo.
48029         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48030         AC_LIBSOURCE canon-host.h.  Call...
48031         (gl_PREREQ_CANON_HOST): ...this new function, which requires
48032         gl_GETADDRINFO.
48033         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48034
48035 2005-09-12  Derek Price  <derek@ximbiot.com>
48036
48037         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
48038         LGPL.
48039         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
48040
48041 2005-09-12  Derek Price  <derek@ximbiot.com>
48042
48043         * lib/gai_strerror.c: Include config.h when available.  Include
48044         getaddrinfo.h before other headers to test interface.
48045         Reported by Larry Jones <lawrence.jones@ugs.com>.
48046
48047 2005-09-12  Derek Price  <derek@ximbiot.com>
48048             Paul Eggert  <eggert@cs.ucla.edu>
48049
48050         * modules/glob (Files): Add glob-libc.h.
48051
48052 2005-09-12  Derek Price  <derek@ximbiot.com>
48053             Paul Eggert  <eggert@cs.ucla.edu>
48054
48055         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48056         glob_.h, glob-libc.h.
48057         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48058
48059 2005-09-12  Derek Price  <derek@ximbiot.com>
48060             Paul Eggert  <eggert@cs.ucla.edu>
48061
48062         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
48063         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48064         protecting things that should be done only in gnulib contexts.
48065         * lib/glob_.h: New file, containing only the glob things needed for
48066         gnulib.
48067         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
48068         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48069         (glob, globfree, glob_pattern_p): Now defined simply in terms of
48070         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48071         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48072         and to respect the namespace rules better.
48073
48074 2005-09-08  Simon Josefsson  <jas@extundo.com>
48075
48076         * modules/socklen: New file.
48077
48078 2005-09-08  Simon Josefsson  <jas@extundo.com>
48079
48080         * m4/socklen.m4: New file.
48081
48082 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48083
48084         * modules/utimens (Files): Add m4/utimbuf.m4, since
48085         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48086         Reported by Sergey Poznyakoff.
48087
48088 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48089
48090         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48091         definitions, since that's the preferred style in glibc.
48092         Fix a minor spacing issue, and update copyright notice to match
48093         glibc's.
48094
48095 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48096
48097         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48098
48099 2005-09-06  Simon Josefsson  <jas@extundo.com>
48100
48101         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48102         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
48103
48104 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48105
48106         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48107         warning.
48108
48109 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48110
48111         * config/srclist.txt: Add glibc bug 1302.
48112
48113 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48114
48115         Change bitset word type from unsigned int to unsigned long int,
48116         as this has better performance on typical 64-bit hosts.
48117         Port bitset code to hosts with unusual word sizes.
48118         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48119         (build_collating_symbol):
48120         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48121         argument is a bitset.  This is merely a style issue, but it makes
48122         it clearer that an entire array is expected.
48123         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48124         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48125         Port to the case where bitset_word is not the same as unsigned int.
48126         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48127         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48128         Likewise.
48129         * lib/regexec.c (check_dst_limits_calc_pos_1,
48130         check_subexp_matching_top):
48131         (build_trtable, group_nodes_into_DFAstates):
48132         Likewise.
48133         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48134         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48135         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48136         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48137         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48138         * lib/regcomp.c (optimize_subexps, lower_subexp):
48139         Work even if bitset_word has holes in its bitwise representation.
48140         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48141         * lib/regexec.c (check_dst_limits_calc_pos_1,
48142         check_subexp_matching_top):
48143         Likewise.
48144         * lib/regex_internal.c (re_string_reconstruct):
48145         Don't assume UCHAR_MAX == 255.
48146         * lib/regex_internal.h (bitset_set_all): Likewise.
48147         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48148         All uses changed.
48149         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
48150         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48151         All uses changed.
48152         (BITSET_WORD_MAX): New macro.
48153         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48154         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
48155         (bitset_empty, bitset_copy):
48156         Prefer sizeof (bitset) to multiplying it out ourselves.
48157         (bitset_not_merge): Remove; unused.
48158         (bitset_contain): Return bool, not unsigned int with one bit on.
48159         All callers changed.
48160         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48161         alignment than re_node_set; do this by defining a new internal
48162         type struct dests_alloc and using it to allocate memory.
48163
48164 2005-09-05  Bruno Haible  <bruno@clisp.org>
48165
48166         * gnulib-tool (func_import): Fix comparison in handling of symbolic
48167         links.
48168
48169 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
48170
48171         * modules/size_max (Makefile.am): Add size_max.h
48172
48173 2005-09-04  Derek Price  <derek@ximbiot.com>
48174
48175         * gnulib-tool (func_import): Fix reversed $symbolic logic.
48176
48177 2005-09-03  Simon Josefsson  <jas@extundo.com>
48178
48179         * gnulib-tool: Fix typo.
48180
48181 2005-09-03  Simon Josefsson  <jas@extundo.com>
48182
48183         * config/srclist.txt: Add glibc bug 1293.
48184
48185 2005-09-03  Derek Price  <derek@ximbiot.com>
48186
48187         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48188         From Larry Jones <lawrence.jones@ugs.com>.
48189
48190 2005-09-02  Simon Josefsson  <jas@extundo.com>
48191
48192         * modules/socklen: New file.
48193
48194 2005-09-02  Simon Josefsson  <jas@extundo.com>
48195
48196         * modules/havelib: New module.
48197
48198         * modules/gettext, modules/iconv, modules/lock, modules/readline:
48199         Use havelib.
48200
48201 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48202
48203         Check for arithmetic overflow when calculating sizes, to prevent
48204         some buffer-overflow issues.  These patches are conservative, in the
48205         sense that when I couldn't determine whether an overflow was possible,
48206         I inserted a run-time check.
48207         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48208         macros.
48209         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48210         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48211         (re_xnrealloc, re_x2nrealloc): New inline functions.
48212         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48213         parse_bracket_exp):
48214         (build_equiv_class, build_charclass): Check for arithmetic overflow
48215         in size expression calculations.
48216         * lib/regex_internal.c (re_string_realloc_buffers):
48217         (build_wcs_upper_buffer, re_node_set_add_intersect):
48218         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48219         (re_dfa_add_node, register_state): Likewise.
48220         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48221         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48222         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48223         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48224
48225 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48226
48227         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48228         m4/ulonglong.m4.  Problem reported by Martin Lambers.
48229
48230 2005-09-02  Bruno Haible  <bruno@clisp.org>
48231
48232         Support for lib vs. lib64 distinction on biarch platforms.
48233         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48234         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48235         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48236
48237 2005-09-02  Bruno Haible  <bruno@clisp.org>
48238
48239         * gnulib-tool (import): In the other first-use case, provide defaults
48240         as well.
48241
48242 2005-09-02  Bruno Haible  <bruno@clisp.org>
48243
48244         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48245         patches not yet found in the latest gettext release.
48246
48247 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48248
48249         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48250         to avoid a collision with bits/local_lim.h in glibc.
48251         All uses changed.  Problem reported by Dmitry V. Levin in
48252         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48253
48254         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48255         bugs in int versus size_t comparisons.
48256         (re_string_context_at): Fix bug where the code assumed that
48257         Idx is signed.
48258
48259         Use bool where appropriate.
48260         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48261         All callers changed.
48262         (calc_eclosure_iter): Likewise, for ROOT arg.
48263         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48264         (build_charclass_op): Likewise, for NON_MATCH arg.
48265         * lib/regex_internal.c (re_string_allocate, re_string_construct):
48266         (re_string_construct_common): Likewise, for ICASE arg.
48267         * lib/regexec.c (re_search_2_stub, re_search_stub):
48268         Likewise, for RET_LEN arg.
48269         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48270         (set_regs): Likewise, for FL_BACKTRACK arg.
48271         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48272         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48273         (calc_eclosure_iter, parse_bracket_exp):
48274         Use bool for internal variables that are booleans.
48275         * lib/regexec.c (re_search_internal, check_matching,
48276         proceed_next_node):
48277         (set_regs, build_sifted_states, sift_states_bkref):
48278         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48279         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48280         (find_collation_sequence_value):
48281         Likewise.
48282         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48283         (re_node_set_compare):
48284         Return bool, not int. All callers changed.
48285         * lib/regexec.c (check_halt_node_context, check_dst_limits):
48286         (build_trtable, check_node_accept): Likewise.
48287         * lib/regex_internal.h: Include stdbool.h.
48288
48289         Fix bugs uncovered when converting to bool.
48290         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48291         failure instead of charging ahead blindly.
48292         * lib/regex_internal.c (register_state): Likewise.
48293         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
48294         for freeing internal storage.
48295         (group_nodes_into_DFA_states): Use unsigned int, not int, for
48296         bitset pieces used as boolean, to avoid undefined behavior
48297         on hosts that do int overflow checking.
48298
48299 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48300
48301         * config/srclist.txt: Add glibc bugs 1285-1287.
48302
48303 2005-09-01  Jim Meyering  <jim@meyering.net>
48304
48305         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
48306         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
48307         Require gl_STAT_MACROS, too.
48308
48309 2005-09-01  Bruno Haible  <bruno@clisp.org>
48310
48311         * gnulib-tool (import): In the first-use case, provide defaults.
48312
48313 2005-09-01  Bruno Haible  <bruno@clisp.org>
48314
48315         * gnulib-tool (func_import): Remove the .tmp files.
48316
48317 2005-09-01  Bruno Haible  <bruno@clisp.org>
48318
48319         * gnulib-tool (func_import): Fix handling of symbolic links.
48320
48321 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48322
48323         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
48324         old glibc regex code mishandles strings longer than 2**31 bytes.
48325         This patch fixes this when the regex code is used in gnulib
48326         (i.e., outside glibc).
48327
48328         This patch should not affect the use of the regex code inside
48329         glibc.  No doubt this problem also needs to be handled for glibc
48330         as well, but the result will be an incompatible change to the
48331         glibc ABI, and the old ABI will have to be supported too.  That
48332         can be the the subject for another patch.
48333
48334         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
48335         governing whether the rest of this patch is active.  By default,
48336         the macro is disabled and the patch has no effect.
48337         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
48338         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
48339         (struct re_pattern_buffer, re_search, re_search_2, re_match):
48340         (re_match_2, re_set_registers): Use the new types.
48341         * lib/regex_internal.h (Idx, re_hashval_t): New types.
48342         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
48343         New macros.
48344         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
48345         (re_string_context_at, bin_tree_t, re_dfastate_t):
48346         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
48347         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
48348         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
48349         (re_string_char_size_at, re_string_wchar_at):
48350         (re_string_elem_size_at):
48351         Use the new types and macros to port to 64-bit hosts.
48352         Use unsigned types for internal values, so that the code
48353         mostly works even for arrays larger than SSIZE_MAX.
48354         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
48355         (search_duplicated_node, calc_eclosure_iter, fetch_number):
48356         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
48357         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
48358         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
48359         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
48360         (calc_inveclosure, parse_dup_op, build_range_exp):
48361         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
48362         (fetch_number, create_token_tree, mark_opt_subexp):
48363         Likewise.
48364         * lib/regex_internal.c (re_string_construct_common,
48365         create_ci_newstate):
48366         (create_cd_newstate, re_string_allocate, re_string_construct):
48367         (re_string_realloc_buffers, build_wcs_upper_buffer):
48368         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48369         (re_string_reconstruct, re_string_peek_byte_case):
48370         (re_string_fetch_byte_case, re_string_context_at):
48371         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48372         (re_node_set_init_copy, re_node_set_add_intersect):
48373         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48374         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48375         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48376         (re_acquire_state, re_acquire_state_context, register_state):
48377         Likewise.
48378         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
48379         search_cur_bkref_entry):
48380         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
48381         (re_search_internal, re_search_2_stub, re_search_stub)
48382         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
48383         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
48384         (update_cur_sifted_state, check_dst_limits):
48385         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48386         (check_subexp_limits, sift_states_bkref, merge_state_array):
48387         (check_subexp_matching_top, get_subexp, get_subexp_sub):
48388         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
48389         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48390         (expand_bkref_cache, check_node_accept_bytes):
48391         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
48392         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
48393         (acquire_init_state_context, check_halt_node_context):
48394         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
48395         (sift_states_backward, clean_state_log_if_needed):
48396         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
48397         (find_recover_state, transit_state_sb, transit_state_mb):
48398         (transit_state_bkref, build_trtable, match_ctx_clean):
48399         Likewise.
48400         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
48401         to work around an assumption that REG_MISSING is negative.
48402
48403         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
48404         (seek_collating_symbol_entry) [defined _LIBC]:
48405         (lookup_collation_sequence_value) [defined _LIBC]:
48406         (build_range_exp, build_collating_symbol) [defined _LIBC]:
48407         Use prototypes rather than old-style function definitions.
48408         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
48409         (transit_state_sb) [0]:
48410         (find_collation_sequence_value) [defined _LIBC]: Likewise.
48411
48412         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
48413         rm_eo.
48414
48415         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
48416         (optimize_subexps, lower_subexp):
48417         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
48418         since the signed shift might overflow.  Use 1u<<31 instead.
48419         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48420         Likewise.
48421         * lib/regexec.c (check_dst_limits_calc_pos_1,
48422         check_subexp_matching_top): Likewise.
48423
48424         * lib/regcomp.c (optimize_subexps, lower_subexp):
48425         Use CHAR_BIT rather than 8, for clarity.
48426         * lib/regexec.c (check_dst_limits_calc_pos_1):
48427         (check_subexp_matching_top): Likewise.
48428         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
48429         have to worry about portability issues when shifting it left.
48430         Remove no-longer-needed test for table_size > 0.
48431         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
48432         in a word, as the resulting behavior is undefined.
48433         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
48434         in one case, a <= should have been an <, and in another case the
48435         whole test was missing.
48436         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
48437         the standard name CHAR_BIT.
48438         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
48439         this is not true on one's complement and signed-magnitude hosts.
48440
48441         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
48442         next_last_offset.
48443         (struct re_dfa_t): Remove unused member states_alloc.
48444         * lib/regcomp.c (init_dfa): Don't initialize unused members.
48445
48446 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48447
48448         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
48449         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
48450         and large-file glibc and in 32-bit large-file Solaris.
48451
48452 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48453
48454         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
48455         lengths fit in regoff_t; this isn't true if regoff_t is the same
48456         width as size_t.
48457         * lib/regex.c (re_search_internal): 5th arg is LAST_START
48458         (= START + RANGE) instead of RANGE.  This avoids overflow
48459         problems when regoff_t is the same width as size_t.
48460         All callers changed.
48461         (re_search_2_stub): Check for overflow when adding the
48462         sizes of the two strings.
48463         (re_search_stub): Check for overflow when adding START
48464         to RANGE; if it occurs, substitute the extreme value.
48465
48466 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48467
48468         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
48469
48470 2005-08-31  Jim Meyering  <jim@meyering.net>
48471
48472         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
48473         a pointer-to-const.
48474         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
48475         (register_state): Likewise.
48476         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
48477         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48478         (group_nodes_into_DFAstates): Likewise.
48479
48480 2005-08-31  Jim Meyering  <jim@meyering.net>
48481
48482         * check-module: Add a FIXME comment.
48483
48484 2005-08-31  Eric Blake  <ebb9@byu.net>
48485
48486         * modules/unistd-safer (Files): Add unistd--.h.
48487         * modules/stdio-safer (Files): Add stdio--.h.
48488
48489 2005-08-31  Derek Price  <derek@ximbiot.com>
48490
48491         * lib/getdelim.c (getdelim): Return EOF on EOF.
48492         Reported by Larry Jones <lawrence.jones@ugs.com>.
48493
48494 2005-08-31  Bruno Haible  <bruno@clisp.org>
48495
48496         Avoid unnecessary diffs in the generated lib/Makefile.am.
48497         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
48498         the generated files.
48499         (func_import): Don't set cmd.
48500
48501 2005-08-31  Bruno Haible  <bruno@clisp.org>
48502
48503         * lib/strstr.c: Include <stddef.h>, for NULL.
48504         * lib/strcasestr.c: Likewise.
48505         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48506
48507 2005-08-31  Bruno Haible  <bruno@clisp.org>
48508
48509         * gnulib-tool: New option --macro-prefix.
48510         (func_import): Use macro_prefix.
48511         (import): Handle option --macro-prefix.
48512
48513 2005-08-31  Bruno Haible  <bruno@clisp.org>
48514
48515         * gnulib-tool (import): Rename most ac_* variables to cached_*.
48516         Also use new variables cached_lgpl, cached_libtool.
48517
48518 2005-08-31  Bruno Haible  <bruno@clisp.org>
48519
48520         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
48521         always instantiating them.
48522
48523 2005-08-31  Bruno Haible  <bruno@clisp.org>
48524
48525         * gnulib-tool (func_import): Read the previous cached settings
48526         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
48527         earlier added by gnulib but are now dropped. Warn when a gnulib file
48528         overwrites a non-gnulib file.
48529
48530 2005-08-31  Bruno Haible  <bruno@clisp.org>
48531
48532         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
48533         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
48534         projects that don't keep autogenerated files in CVS. Put into
48535         actioncmd only the specified modules, not the transitive closure.
48536
48537 2005-08-31  Bruno Haible  <bruno@clisp.org>
48538
48539         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
48540         Create directories that shall be filled.
48541         (import): Don't look for gl_* macros in configure.ac. Recurse across
48542         all directories containing a gnulib-cache.m4 files, if meaningful.
48543
48544 2005-08-31  Bruno Haible  <bruno@clisp.org>
48545
48546         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
48547         (import): Set seen_libtool when we see gl_LIBTOOL.
48548
48549 2005-08-31  Bruno Haible  <bruno@clisp.org>
48550
48551         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
48552         declaration macro definitions from generated gnulib.m4.
48553
48554 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
48555
48556         * lib/iconvme.h: Add prototype for iconv_alloc.
48557
48558 2005-08-29  Simon Josefsson  <jas@extundo.com>
48559
48560         * lib/iconvme.c: Fix errno.
48561
48562 2005-08-29  Bruno Haible  <bruno@clisp.org>
48563
48564         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
48565         that it works when the directory contains spaces.
48566
48567 2005-08-29  Bruno Haible  <bruno@clisp.org>
48568
48569         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
48570
48571 2005-08-29  Bruno Haible  <bruno@clisp.org>
48572
48573         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
48574         Emit more advice.
48575
48576 2005-08-29  Bruno Haible  <bruno@clisp.org>
48577         and Stepan Kasal  <kasal@ucw.cz>
48578
48579         * check-module: If more parameters are given, check each of them
48580         separately; add more exceptions, as noted by Jim Meyering.
48581         (check_module): New procedure.
48582         (%exempt_header): Now contains all exceptions.
48583
48584 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
48585
48586         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
48587
48588 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
48589
48590         * lib/iconvme.c: Split iconv_string into iconv_alloc.
48591
48592 2005-08-28  Bruno Haible  <bruno@clisp.org>
48593
48594         * m4/gnulib-tool.m4: New file.
48595
48596 2005-08-27  Jim Meyering  <jim@meyering.net>
48597
48598         * modules/unistd-safer (Files): Add pipe-safer.c.
48599         * modules/fcntl-safer (Files): Add creat-safer.c.
48600
48601 2005-08-27  Jim Meyering  <jim@meyering.net>
48602
48603         * m4/stdlib-safer.m4: New file.  From coreutils.
48604         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
48605         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
48606         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
48607         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
48608         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
48609
48610 2005-08-27  Jim Meyering  <jim@meyering.net>
48611
48612         * lib/fopen-safer.c: Merge minor changes from coreutils.
48613         * lib/dup-safer.c: Likewise.
48614         * lib/fd-safer.c: Likewise.
48615
48616         Merge from coreutils.
48617         * lib/stdio--.h: New file.
48618         * lib/stdlib--.h: New file.
48619         * lib/mkstemp-safer.c: New file.
48620
48621         GNU tar needs these.
48622         * lib/pipe-safer.c: New file.
48623         * lib/creat-safer.c: New file.
48624         * lib/fcntl--.h (creat): Define to creat_safer.
48625         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
48626         * lib/unistd--.h (pipe): Define to pipe_safer.
48627         * lib/unistd-safer.h: Declare pipe_safer.
48628
48629 2005-08-26  Simon Josefsson  <jas@extundo.com>
48630
48631         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
48632         Haible <bruno@clisp.org>.
48633
48634 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
48635
48636         * lib/regex_internal.h: Remove all references to
48637         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
48638         or better.
48639         (bitset_not, bitset_merge, bitset_not_merge):
48640         (bitset_mask, re_string_allocate, re_string_construct):
48641         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
48642         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
48643         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
48644         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
48645         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48646         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48647         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
48648         (re_acquire_state_context):
48649         Remove unnecessary forward decls.
48650         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
48651         Put __attribute at function definition,
48652         now that the function decl has been removed.
48653         * lib/regex_internal.c (re_string_peek_byte_case):
48654         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
48655         Likewise.
48656
48657 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
48658
48659         * m4/regex.m4: Add AC_PREREQ(2.50).
48660         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
48661
48662 2005-08-25  Simon Josefsson  <jas@extundo.com>
48663
48664         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
48665         __fsetlocking.
48666
48667 2005-08-25  Simon Josefsson  <jas@extundo.com>
48668
48669         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
48670         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
48671         GLIBC specific code.
48672
48673 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48674
48675         Make regex safe for g++.  This fixes one real bug (an "err"
48676         that should have been "*err").  g++ problem reported by
48677         Sam Steingold.
48678         * lib/regex_internal.h (re_calloc): New macro, consistent with
48679         re_malloc etc.  All callers of calloc changed to use re_calloc.
48680         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
48681         not int.  All callers changed.
48682         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
48683         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
48684         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
48685         (find_recover_state): Change "err" to "*err"; this fixes what
48686         appears to be a real bug.
48687         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
48688         versus int.
48689
48690 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48691
48692         * modules/regex (Depends-on): Add malloc, since the code
48693         assumes that !malloc(0) means failure.
48694
48695 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48696
48697         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
48698
48699         alloca modernization/simplification for regex.
48700         * lib/regex.c: Remove portability cruft for alloca.  This no longer
48701         needs to be at the start of the file, and can be moved into
48702         regex_internal.h and simplified.
48703         * lib/regex_internal.h: Include <alloca.h>.
48704         (__libc_use_alloca) [!defined _LIBC]: New macro.
48705         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
48706         now works outside glibc.
48707
48708 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48709
48710         * config/srclist.txt: Add glibc bugs 1241, 1245.
48711
48712 2005-08-25  Jim Meyering  <jim@meyering.net>
48713
48714         * lib/open-safer.c: Include <config.h>.
48715         Otherwise, we'd lose LARGEFILE support in any file using
48716         e.g. "fcntl--.h"
48717
48718 2005-08-25  Bruno Haible  <bruno@clisp.org>
48719
48720         * m4/minmax.m4: Require autoconf 2.52.
48721         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
48722         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
48723         alternatives of translit over the alphabet.
48724         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
48725
48726 2005-08-24  Simon Josefsson  <jas@extundo.com>
48727
48728         * tests/test-getpass.c: New file.
48729
48730 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
48733         for GNU regex features.
48734
48735 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48736
48737         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
48738         * lib/regex.h (regerror): Likewise.
48739
48740         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
48741         requires this.  (The code never needed it.)
48742
48743         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
48744         All uses of recently-renamed identifiers changed to use the new,
48745         POSIX-compliant names.  The code will build and run just fine
48746         without these changes, but it's better to eat our own dog food
48747         and use the standard-conforming names.
48748
48749         * lib/regex.h: Fix a multitude of POSIX name space violations.
48750         These changes have an effect only for programs that define
48751         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
48752         do not change anything for programs compiled in the normal way.
48753         Also, there is no effect on the ABI.
48754
48755         (_REGEX_SOURCE): New macro.
48756         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
48757         defined and _GNU_SOURCE is not; this fixes a name space violation.
48758
48759         Rename the following macros to obey POSIX requirements.
48760         The old names are still visible as macros if _REGEX_SOURCE is defined.
48761         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
48762         RE_BACKSLASH_ESCAPE_IN_LISTS.
48763         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
48764         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
48765         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
48766         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
48767         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
48768         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
48769         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
48770         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
48771         (REG_INTERVALS): renamed from RE_INTERVALS.
48772         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
48773         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
48774         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
48775         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
48776         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
48777         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
48778         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
48779         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
48780         RE_UNMATCHED_RIGHT_PAREN_ORD.
48781         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
48782         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
48783         (REG_DEBUG): renamed from RE_DEBUG.
48784         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
48785         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
48786         unusual, since we can't clash with the POSIX REG_ICASE.
48787         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
48788         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
48789         (REG_NO_SUB): renamed from RE_NO_SUB.
48790         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
48791         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
48792         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
48793         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
48794         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
48795         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
48796         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
48797         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
48798         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
48799         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
48800         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
48801         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
48802         RE_SYNTAX_POSIX_MINIMAL_BASIC.
48803         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
48804         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
48805         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
48806         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
48807         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
48808         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
48809         (REG_FIXED): Renamed from REGS_FIXED.
48810         (REG_NREGS): Renamed from RE_NREGS.
48811
48812         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
48813         of other REG_* macros, since POSIX says the user is allowed to
48814         #undef these macros selectively.
48815
48816         (reg_errcode_t): Update comment stating what other tables need
48817         to be consistent.
48818
48819         Rename the following enum values to obey POSIX requirements.
48820         The old names are still visible as macros.
48821         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
48822         is not defined, since GNU is supposed to be a superset of POSIX as
48823         much as possible, and since we want reg_errcode_t to be a signed
48824         type for implementation consistency.
48825         (_REG_NOERROR): Renamed from REG_NOERROR.
48826         (_REG_NOMATCH): Renamed from REG_NOMATCH.
48827         (_REG_BADPAT): Renamed from REG_BADPAT.
48828         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
48829         (_REG_ECTYPE): Renamed from REG_ECTYPE.
48830         (_REG_EESCAPE): Renamed from REG_EESCAPE.
48831         (_REG_ESUBREG): Renamed from REG_ESUBREG.
48832         (_REG_EBRACK): Renamed from REG_EBRACK.
48833         (_REG_EPAREN): Renamed from REG_EPAREN.
48834         (_REG_EBRACE): Renamed from REG_EBRACE.
48835         (_REG_BADBR): Renamed from REG_BADBR.
48836         (_REG_ERANGE): Renamed from REG_ERANGE.
48837         (_REG_ESPACE): Renamed from REG_ESPACE.
48838         (_REG_BADRPT): Renamed from REG_BADRPT.
48839         (_REG_EEND): Renamed from REG_EEND.
48840         (_REG_ESIZE): Renamed from REG_ESIZE.
48841         (_REG_ERPAREN): Renamed from REG_ERPAREN.
48842         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
48843         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
48844         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
48845         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
48846
48847         (_REG_RE_NAME, _REG_RM_NAME): New macros.
48848         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
48849         changed.  But support the old name if the new one is not defined
48850         and if _REGEX_SOURCE.
48851
48852         Change the following member names in struct re_pattern_buffer.
48853         The old names are still supported if !_REGEX_SOURCE.
48854         The new names are always supported, regardless of _REGEX_SOURCE.
48855         (re_buffer): Renamed from buffer.
48856         (re_allocated): Renamed from allocated.
48857         (re_used): Renamed from used.
48858         (re_syntax): Renamed from syntax.
48859         (re_fastmap): Renamed from fastmap.
48860         (re_translate): Renamed from translate.
48861         (re_can_be_null): Renamed from can_be_null.
48862         (re_regs_allocated): Renamed from regs_allocated.
48863         (re_fastmap_accurate): Renamed from fastmap_accurate.
48864         (re_no_sub): Renamed from no_sub.
48865         (re_not_bol): Renamed from not_bol.
48866         (re_not_eol): Renamed from not_eol.
48867         (re_newline_anchor): Renamed from newline_anchor.
48868
48869         Change the following member names in struct re_registers.
48870         The old names are still supported if !_REGEX_SOURCE.
48871         The new names are always supported, regardless of _REGEX_SOURCE.
48872         (rm_num_regs): Renamed from num_regs.
48873         (rm_start): Renamed from start.
48874         (rm_end): Renamed from end.
48875
48876         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
48877         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
48878         Prepend __ to parameter names.
48879
48880         Undo yesterday's changes.
48881
48882 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48883
48884         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
48885         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
48886         lib/regex.c.
48887
48888 2005-08-24  Jim Meyering  <jim@meyering.net>
48889
48890         Sync from coreutils.
48891         * m4/fcntl-safer.m4: New file.
48892
48893         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
48894         and object files for this module.
48895
48896 2005-08-24  Jim Meyering  <jim@meyering.net>
48897
48898         Sync from coreutils.
48899         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
48900
48901 2005-08-24  Jim Meyering  <jim@meyering.net>
48902
48903         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
48904         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
48905
48906 2005-08-24  Jim Meyering  <jim@meyering.net>
48907
48908         * modules/fcntl-safer: New module.
48909         * modules/fts (Depends-on): Add fcntl-safer.
48910         * MODULES.html.sh (File descriptor based Input/Output):
48911         Add fcntl-safer.
48912
48913 2005-08-24  Bruno Haible  <bruno@clisp.org>
48914
48915         Support for unit test modules.
48916         * modules/README: Mention tests modules.
48917         * modules/TEMPLATE-TESTS: New file.
48918         * gnulib-tool: New options --extract-tests-module, --with-tests and
48919         --tests-base (unused for the moment).
48920         (testsbase, inctests): New variables.
48921         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
48922         (func_verify_module): Exclude TEMPLATE-TESTS.
48923         (func_verify_nontests_module, func_verify_tests_module): New functions.
48924         (func_get_dependencies): Add implicit dependency for tests modules.
48925         (func_get_tests_module): New function.
48926         (func_modules_transitive_closure): When --with-tests was specified,
48927         include the unit tests as well, unless explicitly avoided.
48928         (func_emit_lib_Makefile_am): Ignore the tests modules here.
48929         (func_emit_tests_Makefile_am): New function.
48930         (func_create_testdir): When --with-tests was specified, emit a
48931         tests/ directory.
48932         * MODULES.html.sh (Future developments): Update.
48933
48934 2005-08-24  Bruno Haible  <bruno@clisp.org>
48935
48936         * modules/tls-tests: New file.
48937         * tests/test-tls.c: New file, from GNU gettext.
48938
48939 2005-08-24  Bruno Haible  <bruno@clisp.org>
48940
48941         * modules/lock-tests: New file.
48942         * tests/test-lock.c: New file, from GNU gettext.
48943
48944 2005-08-24  Bruno Haible  <bruno@clisp.org>
48945
48946         * lib/lock.h: Add multiple inclusion guard.
48947         * lib/tls.h: Add multiple inclusion guard.
48948
48949 2005-08-24  Bruno Haible  <bruno@clisp.org>
48950
48951         * gnulib-tool: Add support for the --aux-dir option to
48952         --create-testdir, --create-megatestdir, --test, --megatest.
48953         (func_create_testdir, func_create_megatestdir): Optionally emit a
48954         AC_CONFIG_AUX_DIR directive.
48955         (create-testdir, create-megatestdir, test, megatest): Provide a
48956         default value for $auxdir.
48957
48958 2005-08-24  Bruno Haible  <bruno@clisp.org>
48959
48960         * gnulib-tool (import): Use compound statement instead of subshell
48961         where possible.
48962
48963 2005-08-24  Bruno Haible  <bruno@clisp.org>
48964
48965         * gnulib-tool (import): Change --aux-dir default to "build-aux".
48966
48967 2005-08-24  Bruno Haible  <bruno@clisp.org>
48968
48969         * gnulib-tool (func_version): Update.
48970
48971 2005-08-24  Bruno Haible  <bruno@clisp.org>
48972
48973         * gnulib-tool (func_import, func_create_testdir,
48974         func_create_megatestdir): Quote all autoconf macro arguments.
48975
48976 2005-08-24  Bruno Haible  <bruno@clisp.org>
48977
48978         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
48979         option --force, because --force causes the aclocal.m4 of each
48980         subdirectory to be newer than the corresponding config.h.in.
48981
48982 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48983
48984         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
48985         All contents moved to gl_REGEX.
48986         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
48987         assume that it does.
48988
48989 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48990
48991         * lib/regex.h (REG_NOSYS)
48992         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
48993         Define, since POSIX requires it as of 2001.
48994         (_REG_ENOSYS)
48995         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
48996         New private symbol, used to keep the enum signed in all cases.
48997         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
48998         Youngman in
48999         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49000
49001         * lib/regex_internal.c (re_string_skip_chars, register_state):
49002         (calc_state_hash):
49003         Remove forward decls; no longer needed now that we use prototypes.
49004         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49005         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49006         (clean_state_log_if_needed): Likewise.
49007
49008 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49009
49010         * config/srclist.txt: Add glibc bugs 1231-1233.
49011
49012 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49013
49014         Fix problems reported by Sam Steingold in
49015         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49016         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49017         assumed that reg_errcode_t is a signed type, which is not
49018         necessarily true if _XOPEN_SOURCE is not defined.
49019         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49020         since some compilers warn about it otherwise.
49021
49022 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49023
49024         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49025         (init_word_char, create_initial_state, duplicate_node_closure):
49026         (fetch_token, peek_token_bracket, build_range_exp):
49027         (build_collating_symbol): Remove forward decls; no longer needed
49028         now that we use prototypes.
49029
49030         * lib/regcomp.c:
49031         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49032         (re_compile_fastmap_iter, regcomp, regerror, regfree):
49033         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49034         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49035         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49036         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49037         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49038         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49039         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49040         (build_range_exp, build_collating_symbol, parse_bracket_exp):
49041         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49042         (build_charclass, build_charclass_op, fetch_number, create_tree):
49043         (create_token_tree, mark_opt_subexp, duplicate_tree):
49044         Use prototypes rather than old-style definitions.
49045
49046         * lib/regex_internal.c:
49047         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49048         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49049         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49050         (re_string_reconstruct, re_string_peek_byte_case):
49051         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49052         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49053         (re_node_set_init_copy, re_node_set_add_intersect):
49054         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49055         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49056         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49057         (re_acquire_state, re_acquire_state_context, register_state):
49058         (create_ci_newstate, create_cd_newstate, free_state):
49059         Likewise.
49060         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49061         re_search_2):
49062         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49063         (re_search_internal, prune_impossible_nodes):
49064         (acquire_init_state_context, check_matching, static):
49065         (check_halt_node_context, check_halt_state_context, proceed_next_node):
49066         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49067         (update_regs, sift_states_backward, build_sifted_states):
49068         (clean_state_log_if_needed, merge_state_array):
49069         (update_cur_sifted_state, add_epsilon_src_nodes):
49070         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49071         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49072         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49073         (find_recover_state, check_subexp_matching_top, transit_state_mb):
49074         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49075         (check_arrival, check_arrival_add_next_nodes):
49076         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49077         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49078         (check_node_accept_bytes, check_node_accept, extend_buffers):
49079         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49080         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49081         (sift_ctx_init):
49082         Likewise.
49083
49084         * lib/regex_internal.h:
49085         (re_string_allocate, re_string_construct, re_string_reconstruct):
49086         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49087         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49088         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49089         (re_string_context_at, re_string_peek_byte_case):
49090         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49091         is defined, since we now use prototypes always.
49092
49093         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
49094         C89 or better.  All uses removed.
49095
49096 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49097
49098         * config/srclist.txt: Add glibc bugs 1220-1227.
49099
49100 2005-08-20  Jim Meyering  <jim@meyering.net>
49101
49102         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49103         of unused local, dfa.
49104
49105 2005-08-20  Bruno Haible  <bruno@clisp.org>
49106
49107         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49108
49109 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49110
49111         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49112         (re_node_set_insert_last, re_dfa_add_node):
49113         Rename local variables to avoid GCC shadowing warnings.
49114
49115 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49116
49117         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49118         [defined lint]: Suppress bogus uninitialized-variable warnings.
49119
49120         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49121         and let the caller return REG_ESPACE if out of space.  This
49122         removes an uninitialied-variable warning with GCC 4.0.1, and also
49123         avoids taking the address of a local variable.  All callers
49124         changed.
49125
49126 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49127
49128         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49129         $LIBCSRC/posix/regexec.c.
49130         Add glibc bug 1217 for regcomp.c.
49131
49132 2005-08-19  Jim Meyering  <jim@meyering.net>
49133
49134         * lib/regexec.c (proceed_next_node): Redo local variables to
49135         avoid GCC shadowing warnings.
49136
49137 2005-08-18  Bruno Haible  <bruno@clisp.org>
49138
49139         * lib/strstr.c (strstr): Fix return value in multibyte case.
49140         * lib/strcasestr.c (strcasestr): Likewise.
49141
49142 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49143
49144         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
49145
49146 2005-08-17  Jim Meyering  <jim@meyering.net>
49147
49148         Make the %s format (seconds since the epoch) work for a negative
49149         number and when used with a zero-padded field width, e.g. %015s.
49150
49151         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49152         label so that it precedes the code to set `digits'.  Otherwise,
49153         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
49154         print `00-22'.  Now, it prints `-0022', as it should.
49155
49156 2005-08-17  Bruno Haible  <bruno@clisp.org>
49157
49158         * modules/strstr (Files): Add m4/mbrtowc.m4.
49159         (Depends-on): Add mbuiter.
49160
49161 2005-08-17  Bruno Haible  <bruno@clisp.org>
49162
49163         * modules/strcasestr: New file.
49164         * MODULES.html.sh (String handling, based on ANSI C 89): Add
49165         strcasestr.
49166
49167 2005-08-17  Bruno Haible  <bruno@clisp.org>
49168
49169         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49170
49171 2005-08-17  Bruno Haible  <bruno@clisp.org>
49172
49173         * modules/mbuiter: New file.
49174         * MODULES.html.sh (Extended multibyte and wide character utilities):
49175         Add mbuiter.
49176
49177 2005-08-17  Bruno Haible  <bruno@clisp.org>
49178
49179         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49180         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49181
49182 2005-08-17  Bruno Haible  <bruno@clisp.org>
49183
49184         * m4/strcasestr.m4: New file.
49185
49186 2005-08-17  Bruno Haible  <bruno@clisp.org>
49187
49188         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49189         * lib/strstr.c: Completely rewritten, with multibyte locale support.
49190
49191 2005-08-17  Bruno Haible  <bruno@clisp.org>
49192
49193         * lib/strcasestr.h: New file.
49194         * lib/strcasestr.c: New file.
49195
49196 2005-08-17  Bruno Haible  <bruno@clisp.org>
49197
49198         * lib/strcasecmp.c: Use mbuiter.h.
49199
49200 2005-08-17  Bruno Haible  <bruno@clisp.org>
49201
49202         * lib/mbuiter.h: New file.
49203
49204 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49205
49206         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49207         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
49208         and gl_GETOPT are both invoked via different paths (as happens
49209         with GNU tar CVS because it uses both argp and getopt), the former
49210         wins.
49211
49212 2005-08-16  Bruno Haible  <bruno@clisp.org>
49213
49214         * modules/tls: New file.
49215         * MODULES.html.sh (Multithreading): Add tls.
49216
49217 2005-08-16  Bruno Haible  <bruno@clisp.org>
49218
49219         * modules/strnlen1: New file.
49220         * MODULES.html.sh (String handling): Add strnlen1.
49221
49222 2005-08-16  Bruno Haible  <bruno@clisp.org>
49223
49224         * modules/strcase (Files): Add m4/mbrtowc.m4.
49225         (Depends-on): Add strnlen1, mbchar.
49226
49227 2005-08-16  Bruno Haible  <bruno@clisp.org>
49228
49229         * modules/mbiter: New file.
49230         * MODULES.html.sh (Extended multibyte and wide character utilities):
49231         Add mbiter.
49232
49233 2005-08-16  Bruno Haible  <bruno@clisp.org>
49234
49235         * modules/mbfile: New file.
49236         * MODULES.html.sh (Extended multibyte and wide character utilities):
49237         Add mbfile.
49238
49239 2005-08-16  Bruno Haible  <bruno@clisp.org>
49240
49241         * modules/mbchar: New file.
49242         * MODULES.html.sh (Extended multibyte and wide character utilities):
49243         New section.
49244
49245 2005-08-16  Bruno Haible  <bruno@clisp.org>
49246
49247         * m4/tls.m4: New file, from GNU gettext.
49248
49249 2005-08-16  Bruno Haible  <bruno@clisp.org>
49250
49251         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49252         always.
49253         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49254
49255 2005-08-16  Bruno Haible  <bruno@clisp.org>
49256
49257         * m4/mbiter.m4: New file.
49258
49259 2005-08-16  Bruno Haible  <bruno@clisp.org>
49260
49261         * m4/mbfile.m4: New file.
49262
49263 2005-08-16  Bruno Haible  <bruno@clisp.org>
49264
49265         * m4/mbchar.m4: New file.
49266
49267 2005-08-16  Bruno Haible  <bruno@clisp.org>
49268
49269         * lib/tls.h: New file, from GNU gettext.
49270         * lib/tls.c: New file, from GNU gettext.
49271
49272 2005-08-16  Bruno Haible  <bruno@clisp.org>
49273
49274         * lib/strnlen1.h: New file.
49275         * lib/strnlen1.c: New file.
49276
49277 2005-08-16  Bruno Haible  <bruno@clisp.org>
49278
49279         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49280         (mbi_init): Update.
49281         (mbi_avail, mbi_advance): Let the iteration end before the terminating
49282         NUL byte, not after it.
49283
49284 2005-08-16  Bruno Haible  <bruno@clisp.org>
49285
49286         * lib/strcase.h (strcasecmp): Add note in comments.
49287         * lib/strncasecmp.c: Use code from strcasecmp.c.
49288         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49289         (strcasecmp): Work correctly in multibyte locales.
49290
49291 2005-08-16  Bruno Haible  <bruno@clisp.org>
49292
49293         * lib/mbiter.h: New file.
49294
49295 2005-08-16  Bruno Haible  <bruno@clisp.org>
49296
49297         * lib/mbfile.h: New file.
49298
49299 2005-08-16  Bruno Haible  <bruno@clisp.org>
49300
49301         * lib/mbchar.h: New file.
49302         * lib/mbchar.c: New file.
49303
49304 2005-08-16  Bruno Haible  <bruno@clisp.org>
49305
49306         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
49307         the valid ones. Makes the comparison operations transitive:
49308         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
49309         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
49310
49311 2005-08-15  Simon Josefsson  <jas@extundo.com>
49312
49313         * modules/ssize_t (License): Change to 'unlimited'.
49314
49315         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
49316
49317 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49318
49319         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
49320         Add comments for each pending glibc patch.
49321
49322 2005-08-15  Bruno Haible  <bruno@clisp.org>
49323
49324         * lib/regex.h (__restrict_arr): Don't define to __restrict if
49325         __cplusplus is defined.
49326
49327 2005-08-14  Jim Meyering  <jim@meyering.net>
49328
49329         Sync from coreutils.
49330
49331         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
49332         Use the hash-table-based cycle-detection code not just when
49333         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
49334         Reported by James Youngman in
49335         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
49336         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
49337         FTS_TIGHT_CYCLE_CHECK.
49338         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
49339         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
49340         once again.
49341         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
49342         * lib/fts.c (fd_safer): Remove decl.
49343         Include fcntl--.h rather than unistd-safer.h
49344         (fts_safe_changedir): Don't call fd_safer; no longer needed
49345         now that we include fcntl--.h.
49346
49347 2005-08-12  Simon Josefsson  <jas@extundo.com>
49348
49349         * modules/getndelim2: Use ssize_t module.
49350         * modules/getnline: Likewise.
49351         * modules/safe-read: Likewise.
49352         * modules/xreadlink: Likewise.
49353
49354         * modules/ssize_t: New file.
49355
49356 2005-08-12  Simon Josefsson  <jas@extundo.com>
49357
49358         * m4/readline.m4: Look for termcap, curses or ncurses if required.
49359
49360 2005-08-12  Simon Josefsson  <jas@extundo.com>
49361
49362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49363         ssize_t.
49364
49365 2005-08-12  Simon Josefsson  <jas@extundo.com>
49366
49367         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
49368         readline, getdelim and check_version.
49369         (Support for systems lacking ISO C 99: Sizes of integer types):
49370         Add size_max.
49371
49372 2005-08-12  Bruno Haible  <bruno@clisp.org>
49373
49374         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
49375
49376 2005-08-11  Simon Josefsson  <jas@extundo.com>
49377
49378         * modules/readline: New file.
49379
49380         * modules/strnlen (Files): Add strnlen.h.
49381
49382 2005-08-11  Simon Josefsson  <jas@extundo.com>
49383
49384         * m4/readline.m4: New file.
49385
49386 2005-08-11  Simon Josefsson  <jas@extundo.com>
49387
49388         * lib/readline.h, readline.c: New file.
49389
49390 2005-08-11  Simon Josefsson  <jas@extundo.com>
49391
49392         * doc/gnulib.texi (Initial import, Finishing touches): Mention
49393         gl_AVOID.
49394
49395 2005-08-11  Bruno Haible  <bruno@clisp.org>
49396
49397         * lib/strnlen.h (strnlen): Change parameter name to match comment.
49398
49399 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
49400
49401         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
49402
49403 2005-08-10  Simon Josefsson  <jas@extundo.com>
49404
49405         * tests/test-iconvme.c: New file.
49406
49407 2005-08-10  Simon Josefsson  <jas@extundo.com>
49408
49409         * m4/strnlen.m4: New file.
49410
49411         * m4/strndup.m4: Don't check for strnlen declaration, done in
49412         strnlen.m4.
49413
49414 2005-08-10  Simon Josefsson  <jas@extundo.com>
49415
49416         * lib/strndup.c: Use strnlen.h.
49417
49418         * lib/strnlen.h: New file.
49419
49420 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49421
49422         * README: Typos.
49423
49424 2005-08-02  Simon Josefsson  <jas@extundo.com>
49425
49426         * modules/readline: New file.
49427
49428 2005-08-02  Simon Josefsson  <jas@extundo.com>
49429
49430         * modules/getdelim: New file.
49431
49432         * modules/getline: Rewrite, don't use getndelim2.
49433
49434 2005-08-02  Simon Josefsson  <jas@extundo.com>
49435
49436         * m4/getline.m4: Separate out getdelim stuff into separate module.
49437
49438         * m4/getdelim.m4: New file.
49439
49440 2005-08-02  Simon Josefsson  <jas@extundo.com>
49441
49442         * lib/getline.h, getline.c: Rewrite.
49443
49444         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
49445
49446 2005-07-31  Bruno Haible  <bruno@clisp.org>
49447
49448         * lib/lock.h (gl_lock_initializer): New macro.
49449         (gl_lock_define_initialized): Use it.
49450         (gl_rwlock_initializer): New macro.
49451         (gl_rwlock_define_initialized): Use it.
49452         (gl_recursive_lock_initializer): New macro.
49453         (gl_recursive_lock_define_initialized): Use it.
49454
49455 2005-07-30  Karl Berry  <karl@gnu.org>
49456
49457         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
49458         Report from Ben Pfaff, regarding getopt.
49459
49460 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
49461
49462         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
49463         normal way.
49464         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
49465         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
49466         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
49467         (gl_GETOPT): Use the new macros.  Most of the implementation
49468         is moved to the new macros.  This is for programs like Emacs
49469         that don't want all the functionality of gl_GETOPT.
49470
49471 2005-07-26  Bruno Haible  <bruno@clisp.org>
49472
49473         * m4/lock.m4: Update from GNU gettext.
49474
49475 2005-07-26  Bruno Haible  <bruno@clisp.org>
49476
49477         * lib/lock.h: Update from GNU gettext.
49478         * lib/lock.c: Update from GNU gettext.
49479
49480 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49481
49482         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
49483         obsolescent AC_TRY_RUN.  Include the default includes files, for
49484         'exit'.
49485
49486 2005-07-24  Bruno Haible  <bruno@clisp.org>
49487
49488         * modules/visibility: New file.
49489         * MODULES.html.sh (Misc): Add visibility.
49490
49491 2005-07-24  Bruno Haible  <bruno@clisp.org>
49492
49493         * m4/visibility.m4: New file.
49494
49495 2005-07-24  Bruno Haible  <bruno@clisp.org>
49496
49497         * doc/visibility.texi: New file.
49498
49499 2005-07-22  Bruno Haible  <bruno@clisp.org>
49500
49501         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
49502         $(ALLOCA_H), redundant through BUILT_SOURCES.
49503         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
49504         redundant through BUILT_SOURCES.
49505         * modules/byteswap (Makefile.am): Remove explicit dependency on
49506         $(BYTESWAP_H), redundant through BUILT_SOURCES.
49507         * modules/fnmatch (Makefile.am): Remove explicit dependency on
49508         $(FNMATCH_H), redundant through BUILT_SOURCES.
49509         * modules/getopt (Makefile.am): Remove explicit dependency on
49510         $(GETOPT_H), redundant through BUILT_SOURCES.
49511         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
49512         redundant through BUILT_SOURCES.
49513         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
49514         redundant through BUILT_SOURCES.
49515         * modules/stdbool (Makefile.am): Remove explicit dependency on
49516         $(STDBOOL_H), redundant through BUILT_SOURCES.
49517         * modules/stdint (Makefile.am): Remove explicit dependency on
49518         $(STDINT_H), redundant through BUILT_SOURCES.
49519         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
49520         Remove explicit dependency on $(SYSEXITS_H).
49521         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
49522
49523 2005-07-18  Simon Josefsson  <jas@extundo.com>
49524
49525         * lib/check-version.c (check_version): Accept identical versions too.
49526
49527 2005-07-18  Bruno Haible  <bruno@clisp.org>
49528
49529         * modules/lock: New file.
49530         * MODULES.html.sh (Multithreading): New section.
49531
49532 2005-07-18  Bruno Haible  <bruno@clisp.org>
49533
49534         * m4/lock.m4: New file, from GNU gettext.
49535
49536 2005-07-18  Bruno Haible  <bruno@clisp.org>
49537
49538         * lib/lock.h: New file, from GNU gettext.
49539         * lib/lock.c: New file, from GNU gettext.
49540
49541 2005-07-18  Bruno Haible  <bruno@clisp.org>
49542
49543         * lib/lock.h (gl_once_t): New type.
49544         (gl_once_define, gl_once): New macros.
49545         * lib/lock.c (fresh_once): New variable.
49546         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
49547         functions.
49548
49549 2005-07-16  Simon Josefsson  <jas@extundo.com>
49550
49551         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
49552         workaround, suggested by Bruno.
49553
49554 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49555
49556         * modules/xalloc (Depends-on): Add xalloc-die.
49557         * modules/xvasprintf (Depends-on): Add xalloc-die.
49558
49559 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49560
49561         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
49562         with a minor change.
49563
49564 2005-07-15  Bruno Haible  <bruno@clisp.org>
49565
49566         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
49567         When using lib/poll.c, define poll as rpl_poll.
49568
49569 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
49570
49571         * modules/argp (Depends-on): Remove unlocked-io.
49572
49573 2005-07-14  Derek Price  <derek@ximbiot.com>
49574
49575         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
49576         for glob symlink bug.
49577
49578 2005-07-14  Bruno Haible  <bruno@clisp.org>
49579
49580         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
49581         Instead, test for *_unlocked function declarations directly.
49582
49583 2005-07-11  Simon Josefsson  <jas@extundo.com>
49584
49585         * modules/size_max: New file.
49586
49587         * modules/xsize: Depend on size_max module for size_max.m4.
49588
49589 2005-07-11  Simon Josefsson  <jas@extundo.com>
49590
49591         * lib/size_max.h: New file.
49592
49593 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
49594
49595         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
49596         copyright symbol and the year.
49597         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
49598         (version_etc_va): Use parameterized copyright notice.
49599         Reword to conform to the current GNU coding standards.
49600
49601 2005-07-11  Karl Berry  <karl@gnu.org>
49602
49603         * doc/gnulib.texi (Quoting): new node.
49604         (Initial import): more info, from Patrice.
49605
49606 2005-07-11  Bruno Haible  <bruno@clisp.org>
49607
49608         * gnulib-tool (func_usage): Document option --avoid.
49609         (Command line options): Handle --avoid.
49610         (func_acceptable): New function.
49611         (func_modules_transitive_closure): Use it.
49612
49613 2005-07-11  Bruno Haible  <bruno@clisp.org>
49614
49615         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
49616         Reported by Jim Meyering.
49617
49618 2005-07-10  Bruno Haible  <bruno@clisp.org>
49619
49620         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
49621         Needed when size_t is smaller than 'unsigned int'.
49622         Reported by Paul Eggert.
49623
49624 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49625
49626         * modules/argp (Depends-on): Add unlocked-io
49627
49628 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49629
49630         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
49631         block of defines.
49632
49633 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49634
49635         * config/srclist.txt: Comment out regcomp.c, since we have a porting
49636         fix now.
49637
49638 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
49639         and Paul Eggert  <eggert@cs.ucla.edu>
49640
49641         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
49642         in wint_t, not wchar_t.  Remove now-unnecessary cast.
49643
49644 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49645
49646         * modules/regex (Files): Add lib/regex_internal.c,
49647         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
49648         (Depends-on): Add extensions.
49649         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
49650
49651 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49652
49653         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
49654         pathconf.
49655         * m4/same.m4 (gl_SAME): Likewise.
49656         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
49657
49658         * m4/regex.m4: Adjust to new libc regex implementation.
49659         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
49660         all the .c and .h parts of (the new) regex.
49661         Quote the m4 stuff better.
49662         Check for RE_ICASE bug of old gnulib.
49663         Check for REG_STARTEND of recent libc.
49664         Rename local variables from jm_* to gl_*.
49665         Quote operand of "test -f".
49666         Say "recent enough" version of libc, not "version 2".
49667         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
49668         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
49669         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
49670         Remove check for btowc, isascii.
49671         Require AM_LANGINFO_CODESET.
49672
49673 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49674
49675         * lib/regex.c, regex.h: Sync from libc.
49676         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
49677         * lib/regexec.c:
49678         New files, synced from libc, except that regex_internal.h
49679         currently has a small porting fix.
49680
49681 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49682
49683         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
49684         regex_internal.c, regexec.c.
49685         Add regex_internal.h too, but as a comment, since the libc version
49686         is currently broken in gnulib mode.
49687
49688 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49689
49690         Support programs like Emacs that use gnulib but not gettext.
49691         * MODULES.html.sh (Internationalization functions): Add gettext-h.
49692         * modules/gettext-h: New file.
49693         * modules/gettext (Files): Remove lib/gettext.h.
49694         (Depends-on): Add gettext-h.
49695         (Makefile.am): Remove lib_SOURCES.
49696         * modules/argmatch, modules/c-stack, modules/closeout:
49697         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
49698         * modules/execute, modules/file-type, modules/getaddrinfo:
49699         * modules/getopt, modules/human, modules/javacomp:
49700         * modules/javaexec, modules/mkdir-p, modules/obstack:
49701         * modules/openat, modules/pagealign_alloc, modules/pipe:
49702         * modules/quotearg, modules/regex, modules/rpmatch:
49703         * modules/unicodeio, modules/userspec, modules/version-etc:
49704         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
49705         * modules/xsetenv:
49706         Depend on gettext-h, not gettext.
49707
49708 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49709
49710         * gnulib-tool (func_import): Add support for 'public domain' license.
49711         * modules/alloca, modules/atexit, modules/memmove:
49712         Now public domain, not GPL.
49713         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
49714         * modules/realloc, modules/strerror, modules/strtod:
49715         Now LGPL, not GPL.
49716
49717 2005-07-05  Bruno Haible  <bruno@clisp.org>
49718
49719         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
49720         autoconf CVS. Needed for mingw.
49721
49722 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49723
49724         Remove the dependency of the strftime module on the tzset module.
49725         * modules/strftime (Depends-on): Remove dependency on tzset.
49726
49727 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49728
49729         Remove the dependency of the strftime module on the tzset module.
49730         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
49731         gl_FUNC_TZSET_CLOBBER.
49732
49733 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49734
49735         Remove the dependency of the strftime module on the tzset module.
49736         * lib/strftime.c (my_strftime)
49737         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
49738         Copy the input structure, to work around some of the bug with
49739         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
49740         Solaris releases, you should also use the tzset module, but we won't
49741         require it as a dependency any more since we don't want LGPLed code
49742         to depend on GPLed code.
49743
49744 2005-07-02  Jim Meyering  <jim@meyering.net>
49745
49746         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
49747         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
49748         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
49749         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
49750
49751 2005-07-02  Jim Meyering  <jim@meyering.net>
49752
49753         * lib/backupfile.c (backup_args): Change a `0' to NULL.
49754
49755 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49756
49757         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
49758         declares only 'struct timespec;' (!).
49759
49760 2005-07-01  Jim Meyering  <jim@meyering.net>
49761
49762         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
49763         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
49764         * lib/save-cwd.c, tempname.c:
49765         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49766         and don't include <sys/file.h>).
49767
49768 2005-06-29  Jim Meyering  <jim@meyering.net>
49769
49770         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
49771         type name.  Use the variable name instead.
49772         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
49773         Likewise.
49774
49775 2005-06-28  Simon Josefsson  <jas@extundo.com>
49776
49777         * modules/check-version (Files): Add check-version.m4.
49778
49779 2005-06-28  Simon Josefsson  <jas@extundo.com>
49780
49781         * m4/check-version.m4: New file, suggested by Jim Meyering
49782         <jim@meyering.net>.
49783
49784 2005-06-28  Simon Josefsson  <jas@extundo.com>
49785
49786         * lib/check-version.h, lib/check-version.c: New files.
49787
49788 2005-06-28  Simon Josefsson  <jas@extundo.com>
49789
49790         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
49791         collision with global variable.  Better indentation.  Don't
49792         increment buffer pointer beyond buffer end.  Based on comments
49793         from Paul Eggert <eggert@cs.ucla.edu>.
49794
49795         * lib/base64.h: Indent.
49796
49797 2005-06-28  Simon Josefsson  <jas@extundo.com>
49798
49799         * doc/gnulib.texi (Library version handling): New section.
49800
49801 2005-06-28  Jim Meyering  <jim@meyering.net>
49802
49803         * check-module (find_included_lib_files): Hard-code another
49804         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
49805         but modules/fts-lgpl (correctly) does not list those files.
49806
49807         * modules/canonicalize (Files): Add lib/pathmax.h.
49808
49809 2005-06-25  Simon Josefsson  <jas@extundo.com>
49810
49811         * modules/check-version: New file.
49812
49813 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
49814
49815         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
49816         initializer of struct addrinfo, as an indication that we don't
49817         care how many members the structure has.
49818
49819 2005-06-24  Derek Price  <derek@ximbiot.com>
49820         and Bruno Haible  <bruno@clisp.org>
49821
49822         Remove stat module & update lstat.
49823         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
49824         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49825         * m4/stat.m4: Remove this file.
49826
49827 2005-06-24  Derek Price  <derek@ximbiot.com>
49828         and Bruno Haible  <bruno@clisp.org>
49829
49830         Remove stat module & update lstat.
49831         * lib/stat.c: Remove this file...
49832         (slash_aware_lstat): ...moving this content and its support...
49833         * lib/lstat.c (rpl_lstat): ...into here.
49834         * lib/lstat.h: New file.
49835
49836 2005-06-24  Derek Price  <derek@ximbiot.com>
49837         and Bruno Haible  <bruno@clisp.org>
49838
49839         Remove stat module & update lstat.
49840         * config/srclist.txt (libc sources): Remove stat.
49841
49842 2005-06-24  Derek Price  <derek@ximbiot.com>
49843         and Bruno Haible  <bruno@clisp.org>
49844
49845         Remove stat module & update lstat.
49846         * MODULES.html.sh (stat): Remove.
49847         * MODULES.html: Regenerated.
49848         * modules/lstat (Description): Correct function name.
49849         (Files): Add "lstat.h".
49850         (Depends-on): Remove stat, add xalloc, stat-macros.
49851         * modules/stat: Remove this file.
49852         (Include): Add "lstat.h", remove <sys/stat.h>.
49853
49854 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49855
49856         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
49857         (ranged_convert): Don't save conversion in a temporary struct.
49858         This causes a warning with GCC 4.0.0, and anyway in the typical
49859         case it's not worth the extra 100 bytes or so of code.
49860         (ranged_convert, __mktime_internal): When calling a function via a
49861         pointer P, use P () rather than (*P) (), as we now assume C89 or
49862         better.
49863
49864 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49865
49866         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
49867         "who -r" failed to give output.  Problem reported by Tim Waugh.
49868
49869         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
49870         (xcalloc): Use it to avoid needless tests.
49871         Problem reported by Jim Meyering.
49872
49873 2005-06-20  Derek Price  <derek@ximbiot.com>
49874
49875         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
49876         unnecessary for Autoconfs > 2.59c.
49877
49878 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49879
49880         * lib/argp.h (__option_is_short): Check upper limit of
49881         __key. Isprint() requires its argument to have the value
49882         of an unsigned char or EOF.
49883
49884 2005-06-16  Jim Meyering  <jim@meyering.net>
49885
49886         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
49887         when either N or S is zero.
49888
49889 2005-06-16  Derek Price  <derek@ximbiot.com>
49890
49891         * m4/bison.m4: Declare YACC & YFLAGS precious.
49892
49893 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
49894
49895         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
49896         multibyte string or pattern, fall back on unibyte matching.
49897         Problem reported by James Youngman.
49898
49899 2005-06-08  Bruno Haible  <bruno@clisp.org>
49900
49901         * modules/csharpcomp: New file.
49902         * MODULES.html.sh (C#): Add csharpcomp.
49903
49904 2005-06-08  Bruno Haible  <bruno@clisp.org>
49905
49906         * m4/csharpcomp.m4: New file, from GNU gettext.
49907
49908 2005-06-08  Bruno Haible  <bruno@clisp.org>
49909
49910         * lib/csharpcomp.h: New file, from GNU gettext.
49911         * lib/csharpcomp.c: New file, from GNU gettext.
49912         * lib/csharpcomp.sh.in: New file, from GNU gettext.
49913
49914 2005-06-08  Bruno Haible  <bruno@clisp.org>
49915
49916         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
49917         warning on mingw.
49918
49919 2005-06-07  Derek Price  <derek@ximbiot.com>
49920
49921         Sync from CVS.
49922         * lib/glob_.h: Indent nested #ifdef.
49923
49924 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49925
49926         Sync from coreutils.
49927         Use "file name" when talking about file names, instead of "filename"
49928         or "path", as per the GNU coding standards.
49929         * lib/mkdir-p.c: Renamed from makepath.c.
49930         (make_dir_parents): Renamed from make_path.  All callers changed.
49931         * lib/mkdir-p.h: Likewise.  All includers changed.
49932         * lib/filenamecat.c: Renamed from path-concat.c.
49933         (file_name_concat): Renamed from path_concat.  All callers changed.
49934         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
49935         * lib/filenamecat.h: Likewise.  All includers changed.
49936         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
49937         in comments or local variable names.
49938         * lib/basename.c: Likewise.
49939         * lib/canonicalize.c, canonicalize.h: Likewise.
49940         * lib/dirname.c, dirname.h: Likewise.
49941         * lib/euidaccess.c: Likewise.
49942         * lib/exclude.c: Likewise
49943         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
49944         * lib/fsusage.c, fsuage.h: Likewise.
49945         * lib/fts.c, fts_.h: Likewise.
49946         * lib/getcwd.c: Likewise.
49947         * lib/getloadavg.c: Likewise.
49948         * lib/mkstemp.c: Likewise.
49949         * lib/mountlist.c, mountlist.h: Likewise.
49950         * lib/openat.c, openat.h: Likewise.
49951         * lib/readlink-stub.c: Likewise.
49952         * lib/readutmp.c, readutmp.h: Likewise.
49953         * lib/rename.c: Likewise.
49954         * lib/rmdir.c: Likewise.
49955         * lib/same.c: Likewise.
49956         * lib/savedir.c: Likewise.
49957         * lib/stripslash.c: Likewise.
49958         * lib/tempname.c: Likewise.
49959         * lib/xreadlink.c: Likewise.
49960         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
49961         All uses changed.
49962         * lib/exclude.h: Likewise.
49963
49964         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
49965         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49966         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
49967         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49968         * lib/pathmax.h: Include <limits.h> unconditionally, since other
49969         files have been getting away with it for years (MORE/BSD 4.3
49970         is extinct now).
49971         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
49972         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49973
49974         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
49975         Define to 256, not 255, as per modern POSIX.
49976
49977 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49978
49979         Sync from coreutils.
49980         Use "file name" when talking about file names, instead of "filename"
49981         or "path", as per the GNU coding standards.
49982         * MODULES.html.sh: mkdir-p renamed from makepath.
49983         filenamecat renamed from path-concat.
49984         * modules/filenamecat: Renamed from modules/path-concat.
49985         (Files): filenamecat.h and filenamecat.c renamed from
49986         path-concat.h and path-concat.c.
49987         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
49988         (Include): filenamecat.h, not path-concat.h.
49989         * modules/mkdir-p: Renamed from modules/makepath.
49990         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
49991         makepath.c.
49992         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
49993         (Include): mkdir-p.h, not makepath.h.
49994
49995 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49996
49997         Sync from coreutils.
49998         * m4/mkdir-p.m4: Renamed from makepath.m4.
49999         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
50000         Rename files from makepath.c to mkdir-p.c, and from
50001         makepath.h to mkdir-p.h.
50002         * m4/filenamecat.m4: Renamed from path-concat.m4.
50003         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
50004         Rename files from path-concat.c to filenamecat.c,
50005         and from path-concat.h to filenamecat.h.
50006         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50007         "file name" in local variables or comments.
50008         * m4/rename.m4: Likewise.
50009
50010 2005-06-01  Bruno Haible  <bruno@clisp.org>
50011
50012         * modules/csharpexec: New file.
50013         * MODULES.html.sh (C#): New section.
50014
50015 2005-06-01  Bruno Haible  <bruno@clisp.org>
50016
50017         * m4/csharp.m4: New file, from GNU gettext.
50018         * m4/csharpexec.m4: New file, from GNU gettext.
50019
50020 2005-06-01  Bruno Haible  <bruno@clisp.org>
50021
50022         * lib/csharpexec.h: New file, from GNU gettext.
50023         * lib/csharpexec.c: New file, from GNU gettext.
50024         * lib/csharpexec.sh.in: New file, from GNU gettext.
50025
50026 2005-05-31  Derek Price  <derek@ximbiot.com>
50027             Paul Eggert  <eggert@cs.ucla.edu>
50028
50029         Sync from cvs.
50030         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50031
50032 2005-05-31  Derek Price  <derek@ximbiot.com>
50033             Paul Eggert  <eggert@cs.ucla.edu>
50034
50035         Sync from cvs.
50036         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50037
50038 2005-05-29  Derek Price  <derek@ximbiot.com>
50039
50040         * config/srclist.txt (glob_.h, glob.c): Add these files.
50041
50042 2005-05-29  Derek Price  <derek@ximbiot.com>
50043
50044         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50045         * modules/glob: New file.
50046         * modules/getlogin_r: Add link to POSIX spec in description.
50047
50048 2005-05-29  Derek Price  <derek@ximbiot.com>
50049             Paul Eggert  <eggert@cs.ucla.edu>
50050
50051         * m4/glob.m4: New file.
50052
50053 2005-05-29  Derek Price  <derek@ximbiot.com>
50054             Paul Eggert  <eggert@cs.ucla.edu>
50055
50056         * lib/glob_.h, lib/glob.c: New files.
50057
50058 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50059
50060         * modules/fts (Files): Remove m4/inttypes-pri.m4.
50061         * modules/fts-lgpl (Depends-on): Remove gettext.
50062
50063 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50064
50065         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50066         and don't require gt_INTTYPES_PRI.
50067
50068 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50069
50070         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50071
50072         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50073         the configuration hassle isn't worth it.
50074         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50075         (LONGEST_MODIFIER, PRIuMAX): Remove.
50076
50077 2005-05-27  Bruno Haible  <bruno@clisp.org>
50078
50079         * lib/getlogin_r.h: Remove second include of <stddef.h>.
50080
50081 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
50082
50083         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50084         _POSIX_PTHREAD_SEMANTICS for Solaris.
50085
50086 2005-05-25  Derek Price  <derek@ximbiot.com>
50087
50088         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50089
50090 2005-05-25  Derek Price  <derek@ximbiot.com>
50091             Paul Eggert  <eggert@cs.ucla.edu>
50092
50093         * modules/getlogin_r, m4/getlogin_r.m4: New files.
50094         * lib/getlogin_r.c, getlogin_r.h: New files.
50095
50096 2005-05-25  Bruno Haible  <bruno@clisp.org>
50097             Derek Price  <derek@ximbiot.com>
50098
50099         * lib/getlogin_r.h: Simplify API documentation.
50100
50101 2005-05-23  Derek Price  <derek@ximbiot.com>
50102
50103         * modules/minmax (Files): Add m4/minmax.m4.
50104         (configure.ac): Add gl_MINMAX.
50105
50106 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50107
50108         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50109         so that unistd-safer.h (GPL'ed code) need not be included.
50110
50111 2005-05-22  Bruno Haible  <bruno@clisp.org>
50112
50113         * m4/minmax.m4: New file.
50114         Based on a patch by Derek Price <derek@ximbiot.com>.
50115
50116 2005-05-22  Bruno Haible  <bruno@clisp.org>
50117
50118         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50119         (INT64_MIN): Fix definition.
50120         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50121
50122         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50123         NEED_SIGNED_INT_TYPES.
50124
50125         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50126         HAVE_SYSTEM_INTTYPES.
50127
50128 2005-05-22  Bruno Haible  <bruno@clisp.org>
50129
50130         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50131         Also include <sys/param.h> if it defines MIN, MAX.
50132         Based on a patch by Derek Price <derek@ximbiot.com>.
50133
50134 2005-05-21  Jim Meyering  <jim@meyering.net>
50135
50136         * modules/fts (Files): Add m4/inttypes-pri.m4.
50137         (Depends-on): Add lstat and remove gettext.  Alphabetize.
50138
50139 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50140
50141         New fts module.
50142         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50143         (setup_dir, free_dir): New functions.
50144         (enter_dir, leave_dir): Define trivial
50145         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
50146         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
50147         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50148         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50149         Move to fts-cycle.c.
50150         (fts_open): Use setup_dir.
50151         (fts_close): Use free_dir.
50152         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50153         This adds a label and some gotos, but the alternatives were messier.
50154         Check for memory allocation failure when entering a dir.
50155         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50156         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50157         (FTS): New member fts_cycle, that is a union that contains the
50158         old active_dir_ht and cycle_state.  All uses changed to mention
50159         fts_cycle.ht and fts_cycle.state.
50160         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50161         fts.c, with the following changes:
50162         (setup_dir, free_dir): New functions.
50163         (enter_dir): Now returns bool.  Return true if successful, false
50164         if memory exhausted.  All callers changed.
50165         Do not bother partly cleaning up on
50166         memory allocation failure; that is free_dir's job.
50167         However, free ad if hash_insert fails, to avoid memory leak.
50168         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50169         fts->fts_options to see which union member to use.
50170
50171 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50172
50173         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50174         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50175
50176 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50177
50178         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50179
50180 2005-05-20  Jim Meyering  <jim@meyering.net>
50181
50182         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50183         Now a macro, to pacify GCC.
50184
50185 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50186
50187         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50188         of -1.
50189
50190 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50191
50192         * lib/chown.c (rpl_chown): Return -1 on failure.
50193
50194 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50195
50196         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50197         Don't check for stddef.h.
50198         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50199         don't use its results.
50200         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50201         since we include them unconditionally.  Don't require
50202         AM_STDBOOL_H, since stdbool is a prerequisite.
50203         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50204         since we assume C89 or better.
50205         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50206         as we don't use their results.
50207         Don't check for fchdir, memmove, memset, strrchr, as we use
50208         them unconditionally.
50209         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50210         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50211
50212 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50213
50214         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50215         Include <stddef.h> unconditionally, since we assume C89 now.
50216         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50217         * lib/fts.c: Include fts_.h first, to check interface.
50218         Do not include intprops.h; no longer needed.
50219         Include cycle-check.h and hash.h, since fts_.h no longer does.
50220         Remove unnecessary casts of closedir to void.
50221         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50222         decide whether to decrement nlinks.
50223         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50224         (FTS): Use struct hash_table * instead of Hash_table, so that
50225         we no longer need to include hash.h here.
50226
50227 2005-05-18  Jim Meyering  <jim@meyering.net>
50228
50229         * modules/dirfd (License): Change to LGPL.  Most of the code
50230         is already in the public domain.
50231
50232 2005-05-18  Jim Meyering  <jim@meyering.net>
50233
50234         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50235         Reported by Yoann Vandoorselaere.
50236
50237 2005-05-17  Jim Meyering  <jim@meyering.net>
50238
50239         * m4/fts.m4: New file, from coreutils.
50240
50241 2005-05-17  Jim Meyering  <jim@meyering.net>
50242
50243         * lib/fts.c, lib/fts_.h: New files, from coreutils.
50244
50245 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50246
50247         Sync from coreutils.
50248         * m4/unlinkdir.m4: New file.
50249
50250 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50251
50252         Sync from coreutils.
50253         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50254         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50255         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50256         White space changes only.
50257         * lib/makepath.c (make_path): Port to hosts where leading "//" is
50258         special.
50259         * lib/yesno.c: Include getline.h, not ctype.h.
50260         (yesno): Don't remove leading white space; POSIX doesn't allow it.
50261         Use getline to remove arbitrary restriction on response length.
50262
50263 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50264
50265         * config/srclist-update: Spell out "Street" in FSF postal
50266         mail address; this is the style the FSF seems to prefer.
50267
50268         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50269         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50270         this updates FSF postal mail address.
50271
50272         Sync from coreutils.
50273         * modules/unlinkdir: New file.
50274         * modules/yesno (Depends-on): Add getline.
50275         * MODULES.html.sh (File system functions): Add unlinkdir.
50276
50277 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50278
50279         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50280         lib/strsep.h:
50281         Change the initial comment to refer to GPL, not LGPL.
50282         gnulib-tool will change it to LGPL as needed.
50283
50284         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50285         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50286         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50287         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50288         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50289         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50290         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50291         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50292         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
50293         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
50294         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
50295         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
50296         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
50297         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
50298         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
50299         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
50300         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
50301         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
50302         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
50303         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
50304         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
50305         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
50306         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
50307         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
50308         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
50309         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
50310         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
50311         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
50312         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
50313         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
50314         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
50315         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
50316         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
50317         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
50318         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
50319         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
50320         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
50321         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
50322         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
50323         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
50324         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
50325         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
50326         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
50327         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
50328         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
50329         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
50330         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
50331         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
50332         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
50333         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
50334         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50335         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
50336         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
50337         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
50338         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
50339         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
50340         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
50341         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
50342         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
50343         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
50344         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
50345         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
50346         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
50347         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
50348         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
50349         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
50350         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
50351         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
50352         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
50353         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
50354         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
50355         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
50356         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
50357         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
50358         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
50359         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
50360         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
50361         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
50362         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
50363         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
50364         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
50365         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
50366         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
50367         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
50368         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
50369         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
50370         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
50371         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
50372         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
50373         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
50374         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
50375         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
50376         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
50377         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
50378         lib/yesno.c, lib/yesno.h:
50379         Update FSF postal mail address.
50380
50381 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50382
50383         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
50384         tests/test-memmem.c, tests/test-stpncpy.c:
50385         Update FSF postal mail address.
50386
50387 2005-05-13  Bruno Haible  <bruno@clisp.org>
50388
50389         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
50390         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
50391         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
50392         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
50393         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
50394         Add support for 64-bit integers in the MSVC compiler.
50395
50396 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50397
50398         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
50399
50400 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
50401
50402         * gnulib-tool (func_import): Sort and uniquify recommended includes.
50403
50404 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
50405
50406         * doc/getdate.texi (General date syntax): Don't say that date
50407         date --iso-8601=ns generates acceptable dates; it doesn't yet.
50408         Problem reported by Nic Ferrier.
50409
50410 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50411
50412         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
50413         specified in ai_socktype. Fix invalid ai_protocol
50414         check. ai_protocol is usually set to 0 or depending on
50415         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
50416         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
50417         ai_socktype / ai_protocol in the returned addrinfo structure.
50418
50419 2005-05-10  Simon Josefsson  <jas@extundo.com>
50420
50421         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
50422         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50423
50424 2005-05-10  Karl Berry  <karl@gnu.org>
50425
50426         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
50427         (from http://www.gnu.org/licenses).
50428         * doc/COPYING.LIB: also rename to COPYING.LESSER.
50429         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
50430         fdl.texi suffices.
50431
50432 2005-05-10  Karl Berry  <karl@gnu.org>
50433
50434         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
50435         (COPYING.DOC): remove.
50436
50437         * config/srclist-update: new FSF address.
50438
50439 2005-05-10  Derek Price  <derek@ximbiot.com>
50440
50441         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
50442         possible.
50443
50444 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50445             Bruno Haible  <bruno@clisp.org>
50446
50447         * modules/inet_ntop: New file.
50448         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50449         inet_ntop.
50450
50451 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50452             Bruno Haible  <bruno@clisp.org>
50453
50454         * m4/inet_ntop.m4: New file.
50455
50456 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50457             Bruno Haible  <bruno@clisp.org>
50458
50459         * lib/inet_ntop.h: New file.
50460         * lib/inet_ntop.c: New file, from glibc with modifications.
50461
50462 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
50463
50464         * modules/time_r (License): Change to LGPL.
50465         * modules/extensions (License): Change to LGPL.  Actually,
50466         the license is more permissive than that, but currently gnulib-tool
50467         doesn't know how to handle more-permissive licenses.
50468
50469         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
50470         Problem reported by Dave Love.
50471
50472 2005-05-08  Jim Meyering  <jim@meyering.net>
50473
50474         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
50475         blank.
50476
50477 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
50478
50479         * modules/argmatch (Depends-on): Add stdbool.
50480         * modules/backupfile (Depends-on): Likewise.
50481         * modules/chdir-long (Depends-on): Likewise.
50482         * modules/closeout (Depends-on): Likewise.
50483         * modules/cycle-check (Depends-on): Likewise.
50484         * modules/dirname (Depends-on): Likewise.
50485         * modules/fnmatch (Depends-on): Likewise.
50486         * modules/fsusage (Depends-on): Likewise.
50487         * modules/fwriteerror (Depends-on): Likewise.
50488         * modules/getcwd (Depends-on): Likewise.
50489         * modules/getloadavg (Depends-on): Likewise.
50490         * modules/hard-locale (Depends-on): Likewise.
50491         * modules/makepath (Depends-on): Likewise.
50492         * modules/mountlist (Depends-on): Likewise.
50493         * modules/nanosleep (Depends-on): Likewise.
50494         * modules/posixtm (Depends-on): Likewise.
50495         * modules/quotearg (Depends-on): Likewise.
50496         * modules/readtokens (Depends-on): Likewise.
50497         * modules/readtokens0 (Depends-on): Likewise.
50498         * modules/readutmp (Depends-on): Likewise.
50499         * modules/save-cwd (Depends-on): Likewise.
50500         * modules/strftime (Depends-on): Likewise.
50501         * modules/userspec (Depends-on): Likewise.
50502         * modules/utimecmp (Depends-on): Likewise.
50503         * modules/xgetcwd (Depends-on): Likewise.
50504         * modules/xnanosleep (Depends-on): Likewise.
50505         * modules/xstrtod (Depends-on): Likewise.
50506         * modules/yesno (Depends-on): Likewise.
50507
50508 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50509
50510         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
50511         needless checks.
50512
50513 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50514
50515         Merge from coreutils.  Among other things,
50516         add bulletproofing for cases where stdin, stdout, or stderr are closed.
50517         * lib/fd-safer.c: New file.
50518         * lib/fcntl-safer.h, open-safer.c: Remove.
50519         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
50520         * lib/dup-safer.c: Include unistd-safer.h first.
50521         Don't include errno.h.
50522         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
50523         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
50524         * lib/file-type.c: Rely on file-type.h change.
50525         * lib/getloadavg.c: Include unistd-safer.h.
50526         (getloadavg): Use safer open.
50527         * lib/getusershell.c: Include "stdio-safer.h".
50528         (getusershell): Use safer fopen.
50529         * lib/long-options.c (long_options): Use NULL rather than 0.
50530         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
50531         'free'.
50532         * lib/modechange.c: Likewise.
50533         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
50534         (MODE_DONE): New constant.
50535         (struct mode_change): Remove 'next' member.
50536         (make_node_op_equals): New function; like the old one of the
50537         same name, except it allocates an array.
50538         (mode_compile, mode_create_from_ref): Use it.
50539         (mode_compile): Allocate result as an array, not a linked list.
50540         Parse octal string ourself, so that we catch mistakes like "+0".
50541         (mode_adjust): Arg is an array, not a linked list.
50542         * lib/modechange.c: Include stat-macros.h, xalloc.h.
50543         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
50544         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
50545         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
50546         Remove.  This is now stat-macros.h's job.
50547         (talloc): Remove.  All callers replaced by xalloc, so that
50548         our invokers don't have to worry about reporting memory failures.
50549         (make_node_op_equals): Remove.
50550         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50551         New constants.
50552         (struct mode_change): Moved here from modechange.h.
50553         (mode_append_entry): Remove.
50554         (mode_compile): Remove MASKED_OPS arg, since it encouraged
50555         apps to have incorrect behavior.  Use simpler algorithm for head
50556         and tail.  Don't futz with umask; that's now the job of mode_adjust.
50557         Detect more invalid usages rather than having somewhat-random behavior.
50558         Don't insert an "a=" action, as that leads to incorrect behavior.
50559         (mode_compile, mode_create_from_ref): Return NULL on error instead
50560         of an enum, since now there's only one way to have an error.  All
50561         callers changed.
50562         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
50563         at the correct time.  Simplify calculation of "+u" and its ilk.
50564         Don't mishandle "+X".
50565         (mode_free): Remove "register" and localize decls.
50566         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50567         (struct mode_change): Move to modechange.c; callers don't
50568         need to see this stuff.
50569         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
50570         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
50571         (mode_change, mode_adjust): Reflect the new signatures noted above.
50572         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
50573         that might redefine system include files.
50574         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
50575         (my_usleep): Use NULL rather than (void *) 0.
50576         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
50577         Use siginterrupt to specify that system calls should be interrupted.
50578         (rpl_nanosleep): Move initialization of suspended closer to call of
50579         my_usleep.
50580         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
50581         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
50582         (desirable_utmp_entry): New function.
50583         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
50584         using x2nrealloc, to simplify logic.
50585         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
50586         size calculation.  Do not assume utmp file is a regular file.
50587         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
50588         (READ_UTMP_CHECK_PIDS): New constant.
50589         * lib/save-cwd.c: Include unistd-safer.h.
50590         (save_cwd): Use fd_safer.
50591         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
50592         [!_LIBC] Include "stat-macros.h" instead.
50593         * lib/unistd-safer.h (fd_safer): New decl.
50594
50595 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50596
50597         * modules/getloadavg (Depends-on): Add unistd-safer.
50598         * modules/getusershell (Depends-on): Add stdio-safer.
50599         * modules/lstat (Depends-on): Remove xalloc.
50600         * modules/mkstemp (Depends-on): Add stat-macros.
50601         * modules/modechange (Depends-on): Remove xstrtol.
50602         Add stat-macros, xalloc.
50603         * modules/save-cwd (Depends-on): Add unistd-safer.
50604         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
50605         * modules/unistd-safer (Files): Add lib/fd-safer.c
50606         (Makefile.am): Remove lib_SOURCES.
50607
50608         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
50609         Remove fcntl-safer; unistd-safer supersedes it.
50610
50611 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50612
50613         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
50614         AC_HEADER_STAT.
50615         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
50616         (gl_PREREQ_CHOWN): Remove.
50617         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
50618         it.  Don't require AC_HEADER_STAT.
50619         (gl_PREREQ_LSTAT): Remove.
50620         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
50621         Don't require AC_HEADER_STAT.
50622         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
50623         (gl_PREREQ_RMDIR): Remove.
50624         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
50625         mention stat-macros.h or AC_HEADER_STAT, since we'll make
50626         the stat-macros module a prerequisite.
50627         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
50628         * m4/filemode.m4 (gl_FILEMODE): Likewise.
50629         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
50630         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
50631         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
50632         variable names.
50633         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
50634         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
50635         variable prefixes.
50636         * m4/fcntl-safer.m4: Remove.
50637         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
50638         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
50639         Invoke gl_PREREQ_FD_SAFER.
50640         (gl_PREREQ_FD_SAFER): New macro.
50641         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
50642         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
50643         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
50644         Remove duplicate call to AC_LIBOBJ(readutmp).
50645         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
50646
50647         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
50648         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
50649
50650 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50651
50652         * MODULES.html.sh (Misc): Add byteswap.
50653
50654 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50655
50656         * modules/getcwd (Depends-on): Add extensions.
50657         * modules/openat (Depends-on): Likewise.
50658
50659 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50660
50661         * modules/byteswap: New file.
50662
50663 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50664
50665         * m4/byteswap.m4: New file.
50666
50667 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50668
50669         * lib/byteswap_.h: New file.
50670
50671 2005-04-25  Karl Berry  <karl@gnu.org>
50672
50673         * m4/gettext.m4: Update from GNU gettext 0.14.4.
50674
50675 2005-04-25  Albert Chin  <china@thewrittenword.com>
50676
50677         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
50678         Toolkit C bug.
50679
50680 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
50681
50682         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
50683         (func_ln_if_changed) Remove forcibly for no error message
50684         in case file does not exist.
50685
50686 2005-04-19  Simon Josefsson  <jas@extundo.com>
50687
50688         * gnulib-tool (Options): Make --symlink mean --symbolic.
50689
50690 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
50691
50692         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
50693
50694 2005-04-16  Simon Josefsson  <jas@extundo.com>
50695
50696         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
50697
50698 2005-04-15  Simon Josefsson  <jas@extundo.com>
50699
50700         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
50701
50702 2005-04-15  Simon Josefsson  <jas@extundo.com>
50703
50704         * gnulib-tool: Rename --symlink to --symbolic.
50705
50706 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
50707
50708         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
50709         symbolic links to files instead of copying/moving.  Add --aux-dir,
50710         specifying directory relative --dir where auxiliary build tools
50711         are placed.
50712
50713 2005-04-14  Bruno Haible  <bruno@clisp.org>
50714
50715         * modules/allocsa (License): Change to LGPL.
50716         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50717
50718 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50719
50720         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
50721         that "UTC +1 second" continues to work.  Problem reported
50722         by Dmitry V. Levin.
50723         (relunit_snumber): New rule.
50724         (relunit): Use it.
50725
50726 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
50727
50728         * lib/getdate.y (universal_time_zone_table): New constant.
50729         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
50730         universal_time_zone_table.
50731         (lookup_zone): Prefer universal_time_zone_table to
50732         local_time_zone_table, so that "GMT" time stamps are allowed in
50733         London during the summer.  Problem reported by Ian Abbott.
50734
50735 2005-04-12  Jim Meyering  <jim@meyering.net>
50736
50737         * lib/human.c (humblock): Set *options even when returning due to
50738         xstrtoumax conversion failure.  Thanks to a used-uninitialized
50739         warning from gcc-4.
50740
50741 2005-04-09  Jim Meyering  <jim@meyering.net>
50742
50743         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
50744         -Wuninitialized: initialize tm0.tm_year.
50745
50746 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50747
50748         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
50749         count, since there's no maximum.  All uses changed.
50750         Add member dsts_seen.
50751         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
50752         not being INT_MAX.
50753         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
50754         Use pc_rels_seen to decide whther a date is absolute.
50755
50756         * lib/getdate.y (number): Don't overwrite year.
50757         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
50758         check.
50759
50760 2005-04-02  Simon Josefsson  <jas@extundo.com>
50761
50762         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
50763         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
50764
50765 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
50766
50767         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
50768         where no absolute path name can be longer than PATH_MAX.
50769
50770 2005-03-27  Jim Meyering  <jim@meyering.net>
50771
50772         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
50773
50774 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
50775
50776         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
50777         "one's complement" -> "ones' complement" in comment, as per Knuth.
50778         "value of type" -> "type or expression" in comment.
50779         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
50780
50781 2005-03-26  Jim Meyering  <jim@meyering.net>
50782
50783         Comment nits.
50784         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
50785         Correct typos: s/or/of/.
50786
50787 2005-03-26  Jim Meyering  <jim@meyering.net>
50788
50789         * modules/check-include-files: Move to ../ and rename to...
50790         * check-module: ...this.
50791
50792 2005-03-25  Jim Meyering  <jim@meyering.net>
50793
50794         * modules/xvasprintf (Files): Add xalloc.h.
50795
50796 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50797
50798         * modules/gettext (Files): config/config.rpath ->
50799         build-aux/config.rpath
50800         * modules/iconv (Files): Likewise.
50801         Problem reported by Oskar Liljeblad.
50802
50803 2005-03-23  Jim Meyering  <jim@meyering.net>
50804
50805         * modules/check-include-files: New script to check for
50806         missing dependencies, multiple includes, etc.
50807
50808         * modules/c-strtold (Depends-on): Add xalloc.
50809         * modules/c-strtod (Depends-on): Add xalloc.
50810         * modules/hash (Depends-on): Add xalloc.
50811         (Files): Remove lib/xalloc.h.
50812
50813         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
50814         * modules/userspec (Files): Add lib/inttostr.h.
50815
50816 2005-03-23  Jim Meyering  <jim@meyering.net>
50817
50818         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
50819
50820 2005-03-22  Jim Meyering  <jim@meyering.net>
50821
50822         * modules/stat-macros: New module.
50823         * modules/canonicalize, modules/euidaccess, modules/file-type,
50824         * modules/filemode, modules/lchown, modules/makepath,
50825         * modules/rmdir, modules/stat: Depend on new stat-macros module
50826         rather than listing lib/stat-macros.h manually.
50827         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
50828
50829 2005-03-22  Jim Meyering  <jim@meyering.net>
50830
50831         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
50832
50833 2005-03-22  Bruno Haible  <bruno@clisp.org>
50834
50835         * config/srclist.txt: Replace target directory 'config' with
50836         'build-aux'.
50837         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
50838         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
50839         ../build-aux/.
50840
50841 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
50842
50843         * modules/chdir-long (Depends-on): Add mempcpy.
50844
50845         * modules/acl, modules/backupfile, modules/c-strtod,
50846         modules/c-strtold, modules/canon-host, modules/canonicalize,
50847         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
50848         modules/exclude, modules/exitfail, modules/file-type,
50849         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
50850         modules/getdate, modules/getline, modules/getpagesize,
50851         modules/getpass, modules/getugroups, modules/group-member,
50852         modules/hard-locale, modules/hash, modules/human, modules/idcache,
50853         modules/inttostr, modules/long-options, modules/makepath,
50854         modules/md5, modules/memcasecmp, modules/memcoll,
50855         modules/modechange, modules/mountlist, modules/path-concat,
50856         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
50857         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
50858         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
50859         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
50860         modules/strftime, modules/strndup, modules/strverscmp,
50861         modules/timespec, modules/unlocked-io, modules/userspec,
50862         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
50863         modules/yesno:
50864         Remove lib_SOURCES line from Makefile.am section, as this is now
50865         done automatically by the corresponding Autoconf macro.
50866
50867 2005-03-21  Jim Meyering  <jim@meyering.net>
50868
50869         Changes imported from coreutils.
50870
50871         * lib/cycle-check.c: Don't include xalloc.h.
50872
50873         * lib/path-concat.c: Don't include assert.h.
50874         (path_concat): Remove assertion that would have triggered
50875         for ABASE starting with more than one slash.
50876         Reported by Andreas Schwab.
50877
50878         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
50879         properly when ABASE is an absolute file name.
50880         Correct the description of this function.
50881         Include <assert.h>.
50882         Add an assertion and a test driver.
50883         This fixes a bug introduced on 2004-07-02.
50884         Andreas Schwab reported the resulting failure of cp --parents:
50885         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
50886
50887 2005-03-21  Jim Meyering  <jim@meyering.net>
50888
50889         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
50890         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
50891
50892 2005-03-21  Jim Meyering  <jim@meyering.net>
50893         and  Paul Eggert  <eggert@cs.ucla.edu>
50894
50895         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
50896         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
50897         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
50898         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
50899         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
50900         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
50901         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
50902         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
50903         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
50904         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
50905         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
50906         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
50907         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
50908         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
50909         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
50910         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
50911         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
50912         for these modules.
50913
50914 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
50915
50916         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
50917         (which shouldn't happen), generate nothing instead of returning 0
50918         immediately, so that nstrftime (NULL, ...) doesn't return 0.
50919
50920 2005-03-16  Bruno Haible  <bruno@clisp.org>
50921
50922         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
50923         HAVE_LONGLONG_64BIT.
50924
50925 2005-03-16  Bruno Haible  <bruno@clisp.org>
50926
50927         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
50928         HAVE_LONGLONG_64BIT.
50929
50930 2005-03-16  Bruno Haible  <bruno@clisp.org>
50931
50932         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
50933         HAVE_LONGLONG_64BIT.
50934
50935 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
50936
50937         * lib/strftime.c (my_strftime): Prepend space to format so that we can
50938         reliably distinguish strftime failure from empty output on POSIX
50939         hosts.
50940
50941 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
50942
50943         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
50944         (iconv_string): Don't guess a size-zero buffer, as that might cause
50945         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
50946         result would be 'too large', where 'too large' is (heuristically)
50947         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
50948         overflow concerns.  This will prevent some unwanted malloc failures
50949         when the inputs are very large.
50950
50951 2005-03-15  Karl Berry  <karl@gnu.org>
50952
50953         * config/srclist.txt (config.rpath): from gettext.
50954         * config/config.rpath: update.
50955
50956 2005-03-15  Bruno Haible  <bruno@clisp.org>
50957
50958         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
50959         to 'negate'.
50960
50961         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
50962         variable.
50963
50964         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
50965         results.
50966
50967 2005-03-14  Simon Josefsson  <jas@extundo.com>
50968
50969         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
50970         <fx@gnu.org>.
50971
50972 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
50973
50974         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
50975         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
50976         intprops.h.
50977         * lib/strtol.c: Likewise.
50978
50979 2005-03-14  Jim Meyering  <jim@meyering.net>
50980
50981         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
50982         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
50983         to be nonzero so that we (and caller) can detect the difference
50984         between a valid zero-length expansion and an error return, even
50985         when the underlying strftime fails before writing anything into
50986         that location.
50987
50988 2005-03-14  Bruno Haible  <bruno@clisp.org>
50989
50990         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
50991         Update from GNU gettext 0.14.3.
50992
50993 2005-03-10  Jim Meyering  <jim@meyering.net>
50994
50995         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
50996
50997 2005-03-10  Jim Meyering  <jim@meyering.net>
50998
50999         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51000         so that this module works on systems without fchdir.
51001
51002 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
51003
51004         Factor int-properties macros into a single file, except for
51005         glibc-related files.
51006         * lib/intprops.h: New file.
51007         * lib/getloadavg.c: Include it instead of limits.h.
51008         (INT_STRLEN_BOUND): Remove.
51009         * lib/human.c: Include intprops.h.
51010         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51011         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51012         302/1000.
51013         * lib/inttostr.h: Include intprops.h instead of limits.h.
51014         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51015         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51016         for consistency with intprops.h.
51017         (time_t_is_integer, twos_complement_arithmetic): Use them.
51018         * lib/sig2str.h: Include <signal.h>, intprops.h.
51019         (INT_STRLEN_BOUND): Remove.
51020         * lib/strftime.c (TYPE_SIGNED): Remove.
51021         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51022         * lib/strtol.c: Adjust comments to match intprops.h.
51023         * lib/userspec.c: Include intprops.h.
51024         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51025         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51026         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51027         instead of rolling our own expressions.
51028         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51029
51030         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
51031         instead of int.
51032         (my_strftime): Do not mishandle years close to INT_MAX, by doing
51033         the right thing even if adding 1900 would overflow.  Similarly
51034         for tm_mon + 1 and tm_yday + 1.
51035         Make %Y always equivalent to %C%y, and similarly for %G and %g.
51036         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51037         (DO_SIGNED_NUMBER): New macro.
51038         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51039
51040 2005-03-07  Bruno Haible  <bruno@clisp.org>
51041
51042         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51043
51044 2005-03-07  Bruno Haible  <bruno@clisp.org>
51045
51046         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51047
51048 2005-03-04  Derek R. Price  <derek@ximbiot.com>
51049
51050         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51051         (func_import): Only replace files via --import when they have actually
51052         changed.
51053
51054 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51055
51056         * m4/mmap-anon.m4: New file.
51057         * m4/pagealign_alloc.m4: New file.
51058
51059 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51060             Bruno Haible  <bruno@clisp.org>
51061
51062         * modules/pagealign_alloc: New file.
51063         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51064
51065 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51066             Bruno Haible  <bruno@clisp.org>
51067
51068         * lib/pagealign_alloc.h: New file.
51069         * lib/pagealign_alloc.c: New file.
51070
51071 2005-03-03  Bruno Haible  <bruno@clisp.org>
51072
51073         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51074         Use an all-permissive copyright notice, recommended by RMS.
51075
51076 2005-03-02  Bruno Haible  <bruno@clisp.org>
51077
51078         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51079         of AIX, the replacement has to be done only after <string.h> is
51080         included, therefore not in config.h. stpncpy.h does the replacement,
51081         and stpncpy.c uses it.
51082
51083 2005-03-02  Bruno Haible  <bruno@clisp.org>
51084
51085         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51086         stpncpy.c uses it.
51087
51088 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51089
51090         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51091         The workaround isn't strictly needed for POSIX conformance, and
51092         it's too much of a pain to configure and maintain.  We'll ask
51093         people to fix their kernels instead.
51094         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51095         (NANOSLEEP_BUG_WORKAROUND): Remove.
51096         (xnanosleep): Remove the workaround.
51097
51098 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51099
51100         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51101         Reported by Derek Price.
51102         (Include): Add "timespec.h".
51103
51104         * modules/xnanosleep (Depends-on): Remove gethrxtime.
51105
51106 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51107
51108         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51109         to detect nanosleep bug.
51110
51111 2005-03-01  Bruno Haible  <bruno@clisp.org>
51112
51113         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51114
51115 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51116
51117         * modules/gethrxtime: New file.
51118         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51119         (Depends-on): Add gethrxtime.
51120         (configure.ac): Add gl_XNANOSLEEP.
51121         (Makefile.am): Remove lib_SOURCES line.
51122
51123 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51124
51125         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51126         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51127
51128 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51129
51130         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51131         * lib/timespec.h (gettime): Return void, since it always
51132         succeeds now.  All uses changed.
51133         * lib/gettime.c (gettime) Likewise.
51134         [HAVE_NANOTIME]: Prefer nanotime.
51135         Assume gettimeofday succeeds, as POSIX requires.
51136         Assime time () succeeds, since other code already does.
51137         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51138         (timespec_subtract): Remove.
51139         (NANOSLEEP_BUG_WORKAROUND): New constant.
51140         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51141         things considerably.  Use it only on GNU/Linux hosts, since the
51142         workaround shouldn't be needed elsewhere.
51143
51144 2005-02-24  Bruno Haible  <bruno@clisp.org>
51145
51146         * modules/gettext (Files): Add m4/glibc2.m4.
51147
51148 2005-02-24  Bruno Haible  <bruno@clisp.org>
51149
51150         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51151         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51152         * m4/progtest.m4:
51153         Update from GNU gettext 0.14.2.
51154         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51155
51156 2005-02-24  Bruno Haible  <bruno@clisp.org>
51157
51158         * lib/localcharset.c: Update from GNU gettext 0.14.2.
51159         * lib/config.charset: Update from GNU gettext 0.14.2.
51160
51161 2005-02-24  Bruno Haible  <bruno@clisp.org>
51162
51163         * lib/gettext.h: Update from GNU gettext 0.14.2.
51164
51165 2005-02-23  Simon Josefsson  <jas@extundo.com>
51166
51167         * m4/iconvme.m4: New file.
51168
51169 2005-02-23  Jim Meyering  <jim@meyering.net>
51170
51171         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51172         change.
51173         Thanks to Bruno Haible for catching it.
51174
51175 2005-02-22  Simon Josefsson  <jas@extundo.com>
51176
51177         * modules/iconvme: New file.
51178
51179         * MODULES.html.sh: Add iconvme.
51180
51181 2005-02-22  Simon Josefsson  <jas@extundo.com>
51182
51183         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51184
51185 2005-02-22  Simon Josefsson  <jas@extundo.com>
51186
51187         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51188
51189 2005-02-22  Jim Meyering  <jim@meyering.net>
51190
51191         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51192         s/ifndef/ifdef/.
51193
51194 2005-02-20  Neil Conway  <neilc@samurai.com>
51195
51196         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51197         returned by OSX/Darwin if the specified buffer is not large
51198         enough for the hostname.
51199
51200 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51201
51202         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51203         pass it to _help, otherwise the latter coredumps trying to
51204         dereference state.root_argp.
51205
51206 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51207
51208         * modules/chdir-long (Depends-on): Add memrchr.
51209         * modules/memrchr (Files): Add lib/memrchr.h.
51210         (Include): "memrchr.h".
51211
51212 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51213
51214         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51215
51216 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51217
51218         * lib/memrchr.h: New file.
51219         * lib/chdir-long.c: Include it.
51220         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51221         Don't bother including stddef.h.
51222
51223 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51224
51225         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51226         inclusion.
51227         Include <sys/types.h>, for dev_t.
51228         (ME_DUMMY, ME_REMOTE): Move from here....
51229         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51230         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
51231         Dmitry V. Levin.
51232         Include mountlist.h first, to test the interface.
51233
51234 2005-01-29  Bruno Haible  <bruno@clisp.org>
51235
51236         * lib/progname.c (program_name): Initialize.
51237         Needed when linking statically on MacOS X.
51238
51239 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51240
51241         Sync from coreutils.
51242         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51243         (Depends-on): Add c-strtod.
51244         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51245
51246 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51247
51248         Sync from coreutils.
51249         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51250
51251         Remove files that are specific to coreutils.
51252         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51253
51254 2005-01-28  Bruno Haible  <bruno@clisp.org>
51255
51256         * modules/javacomp: New file.
51257         * MODULES.html.sh (Java): Add javacomp.
51258
51259 2005-01-28  Bruno Haible  <bruno@clisp.org>
51260
51261         * m4/javacomp.m4: New file, from GNU gettext.
51262
51263 2005-01-28  Bruno Haible  <bruno@clisp.org>
51264
51265         * lib/javacomp.sh.in: New file, from GNU gettext.
51266         * lib/javacomp.h: New file, from GNU gettext.
51267         * lib/javacomp.c: New file, from GNU gettext.
51268
51269 2005-01-26  Simon Josefsson  <jas@extundo.com>
51270
51271         * lib/gai_strerror.c: Use GPL in header.
51272
51273 2005-01-26  Bruno Haible  <bruno@clisp.org>
51274
51275         * modules/javaexec: New file.
51276         * MODULES.html.sh (Java): Add javaexec.
51277
51278 2005-01-26  Bruno Haible  <bruno@clisp.org>
51279
51280         * m4/javaexec.m4: New file, from GNU gettext.
51281
51282 2005-01-26  Bruno Haible  <bruno@clisp.org>
51283
51284         * lib/javaexec.sh.in: New file, from GNU gettext.
51285         * lib/javaexec.h: New file, from GNU gettext.
51286         * lib/javaexec.c: New file, from GNU gettext.
51287
51288 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51289
51290         * modules/lchown (Depends-on): Remove lchown.h
51291
51292 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51293
51294         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
51295         must be defined if the header file was not found, in order
51296         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
51297
51298 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51299
51300         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
51301         initializers for struct pentry_state.
51302         (__argp_error): Check return value of __asprintf
51303         (__argp_failure): Translate error message
51304
51305         * lib/argp-parse.c: Removed braces around the expansion of N_()
51306
51307 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51308
51309         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
51310         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
51311         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
51312         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
51313         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
51314         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
51315         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
51316         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
51317         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
51318         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
51319         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
51320         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
51321         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
51322         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
51323         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
51324         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
51325         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
51326         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
51327         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
51328         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
51329         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
51330         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
51331         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
51332         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
51333         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
51334         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
51335         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
51336         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
51337         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
51338         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
51339         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
51340         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
51341         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
51342         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
51343         xstrtol.m4, xstrtoumax.m4, yesno.m4:
51344         Use an all-permissive copyright notice, recommended by RMS.
51345
51346 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
51347
51348         * modules/chdir-long (Depends-on): Remove mempcpy.
51349
51350 2005-01-21  Jim Meyering  <jim@meyering.net>
51351
51352         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
51353         same value as for Solaris 9.
51354
51355         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
51356         component length.  This included changing the parameter to be
51357         of type `char *' rather than `char const *'.
51358         * lib/chdir-long.h (chdir_long): Update prototype.
51359
51360         * lib/openat.c (fdopendir, fstatat): New functions.
51361         * lib/openat.h: Include headers required for use of DIR and struct
51362         stat.
51363         [AT_SYMLINK_NOFOLLOW]: Define.
51364         (fdopendir, fstatat): Add prototypes.
51365
51366 2005-01-21  Bruno Haible  <bruno@clisp.org>
51367
51368         * modules/classpath: New file.
51369         * MODULES.html.sh (Java): Add classpath.
51370
51371 2005-01-21  Bruno Haible  <bruno@clisp.org>
51372
51373         * lib/classpath.h: New file, from GNU gettext.
51374         * lib/classpath.c: New file, from GNU gettext.
51375
51376 2005-01-20  Simon Josefsson  <jas@extundo.com>
51377
51378         * modules/version-etc-fsf: New file.
51379
51380 2005-01-20  Simon Josefsson  <jas@extundo.com>
51381
51382         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
51383         * lib/version-etc.c: Remove version_etc_copyright.
51384         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
51385         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
51386
51387 2005-01-20  Simon Josefsson  <jas@extundo.com>
51388
51389         * lib/base64.h (isbase64): Add.
51390
51391         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
51392         using a unsigned prototype, don't inline.
51393         (base64_decode): Use it.
51394
51395 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51396
51397         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
51398         it.
51399
51400 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51401
51402         * lib/save-cwd.c (save_cwd): Remove code to support the case
51403         where fchdir is missing or flaky.
51404
51405 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51406
51407         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
51408
51409 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51410
51411         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
51412         AC_LIBSOURCES now does this.
51413         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
51414         with new ullong_max module.
51415
51416 2005-01-19  Bruno Haible  <bruno@clisp.org>
51417
51418         * modules/sh-quote: New file.
51419         * MODULES.html.sh (Executing programs): Add sh-quote.
51420
51421 2005-01-19  Bruno Haible  <bruno@clisp.org>
51422
51423         * lib/sh-quote.h: New file, from GNU gettext.
51424         * lib/sh-quote.c: New file, from GNU gettext.
51425
51426 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51427
51428         Merge from coreutils.
51429         * m4/ullong_max.m4: New file.
51430         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
51431         (gl_MACROS): Assume localeconv exists.
51432
51433 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51434
51435         Merge changes from coreutils, as described below in several
51436         changelogs dated today.
51437
51438         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
51439         (O_DIRECTORY): Remove; not needed here, since "." must be
51440         a directory.  All uses removed.
51441         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
51442         universal on Suns, and we also need to test for IRIX.
51443         Revamp code to use 'if' rather than '#if'.
51444         Avoid unnecessary comparison of cwd->desc to 0.
51445
51446         * lib/utimens.c (futimens): Robustify the previous patch, by checking
51447         for known valid error numbers rather than observed invalid ones.
51448
51449 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51450
51451         * modules/ullong_max: New file.
51452
51453         * modules/chdir-long, modules/openat: New files.
51454         * modules/save-cwd (Depends-on): Depend on chdir-long.
51455         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
51456
51457 2005-01-18  Jim Meyering  <jim@meyering.net>
51458
51459         Merge from coreutils.
51460         * m4/chdir-long.m4, m4/openat.m4: New files.
51461         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
51462         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
51463         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
51464         is sane and DOES follow symlinks.  Besides, testing 20 different
51465         systems found no broken chown implementations.
51466         Prompted by a change in rsync's copy of this macro.
51467         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
51468
51469         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
51470
51471         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
51472         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
51473         NULL-means-set-to-current-time semantics.
51474         Remove temporary file immediately, rather than waiting
51475         for configure's at-exit trap code to do it.
51476
51477 2005-01-18  Jim Meyering  <jim@meyering.net>
51478
51479         * lib/version-etc.c (version_etc_copyright): Update copyright date.
51480
51481         * lib/utimens.c (futimens): Account for the fact that futimes
51482         can also fail with errno == ENOSYS or errno == ENOENT.
51483         Patch from Dmitry V. Levin.
51484
51485         Change the name of the robust chdir function from chdir to chdir_long.
51486         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
51487         (restore_cwd): Use chdir_long, not chdir.
51488         * lib/chdir-long.c: Renamed from chdir.c.
51489         * lib/chdir-long.h: Renamed from chdir.h.
51490         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
51491         Hurd.
51492
51493 2005-01-18  Bruno Haible  <bruno@clisp.org>
51494
51495         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
51496         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
51497         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
51498         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
51499         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
51500         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
51501         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
51502         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
51503         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
51504         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
51505         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
51506         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
51507         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
51508         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
51509         Use an all-permissive copyright notice, recommended by RMS.
51510
51511 2005-01-18  Bob Proulx  <bob@proulx.com>
51512
51513         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
51514         simplify offsetof() macro construct to avoid compile failure with
51515         native HP-UX 11.0 ANSI C compiler.
51516
51517 2005-01-17  Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
51520         redundant because stpncpy.m4 takes care of it.
51521
51522 2005-01-17  Bruno Haible  <bruno@clisp.org>
51523
51524         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
51525
51526 2005-01-17  Bruno Haible  <bruno@clisp.org>
51527
51528         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
51529         used.
51530
51531 2005-01-17  Bruno Haible  <bruno@clisp.org>
51532
51533         * lib/fwriteerror.h (fwriteerror): Change specification to include
51534         fclose.
51535         * lib/fwriteerror.c: Include <stdbool.h>.
51536         (fwriteerror): At the end, close the file stream. Record whether
51537         stdout was already closed.
51538
51539 2005-01-17  Bruno Haible  <bruno@clisp.org>
51540
51541         * lib/execute.c (environ): Declare if needed.
51542         * lib/pipe.c (environ): Likewise.
51543         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
51544
51545 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51546
51547         * modules/argp: Depend on vsnprintf
51548
51549 2005-01-10  Jim Meyering  <jim@meyering.net>
51550
51551         * modules/closeout (Depends-on): Add atexit.
51552
51553 2005-01-06  Bruno Haible  <bruno@clisp.org>
51554
51555         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
51556
51557 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51558
51559         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
51560         definitions to be after all include files, to avoid collisions.
51561         Problem reported by Bob Proulx.
51562
51563 2005-01-04  Jim Meyering  <jim@meyering.net>
51564
51565         Changes imported from coreutils.
51566         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
51567         as the mkstemp template, use a temporary directory and an
51568         8.3-friendly template to avoid trouble on systems like DJGPP.
51569         Reported by Juan M. Guerrero via Stepan Kasal.
51570         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
51571         close. Remove the temporary directory right away, rather than waiting
51572         for configure's at-exit trap code to do it.
51573         Suggestion from Stepan Kasal.
51574
51575 2005-01-01  Simon Josefsson  <jas@extundo.com>
51576
51577         * gnulib-tool: Print #include directives when --import'ing.
51578
51579 2004-12-28  Simon Josefsson  <jas@extundo.com>
51580
51581         * tests/test-base64.c: Include required header files.  Remove
51582         unused variables.
51583
51584 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51585
51586         * modules/error (Depends-on): Remove gettext.
51587
51588 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51589
51590         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
51591         not needed.  This removes a dependency on the gettext module.
51592         [defined _LIBC]: Do not include <libintl.h>; not needed.
51593
51594 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51595
51596         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
51597         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
51598
51599 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51600
51601         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
51602         HAVE_DECL_STRTOLD.
51603
51604 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51605
51606         * modules/getdate (Depends-on): Remove alloca-opt.
51607
51608 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51609
51610         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
51611
51612 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51613
51614         * lib/argp-parse.c: Include <stddef.h>.
51615         (alignof, alignto): New macros.
51616         (parser_init): Don't assume that void * is aligned sufficiently
51617         for struct option.
51618
51619         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
51620         need to extend the stack.
51621         (YYINITDEPTH): New macro, so that the initial stack isn't overly
51622         large.
51623
51624 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51625
51626         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
51627
51628 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51629
51630         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
51631         (2004-10-24) change.  Apparently this was a false alarm.
51632
51633         * modules/getdate: Depend on alloca-opt, not alloca.
51634
51635 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51636
51637         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
51638         Remove now-obsolete comment about AIX.
51639         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
51640         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
51641         (YYMAXDEPTH): New macro.
51642
51643 2004-12-18  Simon Josefsson  <jas@extundo.com>
51644
51645         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
51646
51647 2004-12-18  Bruno Haible  <bruno@clisp.org>
51648
51649         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
51650
51651 2004-12-18  Bruno Haible  <bruno@clisp.org>
51652
51653         * lib/fatal-signal.c (fatal_signals): Make non-const.
51654         (init_fatal_signals): New function.
51655         (uninstall_handlers, install_handlers): Ignore signals that were set to
51656         SIG_IGN.
51657         (at_fatal_signal): Call init_fatal_signals.
51658         (init_fatal_signal_set): Likewise. Ignore signals that were set to
51659         SIG_IGN.
51660         Reported by Paul Eggert.
51661
51662 2004-12-18  Bruno Haible  <bruno@clisp.org>
51663
51664         * doc/alloca.texi: New file.
51665         * doc/alloca-opt.texi: New file.
51666
51667 2004-12-17  Jim Meyering  <jim@meyering.net>
51668
51669         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
51670         Otherwise, install-sh could exit with improper exit status when
51671         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
51672
51673 2004-12-16  Simon Josefsson  <jas@extundo.com>
51674
51675         * tests/test-base64.c: Add license.
51676
51677 2004-12-15  Stepan Kasal  <address@hidden>
51678
51679         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
51680
51681 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
51682
51683         * modules/getcwd (Files): Add m4/d-ino.m4.
51684         Suggested by Mark D. Baushke.
51685
51686 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51687
51688         * lib/getdate.y (textint): New member "negative".
51689         (time_zone_hhmm): New function.
51690         Expect 14 shift-reduce conflicts, not 13.
51691         (o_colon_minutes): New rule.
51692         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
51693         (yylex): Set the "negative" member of signed numbers.
51694
51695 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51696
51697         * doc/getdate.texi (Time of day items, Time zone items):
51698         Describe new formats +00:00, UTC+00:00.
51699
51700 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51701
51702         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
51703         spurious "-l"s.  Problem reported by Stepan Kasal.
51704
51705 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
51706
51707         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
51708         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
51709
51710 2004-12-04  Simon Josefsson  <jas@extundo.com>
51711
51712         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
51713         Vandoorselaere <yoann@prelude-ids.org>.
51714
51715 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51716
51717         Changes imported from coreutils.
51718         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
51719         exist.
51720         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
51721
51722 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51723
51724         Changes imported from coreutils.
51725         * lib/hard-locale.c: Assume <locale.h> exists.
51726         Include "strdup.h".
51727         (GLIBC_VERSION): New macro.
51728         (hard_locale): Assume setlocale exists.
51729         Rewrite to avoid #ifdef.
51730         Use strdup rather than malloc + strcpy.
51731         * lib/human.c: Assume <locale.h> exists.
51732         (human_readable): Assume localeconv exists.
51733
51734 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51735
51736         * modules/hard-locale (Depends-on): Add strdup.
51737
51738 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51739
51740         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
51741         convert T2, not T.  (Imported from libc.)
51742
51743 2004-11-30  Simon Josefsson  <jas@extundo.com>
51744
51745         * modules/restrict (License): Change to LGPL.
51746
51747 2004-11-30  Simon Josefsson  <jas@extundo.com>
51748
51749         * m4/restrict.m4: Add copyright and copying conditions.
51750
51751 2004-11-30  Simon Josefsson  <jas@extundo.com>
51752
51753         * m4/base64.m4: New file.
51754
51755 2004-11-30  Simon Josefsson  <jas@extundo.com>
51756
51757         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
51758         base64.
51759
51760         * tests/test-base64.c: New file.
51761
51762         * modules/base64: New file.
51763
51764 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51765
51766         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
51767         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
51768
51769         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
51770
51771 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51772
51773         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
51774         (__getcwd.c): Don't restore errno; glibc doesn't.
51775         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
51776         first, falling back to our code only if its results look suspicious.
51777         Ensure that the resulting buffer is only as large as necessary.
51778
51779         * lib/readutmp.c: Include readutmp.h first.
51780         Include <errno.h>, since readutmp.h no longer does that.
51781         * lib/readutmp.h: Don't include <errno.h>,
51782         <sys/param.h>, <time.h>; not needed to establish interface.
51783         (errno): Remove decl.
51784         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
51785         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
51786         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
51787
51788 2004-11-28  Simon Josefsson  <jas@extundo.com>
51789
51790         * lib/base64.h, base64.c: New file.
51791
51792 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51793
51794         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
51795
51796 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51797
51798         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
51799         (Depends-on): Remove pathmax, same.  Add mempcpy.
51800         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
51801         (Makefile.am): Append getcwd.h to lib_SOURCES.
51802         (Include): Add getcwd.h.
51803         (Maintainer): Change from Jim Meyering to "all, glibc",
51804         since getdate now uses intended-for-glibc code.
51805         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
51806         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
51807
51808 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51809
51810         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
51811         HP's ANSI C compiler.
51812         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
51813         Declaring int functions causes warnings on some modern systems and
51814         shouldn't be needed to compile on ancient ones.
51815         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
51816         defined.
51817
51818         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
51819         with the following changes.
51820         (__set_errno): Parenthesize properly.
51821         Include <stdbool.h>.
51822         (MIN, MAX, MATCHING_INO): New macros.
51823         (__getcwd): Define with prototype, not K&R form.
51824         Use heuristics to allocate default buffer on stack if possible.
51825         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
51826         behavior, and to avoid the PATH_MAX limit when computing
51827         ../../../../...
51828         Use MATCHING_INO to compare inode number to file.
51829         Check for arithmetic overflow in size calculations.
51830         Fix bug in reallocation of dot array that caused getcwd to fail
51831         on directories nested deeper than 75.
51832         Be more careful about saving errno on error.
51833         Do not use realloc; use only free+malloc, as this is a bit
51834         more flexible and avoids a needless copy operation.
51835         Do not inspect st_dev and st_ino for symbolic links; POSIX
51836         doesn't specify the latter.
51837         Check for closedir errors.
51838         Avoid needless casts.
51839         Use "#ifdef weak_alias" around weak_alias, to be like other
51840         glibc code.
51841         The following changes to getcwd.c have effect only when used in
51842         gnulib; they have no effect inside glibc proper.
51843         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
51844         as alloca isn't used.
51845         (alloca, __alloca): Likewise.
51846         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
51847         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
51848         unconditionally, as gnulib assumes C89 or better.
51849         Do not include <sys/param.h>.
51850         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
51851         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
51852         better.
51853         (NULL) [!defined NULL]: Remove; we assume C89 or better.
51854         Include <dirent.h> in a way that is compatible with modern Autoconf.
51855         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
51856         New macros, if not already defined.
51857         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
51858         Use "_LIBC", not "defined _LIBC", for consistency.
51859         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
51860         a mempcpy module.
51861         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
51862         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
51863         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
51864         credit only to Jim Meyering and adjust the copyright dates.
51865         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
51866         <stdlib.h>, <unistd.h>, "pathmax.h".
51867         Instead, include "xgetcwd.h" (first) and "getcwd.h".
51868         (INITIAL_BUFFER_SIZE): Remove.
51869         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
51870
51871 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51872
51873         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
51874         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
51875         Use the _ONCE methods, for efficiency.
51876         Check for fcntl.h.  In test program, include <errno.h>
51877         and <fcntl.h> if available.  Remove old K&R cruft from
51878         test program.  Check for common errors in GNU/Linux,
51879         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
51880         don't do AC_LIBOBJ, as that's getcwd.m4's job.
51881         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
51882         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
51883         name accordingly.
51884         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
51885         accommodate new getcwd.c.
51886         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
51887         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
51888         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
51889         that's all we need now.
51890
51891 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51892
51893         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
51894         argp-parse.c depends on getopt internals, that means we should
51895         always use our getopt, to be on the safe side.
51896         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
51897         order not to spoil the result of an eventual previous invocation
51898         of gl_GETOPT_SUBSTITUTE.
51899
51900 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51901
51902         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
51903         redefinition warnings. To avoid them, include the defines
51904         in `#if !defined __need_getopt ... #endif'. The only place
51905         where __getopt_argv_const is used is in definitions
51906         of getopt_long and getopt_long_only below, which are as well
51907         protected by `#ifndef __need_getopt'.
51908         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
51909         __need_getopt after including <stdio.h> and <unistd.h> These
51910         headers might have defined it.
51911
51912 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
51913
51914         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
51915
51916 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
51917
51918         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
51919         (futimens): New function, which uses futimes if available.
51920         (futimens, utimens): Support timespec==NULL, with same semantics
51921         as utime and utimens.
51922         * lib/utimens.h (futimens): New decl.
51923
51924 2004-11-23  Jim Meyering  <jim@meyering.net>
51925
51926         * lib/getopt_.h: Remove trailing blanks.
51927
51928 2004-11-23  Jim Meyering  <jim@meyering.net>
51929
51930         * lib/__fpending.c: Add comment.
51931
51932 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
51933
51934         * modules/canonicalize (Depends-on): Add xreadlink.
51935         Problem reported by James Youngman.
51936
51937 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51938
51939         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
51940         New macros.
51941         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
51942         optopt): Use them instead of invoking ## directly; otherwise, the
51943         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
51944
51945 2004-11-19  Bruno Haible  <bruno@clisp.org>
51946
51947         * lib/strtok_r.c: Move comments from here...
51948         * lib/strtok_r.h: ... to here.
51949
51950 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51951
51952         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
51953         implementations that mishandle size_t overflow.
51954
51955 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51956
51957         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
51958         might fail.  Problem reported by Yoann Vandoorselaere.
51959         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
51960         implementations that mishandle size_t overflow.
51961
51962 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51963
51964         * modules/canon-host (Depends-on): Add strdup.
51965
51966 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51967
51968         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
51969
51970 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51971
51972         * lib/canon-host.c: Include "strdup.h".
51973         (canon_host): Use getaddrinfo if available, so that IPv6 works.
51974         Use strdup instead of malloc/strcpy to duplicate strings.
51975
51976         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
51977         (human_space_before_unit): New constant.
51978         * lib/human.c (human_readable): Support it.
51979
51980         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
51981         (xgetcwd): Set errno correctly when failing.
51982         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
51983         the failure is actually due to a PATH_MAX problem.
51984
51985         Further getopt changes to make it more likely that glibc will
51986         buy the changes back.
51987         * lib/getopt.c (POSIXLY_CORRECT): New constant.
51988         (getopt): Use it, so to preserve glibc semantic
51989         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
51990         when compiling for libc.
51991         * lib/getopt_.h (__getopt_argv_const): Bring it back.
51992         (getopt_long, getopt_long_only): Use it.
51993
51994         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
51995         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
51996         (getopt): Argv is now char * const *, as per standard.
51997         (_getopt_internal_r, _getopt_internal): Argv is now char **,
51998         not char *__getopt_argv_const *.
51999         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52000         _getopt_long_only_r): Likewise.
52001         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52002         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52003         _getopt_long_r, _getopt_long_only_r): Likewise.
52004         * lib/getopt_.h (__getopt_argv_const): Remove.
52005         (getopt): Argv is now char * const *, as per standard.
52006
52007         * lib/getdate.y (tORDINAL): New token.
52008         (day, relunit): Allow it for relative times.
52009         (relative_time_table): Use tORDINAL for ordinals.
52010
52011 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52012
52013         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52014         Document that "second" isn't allowed as an ordinal number.
52015
52016 2004-11-16  Jim Meyering  <jim@meyering.net>
52017
52018         * modules/closeout (Depends-on): Add fpending.
52019
52020 2004-11-15  Jim Meyering  <jim@meyering.net>
52021
52022         * lib/closeout.c: Include "__fpending.h" once again.
52023         Include <stdbool.h>.
52024         (close_stdout): Don't fail just because stdout was closed initially,
52025         since some programs don't write to stdout in the normal course of
52026         operation (other than --version and --help), and we don't want this
52027         function to make e.g. `touch file >&-' fail.
52028         But do fail if it was closed and someone has tried to write to it.
52029         E.g., `printf foo >&-' must fail.
52030
52031 2004-11-13  Jim Meyering  <jim@meyering.net>
52032
52033         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52034
52035 2004-11-12  Simon Josefsson  <jas@extundo.com>
52036
52037         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52038         small doc fix is still pending.
52039
52040 2004-11-11  Simon Josefsson  <jas@extundo.com>
52041
52042         * modules/strtok_r: New file.
52043
52044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52045         strtok_r.
52046
52047 2004-11-11  Simon Josefsson  <jas@extundo.com>
52048
52049         * m4/strtok_r.m4: New file.
52050
52051         * m4/getopt.m4: Replace opterr.
52052
52053 2004-11-11  Simon Josefsson  <jas@extundo.com>
52054
52055         * lib/strtok_r.h, strtok_r.c: New file.
52056
52057 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52058
52059         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52060         of replacing opterr, getopt, etc.  This should handle the
52061         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52062
52063 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52064
52065         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52066         we can stop lying to compilers about the constness of argv when we
52067         are compiled outside glibc.
52068         (getopt, getopt_long, getopt_long_only): Use it.
52069         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52070         _getopt_internal, getopt): Likewise.
52071         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52072         _getopt_long_only_r): Likewise.
52073         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52074         _getopt_long_r, _getopt_long_only_r): Likewise.
52075
52076         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52077         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52078         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52079         the other external symbols.
52080         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52081         declaration, since the above renaming now works around collisions.
52082
52083 2004-11-11  Jim Meyering  <jim@meyering.net>
52084
52085         * lib/linebreak.c: Remove trailing blanks.
52086         * lib/alloca_.h: Likewise.
52087         * lib/acosl.c: Likewise.
52088         * lib/euidaccess.c: Likewise.
52089         * lib/allocsa.h: Likewise.
52090
52091 2004-11-10  Simon Josefsson  <jas@extundo.com>
52092
52093         * m4/getaddrinfo.m4: New file.
52094
52095 2004-11-10  Simon Josefsson  <jas@extundo.com>
52096
52097         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52098
52099 2004-11-10  Simon Josefsson  <jas@extundo.com>
52100
52101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52102         getaddrinfo.
52103
52104         * modules/getaddrinfo: New file.
52105
52106 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52107
52108         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52109
52110 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52111
52112         * lib/mktime.c (SHR): New macro, which is a portable
52113         substitute for >> that should work even on Crays.
52114         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52115         Problem reported by Mark D. Baushke in
52116         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52117         * lib/getdate.y (SHR): Likewise.
52118         (tm_diff): Use it.
52119         * lib/strftime.c (SHR): Likewise.
52120         (tm_diff): Use it.
52121         * lib/quotearg.c (struct quoting_options): Use unsigned int for
52122         quote_these_too, so that right shifts are well defined.  All uses
52123         changed.
52124
52125 2004-11-10  Jim Meyering  <jim@meyering.net>
52126
52127         Ensure that no close failure goes unreported.
52128         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
52129         return early when it seems there's nothing to flush.
52130         Don't include __fpending.h.
52131
52132 2004-11-10  Jim Meyering  <jim@meyering.net>
52133
52134         * modules/closeout (Depends-on): Remove fpending.
52135
52136 2004-11-10  Jim Meyering  <jim@meyering.net>
52137
52138         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52139
52140 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52141
52142         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
52143         gl_FUNC_STRFTIME.
52144         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52145         and AC_REQUIRE when possible, to avoid duplicate checks.
52146         Check for <wchar.h>.
52147
52148 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52149
52150         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52151
52152 2004-11-09  Bruno Haible  <bruno@clisp.org>
52153
52154         * m4/sockpfaf.m4: New file.
52155
52156 2004-11-05  Bruno Haible  <bruno@clisp.org>
52157
52158         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52159         Reported by Mark D. Baushke <mdb@cvshome.org>.
52160
52161 2004-11-04  Bruno Haible  <bruno@clisp.org>
52162
52163         2004-09-11  Bruno Haible  <bruno@clisp.org>
52164                 * allocsa.valgrind: New file.
52165         2004-02-06  Bruno Haible  <bruno@clisp.org>
52166                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52167                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52168                 Reported by Christopher Seip <chris.seip@hp.com>.
52169
52170 2004-11-04  Bruno Haible  <bruno@clisp.org>
52171
52172         * modules/allocsa (Files): Add lib/allocsa.valgrind.
52173         (Makefile.am): Distribute it.
52174
52175 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52176
52177         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52178         with errno == ERANGE if the buffer is too small.
52179         Problem reported by Mark D. Baushke.
52180
52181 2004-11-03  Albert Chin  <china@thewrittenword.com>
52182             Paul Eggert  <eggert@cs.ucla.edu>
52183
52184         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52185         equivalent, substitute $ac_type for equivalent type rather than
52186         blindly using uint32_t *always* which won't work if uint32_t is not
52187         available.  Define _UINT32_T to work around typedef of uint32_t if
52188         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52189         2.5.1.
52190
52191 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         * m4/jm-macros.m4: Sync from coreutils.
52194         (gl_MACROS): Check for mbrlen, for pathchk.
52195         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52196
52197 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52198
52199         * lib/xreadlink.c (MAXSIZE): New macro.
52200         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
52201         size does not exceed MAXSIZE.  Avoid cast.
52202         As suggested by Mark D. Baushke in
52203         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52204         if readlink fails with buffer size just under MAXSIZE, try again
52205         with MAXSIZE.
52206
52207 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52208
52209         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52210
52211 2004-11-02  Derek R. Price  <derek@ximbiot.com>
52212         and  Paul Eggert  <eggert@cs.ucla.edu>
52213
52214         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52215         (get_date): Overparenthesize to avoid GCC warning.
52216
52217 2004-11-02  Bruno Haible  <bruno@clisp.org>
52218
52219         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52220         returns void.
52221
52222 2004-11-02  Bruno Haible  <bruno@clisp.org>
52223
52224         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52225         function returns void.
52226
52227 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52228
52229         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52230         fflush_unlocked, flockfile, funlockfile, funlockfile,
52231         fputs_unlocked, putc_unlocked.
52232
52233 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52234
52235         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52236         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52237         already declared.
52238
52239 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52240
52241         * modules/getdate (Files): Add doc/getdate.texi.
52242         (Depends-on): Add setenv, xalloc.
52243
52244 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52245
52246         * lib/getdate.y: Add support for TZ="foo" within a date string.
52247         Fix some bugs near time_t boundaries.  Reject dates with
52248         out-of-range components, e.g., "Sept 31".
52249         Include <stdlib.h>, "setenv.h", "xalloc.h".
52250         (ISDIGIT_LOCALE): Remove; unused.
52251         Note that the TZ and time functions used here are not reentrant.
52252         (mktime_ok, get_tz): New functions.
52253         (TZBUFSIZE): New constant.
52254         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
52255         This requires that we sometimes generate our own TZ="XXX..." setting.
52256
52257 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52258
52259         * doc/getdate.texi: New file, from coreutils with modifications for
52260         the new TZ parsing.
52261
52262 2004-10-27  Derek R. Price  <derek@ximbiot.com>
52263
52264         * lib/mktime.c (not_equal_tm): Remove redundant check.
52265
52266 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52267
52268         * modules/regex (lib_SOURCES): Add regex.c.
52269         Reported by James Youngman in
52270         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52271
52272 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52273
52274         * lib/getdate.y: Use Bison 1.875 features, and some minor
52275         code cleanups.  This change does not affect semantics.
52276         Don't include <stdlib.h>; no longer needed.
52277         Don't include unlocked-io.h; only the "#if TEST" code uses
52278         stdio, and performance isn't crucial there.
52279         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52280         Bison 1.875 features as described below.
52281         All uses of "PC." replaced by "pc->".
52282         (YYSTYPE): Add a forward declaration.
52283         (yylex, yyerror): Use full prototypes in forward decls.
52284         Use "%pure-parser" rather than obsolescent "%pure_parser".
52285         Use %parse-param and %lex-param instead of obsolescent
52286         YYPARSE_PARAM and YYLEX_PARAM.
52287         (meridian_table, month_and_day_table, time_units_table,
52288         relative_time_table, time_zone_table, military_table,
52289         lookup_zone, lookup_word, get_date):
52290         Use NULL instead of 0 where appropriate.
52291         (to_hour): Avoid abort (), to avoid a dependency on
52292         stdlib.h.
52293         (yyerror, yylex): Now accepts parser_control * arg.
52294         (main) [TEST]: Use '\0' rather than 0 for char.
52295
52296 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52297
52298         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
52299
52300 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52301
52302         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
52303         It's now the caller's responsibility to handle the case where
52304         !HAVE_GETPAGESIZE && !defined getpagesize.
52305
52306         * lib/mktime.c (leapyear): Arg is long int, not int.
52307
52308 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
52309
52310         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
52311
52312 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52313
52314         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
52315         missing.  Problem reported by James Youngman.
52316
52317 2004-10-16  Simon Josefsson  <jas@extundo.com>
52318
52319         * gnulib-tool: Fix comments.  Fix parse problem.
52320         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
52321
52322 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
52323
52324         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
52325         implementation of getopt_long.  Problem reported by Alexander Taler in:
52326         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
52327
52328 2004-10-15  Bruno Haible  <bruno@clisp.org>
52329
52330         * gnulib-tool: Untabify. Initialize supplied_libname.
52331         (func_usage): More homogenous output.
52332         (func_modules_transitive_closure, func_modules_to_filelist,
52333         func_emit_lib_Makefile_am): New functions.
52334         (func_import): New function, extracted from big case statement. Use
52335         func_get_license, func_modules_transitive_closure,
52336         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
52337         opt_lgpl. Don't use test -a, as it's not portable.
52338         (func_create_testdir): Use func_modules_transitive_closure,
52339         func_modules_to_filelist, func_emit_lib_Makefile_am.
52340
52341 2004-10-15  Bruno Haible  <bruno@clisp.org>
52342
52343         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
52344
52345 2004-10-15  Bruno Haible  <bruno@clisp.org>
52346
52347         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
52348         the portions belonging to each module.
52349         Suggested by Derek Robert Price <derek@ximbiot.com>.
52350
52351 2004-10-12  Simon Josefsson  <jas@extundo.com>
52352
52353         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52354         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
52355         to real functions.
52356
52357 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52358
52359         * modules/vsnprintf: New file.
52360
52361 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52362
52363         * m4/vsnprintf.m4: New file.
52364
52365 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52366
52367         * lib/vsnprintf.h: New file.
52368         * lib/vsnprintf.c: New file.
52369
52370 2004-10-11  Bruno Haible  <bruno@clisp.org>
52371
52372         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
52373         vsnprintf.
52374
52375 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52376
52377         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
52378
52379 2004-10-07  Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
52382         fits into the provided buffer.
52383
52384 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52385
52386         * lib/diacrit.c, diacrit.h: Add GPL notice.
52387
52388         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
52389         notice.
52390         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
52391         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
52392         This avoids a potential constant-folding bug.
52393
52394 2004-10-05  Bruno Haible  <bruno@clisp.org>
52395
52396         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
52397         for the declaration of strsep.
52398
52399 2004-10-05  Bruno Haible  <bruno@clisp.org>
52400
52401         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
52402
52403 2004-10-04  Simon Josefsson  <jas@extundo.com>
52404
52405         * modules/memmem: New file.
52406         * tests/test-memmem.c: New file.
52407         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
52408
52409 2004-10-04  Simon Josefsson  <jas@extundo.com>
52410
52411         * m4/memmem.m4: New file.
52412
52413 2004-10-04  Simon Josefsson  <jas@extundo.com>
52414
52415         * lib/memmem.h: New file.
52416         * lib/memmem.c: New file, taken from glibc.
52417
52418 2004-10-04  Simon Josefsson  <jas@extundo.com>
52419
52420         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
52421         '#ifdef USE_UNLOCKED_IO'.
52422
52423 2004-10-04  Simon Josefsson  <jas@extundo.com>
52424
52425         * config/srclist.txt: Add memmem from glibc.
52426
52427 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52428
52429         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
52430
52431         * modules/argmatch, modules/argp, modules/closeout, modules/error,
52432         modules/exclude, modules/getdate, modules/getline,
52433         modules/getndelim2, modules/getpass, modules/getpass-gnu,
52434         modules/getusershell, modules/linebuffer, modules/md5,
52435         modules/mountlist, modules/posixtm, modules/readtokens,
52436         modules/readutmp, modules/regex, modules/sha1,
52437         modules/version-etc, modules/yesno:
52438         Remove dependency on unlocked-io.
52439
52440 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52441
52442         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
52443
52444         * m4/unlocked-io.m4: Add copyright notice.
52445         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
52446
52447 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52448
52449         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
52450         * lib/xmalloc.c (xmemdup): Likewise.
52451         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
52452         XFREE): Remove these long-obsolescent macros.
52453         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
52454         * lib/xstrdup.c: Remove.
52455
52456         * lib/regex.c (re_comp): Cast gettext return value to char *,
52457         Problem reported by Martin Neitzel via Mark D. Baushke.
52458
52459 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52460
52461         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
52462         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
52463         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
52464         regex.c, sha1.c, version-etc.c, yesno.c:
52465         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
52466         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
52467         the includer's responsibility.
52468
52469         Sync from coreutils.
52470
52471         * lib/modechange.c (mode_compile): Don't decrement a pointer that
52472         points to the start of a string, as the C Standard says the
52473         resulting behavior is undefined.
52474
52475         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
52476         simple -> simple_backups, numbered_existing ->
52477         numbered_existing_backups, numbered -> numbered_backups
52478         to avoid shadowing problems.  All uses changed.
52479         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
52480         * lib/backupfile.c (check_extension, numbered_backup):
52481         Rename locals to avoid shadowing 'basename'.
52482         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
52483         once.
52484
52485         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
52486         * lib/.cvsignore: Add getopt.h.
52487
52488 2004-10-04  Bruno Haible  <bruno@clisp.org>
52489
52490         * modules/README: New file.
52491         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
52492         not a module.
52493
52494 2004-10-02  Jim Meyering  <jim@meyering.net>
52495
52496         * lib/dirfd.h, getpagesize.h: Add copyright notice.
52497
52498 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52499
52500         * modules/strsep: New file.
52501
52502 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52503
52504         * m4/strsep.m4: New file.
52505
52506 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52507
52508         * lib/strsep.h: New file.
52509         * lib/strsep.c: New file.
52510
52511 2004-10-01  Simon Josefsson  <jas@extundo.com>
52512
52513         * lib/snprintf.c (snprintf): Handle size==0.
52514
52515 2004-10-01  Simon Josefsson  <jas@extundo.com>
52516             Bruno Haible  <bruno@clisp.org>
52517
52518         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
52519         (snprintf): Declare 'args'.
52520
52521 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
52522
52523         * lib/snprintf.c: Remove comments as to why each header is needed.
52524
52525 2004-10-01  Bruno Haible  <bruno@clisp.org>
52526
52527         * MODULES.html.sh: Add strsep.
52528
52529 2004-09-30  Simon Josefsson  <jas@extundo.com>
52530
52531         * modules/snprintf: New file.
52532
52533 2004-09-30  Simon Josefsson  <jas@extundo.com>
52534
52535         * m4/snprintf.m4: New file.
52536
52537 2004-09-30  Simon Josefsson  <jas@extundo.com>
52538
52539         * lib/snprintf.h, lib/snprintf.c: New files.
52540
52541 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52542
52543         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
52544         (hol_entry_help): Never translate an empty string.
52545         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
52546         * lib/argp.h (OPTION_NO_TRANS): New option.
52547
52548 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52549
52550         * modules/argp (Maintainer): Replace Simon Josefsson
52551         by Sergey Poznyakoff.
52552
52553 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52554
52555         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
52556         changes merged back into glibc.
52557
52558 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52559
52560         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
52561
52562 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
52563
52564         * lib/xvasprintf.c: Include xalloc.h.
52565         (xvasprintf): Use xalloc_die, not xmalloc_die.
52566
52567 2004-09-29  Bruno Haible  <bruno@clisp.org>
52568
52569         * modules/alloca-opt: New file, derived from modules/alloca.
52570         * modules/allocsa: Depend on alloca-opt instead of alloca.
52571         * modules/setenv: Likewise.
52572         * modules/vasnprintf: Likewise.
52573         * MODULES.html.sh: Add alloca-opt.
52574
52575 2004-09-28  Simon Josefsson  <jas@extundo.com>
52576
52577         * gnulib-tool: New parameter --lgpl, to asseert that modules are
52578         LGPL, and to replace license template from GPL to LGPL.
52579
52580 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52581
52582         * modules/dummy: Change license to LGPL.
52583
52584 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52585
52586         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
52587
52588 2004-09-24  Simon Josefsson  <jas@extundo.com>
52589
52590         * modules/minmax (License): Change from GPL to LGPL.
52591
52592 2004-09-23  Simon Josefsson  <jas@extundo.com>
52593
52594         * gnulib-tool (--import): Typo.
52595
52596 2004-09-23  Simon Josefsson  <jas@extundo.com>
52597
52598         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
52599
52600 2004-09-22  Bruno Haible  <bruno@clisp.org>
52601
52602         * modules/*: Add 'License' field.
52603         * gnulib-tool: Accept --extract-license option.
52604         (func_get_license): New function.
52605
52606 2004-09-21  Bruno Haible  <bruno@clisp.org>
52607
52608         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
52609         Reported by Simon Josefsson.
52610
52611 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52612
52613         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
52614         gl_AC_TYPE_LONG_LONG.
52615
52616 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52617
52618         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
52619
52620 2004-09-18  Simon Josefsson  <jas@extundo.com>
52621         and  Paul Eggert  <eggert@cs.ucla.edu>
52622
52623         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
52624         calls with autoreconf.  Define GL_LIB.
52625
52626 2004-09-14  Karl Berry  <karl@gnu.org>
52627
52628         * config/srclist.txt: unsync setenv.c, sigh.
52629
52630 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52631
52632         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
52633         Problem reported by Bruno Haible in:
52634         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
52635
52636 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52637
52638         * config/srclist.txt: Comment out argp-pvh.c.
52639
52640 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
52641
52642         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
52643         in case some system header has #define'd it.  Problem reported by
52644         Soeren D. Schulze in
52645         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
52646
52647 2004-09-09  Karl Berry  <karl@gnu.org>
52648
52649         * regex.[ch]: delete from the root.  These were supposed to be
52650                 synced with emacs cvs, but this has not happened for about
52651                 a year, and anyway nothing else uses emacs regex.[ch].
52652                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
52653                 lib/regex[.ch] is untouched.
52654
52655 2004-09-09  Bruno Haible  <bruno@clisp.org>
52656
52657         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
52658
52659 2004-09-09  Bruno Haible  <bruno@clisp.org>
52660
52661         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
52662         modifications.
52663         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
52664
52665 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52666
52667         * modules/xvasprintf: New file.
52668         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
52669
52670 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52671
52672         * lib/xvasprintf.h: New file.
52673         * lib/xvasprintf.c: New file.
52674         * lib/xasprintf.c: New file.
52675
52676 2004-09-08  Bruno Haible  <bruno@clisp.org>
52677
52678         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
52679
52680 2004-09-08  Bruno Haible  <bruno@clisp.org>
52681
52682         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
52683         length is > INT_MAX.
52684         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
52685         more.
52686
52687 2004-09-08  Bruno Haible  <bruno@clisp.org>
52688
52689         * lib/stdint_.h: New file, taken from GNU clisp.
52690
52691 2004-09-08  Bruno Haible  <bruno@clisp.org>
52692             Oskar Liljeblad  <oskar@osk.mine.nu>
52693
52694         * modules/stdint: New file.
52695         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
52696
52697 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52698
52699         Import from coreutils.
52700         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
52701         strings on unbounded length.  alloca's performance benefits aren't
52702         that important here.
52703         (V_STRDUP): Remove.
52704         (parse_with_separator): New function, with most of the internals
52705         of the old parse_user_spec.  Allow user to omit both user and group,
52706         for compatibility with FreeBSD.
52707         Clone only the user name, not the entire spec.
52708         Do not set *uid, *gid unless entirely successful.
52709         Avoid memory leak in some failing cases.
52710         Fix regression for USER.GROUP reported by Dmitry V. Levin in
52711         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
52712         (parse_user_spec): Rewrite to use parse_with_separator.
52713
52714 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52715
52716         * modules/userspec: Don't depend on alloca.
52717
52718 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52719
52720         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
52721
52722 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52723
52724         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
52725         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
52726         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
52727
52728 2004-08-16  Simon Josefsson  <jas@extundo.com>
52729
52730         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
52731         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
52732         Add --dry-run for --import.
52733         Let user provided command line parameters override configure.ac
52734         settings.
52735
52736 2004-08-12  Simon Josefsson  <jas@extundo.com>
52737
52738         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
52739         as discussed with Paul Eggert in threads rooted at
52740         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
52741         and
52742         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
52743         Before, the test was empty, and relied on ELIDE_CODE in source
52744         code.)
52745         (gl_PREREQ_GETOPT): New macro.
52746         (gl_GETOPT): Use them.
52747
52748 2004-08-12  Simon Josefsson  <jas@extundo.com>
52749
52750         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
52751         * lib/getopt_.h: Renamed from getopt.h.
52752
52753 2004-08-12  Simon Josefsson  <jas@extundo.com>
52754
52755         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
52756         Change default library name from libfoo to libgnu.
52757         Now, if you have a configure.ac that says:
52758                 gl_SOURCE_BASE(gl)
52759                 gl_M4_BASE(gl/m4)
52760                 gl_MODULES(error getopt etcetera)
52761                 gl_INIT
52762         you can import all you need by running:
52763                 ../gnulib/gnulib-tool --import
52764
52765         * modules/getopt (Files): Rename getopt.h to getopt_.h.
52766         (Makefile.am): Rewrite, use logic from argz.
52767         (Include): Use <getopt.h> instead of "getopt.h".
52768
52769 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52770
52771         * modules/argp (Files): Add m4/unlocked-io.m4.
52772         (Depends-on): Add extensions.
52773
52774 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52775
52776         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
52777         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
52778         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
52779         Check for program_invocation_name, program_invocation_short_name,
52780         flockfile, funlockfile, features.h, _getopt_long_only_r.
52781
52782 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52783
52784         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
52785         its complicated substitute.
52786         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
52787         and program_invocation_name.
52788         (__argp_basename) [!_LIBC]: Remove; the only use was
52789         replaced by its body.
52790         (__argp_short_program_name): Change condition from
52791         !defined __argp_short_program_name to
52792         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
52793         to match argp-namefrob.h.
52794         (__argp_failure): Don't assume strerror_r returns char *.
52795         * lib/argp-parse.c (N_): Define unconditionally.
52796         (argp_default_options): Fill out initializers with 0 to avoid
52797         gcc warnings.
52798
52799 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52800
52801         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
52802         getopt1.c.
52803
52804 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52805
52806         Merge from coreutils.
52807
52808         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
52809
52810         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
52811         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
52812
52813 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52814
52815         Merge from coreutils.
52816
52817         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
52818         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
52819         for Reliant Unix 5.43.
52820
52821         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
52822         (union fooround): Use uintmax_t, not long int.
52823         The rest is a merge from libc:
52824         [defined _LIBC]: Include <shlib-compat.h>.
52825         (_obstack) [defined _LIBC]: Remove after 2.3.4.
52826
52827         * lib/settime.c (settime): Recode to avoid warning with
52828         Sun Forte C 6U2.
52829
52830         * lib/strverscmp.c: Convert to UTF-8.
52831
52832 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52833
52834         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
52835         m4/uintmax_t.m4.
52836
52837 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52838
52839         * modules/xalloc-die: New file.
52840         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
52841
52842         * modules/md5 (Files): Add m4/uint32_t.m4.
52843         * modules/sha1: Renamed from modules/sha.
52844         (Files):
52845         Rename lib/sha.h to lib/sha1.h.
52846         Rename lib/sha.c to lib/sha1.c.
52847         Rename m4/sha.m4 to m4/sha1.m4.
52848         (lib_SOURCES): Likewise.
52849         (configure.ac): Rename gl_SHA to gl_SHA1.
52850         (Include): sha.h -> sha1.h.
52851
52852 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52853
52854         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
52855         * m4/sha1.m4: Renamed from sha.m4.
52856         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
52857
52858 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52859
52860         * lib/obstack.h (obstack_empty_p):
52861         Don't assume that chunk->contents is suitably aligned.
52862         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
52863         Likewise. Problem reported by Benno in
52864         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
52865
52866         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
52867         readable.  This could be improved further but it'd take some work.
52868
52869 2004-08-08  Simon Josefsson  <jas@extundo.com>
52870
52871         * modules/xgethostname (Depends-on): Remove exit and error (not
52872         used).
52873
52874         * modules/getpass-gnu: Add getpass.h.
52875         (Depends-on): Add stdbool.
52876         * modules/getpass: Add getpass.h.
52877
52878 2004-08-08  Simon Josefsson  <jas@extundo.com>
52879
52880         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
52881         Check getpass declaration.
52882
52883 2004-08-08  Simon Josefsson  <jas@extundo.com>
52884
52885         * lib/xgethostname.c: Don't include error.h (not used).
52886
52887         * lib/getpass.h: Add.
52888         * lib/getpass.c: Include getpass.h first.
52889
52890 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
52891
52892         * lib/xalloc-die.c: New file.
52893         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
52894         All uses removed.
52895         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
52896         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
52897         xalloc-die.c.
52898         (_, N_, xalloc_die): Move to xalloc-die.c.
52899         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
52900         so that we needn't mess with xalloc_msg_memory_exhausted.
52901
52902         * lib/sha1.h: Renamed from sha.h.
52903         (SHA1_H): Renamed from _SHA_H.
52904         (sha1_ctx): Renamed from sha_ctx.
52905         (sha1_init_ctx): Renamed from sha_init_ctx.
52906         (sha1_process_block): Renamed from sha_process_block.
52907         (sha1_process_bytes): Renamed from sha_process_bytes.
52908         (sha1_finish_ctx): Renamed from sha_finish_ctx.
52909         (sha1_read_ctx): Renamed from sha_read_ctx.
52910         (sha1_stream): Renamed from sha_stream.
52911         (sha1_buffer): Renamed from sha_buffer.
52912         * lib/sha1.c: Likewise; renamed from sha.c.
52913         Do not include <sys/types.h>.
52914         Include <stddef.h> rather than <stdlib.h>.
52915
52916 2004-08-08  Bruno Haible  <bruno@clisp.org>
52917
52918         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
52919         FILESYSTEM_PREFIX_LEN.
52920         * lib/progreloc.c: Likewise.
52921         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
52922
52923 2004-08-06  Simon Josefsson  <jas@extundo.com>
52924
52925         * modules/progname (Depends-on): Don't depend on stdbool.
52926
52927 2004-08-06  Simon Josefsson  <jas@extundo.com>
52928
52929         * modules/getsubopt: New file.
52930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52931         getsubopt.
52932
52933 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52934
52935         More merge from coreutils.
52936
52937         * m4/utimens.m4, m4/utimecmp.m4: New files.
52938         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
52939         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
52940         prereq.m4, sha.m4: Import changes from coreutils.
52941
52942 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52943
52944         More merge from coreutils.
52945         * modules/raise, modules/readtokens0, modules/utimens:
52946         * modules/utimecmp, module/xnanosleep: New files.
52947         * modules/strftime: Add lib/strftime.h.
52948         Change include from <time.h> to "strftime.h".
52949         * modules/yesno: Add lib/yesno.h.
52950         * modules/backupfile: Remove lib/addext.c.
52951         * modules/euidaccess: Add stat-macros.h.
52952         * modules/canonicalize, modules/euidaccess,
52953         modules/filemode, modules/lchown, modules/makepath,
52954         modules/rmdir, modules/stat: Likewise.
52955
52956 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52957
52958         Merge from tar.
52959         * lib/argp-help.c (make_hol, hol_append): Don't assume that
52960         SIZE_MAX is a valid preprocessor constant.
52961         (__argp_basename): Change from "#ifndef _LIBC"
52962         to "#ifndef __argp_short_program_name", so that
52963         we don't compile these functions for tar.
52964
52965         More merges from coreutils.
52966         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
52967         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
52968         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
52969         * lib/addext.c: Remove; no longer needed.
52970         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
52971         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
52972         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
52973         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
52974         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
52975         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
52976         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
52977         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
52978         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
52979         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52980         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
52981         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
52982         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
52983         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
52984         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
52985         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
52986         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
52987         Import changes from coreutils.
52988
52989 2004-08-05  Simon Josefsson  <jas@extundo.com>
52990
52991         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
52992
52993 2004-08-05  Simon Josefsson  <jas@extundo.com>
52994
52995         * m4/getsubopt.m4: New file.
52996
52997 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
52998
52999         Merge from coreutils.
53000
53001         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53002         * m4/getcwd-path-max.m4: New files.
53003
53004         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53005         FILESYSTEM_PREFIX_LEN ->
53006         FILE_SYSTEM_PREFIX_LEN.
53007         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53008         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53009         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53010         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53011
53012         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53013         prerequisite modules now handle the DOS stuff.
53014         Don't check for unistd.h.
53015
53016 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53017
53018         Merge from coreutils.
53019
53020         * lib/.gdb-history: Remove; this doesn't belong here.
53021
53022         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53023         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53024         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53025         * lib/getcwd.c: New files.
53026
53027         * lib/dirname.h: Include <stdbool.h>.
53028         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53029         for consistency with POSIX terminology.  All uses changed.
53030         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53031         (strip_trailing_slashes): Use bool for booleans.
53032         * lib/stripslash.c (strip_trailing_slashes): Likewise.
53033
53034         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53035         sometimes returns a positive errno value even when it succeeds.
53036         (print_errno_message) [!LIBC]: Fall back on strerror if
53037         __strerror_r fails.
53038
53039         * lib/path-concat.c (mempcpy): Don't define if a system header defines
53040         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53041         (longest_relative_suffix): New function.
53042         (path_concat): Use it.  Assume first argument is not NULL.
53043         Port to DOS.  Omit redundant separators.
53044         Report an error instead of returning NULL.
53045         Use mempcpy instead of memcpy.
53046         (xpath_concat): Remove: not declared or used.
53047
53048         * lib/same.h: Include <stdbool.h>
53049         (same_name): Return bool, not int.
53050         * lib/same.c (same_name): Likewise.
53051         (errno): Don't declare; we assume C89 or better now.
53052
53053         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53054         if not already defined.
53055
53056         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53057         * lib/dup-safer.c (errno): Likewise.
53058
53059 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53060
53061         Merge from coreutils.
53062         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53063         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53064         * modules/path-concat: Don't depend on strdup.
53065
53066 2004-08-03  Simon Josefsson  <jas@extundo.com>
53067
53068         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53069         * lib/progname.h: Don't include stdbool.h.
53070
53071 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53072
53073         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53074         * MODULES.html.sh (func_all_modules): Remove fatal.
53075
53076 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53077
53078         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53079
53080 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53081
53082         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53083         working.
53084
53085 2004-08-02  Simon Josefsson  <jas@extundo.com>
53086
53087         * lib/getsubopt.h: New file, with comments from Bruno Haible.
53088         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53089         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53090
53091 2004-08-01  Simon Josefsson  <jas@extundo.com>
53092
53093         * lib/xgetdomainname.c: Include stdlib.h, for free().
53094
53095 2004-07-19  Bruno Haible  <bruno@clisp.org>
53096
53097         * MODULES.html.sh (func_all_modules): Add dummy.
53098
53099 2004-07-16  Simon Josefsson  <jas@extundo.com>
53100
53101         * modules/dummy: New file.
53102
53103 2004-07-16  Simon Josefsson  <jas@extundo.com>
53104
53105         * lib/dummy.c: New file.
53106
53107 2004-07-16  Bruno Haible  <bruno@clisp.org>
53108
53109         * lib/backupfile.h: Add extern "C" for C++.
53110         * lib/closeout.h: Likewise.
53111         * lib/copy-file.h: Likewise.
53112         * lib/findprog.h: Likewise.
53113         * lib/full-write.h: Likewise.
53114         * lib/pathname.h: Likewise.
53115         * lib/progname.h: Likewise.
53116         * lib/stpcpy.h: Likewise.
53117         * lib/stpncpy.h: Likewise.
53118         * lib/strcase.h: Likewise.
53119         * lib/strstr.h: Likewise.
53120         * lib/xalloc.h: Likewise.
53121
53122         * lib/mbswidth.h: Add extern "C" for C++.
53123         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53124
53125 2004-07-13  Robert Millan  <robertmh@gnu.org>
53126
53127         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53128
53129 2004-07-09  Simon Josefsson  <jas@extundo.com>
53130
53131         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
53132         failed without this.)
53133
53134 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53135
53136         * modules/chown (Files): Add lib/fchown-stub.c, since
53137         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53138
53139 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53140
53141         * lib/fchown-stub.c: New file.
53142
53143 2004-06-24  Jim Meyering  <jim@meyering.net>
53144
53145         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53146
53147 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53148
53149         * modules/argz: Omit "#include".
53150
53151         * MODULES.html.sh (func_all_modules): Add calloc, to match
53152         2004-06-01 addition of calloc module.
53153
53154 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53155
53156         * m4/argz.m4: New file, which is autoupdated from libtool.
53157
53158 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53159
53160         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53161         libtool.
53162
53163 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53164
53165         * config/srclist-update: Don't insist on "USA." before the
53166         close-comment, as libtool omits the period and puts the */ on a
53167         separate line.
53168         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53169         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53170
53171 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
53172
53173         * modules/argz: New file.
53174         * MODULES.html.sh (func_all_modules): Add argz.
53175
53176 2004-06-12  Jim Meyering  <jim@meyering.net>
53177         and  Paul Eggert  <eggert@cs.ucla.edu>
53178
53179         * modules/hash (Files): Add lib/xalloc.h.
53180         * modules/pipe (Depends-on): Add wait-process.
53181         * modules/stat (Depends-on): Add xalloc.
53182         * modules/userspec (Files): Add lib/userspec.h.
53183         * modules/xstrto
53184
53185         Upgrade from gettext-0.13.
53186         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53187         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53188         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53189
53190 2004-06-10  Jim Meyering  <jim@meyering.net>
53191
53192         * lib/calloc.c: New file.
53193
53194 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53195
53196         * lib/getdate.y (yylex): Allow space between sign and number.
53197         Problem reported by Dan Jacobson.
53198
53199 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53200
53201         Merge from coreutils CVS.
53202
53203         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53204         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53205         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53206         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53207         xstrtol.m4: Fix copyright date and/or serial number.
53208
53209         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53210         See if we need an fchown replacement.
53211         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53212         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53213         and use the replacement function if we detect either defect.
53214
53215         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53216         gl_UTIMECMP.
53217
53218 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53219         and  Jim Meyering  <jim@meyering.net>
53220
53221         Merge from coreutils CVS.
53222
53223         * lib/stat-macros.h: New file, with contents from file-type.h
53224         and coreutils' system.h.
53225         * lib/file-type.c: Include "stat-macros.h".
53226         * lib/file-type.h (file_type): Move all macro definitions to new file,
53227         stat-macros.h.
53228
53229         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53230         Wrap old code with this conditional.
53231         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53232         function that does not dereference symlinks.
53233         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53234
53235         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53236         dependency problems.
53237         (xreadlink): Accept new arg SIZE, for efficiency.
53238         All decls and uses changed.
53239         * lib/xreadlink.h: Include <stddef.h>, for size_t.
53240
53241         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53242         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53243
53244         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53245         sysexits.h.
53246
53247 2004-06-01  Jim Meyering  <jim@meyering.net>
53248
53249         * m4/calloc.m4: New file.
53250
53251 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
53252
53253         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53254         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
53255         Also, fix a typo in a diagnostic.
53256
53257 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53258
53259         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53260         or AC_FUNC_REALLOC.
53261
53262 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53263
53264         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53265         macros to be defined.
53266         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53267         the allocator returns NULL because the requested size is zero.
53268
53269 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53270
53271         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53272         var.  Add comment explaining why libc still defines it.  This
53273         merges the following patch from glibc:
53274         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53275
53276 2004-05-20  Andreas Schwab  <schwab@suse.de>
53277
53278         * m4/free.m4: Replace free if it not known to work, not the other
53279         way round.
53280
53281 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53282
53283         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
53284         present in glibc since revision 1.1 of this file.
53285         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53286         obstack_alignment_mask, obstack_alloc, obstack_base,
53287         obstack_blank, obstack_blank_fast, obstack_chunk_size,
53288         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53289         obstack_grow0, obstack_init, obstack_int_grow,
53290         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53291         obstack_next_free, obstack_object_size, obstack_ptr_grow,
53292         obstack_ptr_grow_fast, obstack_room): Remove declarations of
53293         nonexistent functions.
53294
53295 2004-05-18  Karl Berry  <karl@gnu.org>
53296
53297         * config/srclist.txt: break link for vasnprintf.c.
53298
53299 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53300
53301         Port obstack to the AS/400, where pointers are 16 bytes wide and
53302         you cannot cast an integer to a valid pointer.  This patch is
53303         currently waiting to be integrated into glibc; see
53304         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
53305
53306         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
53307         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
53308         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
53309         (struct obstack): temp member is now a union of a pointer and
53310         an integer, instead of an integer.  All integer uses changed.
53311         This does not affect the physical layout of struct obstack,
53312         except on hosts (like the AS/400) where the size or alignment of
53313         void * is greater than that of ptrdiff_t.
53314         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
53315         __STDC__)]: Store temporary in pointer member of union, not
53316         integer member.
53317         * lib/obstack.c: Include <stddef.h>, for offsetof.
53318         (struct fooalign): Remove; it doesn't need a name.
53319         (union fooround): Change double to long double, and add void *.
53320         (DEFAULT_ALIGNMENT): Use offsetof to compute.
53321         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
53322         not a macro.  Hence the values are always int; so remove all
53323         casts-to-int in uses.
53324
53325 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53326
53327         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
53328         we can get this patch merged into glibc.
53329
53330 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53331             Paul Eggert  <eggert@cs.ucla.edu>
53332
53333         * m4/argp: Depend on alloca.
53334
53335 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53336             Paul Eggert  <eggert@cs.ucla.edu>
53337
53338         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
53339         freecoding.
53340
53341 2004-05-17  Bruno Haible  <bruno@clisp.org>
53342
53343         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
53344         precision that consists of a '.' followed by an empty digit string.
53345         Patch by Tor Lillqvist <tml@iki.fi>.
53346
53347 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53348
53349         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
53350         for backward compatibility with older code.  We need our own
53351         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
53352         it under some other name, and our alloca.h will define it.
53353
53354 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53355             Derek Price  <derek@ximbiot.com>
53356
53357         * lib/alloca.c: Include <alloca.h>, to get our interface.
53358         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
53359         include <alloca.h> first.  Use C89 prototype for alloca; this
53360         requires including <stddef.h> for size_t.  Use extern "C" if C++.
53361         Use #elif for simplicity, since we can assume C89 now.
53362         Don't try to source the system alloca.h since it will not be found
53363         and to prevent recursively including its replacement.
53364         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
53365         * lib/regex.c: Likewise.
53366
53367 2004-05-16  Derek Price  <derek@ximbiot.com>
53368             Paul Eggert  <eggert@cs.ucla.edu>
53369
53370         getline cleanup.  This changes the getndelim2 API: both order of
53371         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
53372         no delimiter).
53373
53374         * lib/getline.c: Don't include stddef.h or stdio.h, since our
53375         interface does that.
53376         (getline): Always use getdelim, so that we don't have two
53377         copies of this code.
53378         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
53379         if available.
53380         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
53381         (GETNDELIM2_MAXIMUM): New macro.
53382         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
53383         instead of the old practice of delim2==0.  All callers changed.
53384         Return -1 on overflow, instead of returning junk.
53385         Do not set *linesize unless allocation succeeds.
53386         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
53387         that we include sys/types.h.
53388         * lib/getnline.h: Likewise.
53389         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
53390         (getndelim2): Reorder arguments.
53391         * lib/getnline.c (getnline, getndelim):
53392         Don't discard the NMAX argument.
53393         (getnline): Invoke getndelim, to avoid code duplication.
53394         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
53395         of (size_t) -1 by callers of the getnline family.
53396
53397 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53398
53399         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
53400         Check for gettimeofday.
53401         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
53402         Check for settimeofday, stime.
53403
53404 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53405
53406         * lib/nanosleep.c (suspended): Change its type from int to
53407         sig_atomic_t volatile.
53408         (first_call): Make it private to rpl_nanosleep, and have it
53409         be zero initially as that's a bit faster.
53410         (my_usleep): Round up fractional times instead of truncating them,
53411         as this is the usual meaning for 'sleep'.
53412
53413         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
53414         doesn't work.
53415         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
53416         (ENOSYS): Define if not defined.
53417         (settime): Fall back on stime if it exists and settimeofday fails.
53418         But don't bother with fallbacks if a method fails with errno == EPERM.
53419
53420 2004-05-11  Jim Meyering  <jim@meyering.net>
53421
53422         Prior to this change, the save_cwd caller required read access to the
53423         current directory on most systems (ones with the fchdir function).
53424
53425         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
53426         fails, try write-only, and finally, resort to using xgetcwd.
53427
53428 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53429
53430         * lib/obstack.c, obstack.h: Import changes from libc.
53431
53432 2004-04-28  Bruno Haible  <bruno@clisp.org>
53433
53434         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
53435         also implicitly appends .exe to executables.
53436         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
53437         accepts Windows pathnames.
53438         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53439         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53440         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53441         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53442         Reported by Derek Robert Price <derek@ximbiot.com>.
53443
53444 2004-04-21  Karl Berry  <karl@gnu.org>
53445
53446         * config/srclist.txt (localcharset.c): break sync.
53447
53448 2004-04-20  Paul Eggert  <eggert@twinsun.com>
53449
53450         * m4/host-os.m4: Add a copyright notice.
53451
53452 2004-04-20  Jim Meyering  <jim@meyering.net>
53453
53454         Change UTILS_ to gl_ in AC_DEFINE'd names.
53455         Change utils_- and jm_-prefixed variables, too.
53456         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
53457         UTILS_FUNC_MKDIR_TRAILING_SLASH.
53458         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
53459
53460         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
53461         Don't emit trailing blanks.
53462         Also rename jm_-prefixed variables to have gl_ prefix.
53463
53464         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
53465         Also rename jm_-prefixed variables to have gl_ prefix.
53466
53467         * m4/jm-macros.m4: Reflect the renamings.
53468         * m4/prereq.m4: Likewise.
53469
53470 2004-04-20  Jim Meyering  <jim@meyering.net>
53471
53472         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
53473         memory.
53474
53475 2004-04-20  Jim Meyering  <jim@meyering.net>
53476             Bruno Haible  <bruno@clisp.org>
53477
53478         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
53479         memory when realloc fails.
53480
53481 2004-04-19  Jim Meyering  <jim@meyering.net>
53482
53483         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
53484         now that readutmp.c may call `free (0)'.
53485
53486 2004-04-19  Bruno Haible  <bruno@clisp.org>
53487
53488         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
53489         * m4/inttypes_h.m4: Likewise.
53490         * m4/stdint_h.m4: Likewise.
53491         * m4/intmax_t.m4: Likewise.
53492         * m4/uintmax_t.m4: Likewise.
53493
53494 2004-04-18  Jim Meyering  <jim@meyering.net>
53495
53496         * m4/prereq.m4: Don't forbid jm_ prefix.
53497
53498         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
53499         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
53500         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
53501         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
53502         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
53503         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
53504         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
53505         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
53506         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
53507         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
53508         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
53509         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
53510         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
53511         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
53512         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
53513         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
53514         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
53515         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
53516         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
53517
53518 2004-04-18  Jim Meyering  <jim@meyering.net>
53519
53520         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
53521         failure, don't leak memory and do call END_UTMP_ENT.
53522
53523 2004-04-16  Jim Meyering  <jim@meyering.net>
53524
53525         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
53526         coreutils' stat program.
53527         (gl_PREREQ): Don't require jm_PREREQ_STAT.
53528
53529 2004-04-11  Paul Eggert  <eggert@twinsun.com>
53530
53531         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
53532         C89.
53533         (CHAR_BIT): Remove, since we assume C89.
53534         Include <stdint.h> if available, as per current Autoconf CVS advice.
53535
53536 2004-03-31  Jim Meyering  <jim@meyering.net>
53537
53538         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
53539         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
53540         * m4/xalloc.m4: Likewise.
53541
53542 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53543
53544         Merge from coreutils.
53545
53546         * m4/inttostr.m4: New file.
53547         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
53548         Require AM_STDBOOL_H and gl_TIMESPEC instead.
53549         Require gl_CLOCK_TIME.
53550         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
53551
53552 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53553
53554         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
53555         not bool, to be more consistent with Unix conventions.
53556         Suggested by Bruno Haible.
53557
53558         Merge from coreutils.
53559
53560         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
53561         * lib/umaxtostr.c: New files.
53562
53563         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
53564         the usual <time.h> dance.
53565         (get_date): Change signature to support fractional time stamps.
53566         All callers changed.
53567         * lib/getdate.y: Include "getdate.h" first, as we can now
53568         assume C89 and don't need to worry about 'const'.
53569         Similarly, include "unlocked-io.h" near start, not in middle.
53570         Include <limits.h>.
53571         (textint.value): Use long int rather than int.
53572         (textint.digits): Use size_t rather than int.
53573         (BILLION, LOG10_BILLION): New constants.
53574         (parser_control): New member rel_ns.  Members day_ordinal,
53575         time_zone, month, day, hour, minutes, rel_year, rel_month,
53576         rel_day, rel_hour, rel_minutes, rel_seconds
53577         are now long int, not int.  Member seconds is now struct timespec,
53578         not int.  New member timespec_seen.  Members dates_seen, days_seen,
53579         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
53580         not int.
53581         (%union.intval): Now long int, not int.
53582         New member timespec.
53583         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
53584         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
53585         (spec): Now is a timespec or an item list.
53586         (timespec, items): New nonterminals.
53587         (time, rel, relunit, number, get_date):
53588         Add support for fractional seconds.
53589         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
53590         (gmtime, localtime, mktime): Remove decls; not needed with C89.
53591         (to_hour): First arg is now long int, not int.
53592         (to_year): Returns long int, not int.
53593         Don't treat year -70 like 70.
53594         (tm_diff): Returns long int, not int.
53595         (lookup_word): Use bool instead of int when appropriate.
53596         (yylex): Use size_t for count, not int.
53597         Detect overflow when parsing large integer constants.
53598         Add support for fractions.
53599         (get_date): Make pointers 'const' if possible.
53600         Use more-portable code to detect integer overflow.
53601         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
53602         Don't use ctime; it's not reliable if the year has >4 digits.
53603
53604         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
53605         This is for compatibility with BSD.
53606
53607         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
53608         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
53609         From coreutils' system.h.
53610
53611         * lib/userspec.c: Don't include "posixver.h".
53612         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
53613         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
53614         compatible extension.  Simplify code by removing a boolean int
53615         that was always nonzero if a string was nonnull.
53616
53617 2004-03-30  Jim Meyering  <jim@meyering.net>
53618
53619         Merge from coreutils.
53620
53621         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
53622         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
53623         on some systems one must include <grp.h> before it.
53624         Reported by Christian Krackowizer.
53625
53626 2004-03-30  Jim Meyering  <jim@meyering.net>
53627
53628         Merge from coreutils.
53629
53630         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
53631
53632         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
53633         an empty input stream.
53634
53635         * lib/readtokens.c: Include <stdbool.h>.
53636         (readtoken): Use `size_t' rather than int/long.
53637         All callers adjusted.
53638         Use `bool' rather than `int' where appropriate.
53639         Use memset rather than an explicit loop.
53640         Use x2nrealloc rather than xrealloc.
53641         Allow the use of `\0' as a delimiter.
53642         (readtokens): Likewise.
53643         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
53644
53645 2004-03-30  Jim Meyering  <jim@meyering.net>
53646
53647         * m4/realloc.m4: Remove file, since now it does no more than
53648         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
53649         the `configure.ac' section of module/realloc.
53650         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
53651
53652 2004-03-30  Bruno Haible  <bruno@clisp.org>
53653
53654         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
53655         nonnull.
53656
53657 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53658
53659         Merge changes to getloadavg.c from coreutils and Emacs.
53660
53661         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
53662         Define to an expression, not to the empty string.
53663         Include cloexec.h and xalloc.h.
53664         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
53665         Use set_cloexec_flag rather than rolling our own.
53666         * lib/cloexec.c, lib/cloexec.h: New files.
53667
53668 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53669
53670         * m4/cloexec.m4: New file.
53671
53672 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53673
53674         * lib/getopt.h: Sync with libc CVS.
53675
53676 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53677             Bruno Haible  <bruno@clisp.org>
53678
53679         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
53680         mbswidth.
53681
53682 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53683             Bruno Haible  <bruno@clisp.org>
53684
53685         * lib/mbswidth.h: Include <wchar.h> only if
53686         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
53687         <wchar.h>.
53688         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
53689
53690 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53691
53692         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
53693         Sync with libc CVS.
53694         * lib/getopt_int.h: New file, also synced from libc.
53695
53696 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53697
53698         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
53699         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
53700         Bring back getopt.c, getopt.h, getopt1.c.
53701
53702 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53703
53704         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
53705         All uses changed.  Check for sa_sigaction member; this fixes
53706         a bug first reported by Jason Andrade in
53707         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53708
53709 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53710
53711         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
53712         '#if' expressions.  Unlike the code it replaces, it does not
53713         depend on (defined _SC_PAGESIZE).  However, it does depend on
53714         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
53715         first reported by Jason Andrade in
53716         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53717
53718 2004-02-25  Simon Josefsson  <jas@extundo.com>
53719
53720         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
53721
53722 2004-02-25  Simon Josefsson  <jas@extundo.com>
53723
53724         * lib/strdup.h: New file.
53725         * lib/strdup.c: Include it.
53726         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
53727         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
53728
53729 2004-02-23  Karl Berry  <karl@gnu.org>
53730
53731         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
53732         (from fencepost.gnu.org:/gd/gnuorg).
53733
53734 2004-02-23  Karl Berry  <karl@gnu.org>
53735
53736         * config/srclistvars.sh (GNUORG) [karl]: redefine.
53737         * config/srclist.txt: add maintain/standards documents.
53738
53739 2004-02-18  Bruno Haible  <bruno@clisp.org>
53740
53741         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
53742         Reported by Derek Robert Price <derek@ximbiot.com>.
53743
53744 2004-02-16  Karl Berry  <karl@gnu.org>
53745
53746         * config/mkinstalldirs, install-sh: update from automake.
53747
53748 2004-02-06  Karl Berry  <karl@gnu.org>
53749
53750         * m4/po.m4: update from gettext 0.14.1.
53751
53752 2004-02-06  Karl Berry  <karl@gnu.org>
53753
53754         * lib/config.charset: update from gettext 0.14.1.
53755
53756 2004-02-05  Paul Eggert  <eggert@twinsun.com>
53757
53758         Add comments and code, prompted by suggestions from Bruno Haible
53759         for sh-quote.
53760         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
53761         describing the enum quoting_style values.
53762         * lib/quotearg.c (quotearg_alloc): New function.
53763         (quotearg_buffer_restyled): Treat lone { and } as special.
53764         Treat = as special.  Work around bug with older shells
53765         that "see" a '\' that is really the 2nd byte of a multibyte char.
53766         Quote empty string with shell_quoting_style.
53767
53768 2004-02-03  Bruno Haible  <bruno@clisp.org>
53769
53770         * m4/pipe.m4: New file, from GNU gettext.
53771
53772 2004-02-03  Bruno Haible  <bruno@clisp.org>
53773
53774         * lib/pipe.h: New file, from GNU gettext.
53775         * lib/pipe.c: New file, from GNU gettext.
53776
53777 2004-01-27  Bruno Haible  <bruno@clisp.org>
53778
53779         * m4/execute.m4: New file, from GNU gettext.
53780
53781 2004-01-27  Bruno Haible  <bruno@clisp.org>
53782
53783         * lib/execute.h: New file, from GNU gettext.
53784         * lib/execute.c: New file, from GNU gettext.
53785         * lib/w32spawn.h: New file, from GNU gettext.
53786
53787 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53788
53789         Merge from diffutils.
53790
53791         * lib/file-type.c (file_type): Add typed memory objects.
53792         * lib/file-type.h (S_TYPEISTMO): New macro.
53793
53794         * lib/c-stack.h (c_stack_action): Remove argv argument.
53795         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
53796         (die): Don't calculate message unless segv_action returns.
53797         (get_stack_location, min_address_from_argv, max_address_from_argv,
53798         volatile stack_base, volatile_stack_size): Remove.
53799         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
53800         that every segmentation violation is a stack overflow.  (Ouch!)
53801         See Debian bug 136249 (still outstanding) for more info about why
53802         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
53803
53804 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53805
53806         Exit-status fix from coreutils.
53807
53808         Use exit_failure consistently in place of EXIT_FAILURE,
53809         so that program exit statuses are consistent on failure.
53810
53811         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
53812         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
53813         * lib/argmatch.h: Comment fix to match the above.
53814         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
53815         Now a macro referring to exit_failure, instead of a separate
53816         variable.  Include "exitfail.h" to get it.
53817         * lib/xstrtol.h: Include "exitfail.h".
53818         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
53819
53820         * lib/long-options.c (parse_long_options): Use prototype
53821         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
53822         for clarity.
53823
53824 2004-01-21  Jim Meyering  <jim@meyering.net>
53825
53826         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
53827         so as not to conflict with a different-sized __mktime_internal
53828         function in GNU libc.
53829         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
53830         Problem building statically-linked `ls' reported by Michael Brunnbauer.
53831
53832 2004-01-20  Karl Berry  <karl@gnu.org>
53833
53834         * config/config.guess: update from config.
53835
53836         * config/srclistvars.sh: GNUWWWLICENSES for karl.
53837
53838 2004-01-20  Bruno Haible  <bruno@clisp.org>
53839
53840         Safer stack allocation.
53841         * lib/setenv.c: Include allocsa.h.
53842         (alloca): Remove fallback definition.
53843         (freea): Remove macro.
53844         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
53845         instead of freea.
53846
53847 2004-01-20  Bruno Haible  <bruno@clisp.org>
53848
53849         * m4/eealloc.m4: New file, from GNU gettext.
53850
53851 2004-01-20  Bruno Haible  <bruno@clisp.org>
53852
53853         * m4/allocsa.m4: New file, from GNU gettext.
53854
53855 2004-01-20  Bruno Haible  <bruno@clisp.org>
53856
53857         * lib/xallocsa.h: New file, from GNU gettext.
53858         * lib/xallocsa.c: New file, from GNU gettext.
53859
53860 2004-01-20  Bruno Haible  <bruno@clisp.org>
53861
53862         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
53863
53864 2004-01-20  Bruno Haible  <bruno@clisp.org>
53865
53866         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
53867         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
53868         specially.
53869
53870 2004-01-20  Bruno Haible  <bruno@clisp.org>
53871
53872         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
53873         patch.
53874
53875 2004-01-20  Bruno Haible  <bruno@clisp.org>
53876
53877         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
53878
53879 2004-01-20  Bruno Haible  <bruno@clisp.org>
53880
53881         * lib/eealloc.h: New file.
53882
53883 2004-01-20  Bruno Haible  <bruno@clisp.org>
53884
53885         * lib/binary-io.h: Avoid warnings on Cygwin.
53886
53887 2004-01-20  Bruno Haible  <bruno@clisp.org>
53888
53889         * lib/allocsa.h: New file, from GNU gettext.
53890         * lib/allocsa.c: New file, from GNU gettext.
53891
53892 2004-01-18  Karl Berry  <karl@gnu.org>
53893
53894         * doc/gpl.texi, doc/lgpl.texi: new files.
53895
53896 2004-01-18  Karl Berry  <karl@gnu.org>
53897
53898         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
53899         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
53900
53901 2004-01-15  Paul Eggert  <eggert@twinsun.com>
53902
53903         Merge from coreutils.
53904
53905         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
53906         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
53907         (gl_DEFAULT_POSIX2_VERSION): Move
53908         the documentation from 'configure' into 'config.hin',
53909         so that 'configure --help' isn't burdened by it and
53910         we don't have to worry about its formatting there.
53911         Reword the documentation so that it's more succinct
53912         and can be run together into a single paragraph.
53913         * m4/same.m4 (gl_SAME): Check for pathconf.
53914
53915 2004-01-15  Paul Eggert  <eggert@twinsun.com>
53916
53917         Merge from coreutils.
53918
53919         * lib/posixver.c: Include posixver.h.
53920
53921         * lib/same.c: Include <stdbool.h>, <limits.h>.
53922         (_POSIX_NAME_MAX): Define if not defined.
53923         (MIN): New macro.
53924         (same_name): If file names are silently truncated, report
53925         that the file names are the same if they are the same after
53926         the silent truncation.
53927
53928         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
53929         conversion function.
53930         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
53931         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
53932         longer needed.
53933
53934 2004-01-15  Jim Meyering  <jim@meyering.net>
53935
53936         Merge from coreutils.
53937
53938         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
53939         if no library is required.
53940         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
53941         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
53942         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
53943         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
53944         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
53945         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
53946         value, $ac_cv_search_crypt, if it's "none required".
53947         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
53948         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
53949         not gl_FUNC_GETLOADAVG.
53950         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
53951         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
53952
53953 2004-01-15  Jim Meyering  <jim@meyering.net>
53954
53955         Merge from coreutils.
53956
53957         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
53958         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
53959         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
53960
53961         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
53962         optional configure-time default.
53963
53964         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53965
53966         * lib/xreadlink.c (xreadlink): Correct outdated comment.
53967
53968 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
53969
53970         Merge from coreutils.
53971
53972         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
53973         value, $ac_cv_search_nanosleep, if it's "none required".
53974
53975 2004-01-14  Paul Eggert  <eggert@twinsun.com>
53976
53977         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
53978         with like-named macro in fnmatch.c.
53979         (EXT): Use an internal constant instead.
53980
53981         Merge fnmatch patches from glibc.
53982         * lib/fnmatch.c (mbsinit): Remove define.
53983         Add libc_hidden_ver (__fnmatch, fnmatch).
53984         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
53985         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
53986
53987 2004-01-14  Karl Berry  <karl@gnu.org>
53988
53989         * config/install-sh: update from automake.
53990
53991 2004-01-13  Karl Berry  <karl@gnu.org>
53992
53993         * config/install-sh: update from automake.
53994
53995 2004-01-09  Karl Berry  <karl@gnu.org>
53996
53997         * config/install-sh: update from automake.
53998
53999 2004-01-05  Karl Berry  <karl@gnu.org>
54000
54001         * config/config.{sub,guess}: update from config.
54002
54003 2003-12-31  Karl Berry  <karl@gnu.org>
54004
54005         * config/depcomp: update from automake.
54006
54007 2003-12-14  Karl Berry  <karl@gnu.org>
54008
54009         * lib/config.charset: update from gettext-runtime.
54010
54011 2003-12-03  Paul Eggert  <eggert@twinsun.com>
54012
54013         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54014         Bug reported by Alfred M. Szmidt.
54015
54016 2003-12-03  Bruno Haible  <bruno@clisp.org>
54017
54018         * m4/gettext.m4: Upgrade from gettext-0.13.
54019         * m4/po.m4: Upgrade from gettext-0.13.
54020         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54021         * m4/intmax.m4: New file, from gettext-0.13.
54022         * m4/printf-posix.m4: New file, from gettext-0.13.
54023
54024 2003-11-29  Karl Berry  <karl@gnu.org>
54025
54026         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54027
54028 2003-11-25  Paul Eggert  <eggert@twinsun.com>
54029             Bruno Haible  <bruno@clisp.org>
54030
54031         * lib/printf-parse.h: Don't include sys/types.h.
54032         (ARG_NONE): New macro.
54033         (char_directive): Change type of *arg_index fields to size_t.
54034         * lib/printf-parse.c: Don't include sys/types.h.
54035         (SSIZE_MAX): Remove macro.
54036         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54037         Remove unnecessary overflow check.
54038         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54039         fields.
54040
54041 2003-11-25  Bruno Haible  <bruno@clisp.org>
54042
54043         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54044
54045 2003-11-25  Bruno Haible  <bruno@clisp.org>
54046
54047         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54048         gt_TYPE_SSIZE_T.
54049
54050 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54051
54052         * modules/alloca: Remove dependency on xalloc.
54053
54054 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54055
54056         * lib/alloca.c: Remove dependency on xalloc module.
54057         (xalloc_die): Remove.
54058         (memory_full) [!defined emacs]: New macro.
54059         [!defined emacs]: Don't include xalloc.h.
54060         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54061         address arithmetic overflows.  Change datatypes a bit to avoid
54062         unnecessary casts.
54063
54064 2003-11-22  Jim Meyering  <jim@meyering.net>
54065
54066         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54067         s/size/size_t/.
54068
54069 2003-11-21  Karl Berry  <karl@gnu.org>
54070
54071         * config/config.{sub,guess}: update from config.
54072
54073 2003-11-18  Karl Berry  <karl@gnu.org>
54074
54075         * config/config.{sub,guess}: update from config.
54076
54077         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54078
54079 2003-11-17  Paul Eggert  <eggert@twinsun.com>
54080
54081         * README: Mention that S+T cannot overflow if S is the size of
54082         an existing object and T is sufficiently small.
54083
54084 2003-11-17  Jim Meyering  <jim@meyering.net>
54085
54086         On systems without utime and without a utimes function capable of
54087         dealing with a NULL struct utimbuf* argument, this utime replacement
54088         could -- in unusual circumstances -- leak a file descriptor.
54089         * lib/utime.c: Include <unistd.h> and <errno.h>.
54090         (utime_null): Be sure to close `fd' and to preserve errno.
54091         Reported by Geoff Collyer via Arnold Robbins.
54092
54093 2003-11-17  Bruno Haible  <bruno@clisp.org>
54094
54095         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54096         (Depends-on): Add xsize.
54097
54098 2003-11-17  Bruno Haible  <bruno@clisp.org>
54099
54100         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54101
54102 2003-11-17  Bruno Haible  <bruno@clisp.org>
54103
54104         * lib/vasnprintf.c (alloca): Remove fallback definition.
54105         (freea): Remove definition.
54106         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54107         Reported by Paul Eggert.
54108
54109 2003-11-16  Paul Eggert  <eggert@twinsun.com>
54110             Bruno Haible  <bruno@clisp.org>
54111
54112         Protect against address arithmetic overflow.
54113         * lib/printf-args.h: Include stddef.h.
54114         (arguments): Change type of field 'count' to size_t.
54115         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54116         'unsigned int' where appropriate.
54117         * lib/printf-parse.h: Include sys/types.h.
54118         (char_directive): Change type of *arg_index fields to ssize_t.
54119         (char_directives): Change type of fields 'count', max_*_length to
54120         size_t.
54121         * lib/printf-parse.c: Include sys/types.h and xsize.h.
54122         (SSIZE_MAX): Define fallback value.
54123         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54124         instead of 'int' where appropriate. Check a_allocated, d_allocated
54125         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54126         * lib/vasnprintf.c: Include xsize.h.
54127         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54128         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54129         overflow. Avoid wraparound when converting a width or precision from
54130         decimal to binary.
54131
54132 2003-11-16  Bruno Haible  <bruno@clisp.org>
54133
54134         Update from GNU gettext.
54135         * lib/printf-parse.c: Generalize to it can be compiled for wide
54136         strings.
54137         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54138         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54139         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54140         SNPRINTF): New macros.
54141         Don't include <alloca.h> if the file is used inside libintl.
54142         (local_wcslen): New function, for Solaris 2.5.1.
54143         (VASNPRINTF): Use it instead of wcslen.
54144
54145 2003-11-16  Bruno Haible  <bruno@clisp.org>
54146
54147         * lib/xsize.h (xmax): New function.
54148         (xsum, xsum3, xsum4): Declare as "pure" functions.
54149
54150 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54151
54152         * modules/xalloc (Files): Undo latest change, since xalloc.h
54153         no longer needs SIZE_MAX or PTRDIFF_MAX.
54154
54155 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54156
54157         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54158         gl_PTRDIFF_MAX.
54159
54160 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54161
54162         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54163         "return", to pacify some unknown compiler.  Problem reported
54164         by Joerg Schilling.
54165
54166 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54167
54168         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54169         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54170         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
54171         heuristic is just as accurate as far as we know, and it removes a
54172         dependency on size_max.m4 and ptrdiff_max.m4.
54173
54174 2003-11-11  Bruno Haible  <bruno@clisp.org>
54175
54176         * modules/xsize (Files): Add m4/size_max.m4.
54177         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54178
54179 2003-11-11  Bruno Haible  <bruno@clisp.org>
54180
54181         * m4/size_max.m4: New file.
54182         * m4/ptrdiff_max.m4: New file.
54183         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54184         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54185         (gl_XALLOC): Invoke it.
54186
54187 2003-11-11  Bruno Haible  <bruno@clisp.org>
54188
54189         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54190         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54191         defined.
54192
54193 2003-11-10  Paul Eggert  <eggert@twinsun.com>
54194
54195         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54196         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54197         rejected some allocations of exactly SIZE_MAX - 2 bytes.
54198         From Bruno Haible.
54199         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54200         not (size_t) -1, since it's defined here.
54201
54202 2003-11-09  Karl Berry  <karl@gnu.org>
54203
54204         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54205
54206 2003-11-06  Paul Eggert  <eggert@twinsun.com>
54207
54208         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54209         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54210         Reject sizes of exactly SIZE_MAX bytes.
54211         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54212         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54213
54214 2003-11-05  Bruno Haible  <bruno@clisp.org>
54215
54216         * lib/xsize.h: Include limits.h, to avoid a possible collision with
54217         SIZE_MAX defined in <limits.h> on Solaris.
54218
54219 2003-11-04  Jim Meyering  <jim@meyering.net>
54220
54221         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54222         variable names, rather than @VAR@.
54223         * modules/poll: Likewise.
54224
54225 2003-11-04  Bruno Haible  <bruno@clisp.org>
54226
54227         * modules/xsize: New file.
54228         * modules/linebreak: Depend on xsize.
54229         * MODULES.html.sh (func_all_modules): Add xsize.
54230
54231 2003-11-04  Bruno Haible  <bruno@clisp.org>
54232
54233         * m4/xsize.m4: New file.
54234
54235 2003-11-04  Bruno Haible  <bruno@clisp.org>
54236
54237         * lib/xsize.h: New file.
54238         * lib/linebreak.c: Include xsize.h.
54239         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54240         argument for overflow.
54241         Suggested by Paul Eggert.
54242
54243 2003-11-03  Karl Berry  <karl@gnu.org>
54244
54245         * config/config.{guess,sub}: update from config.
54246
54247 2003-11-03  Jim Meyering  <jim@meyering.net>
54248
54249         * modules/userspec (lib_SOURCES): Add userspec.h.
54250         (Include): Add "userspec.h".
54251         Improve description.
54252
54253 2003-11-03  Jim Meyering  <jim@meyering.net>
54254
54255         * lib/userspec.c: Include "userspec.h".
54256         * lib/userspec.h: New file.
54257
54258 2003-11-03  Bruno Haible  <bruno@clisp.org>
54259
54260         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54261
54262 2003-11-03  Bruno Haible  <bruno@clisp.org>
54263
54264         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54265         available, to avoid (extremely rare) race condition.
54266         Suggested by Paul Eggert.
54267
54268 2003-11-02  Karl Berry  <karl@gnu.org>
54269
54270         * config/srclist.txt (vasprintf.c): sync broken, sigh.
54271
54272 2003-10-31  Paul Eggert  <eggert@twinsun.com>
54273
54274         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54275         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54276         (read_filesystem_list): Set and use me_type_malloced.
54277         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54278         whatever the type happens to be), for brevity and consistency.
54279         Check for size calculation overflow on Alphas running OSF/1.
54280
54281 2003-10-31  Jim Meyering  <jim@meyering.net>
54282
54283         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54284
54285         * lib/linebuffer.c: Include <string.h> for declaration of memset.
54286
54287 2003-10-30  Paul Eggert  <eggert@twinsun.com>
54288             Bruno Haible  <bruno@clisp.org>
54289
54290         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54291         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54292
54293 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54294
54295         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
54296         netbsd*-gnu*.  Suggested by Robert Millan.
54297
54298 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54299
54300         * modules/group-member: Depend on stdbool.
54301
54302 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54303
54304         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
54305
54306 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54307
54308         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
54309         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
54310         after the 'gnu' in these cases.  This fixes some bugs in the
54311         previous change, and is based on suggestions by Robert Millan.
54312
54313 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54314
54315         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
54316         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
54317         no longer needed.
54318         * lib/quotearg.c (quotearg_n_options): Use it.
54319         * lib/group-member.c: Include <stdbool.h>.
54320         (free_group_info): Arg is now const *; don't free arg.
54321         (get_group_info): Now returns bool and accepts struct group_info *,
54322         rather than returning a malloc'ed struct group_info *.
54323         All uses changed.  Check for overflow in internal size calculation.
54324
54325         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
54326         rather than xmalloc/xrealloc.
54327         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
54328         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
54329         conformance bug: the old code used a pointer after freeing the
54330         storage that it addressed.
54331         * lib/hash.c (hash_initialize): Simplify the code by using
54332         xalloc_oversized rather than doing it by hand.
54333         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
54334         the buffer preserved.  Use free and xmalloc instead.
54335         * lib/quotearg.c (quotearg_n_options): Likewise.
54336         Use a simpler test for size overflow.  Don't use xalloc_oversized
54337         because unsigned int might be wider than size_t (!); this suggests
54338         that we should switch from unsigned int to size_t for slot numbers.
54339
54340 2003-10-28  Paul Eggert  <eggert@twinsun.com>
54341
54342         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
54343         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
54344         NetBSD kernels.  Requested by Richard Stallman.
54345
54346 2003-10-27  Paul Eggert  <eggert@twinsun.com>
54347
54348         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
54349         to allocate the returned structure.  Do not allocate a subarray,
54350         as x2nrealloc will do that.
54351         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
54352         instead of xnrealloc.
54353         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
54354
54355 2003-10-27  Bruno Haible  <bruno@clisp.org>
54356
54357         * lib/stdbool_.h: Better support for BeOS.
54358
54359 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54360
54361         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
54362         now uses inline.
54363
54364 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54365
54366         * lib/xalloc.h (xalloc_oversized): New static inline function, for
54367         callers that want to do their own size-overflow checking.  Include
54368         <stdbool.h>, since xalloc_oversized returns bool.
54369         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
54370         to use xalloc_oversized.
54371
54372         Add two functions x2realloc, x2nrealloc, for programs that grow
54373         arrays dynamically by doubling their sizes.
54374         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
54375         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
54376         New functions.
54377
54378         Port to C99 semantics for 'inline' of external functions.
54379         Bug reported by Bruno Haible.
54380         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
54381         with the old contents of xnmalloc.
54382         (xnmalloc, xmalloc): Use it.
54383         (xnrealloc_inline): New static inline function,
54384         with the old contents of xnrealloc.
54385         (xnrealloc, xrealloc): Use it.
54386
54387         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
54388         that.
54389
54390 2003-10-26  Karl Berry  <karl@gnu.org>
54391
54392         * config/srclist.txt (COPYING.DOC): no longer available from
54393         /gd/gnuorg; don't know where the ultimate source is.
54394
54395 2003-10-25  Paul Eggert  <eggert@twinsun.com>
54396
54397         Fix several address-calculation bugs in the hash modules,
54398         plus some minor code cleanup.
54399
54400         * lib/hash.h: Include <stdbool.h>, for bool.
54401         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
54402         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
54403         hash_get_n_entries, hash_get_max_bucket_length,
54404         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
54405         hash_rehash): Use size_t rather than unsigned.
54406         * lib/hash.c (struct hash_table, hash_get_n_buckets,
54407         hash_get_n_buckets_used, hash_get_n_entries,
54408         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
54409         hash_get_entries, hash_do_for_each, hash_string, is_prime,
54410         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
54411         Likewise.
54412         (SIZE_MAX): Define if not defined.
54413         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
54414         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
54415         hash_print):
54416         Use const * when possible.
54417         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
54418         (check_tuning): Fix bug: if tuning parameters were very close to
54419         0 or 1, rounding errors could have caused subscript violations.
54420         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
54421         (hash_initialize): Add 'fail:' label
54422         to free table and return NULL, and use it to simplify code.
54423         Use calloc rather than clearing the storage ourself.
54424         (hash_initialize, hash_rehash): Check for arithmetic overflow in
54425         buffer size calculations.
54426         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
54427         Include <stddef.h>, for size_t.
54428         * lib/hash-pjw.c (hash_pjw): Likewise.
54429         Switch to method described by Bruno Haible.
54430         Include <limits.h>, for CHAR_BIT.
54431         (SIZE_BITS): New macro.
54432
54433 2003-10-23  Paul Eggert  <eggert@twinsun.com>
54434
54435         * m4/getline.m4 (AM_FUNC_GETLINE):
54436         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
54437         hosts.  Problem reported by Derek Robert Price in
54438         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
54439         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
54440         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
54441
54442 2003-10-21  Paul Eggert  <eggert@twinsun.com>
54443
54444         * lib/getndelim2.c (getndelim2): When size calculation overflows,
54445         ceiling the allocation at NMAX bytes rather than silently
54446         discarding input bytes before NMAX is reached.  This makes
54447         a difference only if NMAX exceeds SIZE_MAX / 2.
54448
54449         * lib/obstack.c: Merge from glibc.
54450         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
54451         Add libc_hidden_def (_obstack_newchunk).
54452         (_obstack_free) [! defined _LIBC]: Remove.
54453         [defined _LIBC]: Make a strong alias from obstack_free, rather than
54454         a clone of the function body.
54455         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
54456         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
54457
54458         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
54459         glibc.
54460         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
54461         arg to memcpy.
54462
54463         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
54464         (obstack_ptr_grow_fast, obstack_int_grow_fast):
54465         Don't use lvalue casts, as GCC plans to remove support for them
54466         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
54467         was also present in the non-GCC version, indicating that this
54468         code had always been buggy and had never been widely used.
54469         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
54470         Use the fast variant of each macro, rather than copying the
54471         definiens of the fast variant; that way, we'll be more likely to
54472         catch future bugs in the fast variants.
54473
54474 2003-10-20  Bruno Haible  <bruno@clisp.org>
54475
54476         * modules/wait-process: New file.
54477         * MODULES.html.sh (func_all_modules): Add wait-process.
54478
54479 2003-10-20  Bruno Haible  <bruno@clisp.org>
54480
54481         * m4/wait-process.m4: New file.
54482
54483 2003-10-20  Bruno Haible  <bruno@clisp.org>
54484
54485         * lib/wait-process.h: New file, from GNU gettext.
54486         * lib/wait-process.c: New file, from GNU gettext.
54487
54488 2003-10-19  Jim Meyering  <jim@meyering.net>
54489
54490         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
54491         HPUX 10.20.
54492
54493 2003-10-18  Karl Berry  <karl@gnu.org>
54494
54495         * config/config.guess: update from config.
54496
54497 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54498
54499         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
54500         (getgroups): First arg is int, not size_t.
54501         Don't let 'free' mangle errno.
54502
54503 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54504
54505         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
54506
54507 2003-10-16  Karl Berry  <karl@gnu.org>
54508
54509         * config/config.{guess,sub}: update from config.
54510
54511 2003-10-16  Jim Meyering  <jim@meyering.net>
54512
54513         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
54514         memcpy.
54515
54516 2003-10-15  Paul Eggert  <eggert@twinsun.com>
54517
54518         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
54519         (SIZE_MAX): Remove.
54520         (new_exclude, add_exclude_file): Initial size no longer needs to
54521         be a power of 2.
54522         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
54523         our own address arithmetic overflow checking.
54524
54525         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
54526         (fnmatch): Do not alloca more than 2000 wide characters;
54527         instead, use malloc for large buffers.
54528         Check for address arithmetic overflow, and return -1
54529         with errno set to ENOMEM in that case.
54530         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
54531         (NEW_PATTERN): Do not alloca more than 8000 bytes;
54532         instead, return -1.  Check for address arithmetic overflow.
54533
54534 2003-10-14  Paul Eggert  <eggert@twinsun.com>
54535
54536         Handle invalid suffixes and overflow independently, so that
54537         callers can treat them independently as needed.  Fix some bugs in
54538         suffix handling, e.g., "100k@" was not diagnosed as an invalid
54539         suffix for a human-readable blocksize.  The major caller-visible
54540         change is the addition of a new
54541         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
54542         that both overflow and suffix chars were found.
54543
54544         * lib/human.c (humblock): Don't check separately for invalid suffix
54545         char; that is xstrtoumax's job (now that its bug is fixed).
54546         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
54547         INTMAX_MAX]: New macros.
54548         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
54549         TYPE_MAXIMUM): New macros.
54550         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
54551         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
54552         if overflow occurs, as it's what __strtol does and it's more useful
54553         in practice.
54554         (__xstrtol): If __strtol reports some error other than ERANGE,
54555         reflect it to the caller as LONGINT_INVALID.  If it reports
54556         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
54557         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
54558         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
54559         value.
54560         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
54561         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
54562         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
54563         [defined UINTMAX_MAX]: New macros.
54564
54565 2003-10-14  Bruno Haible  <bruno@clisp.org>
54566
54567         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
54568
54569 2003-10-14  Bruno Haible  <bruno@clisp.org>
54570
54571         * m4/sig_atomic_t: New file, from GNU gettext.
54572         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
54573
54574 2003-10-14  Bruno Haible  <bruno@clisp.org>
54575
54576         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
54577         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
54578         Also use volatile where needed.
54579
54580 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54581
54582         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
54583         Change maintainer from Bruno Haible to 'all'.
54584
54585 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54586
54587         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
54588
54589 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54590
54591         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
54592         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
54593         and define in terms of the other primitives.
54594         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
54595         (SIZE_MAX): Define if not already defined.
54596         (array_size_overflow): New function.
54597         (xalloc_die): Abort instead of exiting if 'error' returns.
54598         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
54599         (xmalloc, xrealloc): Use them.
54600         (xcalloc): Check for address arithmetic overflow.
54601         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
54602         a bit faster than strcpy.
54603
54604 2003-10-10  Simon Josefsson  <jas@extundo.com>
54605
54606         * modules/argp (Depends-on): Add restrict and strcase.
54607
54608 2003-10-10  Simon Josefsson  <jas@extundo.com>
54609
54610         * m4/argp.m4: Add AC_C_INLINE.
54611
54612 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54613
54614         Merge getpass from libc, plus a few fixes.
54615
54616         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
54617         Include <stdbool.h>.
54618         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
54619         __fsetlocking to empty.
54620         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
54621         do include <bits/libc-lock.h>.
54622         Do not include <fcntl.h>; not needed.
54623         [_LIBC]: Include <wchar.h>.
54624         (NOTCANCEL_MODE): New macro.
54625         (flockfile, funlockfile) [_LIBC]: New macros.
54626         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
54627         [!_LIBC]: New macros.
54628         (call_fclose): New function.
54629         (getpass): Use it.  Save tty stream separately; this simplifies the
54630         code and makes it more reliable if stdin happens to equal stdout.
54631         Invoke __fsetlocking on tty.
54632         Handle thread cancellation if needed.
54633         Namespace cleanup (use __tcgetattr, __getline).
54634         Use bool for Booleans.
54635         [USE_IN_LIBIO]: Handle wide streams.
54636         [!_LIBC]: Unconditionally do the fseek, since we don't know what
54637         stream might go where.
54638
54639         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
54640         doesn't have to include <stdio.h> before us.
54641         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
54642         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
54643         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
54644         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
54645         if not declared, so that we can use getpass.c code from libc without
54646         rewriting it.
54647         (flockfile, ftrylockfile, funlockfile): New macros.
54648
54649 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54650
54651         * modules/getpass: Depend on stdbool.
54652
54653 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54654
54655         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
54656
54657 2003-10-07  Karl Berry  <karl@gnu.org>
54658
54659         * config/config.{guess,sub}: update from config.
54660
54661 2003-10-06  Jim Meyering  <jim@meyering.net>
54662             Bruno Haible  <bruno@clisp.org>
54663
54664         This lets translators provide better translations for the
54665         "Written by ..." part of --version output.
54666         * lib/version-etc.h: Include stdarg.h.
54667         (version_etc_copyright): Declare as readonly.
54668         (version_etc): Make this function variadic with a NULL-terminated list
54669         of author name strings.
54670         (version_etc_va): New declaration.
54671         * lib/version-etc.c: Include stdarg.h, stdlib.h.
54672         (version_etc_copyright): Declare as readonly.
54673         (version_etc_va): New function. Provide a different translatable string
54674         for each possible number of authors < 10. Abbreviate when there are 10
54675         authors or more.
54676         (version_etc): Make this function variadic. Call version_etc_va.
54677         Suggestion from Gary V. Vaughan.
54678
54679         * lib/long-options.h (parse_long_options): Change prototype: the
54680         authors string is moved to the end and becomes variadic.
54681         * lib/long-options.c: Include stdarg.h.
54682         (parse_long_options): Make this function variadic, too.
54683         Call version_etc_va, not version_etc.
54684
54685 2003-10-06  Bruno Haible  <bruno@clisp.org>
54686
54687         * modules/version-etc-2: Remove file.
54688         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
54689
54690 2003-10-06  Bruno Haible  <bruno@clisp.org>
54691
54692         * modules/fatal-signal: New file.
54693         * MODULES.html.sh (func_all_modules): Add fatal-signal.
54694
54695 2003-10-06  Bruno Haible  <bruno@clisp.org>
54696
54697         * m4/fatal-signal.m4: New file.
54698         * m4/signalblocking.m4: New file, from GNU gettext.
54699
54700 2003-10-06  Bruno Haible  <bruno@clisp.org>
54701
54702         * lib/version-etc-2.h: Remove file.
54703         * lib/version-etc-2.c: Remove file.
54704
54705 2003-10-06  Bruno Haible  <bruno@clisp.org>
54706
54707         * lib/fatal-signal.h: New file, from GNU gettext.
54708         * lib/fatal-signal.c: New file, from GNU gettext.
54709
54710 2003-10-05  Paul Eggert  <eggert@twinsun.com>
54711
54712         * README: Rework advice for preventing empty .o files.
54713         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
54714         not <sys/types.h>.
54715
54716 2003-10-04  Karl Berry  <karl@gnu.org>
54717
54718         * lib/argp*: update from libc.
54719
54720 2003-10-04  Karl Berry  <karl@gnu.org>
54721
54722         * config/config.{guess,sub}: update from config.
54723
54724 2003-10-02  Bruno Haible  <bruno@clisp.org>
54725
54726         * modules/lchown (Include): Add lchown.h.
54727         * modules/time_r (Include): Use "..." syntax.
54728         * modules/xgetdomainname (Include): Add xgetdomainname.h.
54729
54730 2003-10-01  Simon Josefsson  <jas@extundo.com>
54731
54732         * MODULES.html.sh (func_all_modules): Move gethostname from section
54733         'based on' to section 'lacking' POSIX:2001.
54734
54735 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
54736
54737         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
54738         to output mode on the same stream.
54739
54740 2003-09-29  Paul Eggert  <eggert@twinsun.com>
54741
54742         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
54743         Fix arg typo in previous patch.
54744
54745 2003-09-28  Jim Meyering  <jim@meyering.net>
54746
54747         * lib/error.c: Correct cpp indentation.
54748
54749 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54750
54751         * modules/free: New file.
54752
54753 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54754
54755         * m4/free.m4: New file.
54756
54757 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54758
54759         * lib/minmax.h (MIN, MAX)
54760         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
54761         Omit the special code that used __typeof__, since we worry that
54762         it could be more trouble than it's worth.  See:
54763         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
54764         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
54765
54766         * lib/free.c: New file.
54767
54768 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
54769
54770         Trivial fixes to Makefile.am parts of module listings.
54771         * modules/strstr: Append strstr.h to lib_SOURCES.
54772         * modules/strcase: Likewise, for strcase.h.
54773
54774 2003-09-27  Karl Berry  <karl@gnu.org>
54775
54776         * config/mkinstalldirs: update from automake.
54777
54778 2003-09-26  Paul Eggert  <eggert@twinsun.com>
54779
54780         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
54781         (error_tail): Do not loop, reallocating temporary buffer, since
54782         the output cannot contain more wide characters than the input
54783         contains bytes, the size must be big enough already.  This avoids
54784         one potential size overflow calculation.  Check for size overflow
54785         when calculating temporary buffer size.  Free temporary buffer
54786         when done, if it was allocated with malloc; this plugs a memory
54787         leak.  Remove casts from void * to pointers, that are no longer
54788         needed now that we're assuming C89 or better.
54789
54790         Merge error changes from glibc.
54791
54792         * lib/error.c, error.h: Update copyright notice header to match glibc.
54793         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
54794         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
54795         Disable cancellation while printing error.
54796         * lib/error.h: Prepend __ to parameter names.
54797
54798 2003-09-26  Jim Meyering  <jim@meyering.net>
54799
54800         * lib/error.c (error_tail): Move some declarations
54801         into inner scope where the local variables are used.
54802
54803 2003-09-26  Bruno Haible  <bruno@clisp.org>
54804
54805         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
54806         stpncpy().
54807         Don't define stpncpy through config.h; it's now done through stpncpy.h.
54808
54809 2003-09-26  Bruno Haible  <bruno@clisp.org>
54810
54811         * lib/stpncpy.h (gnu_stpncpy): New declaration.
54812         (stpncpy): Define as alias for gnu_stpncpy.
54813         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
54814
54815 2003-09-25  Simon Josefsson  <jas@extundo.com>
54816
54817         * lib/xgetdomainname.h: New file.
54818         * lib/xgetdomainname.c: New file.
54819
54820 2003-09-25  Simon Josefsson  <jas@extundo.com>
54821             Bruno Haible  <bruno@clisp.org>
54822
54823         * modules/getdomainname: New file.
54824         * modules/xgetdomainname: New file.
54825         * MODULES.html.sh (func_all_modules): Add getdomainname,
54826         xgetdomainname.
54827
54828 2003-09-25  Simon Josefsson  <jas@extundo.com>
54829             Bruno Haible  <bruno@clisp.org>
54830
54831         * m4/getdomainname.m4: New file.
54832
54833 2003-09-25  Simon Josefsson  <jas@extundo.com>
54834             Bruno Haible  <bruno@clisp.org>
54835
54836         * lib/getdomainname.h: New file.
54837         * lib/getdomainname.c: New file.
54838
54839 2003-09-25  Karl Berry  <karl@gnu.org>
54840
54841         * lib/argp-fmtstream.c, argp-help.c: update from libc.
54842
54843 2003-09-25  Karl Berry  <karl@gnu.org>
54844
54845         * config/install-sh: update from automake.
54846
54847 2003-09-25  Bruno Haible  <bruno@clisp.org>
54848
54849         * modules/version-etc-2: New file, from modules/version-etc with
54850         modifications.
54851         * MODULES.html.sh (func_all_modules): Add version-etc-2.
54852
54853 2003-09-25  Bruno Haible  <bruno@clisp.org>
54854
54855         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
54856         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
54857
54858 2003-09-24  Simon Josefsson  <jas@extundo.com>
54859
54860         * modules/xgethostname: Add xgethostname.h.
54861
54862 2003-09-24  Paul Eggert  <eggert@twinsun.com>
54863
54864         * lib/linebuffer.c (freebuffer): Don't free the argument, just
54865         the buffer associated with the argument.  Bug reported by
54866         Simon Josefsson.
54867
54868 2003-09-24  Paul Eggert  <eggert@twinsun.com>
54869
54870         * README: Document assumptions that 'int' is at least 32 bits
54871         wide, that integer arithmetic is 2's complement without overflow,
54872         that there are no holes in integer values, that adding sizes of
54873         two nonoverlapping objects can't overflow, and that all-bits-zero
54874         yields scalar zero.  Fix spelling and capitalization typos.
54875
54876 2003-09-19  Karl Berry  <karl@gnu.org>
54877
54878         * lib/argp.h: update from libc.
54879
54880 2003-09-17  Paul Eggert  <eggert@twinsun.com>
54881
54882         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
54883         to avoid spurious warnings like "AC_RUN_IFELSE was called before
54884         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
54885
54886 2003-09-17  Paul Eggert  <eggert@twinsun.com>
54887
54888         * gnulib-tool: Use "test -h", not "test -L", for portability
54889         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
54890         (tags_regexp): Remove, since \| doesn't conform to POSIX.
54891         (sed_extract_prog): Issue s commands one-by-one, rather than
54892         using \| in one s command.
54893
54894 2003-09-16  Paul Eggert  <eggert@twinsun.com>
54895
54896         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
54897         input error, instead of returning NULL the next time we are called
54898         (and therefore losing track of errno).
54899
54900 2003-09-16  Bruno Haible  <bruno@clisp.org>
54901
54902         * gnulib-tool (func_create_testdir): Warn about duplicated
54903         dependencies.
54904
54905 2003-09-15  Paul Eggert  <eggert@twinsun.com>
54906
54907         * modules/argmatch, modules/fatal, modules/obstack,
54908         modules/xalloc, modules/xgethostname: Sort dependencies by
54909         importance, not alphabetically.
54910
54911 2003-09-15  Paul Eggert  <eggert@twinsun.com>
54912
54913         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
54914         fails, so that the caller gets the proper errno.
54915
54916         * lib/readutmp.c (read_utmp): Likewise.
54917         Check for fstat error.  Close stream and free storage
54918         when failing.
54919
54920 2003-09-14  Karl Berry  <karl@gnu.org>
54921
54922         * config/srclist.txt (strdup.c): disable for c89 changes.
54923
54924 2003-09-14  Jim Meyering  <jim@meyering.net>
54925
54926         * lib/getloadavg.c: Correct cpp indentation.
54927         * lib/strdup.c: Likewise.
54928         * lib/vasnprintf.c: Likewise.
54929
54930 2003-09-14  Bruno Haible  <bruno@clisp.org>
54931
54932         * modules/fwriteerror: New file.
54933         * MODULES.html.sh (func_all_modules): Add fwriteerror.
54934
54935 2003-09-14  Bruno Haible  <bruno@clisp.org>
54936
54937         * lib/fwriteerror.h: New file.
54938         * lib/fwriteerror.c: New file.
54939
54940 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54941
54942         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
54943         modules/xgethostname, modules/xalloc: Depend on exit.
54944
54945 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54946
54947         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
54948
54949         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
54950         and AC_MINIX, too, so that their extensions are available.
54951
54952         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
54953         This macro has been superseded by gl_BACKUPFILE.
54954
54955         More patches to assume C89 or better.
54956
54957         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
54958
54959         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
54960         unconditionally.
54961         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
54962         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
54963         Include <string.h>, <stdlib.h> unconditionally.
54964         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
54965         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
54966         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
54967         headers or for string.h.
54968         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
54969         or strtoul.
54970
54971         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
54972         headers.
54973         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
54974         * m4/userspec.m4 (gl_USERSPEC): Likewise.
54975         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
54976         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
54977         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54978         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
54979         memcpy, memset.
54980         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
54981         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
54982         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
54983         strtol.
54984         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
54985         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
54986         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
54987         strtoul.
54988
54989 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54990
54991         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
54992         * lib/obstack.c [!defined _LIBC]: Likewise.
54993         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
54994         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
54995         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
54996
54997         More changes to assume C89 or better.
54998
54999         * lib/error.c (error_tail): Assume vprintf.
55000
55001         * lib/argmatch.c (getenv): Remove decl.
55002         * lib/progreloc.c (get_full_program_name): Define via prototype.
55003         * lib/setenv.c (clearenv): Likewise.
55004         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55005         needed.
55006         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55007         (malloc, memcpy): Remove decls.
55008         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55009         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55010         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55011         (memcpy): Remove macro.
55012         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55013         (__P): Remove.  All uses removed.
55014         (PTR): Remove.  All uses changed to void *.
55015         (CHAR_BIT, NULL): Remove.
55016         (spaces, zeros, memset_space, memset_zero)
55017         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55018         Remove.
55019         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55020         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55021         Define with prototype.
55022         Remove now-unnecessary prototype decl.
55023         (extra_args_spec): Assume ANSI C.  All uses changed.
55024         (extra_args_spec_iso): Remove.
55025         (my_strftime, emacs_strftimeu): Define via prototype.
55026         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55027         unconditionally.
55028         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55029         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55030         (strtoul, strtol): Remove decls.
55031         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55032         LONG_MAX): Remove.
55033         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55034         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
55035         (LOCALE_PARAM_PROTO): New macro.
55036         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55037         (INTERNAL (strtol), strtol): Define with a prototype.
55038         (PARAMS): Remove.  All uses removed.
55039         * lib/tempname.c: Include <string.h> unconditionally.
55040         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55041         * lib/xgethostname.c (main): Define with a prototype.
55042         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55043         Include <stdlib.h> unconditionally.
55044         (calloc, malloc, realloc, free): Remove decls.
55045         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55046         Include <stdlib.h> unconditionally.  Sort include file names.
55047         (strtod): Remove.
55048         (xstrtod): Define with a prototype.
55049         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55050         (strtol, strtoul): Remove decls.
55051
55052 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55053
55054         More patches to assume C89 or better.
55055         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55056         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55057         string.h, memchr, STDC_HEADERS.
55058
55059 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55060
55061         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55062         Include <stdlib.h>, <string.h> unconditionally.
55063         Remove now-unnecessary cast to char *.
55064         * lib/strnlen.c: Include <string.h> unconditionally.
55065         * lib/yesno.c (yesno): Define with a prototype.
55066
55067 2003-09-11  Bruno Haible  <bruno@clisp.org>
55068
55069         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55070
55071 2003-09-10  Jim Meyering  <jim@meyering.net>
55072
55073         * lib/error.c: Correct indentation of cpp directives.
55074
55075 2003-09-10  Bruno Haible  <bruno@clisp.org>
55076
55077         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55078         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55079         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55080         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55081         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55082         <stdlib.h> and <string.h> checks.
55083         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55084         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55085
55086 2003-09-10  Bruno Haible  <bruno@clisp.org>
55087
55088         * lib/strcspn.c: Include <string.h> unconditionally.
55089         * lib/strpbrk.c: Include <string.h> unconditionally.
55090         * lib/strstr.c: Include <string.h> unconditionally.
55091         * lib/unicodeio.c: Include <string.h> unconditionally.
55092         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55093         * lib/unsetenv.c: Likewise.
55094         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55095         * lib/yesno.c: Include <stdlib.h> unconditionally.
55096         (rpmatch): Add prototype.
55097
55098 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55099
55100         More patches to assume C89 or better.
55101         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55102         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55103         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55104         or for string.h.
55105         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55106         stdlib.h.
55107         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55108         C headers.
55109         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55110         string.h.
55111         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55112         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55113         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55114         or for string.h.
55115         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55116         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55117         C headers.
55118         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55119         memcpy.
55120         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55121         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55122         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55123         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55124         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55125         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55126         string.h, free.
55127         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55128         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55129         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55130         C headers, or for string.h.
55131         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55132         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55133         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55134         headers, memory.h, stdlib.h, string.h, strings.h.
55135         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55136         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55137         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55138         strchr.
55139         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55140         headers, memory.h, string.h.
55141         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55142         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55143         free.
55144         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55145         headers.
55146         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55147         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55148         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55149         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55150         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55151
55152 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55153
55154         More K&R removal.
55155
55156         * lib/acosl.c (main): Use a prototype.
55157         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55158         tanl.c: Likewise.
55159
55160         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55161
55162         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55163         (getopt, etopt_long, getopt_long_only, _getopt_internal)
55164         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55165         with a prototype.
55166         * lib/getopt.c (const): Remove macro.
55167         Include <string.h> unconditionally.
55168         (my_index): Remove; all uses changed to strchr.
55169         (strlen): Remove decl.
55170         (exchange): Remove forward decl; no longer needed.
55171         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55172         Define with prototype.
55173         * lib/getopt1.c (const): Remove macro.
55174         (getopt_long, getopt_long_only, main): Define with prototype.
55175
55176         * lib/getugroups.c: Include <string.h> unconditionally.
55177
55178         * lib/getusershell.c: Include <stdlib.h> unconditionally.
55179         (getusershell, setusershell, endusershell, readname, main):
55180         Define with prototypes.
55181
55182         * lib/group-member.c: Include group-member.h first.
55183         Include <stdlib.h> unconditionally.
55184
55185         * lib/hard-locale.c: Include hard-locale.h first.
55186         Include <stdlib.h>, <string.h> unconditionally.
55187
55188         * lib/hash.c (free, malloc): Remove decls.
55189         Include <stdlib.h> unconditionally.
55190
55191         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55192         (getenv): Do not declare.
55193
55194         * lib/idcache.c: Include <string.h> unconditionally.
55195
55196         * lib/long-options.c: Include long-options.h first, to test interface.
55197         Include <stdlib.h> unconditionally.
55198
55199         * lib/makepath.c: Include makepath.h first, to test interface.
55200         Include <stdlib.h> and <string.h> unconditionally.
55201
55202         * lib/linebuffer.c: Include <stdlib.h>.
55203         (free): Remove decl.
55204
55205         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55206         stddef.h. rpl_malloc returns void *, not char *.
55207         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
55208         prototype.
55209
55210         * lib/md5.h: Include <limits.h> unconditionally.
55211         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55212         (__P): Remove; all uses removed.
55213         * lib/md5.c: Include "md5.h" first.
55214         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55215         md5_buffer, md5_process_bytes, md5_process_block):
55216         Define with prototypes.
55217         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
55218         * lib/sha.c: Include "sha.h" first.
55219         Include <stdlib.h>, <string.h> unconditionally.
55220
55221         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55222         * lib/memcmp.c (__ptr_t): Likewise.
55223         * lib/memrchr.c (__ptr_t): Likewise.
55224         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55225         Include <string.h> unconditionally.
55226         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55227         * lib/memchr.c: Include <stdlib.h> unconditionally.
55228         * lib/memchr.c (LONG_MAX): Remove.
55229         * lib/memrchr.c (LONG_MAX): Likewise.
55230         * lib/memchr.c (__memchr): Define via a prototype.
55231         * lib/memrchr.c (__memrchr): Likewise.
55232         * lib/memcmp.c (__P): Remove, and remove all uses.
55233         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55234         Remove forward decls; no longer needed.
55235         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55236         Use types required by C89 in prototype.
55237
55238         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55239         * lib/savedir.c: Likewise.
55240         * lib/mkdir.c (free): Remove decl.
55241         * lib/rmdir.c (rmdir): Define with a prototype.
55242         * lib/savedir.c: Include savedir.h first, to test interface.
55243
55244         * lib/mktime.c (STDC_HEADERS): Remove.
55245         Include <stdlib.h>, <string.h> unconditionally.
55246
55247         * lib/modechange.c: Include <stdlib.h> unconditionally.
55248         (malloc): Remove decl.
55249
55250         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55251         (free): Remove decl.
55252
55253         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55254         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55255         (This type really should be intptr_t, but that's a C99ism.)
55256         (_obstack_memcpy): Remove: all uses changed to memcpy.
55257         Include <string.h> unconditionally.
55258         (struct obstack): Assume __STDC__ for types of members
55259         chunkfun, freefun, extra_arg.
55260         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55261         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55262         obstack_begin, obstack_specify_allocation,
55263         obstack_specify_allocation_with_arg, obstack_chunkfun,
55264         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55265         Remove unprototyped decls and the macros that use them.
55266         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
55267         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55268         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55269         (defined __STDC__ && __STDC__)]:
55270         Remove nonprototyped code.
55271         Include <stdlib.h> unconditionally.
55272         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55273         _obstack_allocated_p, _obstack_free, obstack_free,
55274         _obstack_memory_used, print_and_abort):
55275         Define using prototypes.
55276         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55277         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55278         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55279         obstack_next_free, obstack_object_size, obstack_room) [0]:
55280         Remove unused, unprototyped code.
55281
55282         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55283
55284         * lib/physmem.c (physmem_total, physmem_available, main): Define
55285         with prototypes.
55286
55287         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55288         (main): Define with a prototype.
55289
55290         * lib/posixver.c (getenv): Remove decl.
55291
55292         * lib/putenv.c (malloc): Returns void *, not char *.
55293         Include <string.h> unconditionally.
55294         (strchr, memcpy, NULL): Do not define.
55295
55296         * lib/readtokens.c: Include readtokens.h first, to test interface.
55297         Include <stdlib.h>, <string.h> unconditionally.
55298         (init_tokenbuffer): Define with a prototype.
55299
55300         * lib/regex.c (PARAMS): Remove.  All uses removed.
55301         All uses of _RE_ARGS removed, too.
55302         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55303         unconditionally.
55304         (bzero): Assume memset exists.
55305         (memcmp, memcpy, NULL): Remove.
55306         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
55307         char, or assignments to local vars of type signed char.
55308         (init_syntax_once, PREFIX(extract_number_and_incr),
55309         PREFIX(print_partial_compiled_pattern),
55310         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
55311         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
55312         PREFIX(regex_grow_registers), PREFIX(regex_compile),
55313         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
55314         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
55315         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
55316         wcs_compile_range, byte_compile_range, truncate_wchar,
55317         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
55318         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
55319         count_mbs_length, wcs_re_match_2_internal,
55320         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
55321         PREFIX(alt_match_null_string_p),
55322         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
55323         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
55324         regfree, PREFIX(extract_number)): Define with prototype.  Remove
55325         now-unnecessary declaration, if any.
55326         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
55327         regcomp, regexec):
55328         Remove now-unnecessary casts among pointer types.
55329         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
55330
55331         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
55332         (free): Remove decl.
55333
55334         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
55335
55336         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
55337         (free): Remove decl.
55338
55339         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
55340         * lib/xgetcwd.c: Likewise.
55341
55342         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
55343         (free): Remove decl.
55344
55345         * lib/strchrnul.c (strchrnul): Define with a prototype.
55346         Fix bug: c_in was not converted to char before searching.
55347
55348         The following changes are not K&R related:
55349
55350         * lib/group-member.h: Include <sys/types.h>, so that this file is
55351         self-contained.
55352         * lib/makepath.h: Likewise.
55353
55354         * lib/getusershell.c (readname, default_index, line_size, readname):
55355         Use size_t, not int, for sizes.
55356         (readname): If the size overflows, report an error instead of
55357         looping forever.
55358
55359 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55360
55361         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
55362         libc.
55363
55364 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55365
55366         * README: New section: portability guidelines.
55367
55368 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55369
55370         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
55371         C89 spec.
55372
55373 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55374
55375         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
55376
55377 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55378
55379         Assume C89 or better; remove K&R cruft.
55380         A few of these changes were first proposed by Derek Robert Price
55381         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
55382
55383         * lib/addext.c: Include <string.h> unconditionally.
55384         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
55385         Don't declare getenv or malloc.
55386
55387         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
55388         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
55389         (NULL): Remove.
55390         (find_stack_direction, alloca): Use prototypes.
55391
55392         * lib/atexit.c (atexit): Define using a prototype.
55393
55394         * lib/basename.c, dirname.c, stripslash.c:
55395         Include <string.h> unconditionally.
55396
55397         * lib/bcopy.c: Include <stddef.h>.
55398         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
55399
55400         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
55401
55402         * lib/error.h (error, error_at_line, error_print_progname)
55403         [! (defined (__STDC__) && __STDC__)]: Remove decls.
55404         * lib/error.c: Include error.h first, to check interface.
55405         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55406         (VA_START): Remove; all uses changeed to va_start.
55407         (exit, strerror): Remove decls.
55408         (error_print_progname): Prototype uncondionally.
55409         Don't include <errno.h>; no longer needed.
55410         (private_strerror): Remove.
55411         (error_tail): Always define.
55412         (error, error_at_line): Assume C89 or better; always use prototypes.
55413         * lib/fatal.c: Include "fatal.h" first, to test interface.
55414         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55415         (VA_START): Remove; all uses changed to va_start.
55416         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
55417         this case.
55418         (exit): Remove decl.
55419         (fatal): Prototype unconditionally.  Assume va_start works.
55420         Abort at end, to pacify gcc.
55421
55422         * lib/euidaccess.c (main): Define with a prototype.
55423
55424         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
55425
55426         * lib/exitfail.c: Include <stdlib.h> unconditionally.
55427
55428         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
55429         prototypes.
55430         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
55431         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
55432         (getenv): Remove decl.
55433         (fnmatch): Define using a prototype.
55434         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
55435         (FCT): Define using a prototype.
55436
55437         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
55438
55439         * lib/gethostname.c: Include <stddef.h>.
55440         (gethostname): Define with prototype.  Length is size_t, not int.
55441
55442 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55443
55444         Assume C89 or better; remove K&R cruft.
55445         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
55446         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
55447         string.h, getenv, malloc.
55448         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
55449         headers.
55450         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
55451         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
55452         do not check for strerror.
55453         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
55454         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
55455         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
55456         do not check for doprnt or vprintf.
55457         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
55458         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
55459
55460 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55461
55462         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
55463         getversion.c should have been removed then, but was accidentally
55464         preserved.
55465
55466         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
55467         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
55468
55469 2003-09-08  Karl Berry  <karl@gnu.org>
55470
55471         * config/config.sub, config.guess, srclistvars.sh: update from savannah
55472                 config, forget about prep.
55473
55474         * config/depcomp, missing: update from automake.
55475
55476 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55477
55478         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
55479         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55480
55481 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55482
55483         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
55484         copy_tm_result.  Bug reported by Simon Josefsson in
55485         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55486
55487 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55488
55489         * m4/time_r.m4: New file.
55490         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
55491         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
55492         is. Check for timegm declaration.
55493         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
55494         Do not check for gmtime_r.
55495         Replace mktime if __mktime_internal does not exist and if mktime
55496         hasn't been replaced already.
55497
55498 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55499
55500         * lib/time_r.c, lib/time_r.h: New files.
55501
55502         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
55503         __localtime_r.
55504         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
55505         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
55506
55507         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
55508         __gmtime_r.
55509         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
55510         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
55511         Include <time_r.h>.
55512
55513         * lib/timegm.c: Switch to glibc implementation, with the following
55514         changes:
55515         [defined HAVE_CONFIG_H]: Include <config.h>.
55516         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
55517         (__mktime_internal) [!defined _LIBC]: New decl.
55518         (__gmtime_r) [!defined _LIBC]: New macro and function.
55519         (timegm): Use a prototype, since gnulib assumes C89.
55520         Do not bother declaring tmp to be const, as it's not really usefu.
55521         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
55522         (timegm): Declare only if HAVE_DECL_TIMEGM.
55523
55524 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55525
55526         * MODULES.html.sh (func_all_modules): Add time_r.
55527         * modules/time_r: New file.
55528         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
55529         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
55530
55531 2003-09-03  Paul Eggert  <eggert@twinsun.com>
55532
55533         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
55534         Bug reported by Lute Kamstra in
55535         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
55536
55537         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
55538         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
55539         course with correspondingly smaller numbers for tomorrow and
55540         yesterday.  From Tadayoshi Funaba.  Originally installed into
55541         sh-utils on 1999-08-07, but the patch got lost (I guess during the
55542         coreutils merge?).
55543
55544 2003-08-31  Simon Josefsson  <jas@extundo.com>
55545
55546         * modules/timegm: New file.
55547         * MODULES.html.sh (func_all_modules): Add timegm.
55548
55549 2003-08-31  Simon Josefsson  <jas@extundo.com>
55550
55551         * m4/timegm.m4: New file.
55552
55553 2003-08-31  Simon Josefsson  <jas@extundo.com>
55554
55555         * lib/timegm.h: New file.
55556         * lib/timegm.c: New file.  Based on
55557         wget-1.8.2/src/http.c:mktime_from_utc.
55558
55559 2003-08-31  Karl Berry  <karl@gnu.org>
55560
55561         * lib/argp.h: update from libc.
55562
55563 2003-08-28  Bruno Haible  <bruno@clisp.org>
55564
55565         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
55566         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
55567         followed by '#define fnmatch fnmatch_posix' gives an error.
55568
55569 2003-08-28  Bruno Haible  <bruno@clisp.org>
55570
55571         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
55572         warning on QNX, which defines O_BINARY to 000000.
55573
55574 2003-08-27  Jim Meyering  <jim@meyering.net>
55575
55576         * m4/mkstemp.m4: Require that the system mkstemp be able to create
55577         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
55578         would fail after 32.  Reported by Danny Levinson.  Details here:
55579         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
55580
55581 2003-08-24  Bruno Haible  <bruno@clisp.org>
55582
55583         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
55584         MSVC7 <stdio.h> is included later.
55585
55586 2003-08-22  Simon Josefsson  <jas@extundo.com>
55587
55588         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
55589
55590 2003-08-20  Karl Berry  <karl@gnu.org>
55591
55592         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
55593
55594 2003-08-20  Bruno Haible  <bruno@clisp.org>
55595
55596         * modules/progname: New file.
55597         * MODULES.html.sh (func_all_modules): Add progname.
55598
55599 2003-08-20  Bruno Haible  <bruno@clisp.org>
55600
55601         * lib/progname.h: New file, from GNU gettext.
55602         * lib/progname.c: New file, from GNU gettext.
55603         * lib/progreloc.c: New file, from GNU gettext.
55604
55605 2003-08-19  Jim Meyering  <jim@meyering.net>
55606
55607         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
55608         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
55609
55610 2003-08-19  Bruno Haible  <bruno@clisp.org>
55611
55612         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
55613         more.
55614
55615 2003-08-19  Bruno Haible  <bruno@clisp.org>
55616
55617         * lib/xstrdup.c: Assume <string.h> exists.
55618
55619 2003-08-18  Paul Eggert  <eggert@twinsun.com>
55620
55621         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
55622         in makefile rules.
55623
55624 2003-08-18  Jim Meyering  <jim@meyering.net>
55625
55626         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
55627         * m4/lib-ld.m4: Likewise.
55628
55629 2003-08-18  Jim Meyering  <jim@meyering.net>
55630
55631         * lib/setenv.h: Indent nested cpp directive.
55632         * lib/vasnprintf.c: Remove trailing blanks.
55633
55634 2003-08-17  Simon Josefsson  <jas@extundo.com>
55635
55636         * modules/xstrndup: New file.
55637         * MODULES.html.sh (func_all_modules): Add xstrndup.
55638
55639 2003-08-17  Simon Josefsson  <jas@extundo.com>
55640
55641         * modules/argp: Fix autoconf macro name. Add more dependencies.
55642
55643 2003-08-17  Simon Josefsson  <jas@extundo.com>
55644
55645         * m4/xstrndup.m4: New file.
55646
55647 2003-08-17  Simon Josefsson  <jas@extundo.com>
55648
55649         * m4/argp.m4: New file.
55650
55651 2003-08-17  Simon Josefsson  <jas@extundo.com>
55652             Bruno Haible  <bruno@clisp.org>
55653
55654         * lib/xstrndup.h: New file.
55655         * lib/xstrndup.c: New file.
55656
55657 2003-08-17  Bruno Haible  <bruno@clisp.org>
55658
55659         * modules/strndup (Files, Include): Add lib/strndup.h.
55660
55661 2003-08-17  Bruno Haible  <bruno@clisp.org>
55662
55663         * modules/euidaccess (Files): Add lib/euidaccess.h.
55664
55665 2003-08-17  Bruno Haible  <bruno@clisp.org>
55666
55667         * lib/strndup.h: New file.
55668
55669 2003-08-17  Bruno Haible  <bruno@clisp.org>
55670
55671         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
55672         like AC_GNU_SOURCE.
55673         * modules/extensions (configure.ac): Comment out the invocation of
55674         gl_USE_SYSTEM_EXTENSIONS.
55675
55676 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55677
55678         Merges from coreutils, etc.
55679         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
55680         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
55681         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
55682         fixing a typo.
55683         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
55684         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
55685
55686 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55687
55688         Document merge from coreutils.
55689         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
55690         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
55691         * modules/utime: Add m4/utimes-null.m4.
55692
55693 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55694
55695         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
55696         space, undoing this 2003-08-12 change:
55697         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55698
55699 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55700
55701         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
55702         strtoul.c from libc, undoing this 2003-08-12 change:
55703         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55704
55705 2003-08-16  Jim Meyering  <jim@meyering.net>
55706
55707         Merges from coreutils.
55708         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
55709         prefix.  Adjust cache variables similarly.  Create 500 rather than
55710         just 300 files, to exercise bug on Darwin6.5, too.
55711         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
55712         $missing_dir.
55713         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
55714         AM_SYS_POSIX_TERMIOS.
55715         Reported by mkc@mathdogs.com.
55716         Also change use of $am_cv_sys_posix_termios
55717         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
55718         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
55719         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
55720         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
55721         in /proc/mounts until it finds one with matching device number.  This
55722         is unnecessary when the FILE argument *is* a mount point.  No stat call
55723         is necessary in that case.  So, disable the statvfs-testing code on
55724         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
55725         as RedHat bug# 84846.
55726         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55727         to 1MB, so as not to render systems with no stack size limit (e.g.,
55728         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55729         Include <unistd.h>.  On some systems,
55730         it is required for the definition of _SC_PAGESIZE.
55731
55732 2003-08-16  Jim Meyering  <jim@meyering.net>
55733
55734         Merge from coreutils.
55735         * lib/xstrtoimax.c: #else #if -> #elif.
55736         * lib/xstrtoumax.c: Likewise.
55737
55738 2003-08-16  Jim Meyering  <jim@meyering.net>
55739
55740         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
55741         * m4/utimes.m4: Removed.
55742         * m4/utimes-null.m4: Renamed from utimes.m4.
55743
55744         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55745         to 1MB, so as not to render systems with no stack size limit (e.g.,
55746         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55747         Include <unistd.h>.  On some systems,
55748         it is required for the definition of _SC_PAGESIZE.
55749
55750 2003-08-16  Jim Meyering  <jim@meyering.net>
55751         and Paul Eggert  <eggert@cs.ucla.edu>
55752
55753         Merges from coreutils, etc.
55754
55755         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
55756         using the latest version from cvs.  This avoids problems with #line
55757         directives using a vendor (Sun) compiler.
55758         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
55759         Don't set GETGROUPS_LIB here; now it's
55760         done via getgroups.m4's wrapper function.
55761         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
55762         rather than just in sh-util/configure.in, so that the
55763         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
55764         same.
55765         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
55766         AC_FUNC_GETLOADAVG where to find getloadavg.c.
55767         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
55768         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
55769         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
55770         Remove code that is now done by the newly-required macros.
55771         Append $(EXEEXT) to DF_PROG.
55772         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
55773         Do not invoke or require the following here,
55774         since prereq.m4 or some gnulib .m4 now does this for us:
55775         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
55776         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
55777         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
55778         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
55779         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
55780         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
55781         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
55782         AC_FUNC_OBSTACK.
55783         Do not replace the following functions, as this is now the job
55784         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
55785         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
55786         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
55787         atexit getpass, strdup, getpagesize.
55788         Replace 'raise'.
55789         Do not check for the following functions, as this is now the job
55790         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
55791         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
55792         setregid.
55793         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
55794         Check for sys/sysctl.h.
55795         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
55796         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
55797         of checking for ssize_t ourselves.
55798
55799         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
55800         Require every macro that gnulib/modules/* suggests for us.
55801         (jm_PREREQ_ADDEXT): New macro.
55802         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
55803         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
55804
55805         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
55806         (gl_PHYSMEM): Use it.
55807         Also check for `table' function.
55808         Check for new headers and functions.
55809         Add check for sys/sysmp.h.
55810         With suggestions from Kaveh Ghazi.
55811         Ignore headers that are present but cannot be compiled.  This
55812         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
55813         C 5.4.
55814
55815 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55816
55817         Document merge from coreutils.
55818         * modules/userspec: Depend on posixver.
55819         * modules/strftime: Depend on tzset.
55820
55821 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55822
55823         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
55824         rather than tab, after '#' in shell-script copyright notices.
55825         Suggested by Bruno Haible.
55826
55827 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55828
55829         * config/srclist-update: Use three spaces, rather than tab, after '#'
55830         in shell-script copyright notices.  Suggested by Bruno Haible.
55831         Remove unnecessary parenthesization in regular expression.
55832
55833 2003-08-15  Jim Meyering  <jim@meyering.net>
55834
55835         Merge from coreutils.
55836         * lib/xgethostname.c: Include <stdlib.h>.
55837         (xghostname): Don't exit for anything other than memory-related
55838         failure; just return NULL.
55839         * lib/userspec.c: Include "posixver.h".
55840         (parse_user_spec): Accept `.' as a separator only
55841         in pre-POSIX-200112 mode.
55842         * lib/strtoimax.c: Use #elif rather than #else #if.
55843         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
55844         Remove function, now that we can rely on a working tzset function.
55845         [!_LIBC]: Ensure that the required autoconf test has been run.
55846         [!defined _NL_CURRENT && HAVE_STRFTIME]:
55847         Use underlying_strftime for %r.
55848         * lib/sha.c: Merge in some clean-up and optimization changes from
55849         glibc.
55850         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
55851         Ensure that it is a multiple of 64.
55852         Rearrange loop exit tests so as to avoid performing an
55853         additional fread after encountering an error or EOF.
55854         * lib/realloc.c: Update copyright date.
55855
55856 2003-08-15  Jim Meyering  <jim@meyering.net>
55857         and Paul Eggert  <eggert@twinsun.com>
55858
55859         Merge from coreutils.
55860         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
55861         member but strut utmpx does not.  Needed for AIX 4.3.3.
55862         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
55863
55864 2003-08-15  Jim Meyering  <jim@meyering.net>
55865         and Paul Eggert  <eggert@cs.ucla.edu>
55866
55867         Merges from coreutils, etc.
55868         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
55869         Require gl_FUNC_TZSET_CLOBBER.
55870         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
55871         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
55872         members.
55873
55874 2003-08-14  Paul Eggert  <eggert@twinsun.com>
55875
55876         Help the merge from coreutils.
55877         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
55878         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
55879         * m4/tzset.m4: Use it too.
55880
55881 2003-08-14  Paul Eggert  <eggert@twinsun.com>
55882
55883         * modules/tzset: New file.
55884
55885 2003-08-14  Jim Meyering  <jim@meyering.net>
55886
55887         Merges from coreutils.
55888         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
55889         variable names, rather than @FNMATCH_H@.
55890         * modules/alloca: Likewise for $(ALLOCA_H).
55891
55892         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
55893         the three copies of the literal target, `fnmatch.h'.
55894         * modules/alloca (alloca.h): Likewise.
55895
55896 2003-08-14  Jim Meyering  <jim@meyering.net>
55897
55898         Merge from coreutils.
55899         * m4/tzset.m4: New file.
55900         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
55901         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
55902         otherwise, AIX 5.1 systems would end up using the latter.
55903         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
55904         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
55905         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
55906         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
55907
55908 2003-08-14  Jim Meyering  <jim@meyering.net>
55909
55910         Merge from coreutils.
55911         * lib/obstack.h: Whitespace changes.
55912         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
55913         and xcalloc return values.
55914         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
55915         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
55916         hang on OSF/1 5.1 for DIR on both local and remote file systems.
55917         Reported by (and fix confirmed by) Nelson H. F. Beebe.
55918         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55919         error from mntctl.
55920         Use mntctl's return value to drive the entry-processing loop, since
55921         we can't rely on the value of the vmt_length member in the last
55922         entry.  On some systems doing so could result in exhausting
55923         virtual memory.  Based in part on a patch from Mike Jetzer.
55924
55925 2003-08-14  Jim Meyering  <jim@meyering.net>
55926         and Paul Eggert  <eggert@twinsun.com>
55927
55928         Merges from coreutils, plus other fixes.
55929         * lib/physmem.c: Merge in portability changes from gcc/libiberty
55930         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
55931         for credits and details.  Thanks to Kaveh Ghazi for helping
55932         to keep these files in sync.
55933         (ARRAY_SIZE): Define it.
55934         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
55935         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
55936         (memcasecmp): Don't assume size_t fits in unsigned int.
55937         Remove casts and duplicate code.
55938         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
55939         (memcpy): Remove definition.
55940         Merge in some clean-up and optimization changes from glibc.
55941         [BLOCKSIZE]: Move definition to top of file.
55942         Ensure that it is a multiple of 64.
55943         Rearrange loop exit tests so as to avoid performing an
55944         additional fread after encountering an error or EOF.
55945         * lib/md5.h (md5_uintptr): Define.
55946         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
55947         return to the initial working directory.  Preserve errno
55948         for caller.
55949         * lib/idcache.c: Include "xalloc.h".
55950         (xmalloc, xrealloc): Remove decls.
55951         (getuser): Remove casts no longer required in C89.
55952         * lib/human.c: Include stdio.h, for sprintf.
55953         * lib/group-member.c: Include "xalloc.h".
55954         (xmalloc, xrealloc): Remove decls.
55955         (get_group_info): Remove casts no longer required in C89.
55956         * lib/getusershell.c (readname): Remove casts no longer required in
55957         C89.
55958         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
55959         * lib/getline.c: Whitespace fix, from coreutils.
55960
55961 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55962
55963         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
55964         Check for isascii.
55965
55966         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
55967         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
55968         Undo previous (whitespace-only) change.
55969
55970 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55971
55972         * lib/exclude.c: Include <ctype.h>
55973         (IN_CTYPE_DOMAIN): New macro.
55974         (is_space): New fn.
55975         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
55976         and empty lines.
55977
55978         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
55979         Undo previous (whitespace-only) change.
55980
55981 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55982
55983         * config/srclist-update: Change update back to the old behavior,
55984         leaving whitespace alone.  Use one 'sed' command rather than a
55985         pipeline.
55986         (fixlicense): Now a variable, not a function.
55987         (remove_trailing_blanks): Remove.
55988         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
55989         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
55990         Undo previous (whitespace-only) change.
55991
55992 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55993
55994         Merge from coreutils.
55995         * modules/euidaccess: Add lib_SOURCES, include for new
55996         file euidaccess.h
55997
55998 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55999
56000         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56001         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56002         Normalize leading white space and remove trailing white space.
56003
56004         Merge from coreutils
56005         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56006
56007         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56008         0.12.1.  These files are now being upgraded automatically by
56009         ../config/srclist-update.
56010
56011 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56012
56013         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56014         Normalize leading white space and remove trailing white space.
56015         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56016         notice, as per ../config/srclist-update.
56017
56018         Merge from coreutils.
56019         * lib/euidaccess.h: New file.
56020         * lib/euidaccess.c: Include it.
56021         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56022         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
56023         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56024
56025 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56026
56027         * config/srclist-update: Add copyright notice.
56028         (remove_id_lines, remove_trailing_blanks): New constants.
56029         (fixfile): Use them to normalize spacing a bit in copied files.
56030         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56031         Normalize leading white space and remove trailing white space.
56032
56033         * config/texinfo.tex: Sync with texinfo.
56034
56035         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56036         strtoul.c from libc, to merge coreutils whitespace changes.
56037
56038         * config/srclist.txt: Get the following m4 files from gettext:
56039         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56040         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56041         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56042         wint_t.m4.
56043
56044 2003-08-12  Karl Berry  <karl@gnu.org>
56045
56046         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56047         been made.
56048
56049 2003-08-11  Paul Eggert  <eggert@twinsun.com>
56050
56051         * modules/gnu-source, m4/gnu-source.m4:
56052         Remove; we're assuming Autoconf 2.54 or later now.
56053         Suggested by Bruno Haible.
56054         * MODULES.html.sh (func_all_modules): Remove gnu-source.
56055
56056 2003-08-11  Bruno Haible  <bruno@clisp.org>
56057
56058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56059
56060 2003-08-11  Bruno Haible  <bruno@clisp.org>
56061
56062         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56063         (vasnprintf): Use it instead of wcslen.
56064
56065 2003-08-11  Bruno Haible  <bruno@clisp.org>
56066
56067         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56068         value to ensure that _Bool promotes to int. Use #define for _Bool when
56069         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56070
56071 2003-08-10  Karl Berry  <karl@gnu.org>
56072
56073         * lib/regex.h: update from libc (whitespace fix).
56074
56075 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56076
56077         Merge some files from coreutils.  These changes were
56078         originally made by Jim Meyering.
56079         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56080         many older Unixes require this.
56081         * lib/alloca.c (alloca): Remove cast to argument of free;
56082         no longer needed in C89.
56083         * lib/alloca_.h, regex.h: Fix white space to match
56084         what GNU indent does.
56085
56086 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56087
56088         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56089         apparently Emacs's Unicode mode got confused before my 2003-08-05
56090         checkin.
56091
56092 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56093
56094         * m4/extensions.m4: New file.
56095         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56096         Require gl_USE_SYSTEM_EXTENSIONS.
56097         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56098         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56099
56100 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56101
56102         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56103         * modules/extensions, modules/gnu-source: New files.
56104         * modules/timespec, modules/unlocked-io: Depend on extensions.
56105
56106 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56107
56108         * modules/restrict: New file.
56109         * MODULES.html.sh (func_all_modules): Add restrict.
56110         * modules/regex: Depend on restrict.
56111
56112 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56113
56114         * m4/restrict.m4: New file.
56115         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56116
56117 2003-08-07  Bruno Haible  <bruno@clisp.org>
56118
56119         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56120         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56121
56122 2003-08-07  Bruno Haible  <bruno@clisp.org>
56123
56124         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56125         makes the module 'getndelim2' compatible with the module 'getline'.
56126
56127 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56128
56129         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56130         byte with "\201" to avoid glitches when editing that source file
56131         with multi-gnome-terminal.
56132
56133 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56134
56135         * lib/bumpalloc.h: Remove.
56136
56137 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56138
56139         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56140         * modules/bumpalloc: Remove.
56141
56142 2003-08-04  Paul Eggert  <eggert@twinsun.com>
56143
56144         * lib/getloadavg.c: Change copyright notice and spacing to conform to
56145         GNU coding style.
56146
56147         Merge from coreutils.
56148         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56149         1. From glibc.
56150         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56151         from Karl Berry, implemented by Jim Meyering.
56152         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56153         from Dmitry V. Levin.
56154         Remove anachronistic cast of xrealloc.
56155         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
56156         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56157         type. Otherwise, it wouldn't compile with at least /bin/cc on
56158         ymp-cray-unicos9.0.2.X.
56159         Combine two mostly-identical uses of alloca into one.
56160         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56161
56162 2003-08-04  Dave Love  <d.love@dl.ac.uk>
56163
56164         [From Emacs.]
56165
56166         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
56167         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
56168         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56169         obsolete NLIST_NAME_UNION.
56170         [__GNU__]: Undef BSD and FSCALE.
56171         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56172
56173 2003-08-03  Paul Eggert  <eggert@twinsun.com>
56174
56175         * lib/stdbool_.h (_Bool): Make it signed char, instead of
56176         an enum type, so that it's guaranteed to promote to int.  See:
56177         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56178
56179 2003-08-03  Karl Berry  <karl@gnu.org>
56180
56181         * config/depcomp: update from automake.
56182
56183 2003-07-31  Paul Eggert  <eggert@twinsun.com>
56184
56185         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
56186         (strerror): Don't assume that a printable int fits in 14 bytes.
56187
56188 2003-07-31  Bruno Haible  <bruno@clisp.org>
56189
56190         * modules/getpass-gnu: New file.
56191         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56192
56193 2003-07-31  Bruno Haible  <bruno@clisp.org>
56194
56195         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56196
56197 2003-07-24  Karl Berry  <karl@gnu.org>
56198
56199         * config/missing: update from automake.
56200
56201 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
56202             Bruno Haible  <bruno@clisp.org>
56203
56204         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56205         * lib/getline.c (getline, getdelim): Likewise.
56206         Remove _GNU_SOURCE define; now it's defined in config.h through
56207         m4/getline.m4.
56208
56209 2003-07-23  Karl Berry  <karl@gnu.org>
56210
56211         * config/config.sub: update from prep.
56212
56213 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56214
56215         * modules/xalloc (Depends-on): Add exitfail.
56216         * modules/xmemcoll: Likewise.
56217
56218 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56219
56220         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56221         over-parenthesization in macros.
56222
56223         Sync with coreutils.
56224
56225         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56226         required by C99.
56227
56228         Use `exit_failure' for xalloc and xmemcoll instead of their own
56229         private exit-failure variables.
56230         * lib/xalloc.h (xalloc_exit_failure): Remove.
56231         * lib/xmalloc.c: Likewise.  Include exitfail.h.
56232         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56233         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56234         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
56235         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56236
56237 2003-07-20  Jim Meyering  <jim@meyering.net>
56238
56239         * modules/closeout (Depends-on): Add exitfail.
56240         Suggestion from Bruno Haible.
56241
56242 2003-07-19  Karl Berry  <karl@gnu.org>
56243
56244         * config/config.sub: update from prep.
56245
56246 2003-07-18  Paul Eggert  <eggert@twinsun.com>
56247
56248         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56249         Remove.
56250         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
56251         to test that it can stand by itself.  Include "exitfail.h".
56252         Clients should set exit_failure instead.
56253         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
56254
56255 2003-07-18  Bruno Haible  <bruno@clisp.org>
56256
56257         * modules/getndelim2: New file.
56258         * modules/getline: Share files with module getndelim2.
56259         * modules/getnline: Depend on getndelim2 instead of sharing files with
56260         it. Add getnline.c to lib_SOURCES.
56261         * MODULES.html.sh (func_all_modules): Add getndelim2.
56262
56263 2003-07-18  Bruno Haible  <bruno@clisp.org>
56264
56265         * m4/getndelim2.m4: New file.
56266         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56267         invoke gl_PREREQ_GETNDELIM2.
56268         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56269         gl_PREREQ_GETNDELIM2.
56270         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56271         gl_GETNDELIM2.
56272
56273 2003-07-18  Bruno Haible  <bruno@clisp.org>
56274
56275         * lib/getndelim2.h: New file.
56276         * lib/getndelim2.c: Make into a module of its own. Include config.h,
56277         getndelim2.h.
56278         (getndelim2): Make non-static. Change return type to ssize_t.
56279         * lib/getline.h: Change argument names.
56280         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56281         * lib/getnline.c: Include getndelim2.h.
56282
56283 2003-07-18  Andreas Schwab  <schwab@suse.de>
56284
56285         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56286
56287 2003-07-17  Karl Berry  <karl@gnu.org>
56288
56289         * config/config.sub: update from prep.
56290
56291 2003-07-17  Bruno Haible  <bruno@clisp.org>
56292
56293         * modules/getnline: New file.
56294         * modules/getline: Add lib/getndelim2.c to source file list.
56295         * MODULES.html.sh (func_all_modules): Add getnline.
56296
56297 2003-07-17  Bruno Haible  <bruno@clisp.org>
56298
56299         * m4/getnline.m4: New file.
56300
56301 2003-07-17  Bruno Haible  <bruno@clisp.org>
56302
56303         * m4/Makefile.am.in: Remove file.
56304         * m4/Makefile.am: Remove file.
56305         * m4/Makefile.in: Remove file.
56306
56307 2003-07-17  Bruno Haible  <bruno@clisp.org>
56308
56309         * lib/getnline.h: New file.
56310         * lib/getnline.c: New file.
56311         * lib/getndelim2.c: New file, extracted from getline.c.
56312         (getndelim2): Renamed from getdelim2, with added nmax argument.
56313         * lib/getline.c: Include getndelim2.c.
56314         (getdelim2): Moved out to getndelim2.c.
56315         (getline, getdelim): Update.
56316
56317 2003-07-17  Bruno Haible  <bruno@clisp.org>
56318
56319         * lib/Makefile.am: Remove file.
56320         * lib/Makefile.in: Remove file.
56321
56322 2003-07-17  Bruno Haible  <bruno@clisp.org>
56323
56324         * configure.in: Remove file.
56325         * Makefile.in: Remove file.
56326
56327 2003-07-17  Bruno Haible  <bruno@clisp.org>
56328
56329         * MODULES.html.sh: Put the </BODY> right before </HTML>.
56330
56331 2003-07-16  Karl Berry  <karl@gnu.org>
56332
56333         * config/srclist-update: was running fixlicense twice, which caused
56334                 texinfo.tex to be nullified for some reason.  Simplify,
56335                 $gplsrc is no longer needed as far as I can see?
56336
56337 2003-07-16  Jim Meyering  <jim@meyering.net>
56338
56339         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
56340
56341 2003-07-15  Paul Eggert  <eggert@twinsun.com>
56342
56343         * config/srclist.txt: Get the following files from gettext-runtime/intl
56344         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
56345         ref-del.sin.  From Bruno Haible.
56346         * config/srclist-update (fixfile): Change grep pattern again, since the
56347         previous fix didn't work (there was another trailing $).  Use
56348         '[$]' to escape the $s.
56349
56350 2003-07-15  Karl Berry  <karl@gnu.org>
56351
56352         * lib/vasnprintf.c: update from gettext.
56353
56354 2003-07-15  Karl Berry  <karl@gnu.org>
56355
56356         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
56357         gets expanded when surrounded by '$'.
56358
56359 2003-07-15  Jim Meyering  <jim@meyering.net>
56360
56361         * modules/save-cwd: Don't depend on error.  From Derek Price.
56362
56363 2003-07-15  Jim Meyering  <jim@meyering.net>
56364
56365         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
56366
56367 2003-07-14  Simon Josefsson  <jas@extundo.com>
56368
56369         * modules/mempcpy: New file.
56370         * MODULES.html.sh (func_all_modules): Add mempcpy.
56371
56372 2003-07-14  Simon Josefsson  <jas@extundo.com>
56373
56374         * m4/mempcpy.m4: New file.
56375
56376 2003-07-14  Simon Josefsson  <jas@extundo.com>
56377
56378         * lib/mempcpy.h: New file.
56379         * lib/mempcpy.c: New file.
56380
56381 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56382
56383         * modules/getdate, modules/posixtm: Depend on mktime.
56384
56385 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56386
56387         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
56388         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
56389         unicodeio.c, unicodeio.h, unlocked-io.h:
56390         Switch from LGPL to GPL.
56391
56392 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56393
56394         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
56395         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
56396         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
56397         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
56398         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
56399         updated automatically by ../config/srclist-update.  This changes
56400         their license from LPGL to GPL.
56401
56402 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56403
56404         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
56405         assumed to refer to the root of the most recent stable gettext version.
56406         * config/srclistvars.sh: Add defaults for eggert.
56407         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
56408         Match "This program" as well as "The program".  This is needed
56409         for gettext.
56410
56411 2003-07-14  Jim Meyering  <jim@meyering.net>
56412
56413         Don't emit diagnostics.  Let callers do that.
56414         * lib/save-cwd.c: Don't include "error.h".
56415         (save_cwd): Don't call error.  Ensure that errno is valid
56416         when returning nonzero.
56417
56418         * lib/save-cwd.h (restore_cwd): Update prototype.
56419         * lib/save-cwd.c (restore_cwd): Remove two parameters.
56420         Simplify.  Don't call error upon failure.  Let callers do that.
56421         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
56422         when auditing is enabled.  But don't bother updating the #if.
56423
56424 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
56425
56426         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
56427         it breaks C++ compilation.
56428         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
56429
56430 2003-07-10  Simon Josefsson  <jas@extundo.com>
56431
56432         * modules/strchrnul (Makefile.am): Add strchrnul.h.
56433
56434 2003-07-10  Jim Meyering  <jim@meyering.net>
56435
56436         * m4/clock_time.m4: Remove trailing blank.
56437         * m4/intmax_t.m4: Likewise.
56438
56439 2003-07-10  Jim Meyering  <jim@meyering.net>
56440
56441         * lib/vasnprintf.c: Remove trailing blanks.
56442         Make cpp indentation consistent.
56443
56444 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56445
56446         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
56447         posixver.c, strftime.c, strnlen.c, strverscmp.c:
56448         Switch from LGPL to GPL.
56449
56450 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56451
56452         * config/srclist.txt: Sort sublists.  Add
56453         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
56454         that differ from gnulib for one reason or another; we'd like this list
56455         to be smaller but for now let's document what we have.
56456
56457 2003-07-08  Paul Eggert  <eggert@twinsun.com>
56458
56459         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
56460         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
56461         and sweeter "eval x=$x".
56462         * config/srclist.txt: Get lib/argp* from glibc.
56463
56464 2003-07-07  Paul Eggert  <eggert@twinsun.com>
56465
56466         * lib/mktime.c: Fix some boundary cases and remove need for floating
56467         point.
56468
56469         Issue a compile-time diagnostic if time_t is floating point, or if
56470         two's complement arithmetic is not in effect, or if arithmetic
56471         right shift does not propagate the sign.  These assumptions were
56472         all in the original code but they weren't checked.
56473
56474         (TIME_T_MIDPOINT, verify): New macros.
56475         (__isleap): Remove; it has integer overflow problems.
56476         (leapyear): New function, without those problems.
56477         (ydhms_tm_diff): Remove; splitting into two parts.
56478         (ydhms_diff): New function, containing the arithmetic part of
56479         the old ydhms_tm_diff function.  Issue a compile-time
56480         diagnostic if we are not using C99 integer division.
56481         Avoid casts when possible.
56482         (guess_time_tm): New function, containing the checking part of
56483         the old ydhms_tm_diff function.  Return the new value, rather than
56484         the difference between it and the old.  Accept a new argument T
56485         so that *T specifies the old value.  Check for overflow in the result.
56486
56487         (__mktime_internal): Use a time_t offset, not a long int offset.
56488         This undoes the 2003-06-04 change, which is no longer needed now
56489         that we have better overflow checking.
56490         (localtime_offset): Likewise.
56491
56492         (__mktime_internal): Avoid harmful overflow on hosts where time_t
56493         and long are 64-bit but int is only 32-bit.
56494         (ydhms_diff): Use long int to store year1 and yday1.
56495         Issue a compile-time diagnostic if long int is not wide enough.
56496
56497         (__mktime_internal): Use long int to store adjusted year and yday.
56498         Use plain C rather than preprocessor commands, if that doesn't
56499         affect efficiency.
56500         Check for overflow (and try to repair) after each probe
56501         rather than checking only at the very end.  This avoids some bugs
56502         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
56503         does not equal GMT offset at maximum time).
56504         Use integer to check for overflow rather than floating point; this
56505         is more portable to non-IEEE hosts, and is a tad faster.
56506         When we detect that we are oscillating between two values,
56507         don't check whether tm_isdst has the requested value, since
56508         we already know the answer.  When tm_isdst has the wrong value,
56509         use a different heuristic to find the right one, based on the
56510         extreme values actually observed in practice in tz2003a,
56511         rather than the (overly optimistic) "previous 3 calendar quarters".
56512
56513         (not_equal_tm, print_tm, check_result): Use "const T" rather than
56514         "T const" to accommodate glibc style.
56515         (check_result): Use less-confusing report format.  "long" -> "long int.
56516         (main): Likewise.
56517         Don't loop if the iteration overflows time_t.
56518         Allow a negative step in the iteration.
56519
56520 2003-07-06  Karl Berry  <karl@gnu.org>
56521
56522         * config/depcomp: update from automake.
56523         * config/config.sub: update from prep.
56524
56525 2003-07-03  Karl Berry  <karl@gnu.org>
56526
56527         * config/config.guess: update from prep.
56528
56529 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56530
56531         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
56532         xreadlink.c now includes it unconditionally.
56533
56534 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56535
56536         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
56537         having it depend on HAVE_SYS_TYPES_H.
56538
56539 2003-07-01  Bruno Haible  <bruno@clisp.org>
56540
56541         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
56542         <sys/types.h> should be sufficient.
56543         Reported by Paul Eggert.
56544
56545 2003-06-26  Karl Berry  <karl@gnu.org>
56546
56547         * config/depcomp: update from automake.
56548
56549 2003-06-26  Bruno Haible  <bruno@clisp.org>
56550
56551         * modules/human: Depend on module stdbool.
56552
56553 2003-06-25  Bruno Haible  <bruno@clisp.org>
56554
56555         * modules/readlink: New file.
56556         * modules/xreadlink: Depend on it.
56557         * MODULES.html.sh (func_all_modules): Add readlink.
56558
56559 2003-06-25  Bruno Haible  <bruno@clisp.org>
56560
56561         * m4/readlink.m4: New file.
56562
56563 2003-06-25  Bruno Haible  <bruno@clisp.org>
56564
56565         * lib/readlink.c: New file.
56566
56567 2003-06-22  Karl Berry  <karl@gnu.org>
56568
56569         * config/srclist.txt: update mkinstalldirs from automake.
56570         * config/mkinstalldirs: update.
56571
56572 2003-06-22  Bruno Haible  <bruno@clisp.org>
56573
56574         Portability to mingw32.
56575         * m4/ssize_t.m4: New file, from GNU gettext.
56576         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
56577         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
56578
56579 2003-06-22  Bruno Haible  <bruno@clisp.org>
56580
56581         * modules/safe-read: Add m4/ssize_t.m4.
56582         * modules/xreadlink: Add m4/ssize_t.m4.
56583
56584 2003-06-20  Bruno Haible  <bruno@clisp.org>
56585
56586         Assume C89, so PARAMS isn't needed.
56587         * lib/unicodeio.h (PARAMS): Remove.
56588         * lib/unicodeio.c: Don't use PARAMS.
56589
56590 2003-06-18  Karl Berry  <karl@gnu.org>
56591
56592         * config/config.{guess,sub}: update from prep.
56593
56594 2003-06-18  Jim Meyering  <jim@meyering.net>
56595
56596         Merge changes from coreutils.
56597         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
56598         Remove explicit declarations of xmalloc and realloc.
56599         Include xalloc.h.
56600         (read_utmp): Remove anachronistic cast of xmalloc.
56601
56602 2003-06-17  Paul Eggert  <eggert@twinsun.com>
56603
56604         Assume C89, so PARAMS isn't needed.
56605         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
56606         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
56607         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
56608         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
56609         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
56610         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
56611         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
56612         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
56613         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
56614         lib/xstrtod.h, lib/xstrtol.h: Likewise.
56615         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
56616         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
56617         no longer needed. Anyway, config.h should always be included before any
56618         other file.
56619
56620 2003-06-11  Simon Josefsson  <jas@extundo.com>
56621
56622         * modules/sysexits: New file.
56623         * MODULES.html.sh (func_all_modules): Add sysexits.
56624
56625 2003-06-11  Simon Josefsson  <jas@extundo.com>
56626
56627         * lib/sysexit_.h: New file.
56628
56629 2003-06-11  Derek Price  <derek@ximbiot.com>
56630
56631         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
56632         necessary.
56633
56634 2003-06-11  Bruno Haible  <bruno@clisp.org>
56635
56636         * m4/sysexits.m4: New file.
56637
56638 2003-06-10  Simon Josefsson  <jas@extundo.com>
56639
56640         * lib/argp.h: New file, from glibc.
56641         * lib/argp-ba.c: New file, from glibc.
56642         * lib/argp-eexst.c: New file, from glibc.
56643         * lib/argp-fmtstream.c: New file, from glibc.
56644         * lib/argp-fmtstream.h: New file, from glibc.
56645         * lib/argp-fs-xinl.c: New file, from glibc.
56646         * lib/argp-help.c: New file, from glibc.
56647         * lib/argp-namefrob.h: New file, from glibc.
56648         * lib/argp-parse.c: New file, from glibc.
56649         * lib/argp-pv.c: New file, from glibc.
56650         * lib/argp-pvh.c: New file, from glibc.
56651         * lib/argp-xinl.c: New file, from glibc.
56652
56653 2003-06-10  Simon Josefsson  <jas@extundo.com>
56654
56655         * modules/strchrnul: New file.
56656
56657 2003-06-10  Simon Josefsson  <jas@extundo.com>
56658
56659         * modules/argp: New file.
56660
56661 2003-06-10  Simon Josefsson  <jas@extundo.com>
56662
56663         * m4/strchrnul.m4: New file.
56664
56665 2003-06-10  Simon Josefsson  <jas@extundo.com>
56666
56667         * lib/strchrnul.h: New file.
56668         * lib/strchrnul.c: New file.
56669
56670 2003-06-10  Bruno Haible  <bruno@clisp.org>
56671
56672         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
56673
56674 2003-06-07  Karl Berry  <karl@gnu.org>
56675
56676         * config/config.{guess,sub}: update from prep.
56677
56678 2003-06-07  Jim Meyering  <jim@meyering.net>
56679
56680         * modules/strtod: Use $(...) notation, not @...@ for
56681         AC_REPLACE'd variables.
56682         * modules/localcharset: Likewise.
56683
56684 2003-06-07  Jim Meyering  <jim@meyering.net>
56685
56686         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
56687         in place of my name in the copyright comment.
56688         Remove definition and uses of __P.
56689
56690         From coreutils.
56691         * lib/stat.c: Don't declare xmalloc explicitly.
56692         Instead, include "xalloc.h".
56693         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
56694         xrealloc, and xcalloc return values.
56695         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
56696         Improve comment.
56697         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
56698
56699 2003-06-07  Bruno Haible  <bruno@clisp.org>
56700
56701         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
56702         avoid AC_CONFIG_LINKS.
56703         * modules/fnmatch (Makefile.am): Use explicit creation rule for
56704         fnmatch.h, to avoid AC_CONFIG_LINKS.
56705         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
56706
56707 2003-06-07  Bruno Haible  <bruno@clisp.org>
56708
56709         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
56710         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
56711         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56712         directory.
56713         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
56714         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56715         directory.
56716
56717 2003-06-06  Jim Meyering  <jim@meyering.net>
56718
56719         Merge from coreutils.
56720         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
56721         Consolidate declarations and initializations of *_base* locals.
56722
56723         Merge from coreutils.
56724         This avoids a core dump on systems without GNU putenv,
56725         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
56726         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
56727         (unsetenv): New static function, from GNU libc.
56728         (rpl_putenv): Use it.
56729
56730         * lib/modechange.c: Remove trailing blanks.
56731
56732         Merge from coreutils.
56733         * lib/fsusage.c: Remove declaration of statfs.
56734         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
56735
56736         * lib/posixtm.c: Include <stdbool.h> unconditionally.
56737
56738 2003-06-06  Jim Meyering  <jim@meyering.net>
56739
56740         * lib/stdbool_.h: Renamed from stdbool.h.in.
56741
56742 2003-06-06  Jim Meyering  <jim@meyering.net>
56743             Bruno Haible  <bruno@clisp.org>
56744
56745         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
56746         Adjust Makefile.am snippet not to redirect directly to target.
56747         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
56748
56749 2003-06-05  Paul Eggert  <eggert@twinsun.com>
56750
56751         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
56752         mismatch, look in future quarters as well as past.  This fixes a
56753         bug when processing fall-backwards gaps immediately after a long
56754         period of daylight-saving time.
56755
56756         * lib/mktime.c: Assume freestanding C89 or better.
56757         (HAVE_LIMITS_H): Remove.  Assume it's 1.
56758         (__P): Remove; not used.
56759         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
56760         (mktime, not_equal_tm, print_tm, check_result,
56761         main): Use prototypes.  Use const * where appropriate.
56762         (main): Fix typo in testing code that uncovered by above changes.
56763         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
56764
56765 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56766
56767         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
56768         locale.h, localeconv.  This merges changes from coreutils.
56769
56770         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
56771         It can be removed after the next Autoconf is released.
56772         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
56773         needed.
56774
56775 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56776
56777         * lib/mktime.c: Fix Debian bug 177940
56778         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
56779         (localtime_offset): Now long int, not time_t, because we want it
56780         to be guaranteed to be signed.  All uses changed.
56781         (__mktime_internal): If overflow would occur when adding offset,
56782         don't add it.
56783
56784         Merge 'human' changes from coreutils.  Rewrite to support
56785         locale-specific notations like thousands separators.
56786         * lib/human.c: Simplify authorship notice.
56787         Include human.h immediately after config.h.
56788         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
56789         <limits.h>: Do not include, since human.h does.
56790         (SIZE_MAX, UINTMAX_MAX): New macros.
56791         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
56792         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
56793         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
56794         (power_letter): Renamed from suffixes.
56795         (generate_suffix_backwards): Remove.
56796         (adjust_value): Now takes int style (because of human.h changes)
56797         and long double value (for greater precision on some platforms).
56798         (group_number): New function.
56799         (human_readable): Use it.  Use integer options, not enum.
56800         Put the options before the sizes in the arg list.
56801         Support all the new options.
56802         The old human_readable function has been removed;
56803         use inttostr.h instead.
56804         (human_readable, default_block_size, humblock):
56805         Use uintmax_t, not int, for block sizes.
56806         (human_readable_inexact, block_size_types): Remove.
56807         (block_size_opts): New constant.
56808         (human_options): Renamed from human_block_size, with new signature
56809         that allows block sizes up to UINTMAX_MAX.  All callers changed.
56810         * lib/human.h: Add copyright and authorship notice.
56811         Include <limits.h> and <stdbool.h> unconditionally.
56812         (PARAMS): Remove.  All uses removed.
56813         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
56814         (enum human_inexact_style): Remove tag; now a nameless enum.
56815         (human_floor, human_ceiling, human_round_to_even): Now have
56816         values 2, 0, 1 rather than -1, 1, 0.
56817         (human_group_digits, human_suppress_point_zero, human_autoscale,
56818         human_base_1024, human_SI, human_B): New constants.
56819         (human_readable_inexact, human_block_size): Remove.
56820         (human_readable): Size args are now uintmax_t, not int.
56821         (human_options): New decl.
56822
56823         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
56824         unnecessary now that we assume C89 or better.  This change
56825         imported from coreutils.
56826
56827         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56828         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
56829         in the 2003-05-30 sync from glibc.
56830
56831         .h files should stand alone, but we shouldn't include <sys/types.h>
56832         if we can get away with just <stddef.h>.
56833
56834         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
56835         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
56836         rather than <sys/types.h>, as we merely need size_t.
56837         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
56838         to get size_t.
56839         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
56840         Include <stdio.h>, to get FILE.
56841         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
56842         memcasecmp.h has included <stddef.h> and all we need is size_t.
56843         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
56844         our interface, instead of including <sys/types.h>
56845
56846 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56847
56848         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
56849         now, as glibc mktime is buggy on non-glibc systems.
56850
56851 2003-06-03  Karl Berry  <karl@gnu.org>
56852
56853         * config/config.sub: update from prep.
56854
56855 2003-06-02  Paul Eggert  <eggert@twinsun.com>
56856
56857         [from coreutils]
56858         Fix some minor time-related bugs with POSIX time arguments.
56859         Some valid time stamps were being rejected (notably -1, and
56860         time stamps before 1900 on 64-bit hosts).  And some invalid
56861         time stamps were being accepted, e.g. September 31.
56862
56863         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
56864         that we can return (time_t) -1 successfully.
56865         * lib/posixtm.c: Likewise.
56866         [HAVE_STDBOOL_H]: Include <stdbool.h>.
56867         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
56868         (t): Remove static var.
56869         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
56870         of static var.  All uses changed.
56871         (year): Do not reject years before 1900; they can occur with
56872         64-bit time_t.
56873         (posix_time_parse): Do not check for out-of-range components;
56874         that is now the caller's responsibility, since our checks were
56875         only approximations.
56876         (posixtime): Use mktime to check for out-of-range components,
56877         since it knows them exactly.
56878         If mktime returns (time_t) -1, check whether an error actually occurred
56879         by invoking localtime on -1.
56880         (main) [TEST_POSIXTIME]: Check for input data errors, and report
56881         posixtime failures better.
56882         Improve the test data (in comments only).
56883
56884 2003-06-02  Karl Berry  <karl@gnu.org>
56885
56886         * config/mkinstalldirs (version): new variable.
56887         (--version): new option.
56888         (usage): improve message.
56889
56890 2003-05-30  Karl Berry  <karl@gnu.org>
56891
56892         * lib/mktime.c: update from libc.
56893
56894 2003-05-30  Bruno Haible  <bruno@clisp.org>
56895
56896         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
56897         * config/config.rpath: Upgrade to gettext-0.12.1.
56898
56899 2003-05-30  Bruno Haible  <bruno@clisp.org>
56900
56901         * m4/gettext.m4: Upgrade to gettext-0.12.1.
56902         * m4/nls.m4: New file, from gettext-0.12.1.
56903         * m4/po.m4: New file, from gettext-0.12.1.
56904         * m4/progtest.m4: Upgrade to gettext-0.12.1.
56905
56906 2003-05-30  Bruno Haible  <bruno@clisp.org>
56907
56908         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
56909         * lib/localcharset.h: Likewise.
56910         * lib/localcharset.c: Likewise.
56911
56912 2003-05-29  Karl Berry  <karl@gnu.org>
56913
56914         * config/config.rpath: update from gettext.
56915
56916 2003-05-28  Paul Eggert  <eggert@twinsun.com>
56917
56918         Assume the headers required for C89 freestanding compilers.
56919         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
56920         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
56921         * m4/human.m4 (gl_HUMAN): Likewise.
56922         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
56923         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
56924         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56925         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
56926         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56927         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
56928
56929 2003-05-28  Paul Eggert  <eggert@twinsun.com>
56930
56931         Assume the headers required for C89 freestanding compilers.
56932         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
56933         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
56934         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
56935         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
56936         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
56937         define, since <limits.h> is guaranteed to do that.
56938         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
56939         * lib/exclude.c: Include <stdbool.h> unconditionally.
56940         * lib/tempname.c: Include <stddef.h> unconditionally.
56941         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
56942         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
56943         <stddef.h> does that.
56944         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
56945         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
56946         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
56947         needed.
56948         * lib/xstrtol.c: Likewise.
56949         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
56950         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
56951
56952         * lib/addext.c (addext): Use assignment rather than cast, to avoid
56953         warnings on some platforms.
56954
56955         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56956         arbitrarily.
56957
56958 2003-05-26  Jim Meyering  <jim@meyering.net>
56959
56960         Merge in a change from coreutils:
56961         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
56962         that is guaranteed to be `no'.  Use `no_such_member' to indicate
56963         that condition, rather than `-1' which is slightly misleading.
56964         Change the name of the cache variable to have the gl_ prefix.
56965         Prompted by a patch from Richard Dawe for DJGPP.
56966
56967 2003-05-24  Karl Berry  <karl@gnu.org>
56968
56969         * config/config.guess: update from prep.
56970
56971 2003-05-22  Karl Berry  <karl@gnu.org>
56972
56973         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
56974
56975 2003-05-20  Karl Berry  <karl@gnu.org>
56976
56977         * config/config.guess: update from prep.
56978
56979 2003-05-18  Karl Berry  <karl@gnu.org>
56980
56981         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
56982         might actually be set by the user.
56983
56984         * config/depcomp, install-sh, mdate-sh: update from automake.
56985
56986 2003-05-17  Bruno Haible  <bruno@clisp.org>
56987
56988         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
56989         invalid expansion for AC_EGREP_CPP.
56990         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
56991         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56992         Suggested by Akim Demaille <akim@epita.fr> in
56993         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
56994
56995 2003-05-12  Jim Meyering  <jim@meyering.net>
56996
56997         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
56998         the space-padded-by-default conversion specifiers, %e, %k, %l.
56999
57000 2003-05-12  Bruno Haible  <bruno@clisp.org>
57001
57002         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57003         the string is longer than 4 KB.
57004
57005 2003-05-11  Karl Berry  <karl@gnu.org>
57006
57007         * config/config.{guess,sub}: update from prep.
57008
57009 2003-05-09  Bruno Haible  <bruno@clisp.org>
57010
57011         * modules/error: Add m4/strerror_r.m4 to file list.
57012
57013 2003-05-03  Bruno Haible  <bruno@clisp.org>
57014
57015         Upgrade to Unicode-4.0.
57016         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57017         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57018         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57019         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57020         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57021         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57022         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57023         Change width of U+E0100..U+E01EF from 1 to 0.
57024
57025 2003-04-25  Jim Meyering  <jim@meyering.net>
57026
57027         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57028         of type size_t, not int.
57029
57030 2003-04-25  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/copy-file.c: Include <stddef.h>, for size_t.
57033
57034 2003-04-21  Paul Eggert  <eggert@twinsun.com>
57035
57036         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57037         code which expansion is under static control.  Patch imported from
57038         Akim Demaille's patch to Bison; see
57039         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57040
57041 2003-04-14  Bruno Haible  <bruno@clisp.org>
57042
57043         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57044
57045 2003-04-11  Jim Meyering  <jim@meyering.net>
57046
57047         Merge changes from Coreutils.
57048
57049         2003-03-22  Jim Meyering  <jim@meyering.net>
57050
57051         * lib/strftime.c (widen): Cast alloca return value to proper type.
57052
57053         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
57054
57055         From GNU libc.
57056         * lib/strftime.c (my_strftime): Handle very large width
57057         specifications for numeric values correctly.  Improve checks for
57058         overflow.
57059
57060         2003-01-19  Jim Meyering  <jim@meyering.net>
57061
57062         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57063         definitions.
57064         (nl_get_alt_digit) [! defined my_strftime]: Define.
57065         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57066         _nl_get_alt_digit and _nl_get_walt_digit.
57067
57068         * lib/strftime.c (my_strftime): Merge in locale-related changes from
57069         libc. These changes have no effect outside of _LIBC.
57070
57071 2003-04-10  Bruno Haible  <bruno@clisp.org>
57072
57073         * modules/findprog: New file.
57074         * MODULES.html.sh (func_all_modules): Add it.
57075
57076 2003-04-10  Bruno Haible  <bruno@clisp.org>
57077
57078         * m4/findprog.m4: New file.
57079         * m4/eaccess.m4: New file.
57080
57081 2003-04-10  Bruno Haible  <bruno@clisp.org>
57082
57083         * lib/findprog.h: New file, from GNU gettext.
57084         * lib/findprog.c: New file, from GNU gettext.
57085
57086 2003-04-05  Jim Meyering  <jim@meyering.net>
57087
57088         Merge changes from Coreutils.
57089
57090         * lib/exclude.h (PARAMS): Remove definition and uses.
57091         * lib/exclude.c: Remove uses of `PARAMS'.
57092
57093         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57094         Add test-cases for DOS filenames. Declare program_name.
57095         (main): Set up program_name.  Patch by Rich Dawe.
57096
57097         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57098         error from mntctl.
57099         Use mntctl's return value to drive the entry-processing loop, since
57100         we can't rely on the value of the vmt_length member in the last
57101         entry.  On some systems doing so could result in exhausting
57102         virtual memory.  Based in part on a patch from Mike Jetzer.
57103
57104 2003-04-04  Bruno Haible  <bruno@clisp.org>
57105
57106         * modules/linebreak: New file.
57107         * MODULES.html.sh (func_all_modules): Add it.
57108
57109 2003-04-04  Bruno Haible  <bruno@clisp.org>
57110
57111         * m4/linebreak.m4: New file.
57112
57113 2003-04-04  Bruno Haible  <bruno@clisp.org>
57114
57115         * lib/linebreak.h: New file, from GNU gettext.
57116         * lib/linebreak.c: New file, from GNU gettext with slight
57117         modifications.
57118         * lib/lbrkprop.h: New file, from GNU gettext.
57119
57120 2003-04-03  Bruno Haible  <bruno@clisp.org>
57121
57122         * modules/utf8-ucs4: New file.
57123         * modules/utf16-ucs4: New file.
57124         * modules/ucs4-utf8: New file.
57125         * modules/ucs4-utf16: New file.
57126         * MODULES.html.sh (func_all_modules): Add them.
57127
57128 2003-04-03  Bruno Haible  <bruno@clisp.org>
57129
57130         * m4/utf-ucs4.m4: New file.
57131         * m4/ucs4-utf.m4: New file.
57132
57133 2003-04-03  Bruno Haible  <bruno@clisp.org>
57134
57135         * lib/utf8-ucs4.h: New file, from GNU gettext.
57136         * lib/utf16-ucs4.h: New file, from GNU gettext.
57137         * lib/ucs4-utf8.h: New file, from GNU gettext.
57138         * lib/ucs4-utf16.h: New file, from GNU gettext.
57139
57140 2003-04-02  Bruno Haible  <bruno@clisp.org>
57141
57142         * modules/binary-io: New file.
57143         * MODULES.html.sh (func_all_modules): Add it.
57144
57145 2003-04-02  Bruno Haible  <bruno@clisp.org>
57146
57147         * lib/binary-io.h: New file, from GNU gettext.
57148
57149 2003-04-01  Bruno Haible  <bruno@clisp.org>
57150
57151         * modules/pathname: New file.
57152         * MODULES.html.sh (func_all_modules): Add it.
57153
57154 2003-04-01  Bruno Haible  <bruno@clisp.org>
57155
57156         * lib/pathname.h: New file, from GNU gettext.
57157         * lib/concatpath.c: New file, from GNU gettext.
57158
57159 2003-03-30  Bruno Haible  <bruno@clisp.org>
57160
57161         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57162
57163 2003-03-30  Bruno Haible  <bruno@clisp.org>
57164
57165         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57166         function chown() doesn't exist.
57167
57168 2003-03-28  Bruno Haible  <bruno@clisp.org>
57169
57170         * modules/copy-file: New file.
57171         * MODULES.html.sh (func_all_modules): Add it.
57172
57173 2003-03-28  Bruno Haible  <bruno@clisp.org>
57174
57175         * m4/copy-file.m4: New file.
57176
57177 2003-03-28  Bruno Haible  <bruno@clisp.org>
57178
57179         * lib/copy-file.h: New file, from GNU gettext.
57180         * lib/copy-file.c: New file, from GNU gettext.
57181
57182 2003-03-18  Jim Meyering  <jim@meyering.net>
57183
57184         * lib/quote.c (quote_n): Fix typo in comment.
57185
57186 2003-03-18  Bruno Haible  <bruno@clisp.org>
57187
57188         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57189         checking.
57190         * m4/onceonly_2_57.m4: Likewise.
57191
57192 2003-03-17  Bruno Haible  <bruno@clisp.org>
57193
57194         * m4/onceonly.m4: Require autoconf 2.54 or newer.
57195         (m4_quote): Remove macro.
57196         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57197
57198 2003-03-14  Jim Meyering  <jim@meyering.net>
57199
57200         Merge changes from Coreutils.
57201         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57202         to be const, in order to avoid warnings.
57203         (obstack_room): Likewise.
57204         (obstack_empty_p): Likewise.
57205
57206 2003-03-14  Bruno Haible  <bruno@clisp.org>
57207
57208         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57209         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57210
57211 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57212
57213         Merge changes from Bison.
57214         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57215         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57216         when compiling Bison 1.875's `bitset bset = obstack_alloc
57217         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
57218         * lib/hash.c: Include <stdbool.h> unconditionally.
57219
57220 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57221
57222         * m4/onceonly.m4 (m4_quote): New macro.
57223         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57224         Quote AC_FOREACH variable-expansions properly.
57225
57226 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57227
57228         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57229
57230 2003-03-09  Paul Eggert  <eggert@twinsun.com>
57231
57232         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57233         Reported by Bruce Becker; see:
57234         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57235
57236 2003-03-03  Paul Eggert  <eggert@twinsun.com>
57237             Bruno Haible  <bruno@clisp.org>
57238
57239         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57240         Reported by John Hughes, see
57241         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57242
57243 2003-02-20  Bruno Haible  <bruno@clisp.org>
57244
57245         * MODULES.html.sh (func_all_modules): Add poll.
57246
57247 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57248
57249         * modules/poll: New file.
57250
57251 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57252
57253         * lib/poll_.h: New file.
57254         * lib/poll.c: New file.
57255
57256 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57257
57258         * m4/poll.m4: New file.
57259
57260 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57261
57262         * modules/mathl: New file.
57263
57264 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57265
57266         * lib/mathl.h: New file.
57267         * lib/acosl.c: New file.
57268         * lib/asinl.c: New file.
57269         * lib/atanl.c: New file.
57270         * lib/ceill.c: New file.
57271         * lib/cosl.c: New file.
57272         * lib/expl.c: New file.
57273         * lib/floorl.c: New file.
57274         * lib/frexpl.c: New file.
57275         * lib/ldexpl.c: New file.
57276         * lib/logl.c: New file.
57277         * lib/sincosl.c: New file.
57278         * lib/sinl.c: New file.
57279         * lib/sqrtl.c: New file.
57280         * lib/tanl.c: New file.
57281         * lib/trigl.c: New file.
57282         * lib/trigl.h: New file.
57283
57284 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57285
57286         * m4/mathl.m4: New file.
57287
57288 2003-02-18  Bruno Haible  <bruno@clisp.org>
57289
57290         * MODULES.html.sh (func_all_modules): Add mathl.
57291
57292 2003-02-17  Bruno Haible  <bruno@clisp.org>
57293
57294         * modules/mkdtemp: New module.
57295         * MODULES.html.sh (func_all_modules): Add it.
57296
57297 2003-02-17  Bruno Haible  <bruno@clisp.org>
57298
57299         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
57300
57301 2003-02-17  Bruno Haible  <bruno@clisp.org>
57302
57303         * lib/mkdtemp.h: New file, from GNU gettext.
57304         * lib/mkdtemp.c: New file, from GNU gettext.
57305
57306 2003-02-02  Jim Meyering  <jim@meyering.net>
57307
57308         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
57309         e.g. glibc-2.2.93.
57310
57311 2003-01-31  Bruno Haible  <bruno@clisp.org>
57312
57313         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
57314         'rpl_rename'.
57315         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
57316         'rpl_strnlen'.
57317         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
57318         'rpl_strtod'.
57319         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
57320         'rpl_utime'.
57321
57322 2003-01-31  Bruno Haible  <bruno@clisp.org>
57323
57324         * lib/rename.c: #undef rename before defining rpl_rename.
57325         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
57326
57327 2003-01-30  Bruno Haible  <bruno@clisp.org>
57328
57329         * modules/vasnprintf, modules/vasprintf: New modules.
57330         * MODULES.html.sh (func_all_modules): Add them.
57331
57332 2003-01-30  Bruno Haible  <bruno@clisp.org>
57333
57334         * m4/signed.m4: New file, from GNU gettext.
57335         * m4/longdouble.m4: New file, from GNU gettext.
57336         * m4/wchar_t.m4: New file, from GNU gettext.
57337         * m4/wint_t.m4: New file, from GNU gettext.
57338         * m4/vasnprintf.m4: New file.
57339         * m4/vasprintf.m4: New file.
57340
57341 2003-01-30  Bruno Haible  <bruno@clisp.org>
57342
57343         * lib/printf-args.h: New file, from GNU gettext.
57344         * lib/printf-args.c: New file, from GNU gettext.
57345         * lib/printf-parse.h: New file, from GNU gettext.
57346         * lib/printf-parse.c: New file, from GNU gettext.
57347         * lib/vasnprintf.h: New file, from GNU gettext.
57348         * lib/vasnprintf.c: New file, from GNU gettext.
57349         * lib/asnprintf.c: New file, from GNU gettext.
57350         * lib/vasprintf.h: New file, from GNU gettext with modifications.
57351         * lib/vasprintf.c: New file, from GNU gettext.
57352         * lib/asprintf.c: New file, from GNU gettext.
57353
57354 2003-01-29  Bruno Haible  <bruno@clisp.org>
57355
57356         * modules/stpncpy: New module.
57357         * MODULES.html.sh (func_all_modules): Add it.
57358
57359 2003-01-29  Bruno Haible  <bruno@clisp.org>
57360
57361         * m4/stpncpy.m4: New file.
57362
57363 2003-01-29  Bruno Haible  <bruno@clisp.org>
57364
57365         * lib/stpncpy.h: New file, from GNU gettext with modifications.
57366         * lib/stpncpy.c: New file, from GNU gettext with modifications.
57367
57368 2003-01-28  Bruno Haible  <bruno@clisp.org>
57369
57370         * modules/c-ctype: New module.
57371         * MODULES.html.sh (func_all_modules): Add it.
57372
57373 2003-01-28  Bruno Haible  <bruno@clisp.org>
57374
57375         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
57376         Paul Eggert.
57377         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
57378         Paul Eggert.
57379
57380 2003-01-27  Bruno Haible  <bruno@clisp.org>
57381
57382         * modules/xsetenv: New module.
57383         * MODULES.html.sh (func_all_modules): Add it.
57384
57385 2003-01-27  Bruno Haible  <bruno@clisp.org>
57386
57387         * lib/xsetenv.h: New file, from GNU gettext.
57388         * lib/xsetenv.c: New file, from GNU gettext.
57389
57390 2003-01-23  Jim Meyering  <jim@meyering.net>
57391
57392         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
57393         from working on systems without dirfd (at least Irix and OSF1/Tru64).
57394
57395 2003-01-23  Bruno Haible  <bruno@clisp.org>
57396
57397         * modules/minmax: New module.
57398         * MODULES.html.sh (func_all_modules): Add it.
57399
57400 2003-01-23  Bruno Haible  <bruno@clisp.org>
57401
57402         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
57403         Eggert.
57404
57405 2003-01-22  Bruno Haible  <bruno@clisp.org>
57406
57407         * modules/exit: New module.
57408         * MODULES.html.sh (func_all_modules): Add it.
57409
57410 2003-01-22  Bruno Haible  <bruno@clisp.org>
57411
57412         * lib/exit.h: New file, from GNU gettext.
57413
57414 2003-01-19  Bruno Haible  <bruno@clisp.org>
57415
57416         * gnulib-tool: Recognize option --extract-maintainer.
57417         (func_get_maintainer): New function.
57418         * modules/*: Add Maintainer entry.
57419
57420 2003-01-16  Jim Meyering  <jim@meyering.net>
57421
57422         * m4/regex.m4: The `regex' struct is both input and output.
57423         Initialize it before each use.  Patch by Tim Waugh.
57424
57425 2003-01-16  Bruno Haible  <bruno@clisp.org>
57426
57427         * MODULES.html.sh: Add a table of contents. Add the module name as
57428         leftmost column. Add hyperlinks.
57429
57430 2003-01-15  Bruno Haible  <bruno@clisp.org>
57431
57432         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
57433
57434 2003-01-15  Bruno Haible  <bruno@clisp.org>
57435
57436         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
57437         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
57438         suffix.
57439
57440 2003-01-15  Bruno Haible  <bruno@clisp.org>
57441
57442         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
57443
57444 2003-01-15  Bruno Haible  <bruno@clisp.org>
57445
57446         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
57447         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
57448
57449 2003-01-14  Jim Meyering  <jim@meyering.net>
57450
57451         * lib/same.c (same_name): Tweak a comment.
57452
57453 2003-01-14  Bruno Haible  <bruno@clisp.org>
57454
57455         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
57456         when a string comparison is sufficient.
57457
57458 2003-01-14  Bruno Haible  <bruno@clisp.org>
57459
57460         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
57461         'unsigned int'.
57462
57463 2003-01-14  Bruno Haible  <bruno@clisp.org>
57464
57465         * lib/hash-pjw.c: Add comment about low quality of this function.
57466
57467 2003-01-13  Bruno Haible  <bruno@clisp.org>
57468
57469         * modules/stpcpy: Distribute lib/stpcpy.h.
57470         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
57471
57472 2003-01-13  Bruno Haible  <bruno@clisp.org>
57473
57474         * modules/*: Add a description.
57475         * modules/strpbrk: Fix Makefile.am snippet.
57476         * modules/strtoimax: Fix dependencies.
57477         * modules/strtoumax: Likewise.
57478
57479 2003-01-13  Bruno Haible  <bruno@clisp.org>
57480
57481         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
57482         * modules/alloca (Makefile.am): All object files depend on alloca.h.
57483         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
57484
57485 2003-01-13  Bruno Haible  <bruno@clisp.org>
57486
57487         * gnulib-tool (func_create_testdir): Store config/* files in the main
57488         directory.
57489         * config.rpath: Move to ...
57490         * config/config.rpath: ... here.
57491         * modules/gettext: Contains config/config.rpath, not config.rpath.
57492         * modules/iconv: Likewise.
57493
57494 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57495
57496         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57497         to avoid collisions with libcurses and libreadline.
57498
57499         * m4/getstr.m4: Remove.
57500         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
57501
57502 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57503
57504         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57505         to avoid collisions with libcurses and libreadline.
57506
57507         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
57508         * lib/getstr.h, getstr.c: Remove.
57509         * lib/getline.c: Include "getline.h", to check interface.
57510         Move body of old getstr.c here: this defines MIN_CHUNK and
57511         declares getdelim2, which is renamed from getstr.
57512         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
57513
57514         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
57515         All uses changed.
57516         * lib/linebuffer.h: Likewise.
57517         (readline): Remove backward-compatibility macro.
57518
57519 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57520
57521         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57522         to avoid collisions with libcurses and libreadline.
57523         * getstr: Remove.
57524         * MODULES.html.sh: Remove getstr.
57525         * modules/getline: Depend on unlocked-io, not getstr.
57526
57527 2003-01-12  Jim Meyering  <jim@meyering.net>
57528
57529         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
57530
57531 2003-01-10  Bruno Haible  <bruno@clisp.org>
57532
57533         * modules/alloca: Change Makefile.am requirements. Simplify Include
57534         requirements. Add lib/alloca_.h to file list.
57535
57536 2003-01-10  Bruno Haible  <bruno@clisp.org>
57537
57538         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
57539
57540 2003-01-10  Bruno Haible  <bruno@clisp.org>
57541
57542         * lib/alloca_.h: New file.
57543         * lib/getdate.y: Unconditionally include alloca.h.
57544         * lib/makepath.c: Likewise.
57545         * lib/setenv.c: Likewise.
57546         * lib/userspec.c: Likewise.
57547
57548 2003-01-09  Karl Berry  <karl@gnu.org>
57549
57550         * MODULES.html.sh: include `dirname $0` in PATH, to find
57551         gnulib-tool.
57552
57553 2003-01-09  Bruno Haible  <bruno@clisp.org>
57554
57555         * modules/stdbool: Change configure.ac, Makefile.am requirements.
57556         Simplify Include requirements. Add lib/stdbool.h.in to file list.
57557
57558 2003-01-09  Bruno Haible  <bruno@clisp.org>
57559
57560         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
57561
57562 2003-01-09  Bruno Haible  <bruno@clisp.org>
57563
57564         * lib/stdbool.h.in: New file.
57565
57566 2003-01-09  Bruno Haible  <bruno@clisp.org>
57567
57568         * gnulib-tool (func_all_modules): Ignore files ending in ~.
57569         * MODULES.html.sh: Likewise.
57570
57571 2003-01-08  Jim Meyering  <jim@meyering.net>
57572
57573         * lib/full-write.c: Undefine and define-away `const' after inclusion
57574         of errno.h, not before.  Suggestion from Bruno Haible.
57575
57576 2003-01-08  Bruno Haible  <bruno@clisp.org>
57577
57578         * modules/full-read: Depend on full-write.
57579
57580 2003-01-08  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/safe-read.c: Include specification header first, to ensure its
57583         selfcontainedness.
57584         * lib/full-write.c: Likewise.
57585
57586 2003-01-07  Jim Meyering  <jim@meyering.net>
57587
57588         * lib/full-write.c: Rework so that it may serve to define full_read,
57589         too.
57590         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
57591
57592 2003-01-07  Bruno Haible  <bruno@clisp.org>
57593
57594         * lib/strtoimax.c: Include <stdint.h> as an alternative to
57595         <inttypes.h>.
57596         * lib/xstrtol.h: Likewise.
57597         * lib/xstrtoimax.c: Likewise.
57598         * lib/xstrtoumax.c: Likewise.
57599         * lib/human.h: Likewise.
57600
57601         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
57602         on systems that have <inttypes.h> but not <stdint.h>.
57603
57604 2003-01-07  Bruno Haible  <bruno@clisp.org>
57605
57606         * MODULES.html.sh: Add copyright notice.
57607         (missed_files): Omit CVS directory entries.
57608         (func_module): Make it work with sed-3.02.
57609         * MODULES.txt: Remove file.
57610
57611 2003-01-06  Jim Meyering  <jim@meyering.net>
57612
57613         * lib/version-etc.c: Update year in translatable copyright string.
57614
57615 2003-01-03  Karl Berry  <karl@gnu.org>
57616
57617         * config/config.{guess,sub}: update from prep.
57618
57619 2003-01-02  Karl Berry  <karl@gnu.org>
57620
57621         * doc/COPYING.DOC: belatedly updated to 1.2.
57622
57623 2003-01-01  Karl Berry  <karl@gnu.org>
57624
57625         * gnulib-tool (func_verify_module): report module name $module in
57626         error message, not $1.
57627         * gnulib-tool (create-testdir): don't complain if destdir couldn't
57628         be created, only if it doesn't exist.
57629         * gnulib-tool (last_checkin_date): don't expand the $Date here.
57630
57631 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57632
57633         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
57634
57635 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57636
57637         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
57638         memcmp if strcoll doesn't work.
57639
57640 2002-12-31  Bruno Haible  <bruno@clisp.org>
57641
57642         * lib/utime.c (utime_null): No need to call ftruncate if the file was
57643         nonempty.
57644
57645 2002-12-31  Bruno Haible  <bruno@clisp.org>
57646
57647         * lib/memcoll.c (STRCOLL): New macro.
57648         (memcoll): Use it.
57649
57650 2002-12-31  Bruno Haible  <bruno@clisp.org>
57651
57652         * lib/localcharset.h: New file.
57653         * lib/localcharset.c: Include it.
57654         * lib/unicodeio.c: Likewise.
57655
57656 2002-12-31  Bruno Haible  <bruno@clisp.org>
57657
57658         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
57659         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
57660
57661 2002-12-31  Bruno Haible  <bruno@clisp.org>
57662
57663         * lib/getline.h: Include <stddef.h>, for size_t.
57664
57665         * lib/unicodeio.h: Include <stddef.h>, for size_t.
57666         * lib/unicodeio.c: Don't include <stddef.h>.
57667
57668 2002-12-31  Bruno Haible  <bruno@clisp.org>
57669
57670         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
57671         HAVE_TM_ZONE.
57672
57673 2002-12-24  Karl Berry  <karl@gnu.org>
57674
57675         * config/config.guess: update from prep.
57676
57677 2002-12-24  Bruno Haible  <bruno@clisp.org>
57678
57679         General infrasructure.
57680         * m4/README: Rewritten.
57681         * m4/onceonly.m4: New file.
57682         * m4/onceonly_2_57.m4: New file.
57683
57684         Module atexit.
57685         * m4/atexit.m4: New file.
57686
57687         Module strtod.
57688         * m4/strtod.m4: New file.
57689
57690         Module strtol.
57691         * m4/strtol.m4: New file.
57692
57693         Module strtoul.
57694         * m4/strtoul.m4: New file.
57695
57696         Module memchr.
57697         * m4/memchr.m4: New file.
57698
57699         Module memcmp.
57700         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
57701         (jm_FUNC_MEMCMP): Invoke it.
57702
57703         Module memcpy.
57704         * m4/memcpy.m4: New file.
57705
57706         Module memmove.
57707         * m4/memmove.m4: New file.
57708
57709         Module memset.
57710         * m4/memset.m4: New file.
57711
57712         Module strcspn.
57713         * m4/strcspn.m4: New file.
57714
57715         Module strpbrk.
57716         * m4/strpbrk.m4: New file.
57717
57718         Module strstr.
57719         * m4/strstr.m4: New file.
57720
57721         Module strerror.
57722         * m4/strerror.m4: New file.
57723
57724         Module mktime.
57725         * m4/mktime.m4: Renamed from jm-mktime.m4.
57726         (gl_PREREQ_MKTIME): New macro.
57727         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
57728
57729         Module malloc.
57730         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
57731         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
57732         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
57733
57734         Module realloc.
57735         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
57736         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
57737         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
57738
57739         Module strftime.
57740         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
57741         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
57742         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
57743         gl_TM_GMTOFF.
57744         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
57745
57746         Module xalloc.
57747         * m4/xalloc.m4: New file.
57748
57749         Module alloca.
57750         * m4/alloca.m4: New file.
57751
57752         Module putenv.
57753         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
57754         (jm_FUNC_PUTENV): Invoke it.
57755
57756         Module setenv.
57757         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
57758         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
57759         when invoked twice.
57760         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
57761         gt_FUNC_SETENV.
57762
57763         Module memrchr.
57764         * m4/memrchr.m4: New file.
57765
57766         Module stpcpy.
57767         * m4/stpcpy.m4: New file.
57768
57769         Module strcase.
57770         * m4/strcase.m4: New file.
57771
57772         Module strdup.
57773         * m4/strdup.m4: New file.
57774
57775         Module strnlen.
57776         * m4/strnlen.m4: New file.
57777
57778         Module strndup.
57779         * m4/strndup.m4: New file.
57780
57781         Module xstrtod.
57782         * m4/xstrtod.m4: New file.
57783
57784         Module xstrtol.
57785         * m4/xstrtol.m4: New file.
57786
57787         Module getdate.
57788         * m4/getdate.m4: New file.
57789
57790         Module unlocked-io.
57791         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
57792         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
57793         * m4/jm-glibc-io.m4n: Remove file.
57794
57795         Module long-options.
57796         * m4/long-options.m4: New file.
57797
57798         Module md5.
57799         * m4/md5.m4: New file.
57800
57801         Module sha.
57802         * m4/sha.m4: New file.
57803
57804         Module getstr.
57805         * m4/getstr.m4: New file.
57806
57807         Module getline.
57808         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
57809         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
57810         <sys/types.h>, for size_t. Use the function name gnu_getline, not
57811         simply getline. Infoke gl_PREREQ_GETLINE.
57812
57813         Module obstack.
57814         * m4/obstack.m4: New file.
57815
57816         Module hash.
57817         * m4/hash.m4: New file.
57818
57819         Module readtokens.
57820         * m4/readtokens.m4: New file.
57821
57822         Module strverscmp.
57823         * m4/strverscmp.m4: New file.
57824
57825         Module stdbool.
57826         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
57827         OSF/1.
57828
57829         Module strtoll.
57830         * m4/strtoll.m4: New file.
57831
57832         Module strtoull.
57833         * m4/strtoull.m4: New file.
57834
57835         Module strtoimax.
57836         * m4/strtoimax.m4: New file.
57837
57838         Module strtoumax.
57839         * m4/strtoumax.m4: New file.
57840
57841         Module xstrtoimax.
57842         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
57843         jm_AC_PREREQ_XSTRTOIMAX.
57844         Moved the strtol prerequisites to strtol.m4.
57845         Moved the strtoll prerequisites to strtoll.m4.
57846         Moved the strtoimax prerequisites to strtoimax.m4.
57847
57848         Module xstrtoumax.
57849         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
57850         jm_AC_PREREQ_XSTRTOUMAX.
57851         Moved the strtoul prerequisites to strtoul.m4.
57852         Moved the strtoull prerequisites to strtoull.m4.
57853         Moved the strtoumax prerequisites to strtoumax.m4.
57854
57855         Module chown.
57856         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
57857         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
57858
57859         Module dup2.
57860         * m4/dup2.m4: New file.
57861
57862         Module ftruncate.
57863         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
57864         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
57865
57866         Module getgroups.
57867         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
57868         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
57869
57870         Module gettimeofday.
57871         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
57872         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
57873         gl_PREREQ_GETTIMEOFDAY.
57874
57875         Module mkdir.
57876         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
57877         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
57878
57879         Module mkstemp.
57880         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
57881         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
57882         jm_AC_TYPE_UINTMAX_T.
57883         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
57884
57885         Module stat.
57886         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
57887         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
57888
57889         Module lstat.
57890         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
57891         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
57892
57893         Module timespec.
57894         * m4/timespec.m4 (gl_TIMESPEC): New macro.
57895         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
57896         * m4/st_mtim.m4: Indentation.
57897
57898         Module nanosleep.
57899         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
57900         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
57901         gl_PREREQ_NANOSLEEP.
57902
57903         Module regex.
57904         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
57905         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
57906         (gl_REGEX): New macro.
57907
57908         Module rename.
57909         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
57910         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
57911
57912         Module rmdir.
57913         * m4/rmdir.m4: New file.
57914
57915         Module utime.
57916         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
57917         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
57918         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
57919
57920         Module dirname.
57921         * m4/dirname.m4: New file.
57922
57923         Module getopt.
57924         * m4/getopt.m4: New file.
57925
57926         Module unistd-safer.
57927         * m4/unistd-safer.m4: New file.
57928
57929         Module fnmatch.
57930         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
57931         declaration.
57932         (gl_PREREQ_FNMATCH_EXTRA): New macro.
57933         (gl_FUNC_FNMATCH_POSIX): New macro.
57934         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
57935         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
57936         simply fnmatch.
57937
57938         Module exclude.
57939         * m4/exclude.m4: New file.
57940
57941         Module human.
57942         * m4/human.m4: New file.
57943
57944         Module acl.
57945         * m4/acl.m4: Nop.
57946
57947         Module backupfile.
57948         * m4/backupfile.m4: New file.
57949         * m4/d-ino.m4: Indentation.
57950
57951         Module fsusage.
57952         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
57953         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
57954         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
57955
57956         Module dirfd.
57957         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
57958         requirements.
57959
57960         Module euidaccess.
57961         * m4/euidaccess.m4: New file.
57962
57963         Module file-type.
57964         * m4/file-type.m4: New file.
57965
57966         Module fileblocks.
57967         * m4/fileblocks.m4: New file.
57968
57969         Module filemode.
57970         * m4/filemode.m4: New file.
57971
57972         Module isdir.
57973         * m4/isdir.m4: New file.
57974
57975         Module lchown.
57976         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
57977         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
57978
57979         Module makepath.
57980         * m4/makepath.m4: New file.
57981
57982         Module modechange.
57983         * m4/modechange.m4: New file.
57984
57985         Module mountlist.
57986         * m4/mountlist.m4: New file.
57987         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
57988         Indentation.
57989
57990         Module path-concat.
57991         * m4/path-concat.m4: New file.
57992
57993         Module pathmax.
57994         * m4/pathmax.m4: New file.
57995
57996         Module same.
57997         * m4/same.m4: New file.
57998
57999         Module save-cwd.
58000         * m4/save-cwd.m4: New file.
58001
58002         Module savedir.
58003         * m4/savedir.m4: New file.
58004
58005         Module xgetcwd.
58006         * m4/xgetcwd.m4: New file.
58007         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58008
58009         Module xreadlink.
58010         * m4/xreadlink.m4: New file.
58011
58012         Module safe-read.
58013         * m4/safe-read.m4: New file.
58014
58015         Module safe-write.
58016         * m4/safe-write.m4: New file.
58017
58018         Module closeout.
58019         * m4/closeout.m4: New file.
58020
58021         Module stdio-safer.
58022         * m4/stdio-safer.m4: New file.
58023
58024         Module getpass.
58025         * m4/getpass.m4: New file.
58026
58027         Module getugroups.
58028         * m4/getugroups.m4: New file.
58029
58030         Module group-member.
58031         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58032         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58033
58034         Module idcache.
58035         * m4/idcache.m4: New file.
58036
58037         Module userspec.
58038         * m4/userspec.m4: New file.
58039
58040         Module gettime.
58041         * m4/clock_time.m4: New file.
58042         * m4/gettime.m4: New file.
58043
58044         Module settime.
58045         * m4/settime.m4: New file.
58046
58047         Module posixtm.
58048         * m4/posixtm.m4: New file.
58049
58050         Module gethostname.
58051         * m4/gethostname.m4: New file.
58052
58053         Module canon-host.
58054         * m4/canon-host.m4: New file.
58055
58056         Module gettext.
58057         * m4/codeset.m4: New file, from gettext-0.11.5.
58058         * m4/gettext.m4: New file, from gettext-0.11.5.
58059         * m4/glibc21.m4: New file, from gettext-0.11.5.
58060         * m4/iconv.m4: New file, from gettext-0.11.5.
58061         * m4/intdiv0.m4: New file, from gettext-0.11.5.
58062         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58063         * m4/inttypes.m4: New file, from gettext-0.11.5.
58064         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58065         * m4/isc-posix.m4: New file, from gettext-0.11.5.
58066         * m4/lcmessage.m4: New file, from gettext-0.11.5.
58067         * m4/lib-ld.m4: New file, from gettext-0.11.5.
58068         * m4/lib-link.m4: New file, from gettext-0.11.5.
58069         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58070         * m4/progtest.m4: New file, from gettext-0.11.5.
58071         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58072         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58073         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58074
58075         Module localcharset.
58076         * m4/localcharset.m4: New file.
58077
58078         Module hard-locale.
58079         * m4/hard-locale.m4: New file.
58080
58081         Module mbswidth.
58082         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58083         onceonly macros.
58084         * m4/mbrtowc.m4: Add comment.
58085
58086         Module memcasecmp.
58087         * m4/memcasecmp.m4: New file.
58088
58089         Module memcoll.
58090         * m4/memcoll.m4: New file.
58091
58092         Module unicodeio.
58093         * m4/unicodeio.m4: New file.
58094
58095         Module rpmatch.
58096         * m4/rpmatch.m4: New file.
58097
58098         Module yesno.
58099         * m4/yesno.m4: New file.
58100
58101         Module exitfail.
58102         * m4/exitfail.m4: New file.
58103
58104         Module c-stack.
58105         * m4/c-stack.m4 (gl_C_STACK): New macro.
58106         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58107
58108         Module error.
58109         * m4/error.m4 (gl_ERROR): New macro.
58110         (jm_PREREQ_ERROR): Use onceonly macros.
58111
58112         Module fatal.
58113         * m4/fatal.m4: New file.
58114
58115         Module getloadavg.
58116         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58117         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58118
58119         Module getpagesize.
58120         * m4/getpagesize.m4: New file.
58121
58122         Module getusershell.
58123         * m4/getusershell.m4: New file.
58124
58125         Module physmem.
58126         * m4/physmem.m4: New file.
58127
58128         Module posixver.
58129         * m4/posixver.m4: New file.
58130
58131         Module quotearg.
58132         * m4/quotearg.m4: New file.
58133
58134         Module quote.
58135         * m4/quote.m4: New file.
58136
58137         Module readutmp.
58138         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58139
58140         Module sig2str.
58141         * m4/sig2str.m4: New file.
58142
58143         Other.
58144         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58145         ulonglong.m4.
58146         * m4/intmax_t.m4: New file.
58147         * m4/d-type.m4: Indentation.
58148         * m4/jm-macros.m4: Update.
58149         * m4/prereq.m4 (jm_PREREQ): Update.
58150         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58151         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58152         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58153         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58154         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58155         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58156         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58157         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58158         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58159         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58160         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58161         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58162         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58163         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58164         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58165         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58166         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58167         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58168         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58169
58170 2002-12-24  Bruno Haible  <bruno@clisp.org>
58171
58172         * MODULES.txt: Update according to m4/ changes.
58173
58174         Module gettext.
58175         * config.rpath: New file, from gettext-0.11.5.
58176
58177         * modules/*: New module descriptions.
58178         * gnulib-tool: New file.
58179         * MODULES.html.sh: New file.
58180
58181 2002-12-21  Karl Berry  <karl@gnu.org>
58182
58183         * doc/fdl.texi: update to version 1.2.
58184
58185 2002-12-19  Karl Berry  <karl@gnu.org>
58186
58187         * config/config.guess: update from prep.
58188
58189 2002-12-18  Bruno Haible  <bruno@clisp.org>
58190
58191         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58192         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58193
58194 2002-12-17  Bruno Haible  <bruno@clisp.org>
58195
58196         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58197         stdlib.h, string.h.
58198
58199 2002-12-17  Bruno Haible  <bruno@clisp.org>
58200
58201         * lib/canon-host.c (strdup): Remove unused declaration.
58202
58203         * lib/fsusage.c: Include full_read.h.
58204         (get_fs_usage): Use full_read instead of safe_read.
58205
58206         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58207
58208 2002-12-12  Karl Berry  <karl@gnu.org>
58209
58210         * config/config.guess: update from prep.
58211
58212 2002-12-11  Bruno Haible  <bruno@clisp.org>
58213
58214         * m4/setenv.m4: New file, from gettext-0.11.5.
58215
58216 2002-12-11  Bruno Haible  <bruno@clisp.org>
58217
58218         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58219         not unsetenv().
58220         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58221         modifications:
58222
58223         2002-12-11  Bruno Haible  <bruno@clisp.org>
58224
58225                 * setenv.c (alloca): Fall back to malloc.
58226                 (freea): New macro.
58227                 (setenv): Use freea() to free memory allocated with alloca().
58228
58229         2002-11-13  Bruno Haible  <bruno@clisp.org>
58230
58231                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58232                 function declarations.
58233                 * unsetenv.c (unsetenv): Likewise.
58234
58235         2002-03-04  Bruno Haible  <bruno@clisp.org>
58236
58237                 Portability to AIX 4.3.3.
58238                 * unsetenv.c: New file, extracted from setenv.c.
58239                 * setenv.c: Move the unsetenv() function to unsetenv.c.
58240
58241         2001-12-20  Bruno Haible  <bruno@clisp.org>
58242
58243                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58244                 use malloc instead. For SunOS 4.
58245
58246         2001-12-11  Bruno Haible  <bruno@clisp.org>
58247
58248                 * setenv.c: Declare alloca.
58249                 (compar_fn_t): New typedef.
58250                 (KNOWN_VALUE, STORE_VALUE): Use it.
58251
58252         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58253         setenv.h.
58254
58255 2002-12-10  Paul Eggert  <eggert@twinsun.com>
58256
58257         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58258         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58259         Choose values that are less likely to collide with system fnmatch
58260         options.
58261         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58262         defined (e.g., a pure POSIX system).
58263         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58264         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58265
58266 2002-12-06  Paul Eggert  <eggert@twinsun.com>
58267
58268         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58269         a pain in practice to deal with generated m4 files.  This change
58270         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58271
58272         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58273         and jm-glibc-io.m4, as they are no longer a special case.
58274         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58275         kludge and the auto-generation stuff.  Check only whether the
58276         functions are declared, not whether they exist, since older hosts
58277         that don't declare the functions can't use the optimization anyway.
58278
58279 2002-12-06  Jim Meyering  <jim@meyering.net>
58280
58281         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58282
58283         Merge in changes from libc's misc/error.c, in preparation
58284         for the merge of gnulib's changes back into libc.
58285
58286         * lib/error.c (_): Define only if not already defined.
58287         Move definition to follow all #include directives.
58288         Include unlocked-io.h only if !_LIBC.
58289         [_LIBC]: Include <libio/libioP.h>.
58290         [USE_IN_LIBIO]: Include <libio/iolibio.h>
58291         (fflush): Tweak definition to use INTUSE.
58292         (putc): Define.
58293
58294 2002-12-05  Paul Eggert  <eggert@twinsun.com>
58295
58296         * lib/alloca.c [defined emacs]: Include "lisp.h".
58297         (xalloc_die) [defined emacs]: New macro.
58298         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
58299         [! defined emacs]: Include <xalloc.h>.
58300         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
58301         (pointer): Typedef to POINTER_TYPE *.
58302         (malloc): Remove decl; we now always use xmalloc.
58303         (alloca): Use old-style definition, since Emacs needs this.
58304         Check for arithmetic overflow when computing combined size.
58305
58306 2002-12-04  Paul Eggert  <eggert@twinsun.com>
58307
58308         Do not generate unlocked-io.h automatically, since it's easier to
58309         maintain it by hand.
58310
58311         * lib/unlocked-io.h: New file, from GNU diffutils,
58312         but with proper copyright notice and attribution.
58313         * lib/gen-uio: Remove.
58314         * lib/Makefile.am: Add copyright notice.
58315         (libfetish_a_SOURCES): Add unlocked-io.h.
58316         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
58317         (DISTCLEANFILES, io_functions): Remove macros.
58318         (EXTRA_DIST): Remove gen_uio.
58319         (unlocked-io.h): Remove rule.
58320
58321 2002-12-04  Jim Meyering  <jim@meyering.net>
58322
58323         Reflect the fact that stat.c and lstat.c are no longer generated.
58324         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
58325         (DISTCLEANFILES): Likewise.
58326         (EXTRA_DIST): Likewise.
58327         (all_local): Don't depend on stat.c or lstat.c.
58328         (stat.c, lstat.c): Remove rules.
58329         (EXTRA_DIST): Remove xstat.in.
58330
58331         * lib/xstat.in: Remove file.  Contents moved into stat.c.
58332         * lib/stat.c: New file.  Contents mostly from xstat.in.
58333         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
58334         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
58335
58336         * lib/safe-read.c: Rework so that it may serve to define safe_write,
58337         too.
58338         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
58339
58340 2002-12-03  Jim Meyering  <jim@meyering.net>
58341
58342         * lib/safe-read.c, safe-write.c: Change variable names and comments,
58343         but not semantics, to minimize the differences between these two files.
58344         (safe_read): Change comment to mention SAFE_READ_ERROR.
58345
58346         * lib/safe-read.c (IS_EINTR): Define.
58347         (safe_read): Use IS_EINTR in place of in-function cpp directives.
58348
58349 2002-12-02  Jim Meyering  <jim@meyering.net>
58350
58351         * lib/safe-read.c (EINTR): Define.
58352         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58353         (INT_MAX): Provide fallback.
58354         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
58355
58356         * lib/safe-read.h (SAFE_READ_ERROR): Define.
58357
58358 2002-12-02  Bruno Haible  <bruno@clisp.org>
58359
58360         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
58361         Define, taken from safe-read.c.
58362         (INT_MAX): Provide fallback.
58363         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
58364         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
58365
58366         * lib/safe-read.c (EINTR): Remove definition.
58367         (safe_read): Don't use EINTR if it is absent.
58368
58369 2002-12-01  Jim Meyering  <jim@meyering.net>
58370
58371         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
58372         zero.
58373         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
58374
58375 2002-11-27  Paul Eggert  <eggert@twinsun.com>
58376
58377         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
58378         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
58379         with `if (! (value < limit)) abort ();', for readability.
58380
58381 2002-11-26  Karl Berry  <karl@gnu.org>
58382
58383         * lib/strdup.c: copy from libc again, with jim's ok.
58384         * lib/.cppi-disable: re-add strdup.c
58385
58386 2002-11-25  Karl Berry  <karl@gnu.org>
58387
58388         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
58389         instead of "strtol.c".
58390
58391 2002-11-25  Karl Berry  <karl@gnu.org>
58392
58393         * config/install-sh: update from automake for variable quoting, $0 in
58394         error msgs, etc.
58395
58396         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
58397         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
58398         entry.
58399
58400 2002-11-25  Jim Meyering  <jim@meyering.net>
58401
58402         * lib/mktime.c: Sync from libc, now that it has the latest fix.
58403
58404 2002-11-24  Karl Berry  <karl@gnu.org>
58405
58406         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
58407         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
58408
58409 2002-11-24  Jim Meyering  <jim@meyering.net>
58410
58411         Update from coreutils:
58412
58413         * lib/mktime.c: Merge in changes from libc.
58414
58415         Avoid a link-time failure on some Linux systems.
58416         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
58417         (otherwise).
58418         (__mon_yday): Declare with the STATIC attribute.
58419         (__mktime_internal): Likewise.
58420         Based on a report from Greg Schafer.
58421
58422 2002-11-23  Jim Meyering  <jim@meyering.net>
58423
58424         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
58425         Use `unsigned', not `int', as type of index.
58426
58427         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
58428
58429         * lib/fsusage.c: Remove unneeded parentheses around operands of
58430         `defined'.
58431
58432 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58433
58434         * lib/quotearg.h: Allow multiple inclusion by surrounding with
58435         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
58436         so that we can be included first.
58437         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
58438         * lib/quotearg.c: Include quotearg.h immediately after config.h.
58439         No need to include stddef.h or sys/types.h any more.
58440         Surround local include files with "", not "<>".
58441         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
58442         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
58443         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
58444         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
58445         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
58446         (ISPRINT): Remove; no longer needed now that we assume C89.
58447
58448         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
58449         Preserve errno.
58450
58451         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
58452         quotearg_char): Use SIZE_MAX rather than
58453         (size_t) -1 when we are talking about "infinity".
58454
58455         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
58456
58457 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58458
58459         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
58460         hint that one should use `if (! x) abort ();' rather than `assert
58461         (x);', and anyway it's one less thing to worry about configuring.
58462         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
58463         hash_rehash, hash_insert): Use abort rather than assert.
58464
58465 2002-11-22  Bruno Haible  <bruno@clisp.org>
58466
58467         * lib/safe-read.h: Assume C89. Add comments.
58468         (safe_read): Change return type to size_t.
58469         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
58470         byte counts > SSIZE_MAX correctly.
58471         * lib/safe-write.h: New file.
58472         * lib/safe-write.c: New file.
58473         * lib/full-read.h: New file.
58474         * lib/full-read.c: New file.
58475         * lib/full-write.h: Assume C89. Add comments.
58476         * lib/full-write.c: Include safe-write.h.
58477         (full_write): Rewritten to use safe_write.
58478         Suggested by Jim Meyering and Paul Eggert.
58479
58480 2002-11-21  Jim Meyering  <jim@meyering.net>
58481
58482         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
58483
58484         Merge in changes from the coreutils.
58485
58486         2002-09-25  Paul Eggert  <eggert@twinsun.com>
58487         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
58488         <stdint.h>.
58489         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
58490         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
58491         int.  Work more efficiently if X is the same width as uintmax_t.
58492         Do not compare X to -1, to avoid bogus compiler warning.
58493         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
58494         Don't assume that f_frsize and f_bsize are the same type.
58495
58496         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
58497         warning on FreeBSD.
58498
58499         * lib/makepath.c (make_path): Restore umask *before* creating the final
58500         component.
58501         (make_path): Minor reformatting.
58502
58503         * lib/xmalloc.c: Adjust to work with new autoconf macros,
58504         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
58505         HAVE_MALLOC/HAVE_REALLOC.
58506
58507         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
58508         dummy ones.  At least on GNU/Linux systems, `auto' means something
58509         else.
58510         From Michael Stone.
58511
58512 2002-11-21  Bruno Haible  <bruno@clisp.org>
58513
58514         Remove case insensitive option matching.
58515         * lib/argmatch.h (argcasematch): Remove declaration.
58516         (ARGCASEMATCH): Remove macro.
58517         (__xargmatch_internal): Remove case_sensitive argument.
58518         (XARGMATCH): Update.
58519         (XARGCASEMATCH): Remove macro.
58520         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
58521         case_sensitive argument.
58522         (argcasematch): Remove function.
58523         (__xargmatch_internal): Remove case_sensitive argument.
58524         (main): Use XARGMATCH instead of XARGCASEMATCH.
58525
58526         * lib/xmalloc.c: Change compile-time error message. Add comment about
58527         required autoconf version.
58528
58529 2002-11-20  Paul Eggert  <eggert@twinsun.com>
58530
58531         Merge argmatch cleanups from Bison.  Assume C89.
58532
58533         * lib/argmatch.c: Include config.h here, not in argmatch.h.
58534         Include stdlib.h, for EXIT_FAILURE.
58535         Always include <string.h>, since we assume C89.
58536         (EXIT_FAILURE): Remove pre-C89 bug workaround.
58537         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
58538         Include <stddef.h> instead, since it's all we need for size_t.
58539         (PARAMS): Remove.  All uses removed.
58540         (ARRAY_CARDINALITY): Do not bother to #undef.
58541         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
58542         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58543         Remove unnecessary parentheses.
58544         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58545         Insert necessary parentheses.
58546         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
58547         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
58548
58549 2002-11-19  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
58552         * lib/mbswidth.h: Include <stddef.h>, for size_t.
58553
58554         * lib/mbswidth.h (PARAMS): Remove macro.
58555         (mbswidth, mbsnwidth): Use ANSI C function declarations.
58556         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
58557
58558         * lib/gcd.h (PARAMS): Remove macro.
58559         (gcd): Use ANSI C function declarations.
58560         * lib/gcd.c (gcd): Likewise.
58561
58562 2002-11-15  Bruno Haible  <bruno@clisp.org>
58563
58564         * lib/strcspn.c: Include <stddef.h>.
58565         (strcspn): Use ANSI C function declaration. Change return type to
58566         size_t. Use NULL.
58567         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
58568         (strpbrk): Use NULL.
58569         * lib/strpbrk.h (PARAMS): Remove macro.
58570         (strpbrk): Use ANSI C function declaration.
58571         * lib/strstr.c: Don't include <sys/types.h>.
58572         * lib/strstr.h (PARAMS): Remove macro.
58573         (strstr): Use ANSI C function declarations.
58574
58575 2002-11-14  Karl Berry  <karl@gnu.org>
58576
58577         * config/mkinstalldirs: `do' on separate line, instead of
58578         `for var; do'.
58579
58580 2002-11-06  Bruno Haible  <bruno@clisp.org>
58581
58582         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
58583         * lib/gcd.c (gcd): Likewise.
58584
58585 2002-11-05  Bruno Haible  <bruno@clisp.org>
58586
58587         * lib/gcd.h: New file, from gettext-0.11.5.
58588         * lib/gcd.c: New file, from gettext-0.11.5.
58589
58590 2002-11-05  Bruno Haible  <bruno@clisp.org>
58591
58592         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58593         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58594         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58595         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58596
58597         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
58598         <libintl.h>.
58599         * lib/makepath.c: Include gettext.h instead of <locale.h> and
58600         <libintl.h>.
58601
58602         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
58603         * lib/human.c: Include gettext.h instead of <libintl.h>.
58604         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
58605         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
58606         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
58607         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
58608         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
58609         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
58610         (textdomain): Remove definition.
58611         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
58612
58613         * lib/long-options.c: Remove include of <libintl.h> and definition of
58614         _.
58615         * lib/same.c: Remove include of <libintl.h> and definition of _.
58616
58617 2002-11-04  Owen Taylor  <otaylor@redhat.com>
58618
58619         * lib/config.charset: A few additions for Solaris.
58620
58621 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58622
58623         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
58624         * lib/localcharset.c (locale_charset): Declare as extern "C".
58625
58626 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58627
58628         * lib/config.charset: msdos in uk_UA uses CP1125.
58629
58630 2002-11-04  Bruno Haible  <bruno@clisp.org>
58631
58632         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
58633         * lib/strcase.h: New file, from GNU gettext-0.11.5.
58634         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
58635         * lib/strstr.h: New file, from GNU gettext-0.11.5.
58636         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
58637
58638 2002-11-04  Bruno Haible  <bruno@clisp.org>
58639
58640         * lib/localcharset.c (locale_charset): Don't return an empty string.
58641
58642 2002-11-04  Bruno Haible  <bruno@clisp.org>
58643
58644         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
58645         aliases.
58646
58647 2002-11-04  Bruno Haible  <bruno@clisp.org>
58648
58649         * lib/config.charset: Update for newest glibc. Add canonical names
58650         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
58651
58652 2002-11-04  Bruno Haible  <bruno@clisp.org>
58653
58654         * lib/config.charset: Add support for NetBSD.
58655
58656 2002-11-04  Bruno Haible  <bruno@clisp.org>
58657
58658         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
58659
58660 2002-11-01  Bruno Haible  <bruno@clisp.org>
58661
58662         * configure.in: Add AC_CONFIG_AUX_DIR call.
58663         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
58664         test/Makefile.
58665         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
58666
58667 2002-09-28  Karl Berry  <karl@gnu.org>
58668
58669         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
58670         installed automake until the next release, since changes have been
58671         made.
58672
58673 2002-09-25  Karl Berry  <karl@gnu.org>
58674
58675         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
58676         * lib/getopt*: copy from libc/posix.
58677         * lib/gettext.h: copy from gettext.
58678         * lib/.cppi-disable: add strdup.c, gettext.h.
58679
58680 2002-09-25  Karl Berry  <karl@gnu.org>
58681
58682         * config/srclist.txt: enable gettext.h check.
58683         * config/config.{guess,sub}: update from prep.
58684         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
58685                 from automake 1.6.3.
58686         See srclist*.
58687
58688 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
58689
58690         * regex.c (PATFETCH): Remove the translating fetch.
58691         (PATFETCH_RAW): Rename to PATFETCH.
58692         (set_image_of_range): New fun.
58693         (SET_RANGE_TABLE_WORK_AREA): Use it.
58694         (regex_compile): Don't translate the pattern chars so eagerly.
58695         Only do it when inserting an `exactn' bytecode or when handling
58696         a char-range.
58697         (mutually_exclusive_p): Avoid empty statement.
58698
58699 2002-07-06  Jim Meyering  <meyering@lucent.com>
58700
58701         * m4/README: Don't mention Makefile.am.in.
58702         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
58703
58704 2002-07-01  Jim Meyering  <meyering@lucent.com>
58705
58706         * lib/c-stack.c: Include sys/time.h.
58707         From Volker Borchert.
58708
58709 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58710
58711         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
58712
58713 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58714
58715         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
58716         New macro.  Use it uniformly instead of
58717         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
58718         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
58719         reported by Vin Shelton.
58720
58721 2002-06-22  Paul Eggert  <eggert@twinsun.com>
58722
58723         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
58724         Do not assume SA_SIGINFO behavior.
58725         Bug reported by Jim Meyering on NetBSD 1.5.2.
58726
58727 2002-06-22  Jim Meyering  <meyering@lucent.com>
58728
58729         * m4/c-stack.m4: New file, from diffutils-2.8.2.
58730         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
58731
58732         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
58733         now that configure.ac uses AC_GNU_SOURCE.
58734         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
58735         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
58736
58737         Update to latest tools.  Suggestions from Paul Eggert.
58738         * m4/stdbool.m4: New file, from diffutils-2.8.2.
58739         * m4/gnu-source.m4: Update from diffutils-2.8.2.
58740         * m4/fnmatch.m4: Likewise.
58741         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
58742         to AC_HEADER_STDBOOL
58743
58744 2002-06-22  Jim Meyering  <meyering@lucent.com>
58745
58746         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
58747         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
58748
58749 2002-06-22  Jim Meyering  <meyering@lucent.com>
58750
58751         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
58752
58753         * lib/exitfail.c, exitfail.h: Likewise.
58754         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
58755
58756         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
58757         of fnmatch.h.
58758         (EXTRA_DIST): Add fnmatch_loop.c.
58759         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
58760
58761         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
58762         * lib/fnmatch.c: Update from diffutils-2.8.2.
58763         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
58764         * lib/fnmatch.h: Remove file.
58765
58766 2002-06-21  Jim Meyering  <meyering@lucent.com>
58767
58768         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
58769         * m4/mbrtowc.m4: Likewise.
58770
58771         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
58772         * m4/mbswidth.m4: Reflect name change:
58773         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
58774         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58775
58776         * m4/lib-link.m4: Update from gettext-0.11.2.
58777         * m4/gettext.m4: Likewise.
58778
58779         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
58780         From Alfred M. Szmidt.
58781
58782 2002-06-18  Paul Eggert  <eggert@twinsun.com>
58783
58784         * lib/file-type.h: Report an error if neither S_ISREG nor
58785         S_IFREG is defined, instead of using a test specific to glibc
58786         2.2.  This should be safe, since POSIX requires S_ISREG and
58787         Unix Version 7 had S_IFREG.  We don't need to check for
58788         <sys/types.h> since we don't use any symbols that it defines.
58789
58790 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
58791
58792         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
58793         $@-t, so that each temporary file name is unique and valid in the first
58794         8 characters, for operation under DOS.
58795
58796 2002-06-15  Paul Eggert  <eggert@twinsun.com>
58797
58798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
58799
58800 2002-06-15  Jim Meyering  <meyering@lucent.com>
58801
58802         Work even with DJGPP 2.03, which lacks support for symlinks.
58803         From Richard Dawe.
58804         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
58805         is defined.
58806         * lib/lchown.c (S_ISLNK): Likewise.
58807
58808 2002-06-15  Jim Meyering  <meyering@lucent.com>
58809
58810         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
58811         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
58812         have been included before this file.
58813
58814 2002-06-14  Jim Meyering  <meyering@lucent.com>
58815
58816         * lib/file-type.h: Use the version from diffutils-2.8.2.
58817         * lib/file-type.c: Likewise.
58818
58819 2002-06-07  Jim Meyering  <meyering@lucent.com>
58820
58821         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
58822         They're needed at least for NetBSD 1.5.2.
58823         ($statxfs_includes): Include those same headers.
58824         ($statxfs_includes): Include sys/vfs.h if available.
58825         ($statxfs_includes): Likewise for sys/statvfs.h.
58826         Check for the following members in both structs statfs and statvfs:
58827         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
58828
58829 2002-06-01  Jim Meyering  <meyering@lucent.com>
58830
58831         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
58832         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
58833
58834 2002-05-28  Jim Meyering  <meyering@lucent.com>
58835
58836         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
58837         Reported by Volker Borchert.
58838
58839 2002-05-27  Jim Meyering  <meyering@lucent.com>
58840
58841         Fix a problem seen only on nonconforming systems whereby ls.c's
58842         use of localtime, and then of gettimeofday would cause trouble:
58843         the localtime call used to initialize rpl_gettimeofday's save
58844         mechanism would clobber ls's current local time information so
58845         that in any long listing the first file would always be listed
58846         with date 1970-01-01.  Analysis by Volker Borchert.
58847
58848         * lib/gettimeofday.c (localtime): Undefine.
58849         (rpl_localtime): New function.
58850
58851 2002-05-27  Jim Meyering  <meyering@lucent.com>
58852
58853         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
58854         localtime.
58855
58856         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
58857         use the replacement function; it wouldn't resolve at link time.
58858         Reported by Volker Borchert.
58859
58860 2002-05-22  Jim Meyering  <meyering@lucent.com>
58861
58862         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
58863         file-type.h.
58864         * lib/file-type.h: New file.
58865         * lib/file-type.c (file_type): New file/function.  Extracted from
58866         diffutils.
58867
58868 2002-04-30  Jim Meyering  <meyering@lucent.com>
58869
58870         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
58871
58872 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58873
58874         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
58875
58876 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58877
58878         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
58879         Do not check for alloca.h (no longer used) or stdbool.h (was never
58880         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
58881
58882 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58883
58884         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
58885
58886 2002-04-29  Jim Meyering  <meyering@lucent.com>
58887
58888         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
58889         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
58890         Use AC_FUNC_STRNLEN here instead.
58891
58892         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
58893         With autoconf-2.53a, it's part of AC_PROG_CC.
58894
58895 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58896
58897         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
58898         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
58899
58900 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58901
58902         * lib/sig2str.h, lib/sig2str.c: New files.
58903         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
58904
58905 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58906
58907         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
58908         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
58909         of 127, since 64 is the largest conceivable number for ancient
58910         nonstandard hosts.
58911         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
58912
58913 2002-04-28  Jim Meyering  <meyering@lucent.com>
58914
58915         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
58916
58917 2002-04-24  Jim Meyering  <meyering@lucent.com>
58918
58919         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
58920         (jm_PREREQ): Use it.
58921
58922         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
58923         mach/mach.h fcntl.h.
58924         Check for this function: setlocale.
58925
58926 2002-04-24  Jim Meyering  <meyering@lucent.com>
58927
58928         * lib/gettext.h: New file, from Gettext.
58929         * lib/Makefile.am (INCLUDES): Remove -I../intl.
58930         (libfetish_a_SOURCES): Add gettext.h.
58931
58932 2002-04-16  Jim Meyering  <meyering@lucent.com>
58933
58934         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
58935         ut_pid, ut_id, ut_exit.
58936
58937 2002-04-16  Jim Meyering  <meyering@lucent.com>
58938
58939         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
58940         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
58941         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
58942
58943 2002-04-12  Jim Meyering  <meyering@lucent.com>
58944
58945         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
58946         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
58947         existence of the getmntinfo function.  Needed for Darwin 5.3.
58948
58949         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
58950         This is necessary at least on Darwin 5.3.
58951
58952         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
58953         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
58954         strnlen.o in the library, and that makes some versions of ranlib
58955         object.
58956
58957 2002-04-12  Jim Meyering  <meyering@lucent.com>
58958
58959         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
58960
58961 2002-04-09  Jim Meyering  <meyering@lucent.com>
58962
58963         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
58964         to be more precise.  Rather than saying we're checking whether the
58965         function `works', say what we're testing.
58966         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
58967         Reported by Bruno Haible.
58968
58969 2002-03-10  Jim Meyering  <meyering@lucent.com>
58970
58971         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
58972         Suggestion from Santiago Vila.
58973
58974 2002-03-08  Jim Meyering  <meyering@lucent.com>
58975
58976         * lib/rename.c: Mention that this wrapper is needed also on
58977         mips-dec-ultrix4.4 systems.
58978
58979 2002-03-02  Jim Meyering  <meyering@lucent.com>
58980
58981         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
58982         not HAVE_CLOCK_SETTIME.
58983
58984 2002-02-27  Paul Eggert  <eggert@twinsun.com>
58985
58986         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
58987         Check for clock_settime.
58988
58989 2002-02-27  Paul Eggert  <eggert@twinsun.com>
58990
58991         * lib/nanosleep.h: Rename to....
58992         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
58993
58994         * lib/gettime.c: New file.
58995         * lib/settime.c: New file.
58996         * lib/stime.c: Remove.
58997
58998         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
58999         timespec.h.  Remove nanosleep.h.
59000
59001 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59002
59003         * m4/acl.m4: New file.
59004         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59005         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59006
59007 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59008
59009         * lib/acl.c, lib/acl.h: New files.
59010         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59011
59012 2002-02-24  Jim Meyering  <meyering@lucent.com>
59013
59014         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59015         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59016         cause trouble.  Reported by Nelson Beebe.
59017
59018 2002-02-23  Paul Eggert  <eggert@twinsun.com>
59019
59020         * lib/path-concat.c (xpath_concat): Reorder code to pacify
59021         compilers that don't know that xalloc_die never returns.
59022
59023 2002-02-20  Jim Meyering  <meyering@lucent.com>
59024
59025         * lib/getdate.c: Regenerate using bison-1.33.
59026
59027 2002-02-17  Jim Meyering  <meyering@lucent.com>
59028
59029         * config/config.guess (main): Don't use `head -1'; it's no longer
59030         portable. Use `sed 1q' instead.
59031
59032 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
59033
59034         * m4/codeset.m4: Upgrade to gettext-0.11.
59035         * m4/gettext.m4: Upgrade to gettext-0.11.
59036         * m4/glibc21.m4: Upgrade to gettext-0.11.
59037         * m4/iconv.m4: Upgrade to gettext-0.11.
59038         * m4/isc-posix.m4: Upgrade to gettext-0.11.
59039         * m4/lcmessage.m4: Upgrade to gettext-0.11.
59040         * m4/lib-ld.m4: New file, from gettext-0.11.
59041         * m4/lib-link.m4: New file, from gettext-0.11.
59042         * m4/lib-prefix.m4: New file, from gettext-0.11.
59043         * m4/progtest.m4: Upgrade to gettext-0.11.
59044
59045 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59046
59047         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59048         (jm_PREREQ): Use it.
59049
59050 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59051
59052         * lib/posixver.c, lib/posixver.h: New files.
59053         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59054
59055 2002-02-02  Paul Eggert  <eggert@twinsun.com>
59056             Bruno Haible  <bruno@clisp.org>
59057
59058         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59059         (fwrite_success_callback): New declaration.
59060         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59061         print_unicode_char. Call failure callback instead of error.
59062         (fwrite_success_callback): New function.
59063         (exit_failure_callback): New function.
59064         (fallback_failure_callback): New function.
59065         (print_unicode_char): Call unicode_to_mb.
59066
59067 2002-01-26  Jim Meyering  <meyering@lucent.com>
59068
59069         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59070         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59071
59072 2002-01-26  Jim Meyering  <meyering@lucent.com>
59073
59074         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59075
59076 2002-01-22  Paul Eggert  <eggert@twinsun.com>
59077
59078         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59079
59080 2002-01-22  Jim Meyering  <meyering@lucent.com>
59081
59082         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59083         Otherwise, some versions of automake would omit the rule that makes
59084         Makefile from Makefile.in.
59085
59086 2002-01-21  Paul Eggert  <eggert@twinsun.com>
59087
59088         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59089         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59090         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59091         (memcoll): Set errno to zero if there is no error.
59092
59093         * lib/quotearg.c (quotearg_buffer_restyled):
59094         Fix bug with quoting buffers containing NUL when backslashing escapes.
59095         This bug was exposed by the other changes in this patch.
59096         (quotearg_n_options): New arg ARGSIZE.
59097         All callers changed.
59098         (quoting_options_from_style): New function.
59099         (quotearg_n_style): Use it.
59100         (quotearg_n_style_mem): New function.
59101
59102         * lib/quotearg.h (quotearg_n_style_mem): New function.
59103
59104 2002-01-19  Jim Meyering  <meyering@lucent.com>
59105
59106         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59107         Remove useless quotes: DF_PROG="df".
59108         * m4/strnlen.m4: New file.
59109
59110 2002-01-16  Paul Eggert  <eggert@twinsun.com>
59111
59112         * lib/backupfile.c (ISDIGIT): Comment fix.
59113         * lib/getdate.y (ISDIGIT): Likewise.
59114         * lib/posixtm.c (ISDIGIT, year): Likewise.
59115         * lib/strverscmp.c (ISDIGIT): Likewise.
59116         * lib/userspec.c (ISDIGIT): Likewise.
59117
59118 2002-01-16  Jim Meyering  <meyering@lucent.com>
59119
59120         * lib/getdate.y: Add three semicolons, each just before a closing
59121         brace. Bison (as of version 1.31) no longer papers over that mistake.
59122
59123 2002-01-05  Jim Meyering  <meyering@lucent.com>
59124
59125         * lib/version-etc.c (version_etc_copyright): Update copyright year.
59126
59127 2001-12-19  Paul Eggert  <eggert@twinsun.com>
59128
59129         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59130         not silently exit merely because the output buffer happens to
59131         have nothing pending.
59132
59133 2001-12-18  Paul Eggert  <eggert@twinsun.com>
59134
59135         See the big note in ../ChangeLog.
59136         * lib/human.c (suffixes): Prefer K to k for 1024.
59137         (generate_suffix_backwards): New function.
59138         (human_readable_inexact): Use it.
59139         * lib/xstrtol.c (__xstrtol): If there is no number but there
59140         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
59141         Accept 'K' as well as 'k'.
59142
59143 2001-12-15  Jim Meyering  <meyering@lucent.com>
59144
59145         * lib/regex.h (__restrict_arr): Update from libc.
59146
59147         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59148         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
59149         (STREQ): Define.
59150
59151 2001-12-14  Jim Meyering  <meyering@lucent.com>
59152
59153         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59154         Suggestion from Bruno Haible.
59155
59156 2001-12-10  Jim Meyering  <meyering@lucent.com>
59157
59158         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59159         xrealloc, Instead, include "xalloc.h".
59160         (initbuffer): Don't cast xmalloc return value to char*.
59161         (readline): Reword comment.
59162         Don't cast xrealloc return value to char*
59163         Return NULL, not 0.
59164
59165 2001-12-09  Jim Meyering  <meyering@lucent.com>
59166
59167         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59168         about `signed and unsigned type in conditional expression'.
59169         * lib/posixtm.c (posix_time_parse): Likewise.
59170
59171         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59172
59173         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59174         to avoid a pedantic warning.
59175
59176         * lib/getstr.c: Don't include assert.h.
59177         (getstr): Remove warning-evoking assertions.
59178         Return -1 if offset parameter is out of bounds.
59179         Change the type of a local from int to size_t.
59180
59181         * lib/strftime.c (my_strftime_localtime_r): Include this function
59182         definition in the `#if ! HAVE_TM_GMTOFF' block.
59183
59184         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59185         Include xalloc.h instead.
59186
59187 2001-12-02  Jim Meyering  <meyering@lucent.com>
59188
59189         * lib/tempname.c: Don't declare getenv, thus reverting the change of
59190         2001-11-18.  It's no longer necessary, now that stdlib.h is always
59191         included.
59192
59193         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59194         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
59195
59196 2001-11-30  Akim Demaille  <akim@epita.fr>
59197
59198         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59199         before being defined.
59200
59201 2001-11-27  Paul Eggert  <eggert@twinsun.com>
59202
59203         * lib/quotearg.h (quotearg_n, quotearg_n_style):
59204         First arg is int, not unsigned.
59205         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59206         (SIZE_MAX, UINT_MAX): New macros.
59207         (quotearg_n_options): Abort if N is negative.
59208         Avoid overflow check on hosts where size_t is 64 bits and int
59209         is 32 bits, as overflow is impossible there.
59210         Fix off-by-one typo that caused unnecessary reallocation.
59211
59212 2001-11-27  Jim Meyering  <meyering@lucent.com>
59213
59214         * lib/tempname.c: Merge with version from libc.
59215         * lib/regex.c: Likewise.
59216
59217         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
59218         systems for which STDC_HEADERS is 0, it was not included, resulting in
59219         a warning about an integer-to-pointer conversion problem with getenv.
59220         Reported by Volker Borchert.
59221
59222 2001-11-26  Jim Meyering  <meyering@lucent.com>
59223
59224         * lib/gtod.h: Remove file.
59225         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59226         * lib/gettimeofday.c: Don't include gtod.h.
59227         (GTOD_init): Remove function.
59228         (rpl_gettimeofday): Do its job here instead, rather than aborting.
59229         Suggestion from Volker Borchert.
59230
59231 2001-11-23  Jim Meyering  <meyering@lucent.com>
59232
59233         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
59234         it.
59235         * lib/hash.c (struct hash_table): Define it here instead.
59236
59237 2001-11-22  Jim Meyering  <meyering@lucent.com>
59238
59239         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59240
59241 2001-11-20  Jim Meyering  <meyering@lucent.com>
59242
59243         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59244         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59245
59246 2001-11-19  Jim Meyering  <meyering@lucent.com>
59247
59248         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59249         directory.  Use "conftestXXXXXX" as the template.
59250         Suggestion from Paul Eggert.
59251
59252         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59253         immediately, so the test doesn't mistakenly hit the max-open-files
59254         limit.
59255
59256 2001-11-18  Paul Eggert  <eggert@twinsun.com>
59257
59258         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59259         (TEMPORARIES): New macro.
59260         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
59261         removes an artificial limitation (e.g. HP-UX 10.20, where
59262         TMP_MAX is 17576).
59263
59264 2001-11-18  Jim Meyering  <meyering@lucent.com>
59265
59266         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59267
59268 2001-11-18  Jim Meyering  <meyering@lucent.com>
59269
59270         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59271         on SunOS 4.
59272
59273         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59274         files will be created before anything else.
59275
59276 2001-11-17  Paul Eggert  <eggert@twinsun.com>
59277
59278         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59279         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59280
59281 2001-11-17  Jim Meyering  <meyering@lucent.com>
59282
59283         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59284         Prompted by a report from Bob Proulx.
59285
59286         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59287         Instead, require UTILS_FUNC_MKSTEMP.
59288
59289 2001-11-17  Jim Meyering  <meyering@lucent.com>
59290
59291         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59292         Now, that's done as part of AC_FUNC_STRTOD.
59293
59294 2001-11-17  Jim Meyering  <meyering@lucent.com>
59295
59296         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
59297         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
59298         rather than group writable.  Patch by Juan F. Codagnone.
59299
59300         * lib/readtokens.c: Remove explicit declarations of xmalloc and
59301         xrealloc, Instead, include "xalloc.h".
59302
59303         * lib/mountlist.c: Include unlocked-io.h after all system headers.
59304         Remove explicit declarations of xmalloc, xrealloc,
59305         and xstrdup.  Instead, include "xalloc.h".
59306
59307         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
59308         unlocked-io.h.
59309         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
59310         Likewise.
59311         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
59312
59313         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
59314         Reported by Padraig Brady.
59315
59316         * lib/mkstemp.c: #undef mkstemp.
59317         Include config.h.
59318         (rpl_mkstemp): Rename from mkstemp.
59319         Protoize.
59320
59321 2001-11-16  Jim Meyering  <meyering@lucent.com>
59322
59323         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
59324         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
59325         determine the amount of total physical memory, use pstat_getstatic.
59326         HPUX-11 doesn't define _SC_PHYS_PAGES.
59327         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
59328         If sysconf couldn't be used to determine the amount of available
59329         physical memory, use both pstat_getstatic and pstat_getdynamic.
59330         Based on a patch from Bob Proulx.
59331
59332 2001-11-10  Jim Meyering  <meyering@lucent.com>
59333
59334         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
59335         (jm_PREREQ): Use it.
59336
59337 2001-11-09  Jim Meyering  <meyering@lucent.com>
59338
59339         * m4/jm-macros.m4: Require autoconf-2.52f.
59340         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
59341         Use these AC_-prefixed names, not the AM_-prefixed ones.
59342
59343         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
59344
59345 2001-11-05  Jim Meyering  <meyering@lucent.com>
59346
59347         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
59348
59349 2001-11-04  Jim Meyering  <meyering@lucent.com>
59350
59351         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
59352         $DEFS.
59353
59354 2001-11-03  Jim Meyering  <meyering@lucent.com>
59355
59356         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
59357         of AC_DEFUN.
59358
59359         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
59360         know the name of the variable in the macro definition.
59361
59362 2001-11-03  Jim Meyering  <meyering@lucent.com>
59363
59364         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
59365         in argmatch_to_argument call.
59366
59367         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
59368         argument.
59369
59370         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
59371         e.g., a fault due to an attempt to free a NULL pointer.
59372
59373 2001-11-01  Jim Meyering  <meyering@lucent.com>
59374
59375         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
59376         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
59377
59378 2001-11-01  Jim Meyering  <meyering@lucent.com>
59379
59380         * lib/dirfd.c, lib/dirfd.h: New files.
59381         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
59382
59383         * lib/hash.c (hash_print) [TESTING]: Clean up.
59384
59385 2001-10-22  Paul Eggert  <eggert@twinsun.com>
59386
59387         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
59388         to avoid a warning if -Wall.
59389
59390 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
59391
59392         * README: New file
59393         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
59394         (per RMS's instructions, this is now the canonical source)
59395         * lgpl/, gpl/: New directories.
59396
59397 2001-10-21  Paul Eggert  <eggert@twinsun.com>
59398
59399         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
59400
59401 2001-10-21  Jim Meyering  <meyering@lucent.com>
59402
59403         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
59404         this code would end up calling gettext even in packages built
59405         with --disable-nls.
59406         * lib/getopt.c (_): Likewise.
59407         * lib/regex.c (_): Likewise.
59408
59409 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59410
59411         * m4/error.m4 (jm_PREREQ_ERROR):
59412         Do not invoke AC_CHECK_FUNCS with strerror_r, as
59413         AC_FUNC_STRERROR_R does that.
59414         Check for strerror declaration.
59415
59416         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
59417         are supposed to have them these days.
59418         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
59419         Merge changes from latest Autoconf CVS.
59420         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
59421         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
59422         POSIX decided to standardize on the int flavor of strerror_r.
59423
59424 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59425
59426         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
59427         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
59428         Use strerror_r that is only a macro, even if it is not a function.
59429         (strerror): Check for HAVE_DECL_STRERROR before declaring.
59430         (private_strerror): Use prototypes, not old-style function definition.
59431         (print_errno_message): New function.
59432         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
59433         char*-flavored one.
59434         (error_tail, error, error_at_line): Use it.
59435
59436 2001-10-11  Jim Meyering  <meyering@lucent.com>
59437
59438         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
59439         and quote_n (1, ... to avoid clobbering a buffer.
59440
59441 2001-10-05  Jim Meyering  <meyering@lucent.com>
59442
59443         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
59444         hash-pjw.h.
59445         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
59446         * lib/hash-pjw.h: New file.
59447
59448 2001-09-30  Jim Meyering  <meyering@lucent.com>
59449
59450         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
59451         `struct fsstat' has the `f_fstypename' member.
59452         Use that to define FS_TYPE, which is now used to make
59453         the getfsstat link test tighter.
59454
59455 2001-09-30  Jim Meyering  <meyering@lucent.com>
59456
59457         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
59458         Include <sys/ucred.h>, for Apple Darwin.
59459         Include sys/mount.h and sys/fs_types.h only if available.
59460         (FS_TYPE): Define.
59461         (read_filesystem_list): Use FS_TYPE.
59462
59463 2001-09-29  Paul Eggert  <eggert@twinsun.com>
59464
59465         * lib/exclude.c (excluded_filename): 0 -> false, since it's
59466         a boolean context.
59467
59468 2001-09-29  Jim Meyering  <meyering@lucent.com>
59469
59470         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59471         [one-argument getmntent function]): Include stdio.h before mntent.h.
59472         SunOS 4.1.x needs it for the declaration of `FILE'.
59473         Patch by Volker Borchert.
59474
59475         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59476         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
59477         sys/fs_types.h, and make the link-test for getfsstat guard #include
59478         directives with appropriate #if HAVE_*_H tests so that we can
59479         detect getfsstat on Apple Darwin1.3.7 systems.
59480         Reported by Nelson Beebe.
59481         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
59482
59483 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59484
59485         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59486         #defines strtoimax.  Also treat the other strto* functions
59487         like strtoimax.
59488
59489         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59490         Check for strtoul and strtoumax,
59491         as those declarations are made even in the signed case.
59492         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
59493         Likewise, for strtol and strtoimax.
59494
59495 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59496
59497         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59498         #defines strtoimax.  Also treat the other strto* functions
59499         like strtoimax.
59500
59501         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
59502         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
59503         (strtoimax, strtoumax): Do not declare if already defined as a macro.
59504
59505 2001-09-26  Jim Meyering  <meyering@lucent.com>
59506
59507         Most macros in unlocked-io.h had the wrong number of arguments.
59508         * lib/gen-uio: New script.
59509         (USE_UNLOCKED_IO): Define to 1 if not already defined.
59510         * lib/unlocked-io.hin: Remove file.
59511         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
59512         rather than trying to embed it here.
59513         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
59514         Reported by Padraig Brady.
59515
59516 2001-09-25  Volker Borchert  <bt@teknon.de>
59517
59518         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
59519         `result'.
59520
59521 2001-09-24  Jim Meyering  <meyering@lucent.com>
59522
59523         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
59524
59525 2001-09-23  Jim Meyering  <meyering@lucent.com>
59526
59527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
59528         instead of the mere test for existence of mntent.h.  The latter
59529         would get a false-positive on AIX 3.4 systems.
59530         In the outer getmntent if-block, don't die if neither of the getmntent
59531         tests succeeds.  Instead, just fall through and continue with the
59532         remaining tests.
59533
59534 2001-09-23  Jim Meyering  <meyering@lucent.com>
59535
59536         * lib/mountlist.c: Remove useless parentheses in #if directives.
59537         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
59538         the deprecated MOUNTED symbol is no longer defined in mntent.h.
59539
59540 2001-09-22  Jim Meyering  <meyering@lucent.com>
59541
59542         * m4/gettext.m4: New file.  From gettext.
59543         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
59544         * m4/progtest.m4: Likewise
59545         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
59546         * m4/glibc21.m4: Likewise.
59547
59548         * m4/libintl.m4: Remove.  No longer used.
59549
59550 2001-09-22  Jim Meyering  <meyering@lucent.com>
59551
59552         * lib/localcharset.c: Update from latest gettext.
59553         * lib/config.charset: Likewise.
59554
59555 2001-09-20  Jim Meyering  <meyering@lucent.com>
59556
59557         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
59558         strtoimax.
59559         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
59560         strtoumax.
59561
59562 2001-09-20  Jim Meyering  <meyering@lucent.com>
59563
59564         * lib/xstrtol.c (strtoimax): Guard declaration with
59565         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
59566         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
59567         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
59568         (strtoumax): Likewise, for completeness (it wasn't necessary).
59569
59570 2001-09-17  Paul Eggert  <eggert@twinsun.com>
59571
59572         * lib/strtoimax.c (HAVE_LONG_LONG):
59573         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
59574         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
59575         to work around bug in IBM C compiler.
59576
59577 2001-09-17  Jim Meyering  <meyering@lucent.com>
59578
59579         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
59580         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
59581         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
59582         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
59583         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
59584         whenever the right hand side need not be expanded by the shell.
59585
59586 2001-09-16  Paul Eggert  <eggert@twinsun.com>
59587
59588         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
59589         library.  It's not correct, as some older glibcs are buggy.
59590         fnmatch wasn't fixed until glibc 2.2.
59591
59592         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
59593         special shell magic here.
59594
59595 2001-09-16  Jim Meyering  <meyering@lucent.com>
59596
59597         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
59598         * m4/jm-macros.m4: Require it.
59599
59600 2001-09-16  Jim Meyering  <meyering@lucent.com>
59601
59602         * lib/mkdir.c: New file.
59603
59604 2001-09-15  Jim Meyering  <meyering@lucent.com>
59605
59606         * m4/jm-macros.m4: Check for help2man.
59607
59608 2001-09-11  Jim Meyering  <meyering@lucent.com>
59609
59610         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
59611         The body, by Paul Eggert, was moved here from configure.in.
59612         * m4/jm-macros.m4: Require UTILS_HOST_OS.
59613
59614 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59615
59616         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
59617         (jm_PREREQ): Use it.
59618
59619 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59620
59621         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
59622         Use ssize_t, not int, to store result of readlink.
59623         Check for ssize_t overflow as well as size_t overflow,
59624         as POSIX says the result of readlink is implementation-defined
59625         when ssize_t overflows.
59626         Remove unnecessary cast to char*.
59627         Use free+malloc instead of realloc, as the storage doesn't need
59628         to be preserved and it's clearer and can be more efficient that way.
59629         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
59630         * lib/xreadlink.h (xreadlink): Update prototype.
59631
59632 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59633
59634         * lib/xgetcwd.c: Revert some of the previous change; intead,
59635         fix the HAVE_GETCWD_NULL code to behave more like the
59636         !HAVE_GETCWD_NULL code used to.
59637
59638         Include "xalloc.h".
59639         (xgetcwd): Do not return NULL when memory is exhausted; instead,
59640         invoke xalloc_die.
59641
59642 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59643
59644         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
59645         sys/param.h, as pathmax.h includes them.
59646
59647 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59648
59649         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
59650         (jm_PREREQ_XGETCWD): New macro.
59651
59652         * m4/getcwd.m4: New file.
59653
59654 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59655
59656         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
59657         like the HAVE_GETCWD_NULL code.
59658         Include pathmax.h if not HAVE_GETCWD.
59659         Do not include xalloc.h.
59660         (INITIAL_BUFFER_SIZE): New symbol.
59661         Do not use xmalloc / xrealloc, since the caller is responsible for
59662         handling errors.  Preserve errno around `free' during failure.
59663         Do not overrun buffer when using getwd.
59664
59665 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59666
59667         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
59668         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
59669         getcwd (NULL, 0).
59670
59671 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59672
59673         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
59674         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
59675         spotted by Jim Meyering.
59676
59677 2001-09-03  Jim Meyering  <meyering@lucent.com>
59678
59679         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
59680         failure.
59681
59682 2001-09-02  Jim Meyering  <meyering@lucent.com>
59683
59684         * lib/error.c: Update from GNU libc.
59685
59686 2001-09-01  Jim Meyering  <meyering@lucent.com>
59687
59688         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
59689         Used by df.
59690
59691 2001-09-01  Jim Meyering  <meyering@lucent.com>
59692
59693         * lib/xreadlink.c: New file.
59694         * lib/xreadlink.h: New file.
59695         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
59696         xreadlink.h.
59697
59698         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
59699         doesn't conflict with sparc Solaris 7's definition in
59700         /usr/include/sys/int_types.h.
59701
59702         * lib/exclude.c: Use `""', not `<>' to #include non-system header
59703         files.
59704         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
59705         and strncasecmp as r-values.  Unixware didn't have declarations.
59706
59707 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59708
59709         * lib/xstrtol.h: Add copyright notice.
59710         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
59711         LONGINT_INVALID_SUFFIX_CHAR.
59712
59713 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59714
59715         * lib/xstrtol.c (strtoimax): New decl.
59716
59717 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59718
59719         * lib/xgetcwd.c: Don't include pathmax.h.
59720         Include stdlib.h and unistd.h if available.
59721         Include xalloc.h.
59722         (xmalloc, xstrdup, free): Remove decls.
59723         (xgetcwd): Don't assume sizes fit in unsigned.
59724         Check for overflow when computing sizes.
59725         Simplify reallocation code.
59726
59727 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59728
59729         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
59730         a directory's st_size can have an arbitrary value, so the old
59731         usage could waste an arbitrary amount of memory.  All uses
59732         changed.
59733         * lib/savedir.h: Update prototype.
59734
59735 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59736
59737         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
59738
59739         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
59740         old strtoimax.c.
59741
59742         Also, make the following further changes to make this file's
59743         configuration more similar to that of strtol.c:
59744         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
59745         (strtoumax, uintmax_t, strtoull, strtol): Remove.
59746         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
59747         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
59748         changed to signed values.
59749
59750         And make the following changes as well:
59751         Fix copyright notice, as 1999 was missing.
59752         (verify): New macro.
59753         (strtoimax): Check sizes at compile-time, not run-time.
59754         Prefer strtol to strtoll if both work.
59755         (main): Remove; it was not that useful and was a pain to maintain.
59756
59757         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
59758
59759 2001-08-31  Jim Meyering  <meyering@lucent.com>
59760
59761         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
59762         Use an initial, malloc'd, buffer of length 128 rather than
59763         a statically allocated one of length 1024.
59764
59765 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59766
59767         Simplify code, partly by assuming autoconf 2.52 semantics.
59768
59769         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
59770
59771         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
59772         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
59773         All uses removed.
59774         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
59775         Move AC_REQUIRE to next-to-top level, to avoid confusion.
59776         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
59777         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
59778         jm_AC_HEADER_INTTYPES_H.
59779         * m4/jm-macros.m4 (jm_MACROS): Likewise.
59780
59781         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
59782
59783         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59784         Quote first arg of AC_DEFUN.
59785         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
59786         since they are needed to parse the include file even if we need
59787         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
59788         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
59789         but with opposite signedness.
59790
59791 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59792
59793         Merge 'exclude' changes from tar 1.13.22.
59794         This fixes one or two unlikely storage allocation overflow bugs,
59795         but doesn't change user-visible behavior otherwise.
59796
59797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59798
59799         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
59800         (jm_PREREQ_EXCLUDE): New macro.
59801
59802 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59803
59804         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
59805         tm to be declared.
59806
59807 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59808
59809         * lib/hash.c: Remove '2001' from copyright notice.
59810
59811 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59812
59813         * lib/full-write.h: New file.
59814         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
59815         * lib/full-write.c: Correct credits, as cccp.c no longer
59816         exists and anyway it was so heavily changed from the old cccp
59817         code as to be unrecognizable.  Include full-write.h.
59818         (full_write) Return size_t, with short writes meaning failure.
59819         All callers changed.  This fixes a bug with large buffers
59820         on 64-bit hosts.
59821         * lib/utime.c: Include full-write.h.
59822
59823 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59824
59825         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
59826         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
59827         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
59828         Include if available.
59829         (<xalloc.h>): Include
59830         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
59831         (verify): New macro.  Use it to verify that EXCLUDE macros do not
59832         collide with FNM macros.
59833         (struct patopts): New struct.
59834         (struct exclude): Use it, as exclude patterns now come with options.
59835         (new_exclude): Support above changes.
59836         (new_exclude, add_exclude_file):
59837         Initial size must now be a power of two to simplify overflow checking.
59838         (free_exclude, fnmatch_no_wildcards): New function.
59839         (excluded_filename): No longer requires options arg, as the options
59840         are determined by add_exclude.  Now returns bool, not int.
59841         (excluded_filename, add_exclude):
59842         Add support for the fancy new exclusion options.
59843         (add_exclude, add_exclude_file): Now takes int options arg.
59844         Check for arithmetic overflow when computing sizes.
59845         (add_exclude_file): xrealloc might modify errno, so don't
59846         realloc until after errno might be used.
59847
59848         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
59849         New macros.
59850         (free_exclude): New decl.
59851         (add_exclude, add_exclude_file): Now takes int options arg.
59852         (excluded_filename): No longer requires options arg, as the options
59853         are determined by add_exclude.  Now returns bool, not int.
59854
59855 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59856
59857         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
59858
59859 2001-08-27  Jim Meyering  <meyering@lucent.com>
59860
59861         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
59862
59863         * lib/version-etc.c (N_): Remove definition.
59864         Revert most of last change.
59865         Instead, simply don't mark the `Copyright...' string for translation.
59866         Based on advice from Paul Eggert.
59867
59868         * lib/strtoxmax.c: Tweak comment.
59869
59870 2001-08-26  Jim Meyering  <meyering@lucent.com>
59871
59872         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
59873
59874         * m4/xstrtoimax.m4: New file.
59875         * m4/xstrtoumax.m4: Add comments explaining why we
59876         AC_REPLACE_FUNCS(strtol).
59877
59878 2001-08-26  Jim Meyering  <meyering@lucent.com>
59879
59880         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
59881         of copyright with `%s' so translators don't get an untranslated
59882         message in 2002.
59883         (COPYRIGHT_YEAR): Define.
59884         (version_etc): Use fprintf rather than fputs.
59885         Suggestion from Ulrich Drepper.
59886
59887         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
59888
59889         * lib/strtoll.c: New file, from GNU libc.
59890         * lib/xstrtoimax.c: New file.
59891
59892         * lib/xstrtol.h: Add xstrtoimax.
59893         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
59894         * lib/strtoimax.c: New file.  Likewise, but first define
59895         STRTOUXMAX_SIGNED.
59896
59897         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
59898         ...
59899         * lib/strtoxmax.c: ... then renamed to this.
59900
59901 2001-08-18  Paul Eggert  <eggert@twinsun.com>
59902
59903         * m4/inttypes.m4: Add AC_PREREQ(2.13).
59904         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
59905         (jm_AC_TYPE_INTMAX_T): New macro.
59906         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
59907
59908         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
59909
59910         * m4/longlong.m4: Renamed from ulonglong.m4.
59911         * m4/inttypes.m4: Renamed from inttypes_h.m4.
59912         * m4/uintmax_t.m4: Removed.
59913
59914 2001-08-13  Paul Eggert  <eggert@twinsun.com>
59915
59916         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
59917         Port to Solaris 8, where 'sed' requires a space after the 'r'
59918         command, and where sh dislikes "$/".  Clean up the spacing a bit.
59919         Redirect output to $tmp just once.
59920
59921 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
59922
59923         * lib/addext.c (<errno.h>): Include.
59924         (errno): Declare if not defined.
59925         (addext): Work correctly when pathconf returns -1 and leaves
59926         errno alone because there is no limit.  Also, work even if
59927         pathconf returns a value greater than SIZE_MAX.
59928
59929 2001-08-12  Jim Meyering  <meyering@lucent.com>
59930
59931         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
59932         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
59933         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
59934         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
59935         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
59936         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
59937         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
59938         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
59939         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
59940         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
59941         utime.m4, utimes.m4, xstrtoumax.m4:
59942         Quote the first argument in each use of AC_DEFUN.
59943
59944 2001-08-12  Jim Meyering  <meyering@lucent.com>
59945
59946         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
59947         Simply `return getcwd (NULL, 0);'.
59948         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
59949         Use 1300 as initial value for length, not PATH_MAX.
59950
59951         * lib/pathmax.h: Clean up cpp syntax.
59952
59953 2001-08-12  Jim Meyering  <meyering@lucent.com>
59954
59955         * lib/gettimeofday.c: New file.
59956         * lib/gtod.h: New file.
59957         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
59958
59959 2001-08-05  Jim Meyering  <meyering@lucent.com>
59960
59961         * m4/jm-macros.m4: Require autoconf-2.52.
59962
59963 2001-08-04  Jim Meyering  <meyering@lucent.com>
59964
59965         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
59966         stmt, to get in sync with glibc.
59967
59968 2001-08-03  Paul Eggert  <eggert@twinsun.com>
59969
59970         The following changes are from gettext 0.10.39 as maintained by
59971         Bruno Haible.
59972
59973         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
59974         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
59975         with inverted sense.  All uses changed.
59976
59977         * lib/mbswidth.c: Don't include <limits.h>.
59978         Include <stdlib.h> and <string.h> unconditionally.
59979         (iswcntrl, mbsinit, ISCNTRL): New macros.
59980         (mbsnwidth): Use K&R style function declarations.
59981         Don't bother checking for MB_LEN_MAX == 1, since the compiler
59982         can optimize it when MB_CUR_MAX == 1.
59983         The width of control characters is zero, not 1.
59984
59985 2001-08-03  Paul Eggert  <eggert@twinsun.com>
59986
59987         The following changes are from gettext 0.10.39 as maintained by
59988         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
59989
59990         * m4/codeset.m4: Upgrade to serial AM1.
59991         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
59992         all uses changed.  Quote first arg of AC_DEFUN.
59993         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
59994
59995         * m4/iconv.m4: Upgrade to serial AM2.
59996         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
59997         Add --with-libconv-prefix.
59998         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
59999         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60000         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60001         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60002         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60003
60004         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60005         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60006         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60007         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60008         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60009         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60010         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60011         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60012         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60013
60014         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60015         string.h any more.
60016
60017         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60018         not the default value.
60019
60020         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
60021         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60022         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
60023         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60024         Also check for iswcntrl, used for wcwidth fallback.
60025         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60026         to Autoconf 2.13.
60027
60028 2001-08-03  Jim Meyering  <meyering@lucent.com>
60029
60030         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60031         as it was in the original.  Reported by Paul Eggert.
60032
60033 2001-07-16  Jim Meyering  <meyering@lucent.com>
60034
60035         * m4/gettimeofday.m4: New file.
60036         Prompted by a report from Bernhard Baehr.
60037
60038 2001-07-15  Jim Meyering  <meyering@lucent.com>
60039
60040         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60041         stuff. Now it's in ../Makefile.cfg.
60042
60043 2001-07-15  Jim Meyering  <meyering@lucent.com>
60044
60045         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60046         (BUILT_SOURCES): Add unlocked-io.h.
60047         (io_functions): Define.
60048         (unlocked-io.h): New rule.
60049         (DISTCLEANFILES): Add unlocked-io.h.
60050         (all-local): Depend on unlocked-io.h, to ensure it is created.
60051
60052         * lib/unlocked-io.hin: New file
60053
60054         * lib/regex.c: Update from glibc.
60055
60056 2001-07-05  Jim Meyering  <meyering@lucent.com>
60057
60058         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60059         recommendation.
60060         (libfetish_a_SOURCES): Put all .h files here instead.
60061         Remove a thus-exposed (better checks in automake) duplicate and
60062         two unnecessary .h files.
60063
60064 2001-07-04  Jim Meyering  <meyering@lucent.com>
60065
60066         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
60067         that generates jm-glibc-io.m4 so that it doesn't trigger any make
60068         distcheck failure.
60069
60070 2001-07-02  Jim Meyering  <meyering@lucent.com>
60071
60072         The following changes were prompted by suggestions from Bruno Haible.
60073
60074         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60075         is now generated.
60076         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60077         definition of EXTRA_DIST.
60078         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60079         ensure that the generated file is created/updated whenever the list
60080         of $(unlocked_functions) is changed.
60081         (jm-glibc-io.m4): New rule.
60082         (unlocked-io.h): New rule -- currently unused.
60083
60084 2001-06-24  Jim Meyering  <meyering@lucent.com>
60085
60086         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60087         unmatched right bracket, rather than kludging it with an extra,
60088         falsely-matching quote in a comment.  Patch by Akim Demaille.
60089
60090 2001-06-11  Jim Meyering  <meyering@lucent.com>
60091
60092         * lib/regex.c: Update from GNU libc.
60093
60094 2001-05-27  Jim Meyering  <meyering@lucent.com>
60095
60096         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60097         Check for ut_type in struct utmp.
60098
60099 2001-05-27  Jim Meyering  <meyering@lucent.com>
60100
60101         * lib/readutmp.h (UT_TYPE): Define.
60102
60103 2001-05-24  Jim Meyering  <meyering@lucent.com>
60104
60105         * lib/argmatch.c: Include "quote.h".
60106         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
60107         quote function.  Reported by Göran Uddeborg.
60108
60109 2001-05-22  Jim Meyering  <meyering@lucent.com>
60110
60111         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60112         now that we use the package-supplied version unconditionally.
60113         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60114
60115 2001-05-21  Jim Meyering  <meyering@lucent.com>
60116
60117         * m4/regex.m4: Change a couple backticks to single quotes to avoid
60118         shell syntax errors.
60119
60120 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60121
60122         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60123
60124 2001-05-20  Paul Eggert  <eggert@twinsun.com>
60125
60126         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60127         Don't bother to check library strftime, since
60128         we'll be using our own my_strftime function anyway.
60129         Define my_strftime instead of strftime.
60130
60131 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
60132
60133         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60134         which is not yet declared.
60135
60136 2001-05-15  Jim Meyering  <meyering@lucent.com>
60137
60138         * m4/regex.m4: Use proper quoting so brackets appear in the test
60139         program.
60140         Reported by, and with help from, Bruno Haible.
60141
60142 2001-05-13  Jim Meyering  <meyering@lucent.com>
60143
60144         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60145         undefined.
60146
60147 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60148
60149         dirname code cleanup.  base_name now behaves more compatibly
60150         with POSIX basename when given file names that have trailing
60151         slashes, and similarly for dir_name.  Add new primitives
60152         base_len and dir_len.  Put the directory-name-related decls
60153         into dirname.h.
60154
60155         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60156         * lib/backupfile.c (base_name): Likewise.
60157         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60158         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60159         * lib/makepath.c (strip_trailing_slashes): Likewise.
60160         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60161         ISSLASH): Likewise.
60162         * lib/rename.c (strip_trailing_slashes): Likewise.
60163         * lib/same.c (base_name): Likewise.
60164         * lib/stripslash.c (ISSLASH): Likewise.
60165
60166         * lib/addext.c: Include <dirname.h> after size_t is defined.
60167         * lib/backupfile.c: Likewise.
60168
60169         * lib/addext.c (addext): Use base_len to trim redundant
60170         trailing slashes instead of doing it ourselves.
60171         But do not trim the last slash if it is not redundant.
60172
60173         * lib/backupfile.c (find_backup_file_name,
60174         max_backup_version): Use base_len instead of rolling it ourselves.
60175         Handle the case of "" and (on DOS) "C:" correctly.
60176
60177         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60178         needed. Include <string.h>, <dirname.h>.
60179         (base_name): Allow file names ending in slashes, other than names
60180         that are all slashes.  In this case, return the basename followed
60181         by the slashes.  This is more general, and can be used in places
60182         where the original base_name purposely had an assertion failure.
60183         (base_len): New function.
60184
60185         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60186         Do not include <assert.h>; no longer needed.
60187         Include xalloc.h.
60188         (memrchr): Remove decl.
60189         (dir_name_r): Remove.
60190         (dir_len): Renamed from dirlen.  All callers changed.
60191         Rewrite in terms of base_name, for simplicity and consistency.
60192         (dir_name): Never return NULL.  All callers changed.
60193         Do not include <stdlib.h> in test program; no longer needed.
60194         return 0; is fine for test program.
60195
60196         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60197         New macros.
60198         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60199
60200         * lib/path-concat.c (path_concat): Use base_len to compute
60201         base length, not strlen; this means we cannot rely on memcpy
60202         to null-terminate.
60203
60204         * lib/same.c (STREQ): Remove.
60205         (same_name): Handle the case where the basename ends in trailing '/'.
60206
60207         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60208         a slash was stripped.  Do not strip the last slash after a
60209         file system prefix.
60210
60211 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60212
60213         * lib/Makefile.am (libfetish_a_SOURCES):
60214         Add strftime.c, since we now compile it on all hosts.
60215
60216         * lib/strftime.c (my_strftime):
60217         Define to nstrftime if emacs, but only if my_strftime is not defined.
60218         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60219         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60220         Add one more extra argument: a nanoseconds value.
60221         All uses changed.
60222         (ns): New macro.
60223         (my_strftime function): Add %N format.
60224         (emacs_strftimeu): Renamed from emacs_strftime,
60225         with extra ut argument.
60226
60227 2001-05-09  Paul Eggert  <eggert@twinsun.com>
60228
60229         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60230
60231 2001-04-21  Jim Meyering  <meyering@lucent.com>
60232
60233         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60234         doesn't interfere.
60235
60236 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60237
60238         * m4/ftruncate.m4: Check for chsize.
60239         Link with ftruncate.o unconditionally if ftruncate is missing.
60240         This was required when cross-compiling to i586-mingw32msvc.
60241
60242 2001-04-08  Jim Meyering  <meyering@lucent.com>
60243
60244         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60245         recomputed; that's necessary when the offset spans a DST transition.
60246         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
60247
60248 2001-04-02  Jim Meyering  <meyering@lucent.com>
60249
60250         * lib/regex.h, regex.c: Update from GNU libc.
60251
60252 2001-03-24  Jim Meyering  <meyering@lucent.com>
60253
60254         * m4/jm-macros.m4: Require autoconf-2.49d.
60255
60256 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
60257
60258         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60259
60260 2001-03-19  Paul Eggert  <eggert@twinsun.com>
60261
60262         * lib/version-etc.c (version_etc_copyright): Update to 2001.
60263
60264 2001-03-17  Jim Meyering  <meyering@lucent.com>
60265
60266         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60267         now that the version in autoconf is equivalent.
60268         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60269
60270         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60271         Suggestion from Akim Demaille.
60272
60273         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60274         (jm_PREREQ_TEMPNAME): New function.
60275
60276 2001-03-16  Paul Eggert  <eggert@twinsun.com>
60277
60278         * lib/tempname.c (uint64_t): Define to uintmax_t if
60279         not defined, and if UINT64_MAX is not defined.
60280         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60281         Reported by John David Anglin.
60282
60283 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
60284
60285         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60286         resolve alias if codeset is empty.
60287         * lib/config.charset (BeOS): Use wildcard syntax.
60288
60289 2001-03-13  Jim Meyering  <meyering@lucent.com>
60290
60291         * lib/path-concat.c (path_concat)
60292         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
60293         concatenating e.g., `C:' and `foo'.
60294         From Bruno Haible.
60295
60296 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60297
60298         * lib/localcharset.c (locale_charset): Don't use
60299         setlocale(LC_CTYPE,NULL). Don't return NULL.
60300         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
60301
60302 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60303
60304         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
60305         support for DOS/DJGPP.
60306
60307 2001-03-01  Paul Eggert  <eggert@twinsun.com>
60308
60309         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
60310         lacks mkstemp.  Compile our own tempname.c if we compile our own
60311         mkstemp.c, as mkstemp relies on tempname.
60312
60313 2001-03-01  Jim Meyering  <meyering@lucent.com>
60314
60315         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
60316         AH_VERBATIM really does output its argument verbatim.
60317
60318 2001-02-28  Paul Eggert  <eggert@twinsun.com>
60319
60320         * lib/Makefile.am (libfetish_a_SOURCES):
60321         Add dup-safer.c, fopen-safer.c.
60322         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
60323
60324         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
60325         * lib/unistd-safer.h: New files.
60326
60327 2001-02-25  Paul Eggert  <eggert@twinsun.com>
60328
60329         The mkstemp replacement is taken from glibc 2.2.2, with some
60330         portability fixes for use outside glibc, as follows:
60331
60332         * lib/tempname.c (struct_stat64): New macro.
60333         (direxists, __gen_tempname): Use it.
60334         This avoids a portability problem with Solaris 8.
60335
60336         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
60337         (<stddef.h>, <stdint.h>, <string.h>):
60338         Include only if STDC_HEADERS || _LIBC.
60339         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
60340         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
60341         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
60342         (__set_errno): Define this macro if <errno.h> doesn't.
60343         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
60344         Define these macros if <stdio.h> doesn't.
60345         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
60346         Define these macros if <sys/stat.h>
60347         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
60348         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
60349         __xstat64): Define if not _LIBC.
60350         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
60351         (__gen_tempname): Invoke gettimeofday only if
60352         HAVE_GETTIMEOFDAY || _LIBC;
60353         otherwise, fall back on plain "time".
60354         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
60355
60356         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
60357
60358         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
60359
60360 2001-02-18  Paul Eggert  <eggert@twinsun.com>
60361
60362         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
60363
60364 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60365
60366         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
60367         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
60368         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
60369         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60370
60371 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60372
60373         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
60374         Remove workaround macros for hosts that have mbrtowc but not
60375         mbstate_t, as we now insist on proper declarations for both
60376         before using mbrtowc.
60377
60378 2001-02-17  Jim Meyering  <meyering@lucent.com>
60379
60380         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
60381         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
60382         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
60383         UnixWare 7.1.1.
60384
60385         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
60386         rather than AC_CACHE_VAL.
60387
60388 2001-02-17  Jim Meyering  <meyering@lucent.com>
60389
60390         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
60391         around included file name.
60392
60393         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
60394
60395         * lib/strftime.c: Update from GNU libc (the only changes were to
60396         comments).
60397
60398 2001-02-17  Jim Meyering  <meyering@lucent.com>
60399
60400         * lib/regex.c: Update from libc.
60401
60402 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
60403
60404         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
60405         clash.
60406
60407 2001-02-16  Paul Eggert  <eggert@twinsun.com>
60408
60409         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
60410         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
60411         Reported by Mark Hounschell via Paul Eggert.
60412
60413 2001-02-07  Jim Meyering  <meyering@lucent.com>
60414
60415         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
60416
60417 2001-02-05  Jim Meyering  <meyering@lucent.com>
60418
60419         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
60420         it includes the patch required for `large file' support with at least
60421         HP-UX's 10.20 /bin/cc.
60422
60423 2001-02-03  Jim Meyering  <meyering@lucent.com>
60424
60425         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
60426         AS_IF, now that it works once again (mysteriously).
60427         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60428
60429 2001-01-30  Jim Meyering  <meyering@lucent.com>
60430
60431         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
60432         * m4/chown.m4: Rename conftestchown to conftest.chown.
60433         * m4/rename.m4: s/conftestdir/conftest.d1/ and
60434         s/conftestdir2/conftest.d2/.
60435         * m4/utimes.m4: s/conftestdata/conftest.data/
60436         Inspired by Pavel Roskin's change in autoconf.
60437
60438 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
60439
60440         * lib/config.charset: Update for FreeBSD 4.2.
60441
60442 2001-01-27  Jim Meyering  <meyering@lucent.com>
60443
60444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
60445         a use of AS_IF.
60446         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60447
60448 2001-01-26  Jim Meyering  <meyering@lucent.com>
60449
60450         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
60451         quotearg.c includes it.
60452
60453 2001-01-26  Jim Meyering  <meyering@lucent.com>
60454
60455         * lib/quotearg.c: Include stddef.h.
60456         * lib/quote.c: Include stddef.h.
60457         Reported by Axel Kittenberger.
60458
60459         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
60460         line in double quotes so that it evokes a better diagnostic.
60461         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
60462         Reported by Axel Kittenberger.
60463
60464 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
60465
60466         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
60467         as if it was a `charset'.
60468
60469 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60470
60471         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
60472         has const.
60473
60474 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60475
60476         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
60477         to avoid a warning.  Add back 'const' to inptr.
60478
60479 2001-01-20  Jim Meyering  <meyering@lucent.com>
60480
60481         Be sure that headers are checked before used in code compiled
60482         for the type checks.
60483         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
60484         In place of that, invoke jm_CHECK_ALL_TYPES.
60485         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
60486         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
60487         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
60488         The check for ssize_t was mistakenly run before the test for unistd.h.
60489
60490         The configure-time check for stdbool.h was missing.
60491         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
60492         (jm_PREREQ_HASH): New function.
60493
60494 2001-01-17  Jim Meyering  <meyering@lucent.com>
60495
60496         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
60497         for autoconf-2.49c.
60498         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
60499
60500 2001-01-16  Jim Meyering  <meyering@lucent.com>
60501
60502         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
60503         From Bruno Haible.
60504
60505 2001-01-14  Jim Meyering  <meyering@lucent.com>
60506
60507         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
60508         foo and bar.  Create conftestdir/ in the script, not in the C code.
60509         Remove directories in the script, not in the C code.
60510         Remove conftestdir{,2} before trying to create the directory.
60511         Make the entire configure script fail if the mkdir fails.
60512
60513 2001-01-14  Jim Meyering  <meyering@lucent.com>
60514
60515         * lib/rename.c: New file.  From Volker Borchert.
60516         Include stdlib.h, string.h or strings.h, and xalloc.h.
60517         Use strip_trailing_slashes rather than open-coding it.
60518
60519 2001-01-03  Paul Eggert  <eggert@twinsun.com>
60520
60521         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
60522
60523 2001-01-03  Jim Meyering  <meyering@lucent.com>
60524
60525         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
60526         of local `inptr' to avoid warning with some system declarations of
60527         iconv.
60528
60529 2001-01-02  Volker Borchert  <bt@teknon.de>
60530
60531         * m4/rename.m4: New file.
60532         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
60533
60534 2001-01-01  Jim Meyering  <meyering@lucent.com>
60535
60536         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
60537         even on systems with utmpx.h.  It's necessary for the declaration of
60538         utmp's ut_user member.  Reported by Andreas Jaeger.
60539
60540         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
60541         available. They are required for the declarations of getgrgid and
60542         getpwuid resp.
60543         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
60544         Reported by Andreas Jaeger.
60545
60546 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
60547
60548         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
60549         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
60550         so `make install' also works in VPATH builds.
60551
60552 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
60553
60554         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
60555         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
60556         can be used in subdirectories.
60557
60558 2000-12-29  Paul Eggert  <eggert@twinsun.com>
60559
60560         * lib/modechange.c: Do not assume that mode_t uses the
60561         traditional octal encoding.  E.g. "chmod 1 FOO" should set
60562         the other-execute bit of FOO even if S_IXOTH != 1.
60563
60564         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
60565         WOTH, XOTH, ALLM): New macros.
60566         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
60567          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
60568         Use them.
60569         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
60570         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
60571         (mode_compile):
60572         No need to use uintmax_t; unsigned long is long enough.
60573         Don't bother to get suffix since we don't use it.
60574
60575 2000-12-26  Jim Meyering  <meyering@lucent.com>
60576
60577         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
60578         better with autoheader.
60579
60580 2000-12-24  Jim Meyering  <meyering@lucent.com>
60581
60582         * lib/hash.c (is_prime): Return explicit boolean values.
60583         (hash_get_first): Return NULL to appease Irix5.6's 89.
60584         Reported by Nelson Beebe.
60585
60586 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
60587
60588         * lib/localcharset.c (locale_charset): Add support for Win32.
60589
60590 2000-12-18  Paul Eggert  <eggert@twinsun.com>
60591
60592         * lib/physmem.h, lib/physmem.c: New files.
60593
60594         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
60595         (noinst_HEADERS): Add physmem.h.
60596
60597         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
60598         't' for compatibility with Solaris 8 sort.
60599
60600 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
60601
60602         * lib/config.charset: Add support for BeOS.
60603
60604 2000-12-17  Jim Meyering  <meyering@lucent.com>
60605
60606         * m4/dos.m4 (jm_AC_DOS): New file and macro.
60607         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
60608
60609 2000-12-16  Jim Meyering  <meyering@lucent.com>
60610
60611         This bug had a serious impact on chown: `chown N:M FILE' (for integer
60612         N and M) would have treated it like `chown N:N FILE'.
60613
60614         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
60615
60616 2000-12-16  Jim Meyering  <meyering@lucent.com>
60617
60618         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
60619         SHELLS_FILE to a file name that's useful on djgpp systems.
60620         Include stdlib.h.
60621         (ADDITIONAL_DEFAULT_SHELLS): Define.
60622         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
60623         Based mostly on a patch from Prashant TR.
60624
60625 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
60626
60627         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
60628         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
60629         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
60630
60631 2000-12-08  Andreas Schwab  <schwab@suse.de>
60632
60633         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
60634         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
60635
60636 2000-12-07  Jim Meyering  <meyering@lucent.com>
60637
60638         * lib/stripslash.c (ISSLASH): Define.
60639         (strip_trailing_slashes): Use ISSLASH rather than comparing against
60640         `/'.
60641         From Prashant TR.
60642
60643         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
60644         (dir_name_r): Declare this function as static.
60645         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
60646         manifest itself on a name containing a mix of slashes and
60647         backslashes.
60648         Make this function work with names starting with a DOS-style
60649         drive letter and colon prefix.
60650         (dir_name): Append `.' if necessary.
60651         Based mostly on patches from Prashant TR and Eli Zaretskii.
60652
60653         * lib/dirname.h (dir_name_r): Remove prototype.
60654
60655 2000-12-06  Paul Eggert  <eggert@twinsun.com>
60656
60657         * m4/off_t-format.m4: Remove this file.
60658         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
60659
60660 2000-12-06  Jim Meyering  <meyering@lucent.com>
60661
60662         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
60663         replacement strtoull, we may well need the replacement strtoul, too.
60664         Check for declarations of strtoul and strtoull.
60665         Check for strtol.  Mainly as a cue to cause automake to include
60666         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
60667         Check for limits.h -- strtol.c needs it.
60668
60669 2000-12-05  Jim Meyering  <meyering@lucent.com>
60670
60671         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
60672
60673 2000-12-04  Jim Meyering  <meyering@lucent.com>
60674
60675         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
60676         Also include memory.h, stdlib.h, unistd.h if appropriate.
60677         Reported by Andreas Jaeger (conflicting declaration of malloc).
60678
60679 2000-12-02  Jim Meyering  <meyering@lucent.com>
60680
60681         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
60682         * m4/jm-macros.m4 (jm_MACROS): require it.
60683
60684 2000-12-02  Jim Meyering  <meyering@lucent.com>
60685
60686         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
60687
60688 2000-12-01  Paul Eggert  <eggert@twinsun.com>
60689
60690         * lib/memrchr.c: Include <config.h> before any system include file.
60691
60692 2000-11-30  Jim Meyering  <meyering@lucent.com>
60693
60694         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
60695
60696 2000-11-30  Jim Meyering  <meyering@lucent.com>
60697
60698         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
60699
60700 2000-11-29  Paul Eggert  <eggert@twinsun.com>
60701
60702         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
60703
60704 2000-11-26  Jim Meyering  <meyering@lucent.com>
60705
60706         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
60707
60708 2000-11-22  Paul Eggert  <eggert@twinsun.com>
60709
60710         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
60711         size of (size_t) -1; it's not portable.
60712
60713 2000-11-17  Jim Meyering  <meyering@lucent.com>
60714
60715         * lib/strstr.c: Update from GNU libc.
60716
60717 2000-11-17  Akim Demaille  <akim@epita.fr>
60718
60719         * lib/obstack.h: Formatting changes.
60720         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
60721         prevent type checking.
60722         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
60723         cast the value to (void *): assigning a `foo *' to a `void *'
60724         variable is valid.
60725         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
60726
60727 2000-11-16  Jim Meyering  <meyering@lucent.com>
60728
60729         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
60730
60731 2000-11-11  Jim Meyering  <meyering@lucent.com>
60732
60733         * lib/error.c: Add a couple #includes, merging from GNU libc version.
60734
60735 2000-11-10  Jim Meyering  <meyering@lucent.com>
60736
60737         * lib/obstack.h: Update from GNU libc.
60738         * lib/obstack.c: Likewise.
60739
60740 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
60741
60742         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
60743
60744 2000-11-06  Paul Eggert  <eggert@twinsun.com>
60745
60746         * lib/getusershell.c (setusershell): Use rewind rather than
60747         fseek/fseeko, to avoid configuration hassles with fseeko.
60748         Don't bother opening SHELLS_FILE if shellstream is NULL;
60749         it's not necessary.
60750
60751 2000-11-05  Jim Meyering  <meyering@lucent.com>
60752
60753         * lib/makepath.h (make_dir): Declare.
60754         * lib/makepath.c (make_dir): Remove `static' attribute.
60755         Tweak a comment.
60756
60757 2000-11-04  Jim Meyering  <meyering@lucent.com>
60758
60759         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
60760
60761 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
60762
60763         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
60764         last one in a bucket, advance to the next bucket.
60765
60766 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
60767
60768         * lib/fnmatch.c: Do not comment out all the code if we are using
60769         the GNU C library, because in some cases we are replacing buggy
60770         code in the GNU C library itself.
60771
60772 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
60773
60774         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
60775         (regex_compile): Catch bogus \(\1\).
60776
60777 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60778
60779         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
60780         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
60781         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
60782
60783 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60784
60785         * lib/error.h, getline.h, modechange.h:
60786         Remove "2000" from Copyright line, as the file hasn't been
60787         changed this year other than in the copyright notice.
60788
60789         * lib/xalloc.h: Add "2000" to Copyright line, as this file
60790         was changed this year.
60791
60792 2000-10-29  Jim Meyering  <meyering@lucent.com>
60793
60794         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
60795         renaming.
60796         * m4/ls-mntd-fs.m4: Likewise
60797
60798 2000-10-29  Jim Meyering  <meyering@lucent.com>
60799
60800         * lib/xstat.in: Fix grammar in comment.
60801
60802 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
60803
60804         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
60805         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
60806         doesn't define __restrict_arr.
60807
60808 2000-10-28  Jim Meyering  <meyering@lucent.com>
60809
60810         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
60811         (jm_PREREQ_MEMCHR): New function.
60812
60813 2000-10-28  Jim Meyering  <meyering@lucent.com>
60814
60815         * lib/memchr.c: Update from libc.
60816         Adjust for portability:
60817         [HAVE_STDLIB_H]: Include stdlib.h.
60818         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
60819         Undef __memchr, too.
60820         [!weak_alias]: Define __memchr to memchr.
60821
60822         * lib/regex.c: Update from libc.
60823         * lib/regex.h: Likewise.
60824         * lib/getopt1.c: Likewise.
60825         * lib/memcmp.c: Likewise.
60826
60827         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
60828         Avoid using fseek, when possible -- it's broken by design.
60829         Patch by Ulrich Drepper.
60830
60831 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
60832
60833         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
60834         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
60835         Giving in to popular pressure to shut up the compiler with casts.
60836
60837 2000-10-26  Jim Meyering  <meyering@lucent.com>
60838
60839         * lib/strftime.c: Update from libc.
60840
60841 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
60842
60843         * regex.c: More `unsigned char' -> `re_char' changes.
60844         Also change several `int' into `re_wchar_t'.
60845         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
60846         (PUSH_FAILURE_POINTER): Don't cast any more.
60847         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
60848         We want GCC to complain, since this piece of code makes
60849         re_match non-reentrant, which *should* be fixed.
60850         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
60851         (EXTEND_BUFFER): Use RETALLOC.
60852         (SET_LIST_BIT): Don't cast.
60853         (re_wchar_t): New type.
60854         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
60855         that those two functions will always properly return.
60856         (IMMEDIATE_QUIT_CHECK): Cast to void.
60857         (analyse_first): Use recursion rather than an explicit stack.
60858         (re_compile_fastmap): Can't fail anymore.
60859         (re_search_2): Don't check re_compile_fastmap for failure.
60860         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
60861         Now also sets the new value (passed in a new argument).
60862         (re_match_2_internal): Use it.
60863         Also, use a new var `reg' of type size_t when looping through regs
60864         rather than reuse the inappropriate `mcnt'.
60865
60866 2000-10-25  Jim Meyering  <meyering@lucent.com>
60867
60868         * lib/obstack.c: Update from libc.
60869
60870 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
60871
60872         * regex.c (regex_compile): Change the way of handling a range from
60873         a char less than 256 to a char not less than 256.
60874
60875 2000-10-24  Andrew Innes  <andrewi@gnu.org>
60876
60877         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
60878         NT-Emacs only.
60879         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
60880         so that re_search functions only quit when callers expect them to.
60881
60882 2000-10-23  Jim Meyering  <meyering@lucent.com>
60883
60884         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
60885         wrong.  That set_locale call must not have any side effects.
60886         From Paul Eggert.
60887
60888 2000-10-22  Jim Meyering  <meyering@lucent.com>
60889
60890         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
60891         [CYCLIC]: Remove now-unused definition.
60892
60893         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
60894         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
60895         Suggestion from Ulrich Drepper.
60896
60897 2000-10-21  Jim Meyering  <meyering@lucent.com>
60898
60899         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
60900         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
60901         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
60902
60903 2000-10-21  Jim Meyering  <meyering@lucent.com>
60904
60905         * lib/dirname.c (memrchr): Declare if necessary.
60906         (dir_name): Remove the restriction that there be no
60907         trailing slashes.  Now, this code skips past them, effectively
60908         ignoring them.
60909         [TEST_DIRNAME] (main): New unit tests.
60910
60911         * lib/memrchr.c: New file from GNU libc.
60912         Undef __memrchr, too.
60913         [!weak_alias]: Define __memrchr to memrchr.
60914         Guard weak_alias use with `#ifdef weak_alias'.
60915
60916 2000-10-21  Jim Meyering  <meyering@lucent.com>
60917
60918         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
60919         (dir_name): Use dir_name_r.
60920         * lib/dirname.h (dir_name_r): Declare it.
60921
60922 2000-10-17  Jim Meyering  <meyering@lucent.com>
60923
60924         * lib/quote.h (PARAMS): Define and use.
60925         Reported by Akim Demaille.
60926
60927         * lib/getopt.c: Update from libc.
60928
60929 2000-10-16  Jim Meyering  <meyering@lucent.com>
60930
60931         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
60932         setlocale.
60933         From Jan Fedak.
60934
60935 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
60936
60937         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
60938
60939 2000-09-25  Jim Meyering  <meyering@lucent.com>
60940
60941         * lib/md5.h (rol): Define (from GnuPG).
60942
60943         * lib/sha.c: Give credit (GnuPG) where due.
60944         (M): Use rol rather than open-coding it.
60945         Add a FIXME comment.
60946
60947 2000-09-21  Jim Meyering  <meyering@lucent.com>
60948
60949         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
60950         Reported by Michael Stone.
60951
60952 2000-09-20  Jim Meyering  <meyering@lucent.com>
60953
60954         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
60955         (noinst_HEADERS): Add sha.h.
60956         Based on code from Scott G. Miller and from GnuPG.
60957
60958 2000-09-18  Jim Meyering  <meyering@lucent.com>
60959
60960         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
60961         LIBS. Otherwise, everyone ends up linking with -lelf for some
60962         configurations.
60963         Reported by Mike Stone.
60964
60965 2000-09-15  Jim Meyering  <meyering@lucent.com>
60966
60967         * lib/regex.c: Update from libc.
60968
60969 2000-09-10  Jim Meyering  <meyering@lucent.com>
60970
60971         * lib/getopt.c (_getopt_internal): Update from glibc.
60972
60973 2000-09-09  Jim Meyering  <meyering@lucent.com>
60974
60975         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
60976         think it should be used as a general replacement for isascii.
60977         * lib/fnmatch.c: Likewise.
60978         * lib/mbswidth.c: Likewise
60979         * lib/regex.c: Likewise.
60980
60981         Don't use atoi.
60982         * lib/userspec.c: Include sys/param.h and limits.h.
60983         Include xstrtol.h.
60984         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60985         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
60986         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
60987         UID, GID.  Check range.
60988
60989 2000-09-06  Jim Meyering  <meyering@lucent.com>
60990
60991         * lib/getopt.c (_getopt_internal): Update from glibc.
60992
60993 2000-08-30  Jim Meyering  <meyering@lucent.com>
60994
60995         * lib/strftime.c: Merge in changes from GNU libc.
60996
60997 2000-08-26  Jim Meyering  <meyering@lucent.com>
60998
60999         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61000         * m4/fpending.m4: New file.
61001
61002 2000-08-26  Jim Meyering  <meyering@lucent.com>
61003
61004         * lib/closeout.c: Include "__fpending.h".
61005         (close_stdout_status): Return right away if there's nothing to flush.
61006
61007         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61008         * lib/__fpending.c: New file.
61009         * lib/__fpending.h: New file.
61010
61011 2000-08-20  Jim Meyering  <meyering@lucent.com>
61012
61013         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61014         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
61015         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
61016
61017 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
61018
61019         Improve fileutils installation on systems where running
61020         programs (like install) can't be unlinked.
61021         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61022         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61023
61024 2000-08-07  Paul Eggert  <eggert@twinsun.com>
61025
61026         Standardize on "memory exhausted" instead of "Memory exhausted"
61027         or "virtual memory exhausted".
61028         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61029         "virtual memory exhausted".
61030         * lib/same.c (same_name): Invoke xalloc_die instead of printing
61031         our own message.
61032         * lib/userspec.c (parse_user_spec): Likewise.
61033         * lib/bumpalloc.h: comment fix
61034         * lib/same.c, userspec.c: Include xalloc.h.
61035
61036         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61037         not char *const and pointing to a constant array.
61038         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61039         (xrealloc): Comment fix.
61040
61041         * lib/userspec.c (parse_user_spec):
61042         Don't translate a message until just before returning,
61043         to avoid unnecessary translation.
61044
61045 2000-08-07  Jim Meyering  <meyering@lucent.com>
61046
61047         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61048         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61049         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61050         getgroups.c, gethostname.c, getopt.h, group-member.c,
61051         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61052         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61053         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61054         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61055         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61056         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61057         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61058         yesno.c: Back out Copyright date changes for each file with no change
61059         this year.  This eases coordination with other programs using the same
61060         source code modules.  From Paul Eggert.
61061
61062 2000-08-06  Paul Eggert  <eggert@twinsun.com>
61063
61064         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61065         not char, for compatibility with glibc 2.1.3 strftime.c.
61066
61067 2000-08-03  Greg McGary  <greg@mcgary.org>
61068
61069         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61070         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61071         (EXTEND_BUFFER): Use them.
61072
61073 2000-08-01  Jim Meyering  <meyering@lucent.com>
61074
61075         * lib/dirname.c (ISSLASH): Define.
61076         (BACKSLASH_IS_PATH_SEPARATOR): Define.
61077         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61078         both `\' and `/' may be use as path separators.
61079         Based on a patch from Prashant TR.
61080
61081 2000-07-31  Paul Eggert  <eggert@twinsun.com>
61082
61083         * lib/quotearg.c (quotearg_n_options): Don't make the initial
61084         slot vector a constant, since it might get modified.
61085
61086 2000-07-31  Jim Meyering  <meyering@lucent.com>
61087
61088         * lib/xmalloc.c: Use `virtual memory exhausted', not
61089         `Memory exhausted'.
61090         * lib/obstack.c (print_and_abort): Likewise.
61091
61092 2000-07-30  Paul Eggert  <eggert@twinsun.com>
61093
61094         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61095         buffer, so that the caller can always quote one small
61096         component of a "memory exhausted" message in slot 0.
61097         From a suggestion by Jim Meyering.
61098
61099 2000-07-30  Jim Meyering  <meyering@lucent.com>
61100
61101         * lib/makepath.c (make_path): Quote the other instance, too.
61102
61103         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61104         (STATIC_BUF_SIZE): Define.
61105         (quotearg_n_options): Use only statically allocated storage when
61106         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61107         than STATIC_BUF_SIZE.
61108
61109 2000-07-29  Jim Meyering  <meyering@lucent.com>
61110
61111         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61112         * lib/dirname.c (dir_name): Likewise.
61113
61114         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61115         `/'.
61116
61117         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61118         (dir_name): Assert that there are no trailing slashes.
61119
61120 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
61121
61122         * lib/mbswidth.h (mbswidth): Add a flags argument.
61123         (mbswidth): New declaration.
61124         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61125         * lib/mbswidth.c (mbswidth): Add a flags argument.
61126         (mbsnwidth): New function.
61127
61128 2000-07-24  Jim Meyering  <meyering@lucent.com>
61129
61130         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
61131
61132 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61133
61134         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61135
61136 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61137
61138         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61139         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61140         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61141         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61142         invoke multibyte primitives.
61143
61144 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61145
61146         * lib/quotearg.c:
61147         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61148         so that mbstate_t is always defined.
61149
61150         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61151         be 1 in at least one GCC installation, and this configuration
61152         error is likely to be common.  Ignoring MB_LEN_MAX hurts
61153         performance on hosts that have mbrtowc but have only unibyte
61154         locales, but I assume these hosts are rare.
61155
61156 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61157
61158         * lib/mbswidth.c (_XOPEN_SOURCE):
61159         Don't define; this causes problems on Solaris 7.
61160         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61161
61162 2000-07-23  Jim Meyering  <meyering@lucent.com>
61163
61164         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61165         too: getgrgid, getpwuid, getuid.
61166
61167 2000-07-23  Jim Meyering  <meyering@lucent.com>
61168
61169         * lib/basename.c (base_name): Add an assertion.
61170
61171 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
61172
61173         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61174         shadow its mbsinit function.
61175
61176 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61177
61178         * lib/mbswidth.h: New file.
61179         * lib/mbswidth.c: New file.
61180         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61181         (noinst_HEADERS): Add mbswidth.h.
61182
61183 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61184
61185         * lib/config.charset: Add support for FreeBSD. Improve support for
61186         HP-UX and IRIX 6.
61187
61188 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
61189
61190         * m4/mbswidth.m4: New file.
61191         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61192
61193 2000-07-15  Jim Meyering  <meyering@lucent.com>
61194
61195         * lib/makepath.c: Include quote.h.
61196         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61197         corresponding argument in a `quote (...)' call.
61198         Give better diagnostics.
61199
61200         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61201         (noinst_HEADERS): Add quote.h.
61202
61203         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
61204         from tar's src/misc.c.
61205         * lib/quote.h: New file.  Prototypes for same.
61206
61207 2000-07-14  Paul Eggert  <eggert@twinsun.com>
61208
61209         From a suggestion by Bruno Haible.
61210         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61211         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61212         to decide whether to define the BeOS workaround macro;
61213         this adjusts to the change to AC_MBSTATE_T.
61214
61215 2000-07-14  Jim Meyering  <meyering@lucent.com>
61216
61217         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61218         jm_AC_TYPE_UINTMAX_T.
61219
61220 2000-07-13  Paul Eggert  <eggert@twinsun.com>
61221
61222         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61223
61224         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61225         quotearg_buffer_restyled): Add support for
61226         clocale_quoting_style.  Undo previous change to
61227         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61228         and "{RIGHT QUOTATION MARK}" msgids.
61229
61230 2000-07-10  Paul Eggert  <eggert@twinsun.com>
61231
61232         From a suggestion by Bruno Haible.
61233         * m4/mbstate_t.m4 (AC_MBSTATE_T):
61234         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
61235         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61236         and mbstate_t, to a single-part test that simply defines mbstate_t.
61237         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61238         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61239
61240 2000-07-10  Jim Meyering  <meyering@lucent.com>
61241
61242         * m4/strerror_r.m4: Mirror the correction made in autoconf.
61243
61244         * m4/gnu-source.m4: Output to confdefs.h directly.
61245         Suggestion from Akim Demaille.
61246
61247 2000-07-09  Paul Eggert  <eggert@twinsun.com>
61248
61249         The old behavior of quoting `like this' doesn't look good with
61250         newer, ISO-style fonts.  See:
61251         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61252
61253         Instead, quote "like this" by default.  Let the translator
61254         tailor the locale-specific quoting behavior by providing
61255         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61256
61257         * lib/quotearg.c (N_): New macro.
61258         (gettext_default): New function.
61259         (quotearg_buffer_restyled): Use
61260         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61261         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61262
61263 2000-07-09  Jim Meyering  <meyering@lucent.com>
61264
61265         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61266         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
61267
61268         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61270
61271 2000-07-09  Jim Meyering  <meyering@lucent.com>
61272
61273         * lib/Most files: Update copyright dates to include 2000.
61274
61275 2000-07-08  Jim Meyering  <meyering@lucent.com>
61276
61277         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61278         if not defined.
61279         (xgethostname): Remove now-unnecessary #ifdef.
61280         Move declaration of `err' into loop where it's used.
61281
61282 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61283         and Bruno Haible  <haible@clisp.cons.org>
61284
61285         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61286         only if the test for an object-type mbstate_t fails.  This
61287         prevents us from mistakenly reporting that mbstate_t is a
61288         system object type after we "#define mbstate_t int" to work
61289         around its lack.
61290
61291 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61292         and Bruno Haible  <haible@clisp.cons.org>
61293
61294         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
61295
61296 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61297
61298         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
61299         to strerror_r.
61300         Include <ctype.h> for use of isalpha.
61301
61302 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61303
61304         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
61305         by allocating a larger buffer. Test the gethostname return value for
61306         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
61307         returns an error and ENAMETOOLONG isn't defined.
61308
61309 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61310
61311         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
61312         dimension.
61313
61314 2000-07-04  Jim Meyering  <meyering@lucent.com>
61315
61316         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
61317         of the deprecated AC_CHECKING.
61318
61319 2000-07-04  Jim Meyering  <meyering@lucent.com>
61320
61321         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
61322         Reported by Bruno Haible.
61323
61324 2000-07-04  Jim Meyering  <meyering@lucent.com>
61325
61326         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
61327         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
61328         lacks mbrtowc.
61329
61330 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61331
61332         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
61333         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
61334
61335 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61336         and Bruno Haible  <haible@clisp.cons.org>
61337
61338         * lib/quotearg.c (mbrtowc):
61339         Assign to *pwc, and return 1 only if result is nonzero.
61340         (iswprint): Use ISPRINT when substituting our own mbrtowc.
61341
61342 2000-07-03  Jim Meyering  <meyering@lucent.com>
61343
61344         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
61345
61346 2000-07-03  Jim Meyering  <meyering@lucent.com>
61347
61348         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
61349         This is necessary to get a definition of e.g., UTMP_FILE on
61350         HP-UX 10.20.
61351         From Bob Proulx.
61352
61353 2000-07-02  Jim Meyering  <meyering@lucent.com>
61354
61355         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
61356
61357         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
61358         AC_LIBOBJ(function_name).
61359         * m4/chown.m4: Likewise.
61360         * m4/fnmatch.m4: Likewise.
61361         * m4/ftruncate.m4: Likewise.
61362         * m4/getgroups.m4: Likewise.
61363         * m4/getline.m4: Likewise.
61364         * m4/group-member.m4: Likewise.
61365         * m4/jm-macros.m4: Likewise.
61366         * m4/lstat.m4: Likewise.
61367         * m4/malloc.m4: Likewise.
61368         * m4/memcmp.m4: Likewise.
61369         * m4/nanosleep.m4: Likewise.
61370         * m4/putenv.m4: Likewise.
61371         * m4/realloc.m4: Likewise.
61372         * m4/regex.m4: Likewise.
61373         * m4/stat.m4: Likewise.
61374         * m4/strftime.m4: Likewise.
61375
61376 2000-07-02  Jim Meyering  <meyering@lucent.com>
61377
61378         * lib/quotearg.c (mbstate_t): Don't define here.
61379
61380 2000-07-02  Jim Meyering  <meyering@lucent.com>
61381
61382         * lib/nanosleep.c (SIGCONT): Define if not already defined.
61383
61384 2000-07-01  Jim Meyering  <meyering@lucent.com>
61385
61386         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
61387
61388 2000-07-01  Jim Meyering  <meyering@lucent.com>
61389
61390         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
61391         problem.
61392
61393 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61394
61395         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
61396         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
61397
61398 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61399
61400         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
61401         per change in ../m4/ls-mntd-fs.m4.
61402         (read_filesystem_list): Ignore symbolic links.
61403
61404 2000-06-29  Jim Meyering  <meyering@lucent.com>
61405
61406         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
61407         for declaration of strcmp.
61408
61409         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
61410
61411         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
61412         Avoid warning by casting result to `char *' to remove `const'.
61413
61414 2000-06-28  Jim Meyering  <meyering@lucent.com>
61415
61416         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
61417         included by quotearg.c, for which we perform this test.  From
61418         Bruno Haible.
61419
61420 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61421
61422         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
61423         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
61424         <utmpx.h> exists, put readutmp.o into LIBOBJS.
61425
61426 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61427
61428         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
61429
61430 2000-06-26  Paul Eggert  <eggert@twinsun.com>
61431
61432         savedir now sets errno on failure and invokes xmalloc to get memory.
61433         Fix a couple of other minor bugs while we're at it.
61434
61435         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
61436         (NAMLEN): Remove macro.
61437         (malloc, realloc): Remove decls.
61438         (stpcpy): Likewise.
61439         ("xalloc.h"): Include.
61440         (NAME_SIZE_DEFAULT): New macro.
61441         (savedir): Use xmalloc / xrealloc to allocate memory.
61442         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
61443         Skip "" directory entries.
61444         Use strlen to calculate directory entry length, since the old method
61445         is rarely used these days and isn't worth supporting.
61446         Don't use a pointer after freeing it.
61447         Check for integer overflow when calculating allocation size.
61448         Use memcpy to copy entries, instead of stpcpy.
61449         Set errno properly when returning NULL.
61450         Check for readdir error.
61451
61452 2000-06-26  Jim Meyering  <meyering@lucent.com>
61453
61454         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
61455
61456 2000-06-25  Jim Meyering  <meyering@lucent.com>
61457
61458         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
61459         Linux header bug when _XOPEN_SOURCE is defined to 500.
61460
61461 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61462
61463         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
61464         deficiency.
61465
61466 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61467
61468         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
61469         Include xalloc.h.
61470         Don't include <stdlib.h>.  Don't declare malloc, realloc.
61471
61472 2000-06-24  Jim Meyering  <meyering@lucent.com>
61473
61474         * m4/strerror_r.m4: Revive this file -- to try out an experimental
61475         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
61476         for which strerror does return char*, but which lacks a conveniently
61477         accessible declaration of the function.  If the compile-test says
61478         strerror_r doesn't work, then resort to a `run'-test that works on
61479         BeOS and segfaults on DEC Unix.
61480
61481 2000-06-24  Jim Meyering  <meyering@lucent.com>
61482
61483         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
61484
61485 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61486
61487         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
61488         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
61489
61490 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61491
61492         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
61493         (mbrtowc, mbstate_t): Define substitutes if
61494         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
61495         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
61496         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
61497
61498 2000-06-23  Jim Meyering  <meyering@lucent.com>
61499
61500         * m4/afs.m4: Add missing AC_MSG_RESULT.
61501         Reported by Bruno Haible.
61502
61503         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
61504         Suggestion from Bruno Haible.
61505
61506 2000-06-23  Jim Meyering  <meyering@lucent.com>
61507
61508         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
61509
61510 2000-06-21  Jim Meyering  <meyering@lucent.com>
61511
61512         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
61513
61514 2000-06-21  Jim Meyering  <meyering@lucent.com>
61515
61516         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
61517         (noinst_HEADERS): Add getstr.h.
61518
61519         * lib/getline.c (getstr): Move into a separate file.
61520         * lib/getstr.c (getstr): New file, extracted from getline.c, with
61521         the following changes: new parameter, delim2; both delim[12]
61522         parameters have type `int', not `char'.  The latter would lose
61523         with 8-bit delimiters.
61524         * lib/getstr.h: New file.
61525
61526 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61527
61528         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
61529         than 1024, return a memory chunk of least possible size, instead
61530         of size PATH_MAX + 2. In the loop, increment the size proportionally.
61531         Use free/xmalloc instead of xrealloc to avoid copying for very long
61532         paths.
61533
61534 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61535
61536         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
61537         the empty string.
61538
61539 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61540
61541         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
61542         address, not strdup.  Include <stdlib.h> and don't declare free().
61543
61544 2000-06-19  Jim Meyering  <meyering@lucent.com>
61545
61546         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
61547
61548 2000-06-18  Jim Meyering  <meyering@lucent.com>
61549
61550         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
61551
61552         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
61553         `checking whether...' message to be consistent with that of the
61554         lstat test.
61555
61556 2000-06-18  Jim Meyering  <meyering@lucent.com>
61557
61558         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
61559         Besides, these days every porting target provides a mkdir function.
61560
61561         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
61562         needed. (this snippet comes from src/system.h).
61563
61564 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
61565
61566         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
61567
61568 2000-06-15  Paul Eggert  <eggert@twinsun.com>
61569
61570         * lib/human.c (adjust_value): New function.
61571         (human_readable_inexact): Apply rounding style even when
61572         printing approximate values.
61573
61574 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61575
61576         * lib/human.c (human_readable_inexact): Allow an input block
61577         size that is not a multiple of the output block size, and vice versa.
61578         Reported by Piergiorgio Sartor.
61579
61580 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61581
61582         * lib/getdate.y (get_date): Apply relative times after time
61583         zone indicator, not before.  Reported by Todd A. Jacobs.
61584
61585 2000-06-13  Jim Meyering  <meyering@lucent.com>
61586
61587         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
61588
61589         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
61590
61591 2000-06-12  Paul Eggert  <eggert@twinsun.com>
61592
61593         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
61594
61595 2000-06-12  Jim Meyering  <meyering@lucent.com>
61596
61597         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
61598         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
61599         optional argument.
61600         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
61601         the optional argument, `lib'.
61602
61603 2000-06-08  Jim Meyering  <meyering@lucent.com>
61604
61605         * m4/largefile.m4: Remove file (now that it's part of autoconf).
61606
61607 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61608
61609         Rewrite largefile configuration so that we don't need to run
61610         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
61611         AC_CANONICAL_HOST in configure.in -- jmm]
61612
61613         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
61614         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
61615         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
61616         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
61617         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
61618         All uses changed.
61619         Instead of inspecting the output of getconf, try to compile the
61620         test program without and with the macro definition.
61621         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
61622         for getconf.  Instead, check for the needed flags by compiling
61623         test programs.
61624
61625 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61626
61627         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
61628
61629 2000-06-04  Jim Meyering  <meyering@lucent.com>
61630
61631         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
61632         SunOS 4.1.4 for which gid_t is an unsigned type.
61633
61634 2000-06-03  Jim Meyering  <meyering@lucent.com>
61635
61636         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
61637         now that autoconf requires that.
61638
61639         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
61640         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
61641         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
61642
61643 2000-06-03  Jim Meyering  <meyering@lucent.com>
61644
61645         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
61646
61647 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61648
61649         * m4/glibc21.m4: New file.
61650         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
61651
61652 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61653
61654         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
61655         newer, don't install charset.alias.
61656         * lib/config.charset: Change the Linux/glibc rules so they become empty
61657         on glibc-2.1 or newer.
61658
61659 2000-06-02  Jim Meyering  <meyering@lucent.com>
61660
61661         * lib/mountlist.c: Back out last change.  Instead, do this...
61662         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
61663         me_dummy member using the same `ignore'-testing code.
61664         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
61665         fs_type strings.
61666         From Mark D. Roth.
61667
61668 2000-05-29  Jim Meyering  <meyering@lucent.com>
61669
61670         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
61671         mounts with the `ignore' attribute.  Based on a patch from
61672         Mark D. Roth.
61673
61674 2000-05-28  Jim Meyering  <meyering@lucent.com>
61675
61676         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
61677         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61678         * m4/stat.m4: Likewise.
61679         * m4/lstat.m4: Likewise.
61680         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
61681
61682         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
61683         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
61684
61685 2000-05-26  Jim Meyering  <meyering@lucent.com>
61686
61687         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
61688
61689 2000-05-24  Jim Meyering  <meyering@lucent.com>
61690
61691         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
61692         autoconf requires that.
61693         * m4/lib-check.m4: Likewise.
61694         * m4/jm-macros.m4: Likewise.
61695         * m4/strftime.m4: Likewise.
61696
61697         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
61698         AC_CHECK_DECLS, now that autoconf requires that.
61699
61700 2000-05-22  Jim Meyering  <meyering@lucent.com>
61701
61702         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61703         * m4/lstat.m4: Likewise.
61704
61705 2000-05-22  Jim Meyering  <meyering@lucent.com>
61706
61707         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
61708
61709 2000-05-20  Jim Meyering  <meyering@lucent.com>
61710
61711         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
61712         (jm_PREREQ): Use it.
61713
61714 2000-05-18  Jim Meyering  <meyering@lucent.com>
61715
61716         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
61717         back, too, since it may have been modified by allocate_entry.
61718         (hash_delete): Rewrite to use neither the assignment operator
61719         nor the comma operator in an if-expression.
61720
61721 2000-05-15  Paul Eggert  <eggert@twinsun.com>
61722
61723         * lib/closeout.c:
61724         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
61725         Remove; no longer needed.
61726         "quotearg.h": Add include.
61727         (file_name): Do not bother to explicitly initialize to NULL; it's less
61728         efficient on some hosts.
61729         (close_stdout_status): Remove test as to whether stdout was already
61730         closed; it breaks for the case "echo x | sort >&-".
61731         Quote file name colons.
61732         Do not assume that _("write error") lacks format strings.
61733
61734 2000-05-15  Jim Meyering  <meyering@lucent.com>
61735
61736         * lib/version-etc.c (version_etc_copyright): Update the copyright
61737         string used in all --version output.
61738
61739 2000-05-14  Jim Meyering  <meyering@lucent.com>
61740
61741         * lib/closeout.c (close_stdout_set_file_name): New function.
61742         (close_stdout_status): Use new file-scoped global.
61743         Return right away if fstat says the stdout file descriptor is invalid.
61744         * lib/closeout.h (close_stdout_set_file_name): Declare.
61745
61746 2000-05-10  Jim Meyering  <meyering@lucent.com>
61747
61748         * lib/closeout.c [default_exit_status]: New file-scoped variable.
61749         (close_stdout_set_status): New function.
61750         * lib/closeout.h (close_stdout_set_status): Declare.
61751
61752 2000-05-09  Jim Meyering  <meyering@lucent.com>
61753
61754         * m4/gettext.m4: Rename this...
61755         * m4/libintl.m4: ...to this.
61756
61757 2000-05-08  Jim Meyering  <meyering@lucent.com>
61758
61759         * lib/long-options.c: Don't include closeout.h.
61760         (parse_long_options): Don't call close_stdout for --version.
61761
61762 2000-05-06  Paul Eggert  <eggert@twinsun.com>
61763
61764         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
61765         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
61766         2.1.3 bug.  This avoids a clash when files like regex.c define
61767         _GNU_SOURCE.
61768
61769 2000-05-06  Jim Meyering  <meyering@lucent.com>
61770
61771         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
61772         (AC_REPLACE_FUNCS): Add strnlen.
61773
61774         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
61775         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
61776
61777         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
61778         AC_SEARCH_LIBS call for nanosleep.
61779         (LIB_NANOSLEEP): Set and AC_SUBST.
61780
61781 2000-05-06  Jim Meyering  <meyering@lucent.com>
61782
61783         * lib/strnlen.c: Undefine __strnlen and strnlen.
61784         [!weak_alias]: Define __strnlen to strnlen.
61785
61786         * lib/atexit.c: New file, from libiberty.
61787
61788 2000-05-06  Jim Meyering  <meyering@lucent.com>
61789
61790         * lib/closeout.c (close_stdout_status): Also check for errors on the
61791         stderr stream.
61792
61793 2000-05-05  Jim Meyering  <meyering@lucent.com>
61794
61795         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
61796         AC_SEARCH_LIBS call for clock_gettime.
61797         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
61798
61799         * m4/search-libs.m4: Update from autoconf.
61800
61801         su doesn't work on Solaris 2.6.
61802         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
61803         <shadow.h>.  Reported by Dragos Harabor.
61804
61805 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
61806
61807         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
61808         memcpy instead of xmalloc, xrealloc, path_concat.
61809         (locale_charset): Treat empty environment variables as absent.
61810         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
61811
61812 2000-05-04  Jim Meyering  <meyering@lucent.com>
61813
61814         * lib/getopt.c: Update from glibc.
61815         * lib/obstack.c: Likewise.
61816         * lib/obstack.h: Likewise.
61817         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
61818         file
61819
61820         * lib/regex.h: Likewise.
61821         * lib/strndup.c: Likewise.
61822         * lib/strnlen.c: New file, from glibc.
61823
61824 2000-05-03  Jim Meyering  <meyering@lucent.com>
61825
61826         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
61827
61828 2000-05-02  Paul Eggert  <eggert@twinsun.com>
61829
61830         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
61831         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
61832         compile-time test, rather than inspecting host and OS, to
61833         decide whether to define _LARGEFILE_SOURCE.
61834
61835 2000-05-01  Jim Meyering  <meyering@lucent.com>
61836
61837         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
61838
61839         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
61840         Based on a patch from Bruno Haible.
61841
61842 2000-05-01  Jim Meyering  <meyering@lucent.com>
61843
61844         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
61845
61846 2000-04-29  Jim Meyering  <meyering@lucent.com>
61847
61848         * lib/path-concat.c: Declare strdup only if it's not defined.
61849         * lib/canon-host.c: Likewise.
61850
61851 2000-04-28  Jim Meyering  <meyering@lucent.com>
61852
61853         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
61854         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
61855         is included first, then limits.h is included by locale.h by libintl.h.
61856         From John David Anglin.
61857
61858 2000-04-25  Jim Meyering  <meyering@lucent.com>
61859
61860         * lib/makepath.c (S_IRWXUGO): Define.
61861         (make_path): Always perform explicit chmod if MODE specifies any
61862         of the `special' permission bits.  Prompted by a bug report against
61863         install from Mate Wierdl and Joost van Baal.
61864
61865 2000-04-18  Jim Meyering  <meyering@lucent.com>
61866
61867         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
61868         (jm_PREREQ): Use it.
61869
61870 2000-04-18  Jim Meyering  <meyering@lucent.com>
61871
61872         * lib/README: New file.
61873
61874         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
61875         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
61876
61877 2000-04-17  Jim Meyering  <meyering@lucent.com>
61878
61879         Get it right :-)
61880         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
61881         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
61882         Suggestion from Akim Demaille.
61883
61884 2000-04-17  Jim Meyering  <meyering@lucent.com>
61885
61886         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
61887         the definition of it to rpl_strftime also defined-away the system's
61888         declaration.
61889
61890 2000-04-15  Jim Meyering  <meyering@lucent.com>
61891
61892         Use `C' to denote so-called `contiguous' files, the same way
61893         that tar does.
61894         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
61895         (ftypelet): Use S_ISCTG.
61896         From Michael Deutschmann.
61897
61898 2000-04-14  Jim Meyering  <meyering@lucent.com>
61899
61900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
61901         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
61902         clobbered.
61903
61904 2000-04-14  Jim Meyering  <meyering@lucent.com>
61905
61906         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
61907
61908 2000-04-13  Jim Meyering  <meyering@lucent.com>
61909
61910         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
61911         AH_VERBATIM to insert required #ifndef into config.h.in.
61912         Suggestion from Akim Demaille.
61913
61914 2000-04-12  Jim Meyering  <meyering@lucent.com>
61915
61916         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
61917         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
61918         Christian Krackowizer.
61919
61920         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
61921         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
61922         (AC_SYS_LARGEFILE): Require.
61923         (AM_C_PROTOTYPES): Require.
61924
61925 2000-04-08  Jim Meyering  <meyering@lucent.com>
61926
61927         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
61928         names don't conflict.  Reported by Eli Zaretskii.
61929
61930 2000-04-07  Jim Meyering  <meyering@lucent.com>
61931
61932         * lib/putenv.c: Move inclusion of errno.h so it follows that of
61933         sys/types.h, to work around system header problems on AIX 3.2.5.
61934         From Bruno Haible.
61935
61936 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
61937
61938         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
61939         bug.  Deal with the different error behavior of Irix iconv.
61940
61941 2000-04-05  Paul Eggert  <eggert@twinsun.com>
61942
61943         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
61944         IRIX if the installer said otherwise.
61945
61946 2000-04-05  Jim Meyering  <meyering@lucent.com>
61947
61948         Portability tweaks required for ultrix4.3.
61949         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
61950         (jm_CHECK_DECLS): Add getutent to the list of functions.
61951         (_jm_DECL_HEADERS): Add utmpx.h.
61952         From John David Anglin.
61953
61954         * m4/strftime.m4: Back out the 2000-04-02 change.
61955         Instead of that change, simply undefine putenv in the test program.
61956
61957 2000-04-05  Jim Meyering  <meyering@lucent.com>
61958
61959         Portability tweaks required for ultrix4.3.
61960         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
61961         getutent.
61962         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
61963         * lib/canon-host.c: Declare strdup.
61964         * lib/path-concat.c: Likewise.
61965         From John David Anglin.
61966
61967 2000-04-04  Jim Meyering  <meyering@lucent.com>
61968
61969         Be more DOS 8.3-friendly.
61970         * lib/ref-add.sin: Renamed from ref-add.sed.in.
61971         * lib/ref-del.sin: Renamed from ref-del.sed.in.
61972         * lib/Makefile.am: Reflect renaming.
61973         Reported by Eli Zaretskii.
61974
61975         Use a temporary file name that won't clash with `charset.alias'
61976         in the DOS 8.3 name space.
61977         * lib/Makefile.am (charset_tmp): Define.
61978         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
61979         (uninstall-local): Likewise.
61980         Reported by Eli Zaretskii.
61981
61982 2000-04-03  Jim Meyering  <meyering@lucent.com>
61983
61984         * m4/gettext.m4: Fix typo in comment.
61985
61986         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
61987         textutils/configure.in).  Suggestion from Paul Eggert.
61988         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
61989
61990 2000-04-02  Paul Eggert  <eggert@twinsun.com>
61991
61992         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
61993         variable in the shell rather than using putenv, which isn't
61994         portable.  This avoids the configure-time inter-test dependency
61995         on the potentially-renamed putenv function.
61996
61997 2000-03-30  Paul Eggert  <eggert@twinsun.com>
61998
61999         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62000         before checking struct stat.st_blksize, so that
62001         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62002
62003 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62004
62005         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62006         since strftime.c uses HAVE_STRFTIME to decide whether to use
62007         the underlying strftime.
62008
62009 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62010
62011         * lib/time/strftime.c (my_strftime): Make sure we call the system
62012         strftime, not ourselves, when invoking the underlying strftime.
62013
62014 2000-03-24  Jim Meyering  <meyering@lucent.com>
62015
62016         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62017         (charset_alias): Define.
62018         (install-exec-local): Factor out common code.
62019         (uninstall-local): Split lines longer than 80.
62020         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62021         (SUFFIXES): Define.
62022         (.sed.in.sed): New rule.  Don't redirect directly to $@.
62023         (CLEANFILES): Add ref-add.sed and ref-del.sed.
62024
62025 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
62026
62027         * lib/config.charset: Output a line containing "Packages using this
62028         file".
62029         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62030         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62031         ref-del.sed): New rules.
62032
62033 2000-03-17  Jim Meyering  <meyering@lucent.com>
62034
62035         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62036         Otherwise, include <strings.h>
62037
62038 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
62039
62040         * lib/unicodeio.c (utf8_wctomb): New function.
62041         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62042         format instead of in UCS-4 with platform dependent endianness.
62043
62044 2000-03-10  Jim Meyering  <meyering@lucent.com>
62045
62046         * m4/lib-check.m4: Look for getspnam in -lgen, too.
62047         From Marco Franzen.
62048
62049 2000-03-07  Paul Eggert  <eggert@twinsun.com>
62050
62051         * lib/savedir.c (savedir): Work even if directory size is
62052         negative; this can happen with some screwy NFS configurations.
62053
62054 2000-03-06  Jim Meyering  <meyering@lucent.com>
62055
62056         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62057         if it's NULL (because we ran out of memory).  From Bruno Haible.
62058
62059 2000-03-05  Jim Meyering  <meyering@lucent.com>
62060
62061         * lib/localcharset.c ("path-concat.h"): Include.
62062         (get_charset_aliases): Use path_concat instead of ANSI string
62063         concatenation.
62064
62065         * lib/unicodeio.h (PARAMS): Define.
62066         Use it to guard prototype.
62067
62068 2000-03-04  Jim Meyering  <meyering@lucent.com>
62069
62070         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62071         for lib/localcharset.c.
62072
62073 2000-03-04  Jim Meyering  <meyering@lucent.com>
62074
62075         * lib/Makefile.am (install-exec-local): Create $(libdir) before
62076         installing into it.
62077         (uninstall-local): Uncomment this rule so `make distcheck' works
62078         once again.
62079
62080         * lib/unicodeio.c (<errno.h>): Include it.
62081         (errno): Declare if not defined.
62082
62083         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62084
62085         * lib/config.charset: New version, incorporating remarks from a linux
62086         i18n mailing list.  From Bruno Haible.
62087
62088 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
62089
62090         * m4/codeset.m4: New file.
62091         * m4/iconv.m4: New file.
62092         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62093
62094 2000-03-03  Jim Meyering  <meyering@lucent.com>
62095
62096         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62097
62098 2000-03-02  Jim Meyering  <meyering@lucent.com>
62099
62100         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62101         the messages come out on separate lines.
62102
62103         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62104         rather than jm_CHECK_DECLARATIONS.
62105         * m4/decl.m4: Remove now-unused file.
62106
62107         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62108         geteuid.
62109
62110 2000-03-02  Jim Meyering  <meyering@lucent.com>
62111
62112         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62113
62114 2000-03-01  Jim Meyering  <meyering@lucent.com>
62115
62116         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62117         * lib/unicodeio.c: Likewise.
62118
62119 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
62120
62121         * lib/config.charset: New file.
62122         * lib/localcharset.c: New file.
62123         * lib/unicodeio.h, lib/unicodeio.c: New files.
62124         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62125         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62126         (noinst_HEADERS): Add unicodeio.h.
62127         (all-local, install-exec-local, charset.alias): New targets.
62128
62129 2000-02-28  Paul Eggert  <eggert@twinsun.com>
62130
62131         * lib/quotearg.c (ALERT_CHAR): New macro.
62132         (quotearg_buffer_restyled): Use it.
62133
62134 2000-02-27  Jim Meyering  <meyering@lucent.com>
62135
62136         * m4/check-decl.m4: Add getenv to the list.
62137
62138 2000-02-27  Jim Meyering  <meyering@lucent.com>
62139
62140         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62141         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62142
62143         * lib/backupfile.c: Guard inclusion of stdlib.h with
62144         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62145         Declare malloc if needed.
62146
62147         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62148         `#ifndef HAVE_DECL..'
62149         now that autoconf always defines the HAVE_DECL_ symbols.
62150         * lib/human.c: Likewise.
62151         * lib/same.c: Likewise.
62152         * lib/strtoumax.c: Likewise.
62153
62154         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62155         declaration check was not run.
62156         * lib/hash.c: Likewise.
62157         * lib/human.c: Likewise.
62158         * lib/same.c: Likewise.
62159         * lib/strtoumax.c: Likewise.
62160
62161         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62162         `.', then first look up the entire `.'-containing string as a login
62163         name.
62164
62165 2000-02-23  Jim Meyering  <meyering@lucent.com>
62166
62167         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62168         in place of my hack.
62169
62170 2000-02-18  Paul Eggert  <eggert@twinsun.com>
62171
62172         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62173         (textint): New typedef.
62174         (parser_control): Member year changed from int to textint.
62175         All uses changed.
62176         (YYSTYPE): Removed; replaced by %union with int and textint members.
62177         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62178         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62179         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62180         (tSNUMBER, tUNUMBER): Now of type <textintval>.
62181         (date, number, to_year): Use width of number in digits, not its value,
62182         to determine whether it's a 2-digit year, or a 2-digit time.
62183         (yylex): Store number of digits of numeric tokens.
62184         Reported by John Kendall.
62185
62186         (parser_control): Changed from struct parser_control to typedef (for
62187         consistency).  All uses changed.
62188
62189         (tID): Removed; not used.
62190         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62191
62192 2000-02-14  Paul Eggert  <eggert@twinsun.com>
62193
62194         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62195         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62196
62197 2000-02-12  Jim Meyering  <meyering@lucent.com>
62198
62199         * lib/userspec.c (ISDIGIT): Define it.
62200         (isdigit): Remove definition.
62201         (is_number): Use ISDIGIT, not isdigit.
62202         <libintl.h>: Include.
62203         (_ and N_): Define.
62204         (parse_user_spec): Mark translatable strings.
62205
62206 2000-02-10  Jim Meyering  <meyering@lucent.com>
62207
62208         With these changes, nanosleep.[ch] are finally enough like the other
62209         lib/* replacement files to compile on a few more losing systems.
62210
62211         * lib/nanosleep.h: Don't include config.h.
62212         Remove prototype from declaration of nanosleep.
62213         (PARAMS): Remove now-unneeded definition.
62214         * lib/nanosleep.c: #undef nanosleep.
62215         (rpl_nanosleep): Rename from nanosleep.
62216
62217 2000-02-10  Jim Meyering  <meyering@lucent.com>
62218
62219         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62220         gnu_nanosleep to rpl_nanosleep.
62221
62222 2000-02-09  Jim Meyering  <meyering@lucent.com>
62223
62224         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62225         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
62226
62227 2000-02-08  Akim Demaille  <akim@epita.fr>
62228
62229         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62230         `[' and `]' and remove uses of `changequote'.
62231         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62232         (AC_SYS_LARGEFILE): Likewise.
62233         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62234         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62235         of changequote.
62236         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62237         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62238         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62239         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62240
62241 2000-02-05  Jim Meyering  <meyering@lucent.com>
62242
62243         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62244         Remove explicit use of AC_HEADER_TIME.  It is required by
62245         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
62246         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62247         in autoconf whereby the expansion of the latter ended up preceding
62248         the expansion of its prerequisite, AC_HEADER_TIME.
62249         Reported by Volker Borchert.
62250
62251 2000-02-03  Jim Meyering  <meyering@lucent.com>
62252
62253         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62254
62255 2000-02-03  Jim Meyering  <meyering@lucent.com>
62256
62257         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62258         rather than with `#if HAVE_UTMPNAME'.
62259
62260 2000-02-02  Jim Meyering  <meyering@lucent.com>
62261
62262         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62263         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62264         Reported by Eli Zaretskii.
62265
62266 2000-02-01  Jim Meyering  <meyering@lucent.com>
62267
62268         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
62269
62270 2000-01-31  Jim Meyering  <meyering@lucent.com>
62271
62272         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62273         functions.  Add the time.h and sys/time.h headers along with the
62274         AC_REQUIRE'ment of AC_HEADER_TIME.
62275
62276 2000-01-31  Jim Meyering  <meyering@lucent.com>
62277
62278         * lib/nanosleep.h (nanosleep): Guard declaration with
62279         `#if ! HAVE_DECL_NANOSLEEP'.
62280         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62281         the declaration in that vendor's sys/timers.h.
62282         Reported by Christian Krackowizer.
62283
62284         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62285         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62286         (ISPRINT): Likewise.
62287         Reported by Tom Tromey.
62288
62289 2000-01-30  Jim Meyering  <meyering@lucent.com>
62290
62291         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62292
62293         * m4/prereq.m4 (utmp_includes): Define.
62294         Check for ut_user and ut_name members in both struct utmpx
62295         and struct utmp.
62296
62297 2000-01-30  Jim Meyering  <meyering@lucent.com>
62298
62299         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
62300         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
62301         header files where only utmpx.ut_user is declared.
62302
62303         * lib/readutmp.h (UT_USER): Define.
62304
62305 2000-01-29  Jim Meyering  <meyering@lucent.com>
62306
62307         * m4/lib-check.m4: New file containing library-related checks from
62308         fileutils and sh-utils (textutils had none).
62309
62310 2000-01-28  Jim Meyering  <meyering@lucent.com>
62311
62312         * m4/perl.m4: Change format of warning message to look more like that
62313         from the missing script.  Suggestion from François Pinard.
62314
62315 2000-01-25  Jim Meyering  <meyering@lucent.com>
62316
62317         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
62318         well as time.h in the compile check.
62319         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
62320         Fix typo in cross-compiling case: s/yes/no/.
62321
62322 2000-01-23  Jim Meyering  <meyering@lucent.com>
62323
62324         * m4/jm-macros.m4: Move df-related tests here from
62325         fileutils/configure.in
62326
62327         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
62328         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
62329
62330         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
62331         s/space/ac_fsusage_space/.
62332         (jm_FILE_SYSTEM_USAGE): Take two parameters.
62333
62334         * m4/ftruncate.m4: New file (derived from part of
62335         fileutils/configure.in).
62336         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
62337         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
62338
62339         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
62340         AC_SUBST these here, rather than just in sh-util/configure.in, so
62341         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
62342         all the same.
62343         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
62344         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
62345         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
62346         (AC_SUBST(POW_LIBM)): Likewise.
62347         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
62348
62349 2000-01-23  Jim Meyering  <meyering@lucent.com>
62350
62351         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
62352         obstack.c.
62353
62354 2000-01-22  Jim Meyering  <meyering@lucent.com>
62355
62356         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
62357
62358         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
62359
62360         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
62361         configure.in
62362         (AC_CHECK_HEADERS): Likewise for sh-utils.
62363         (AC_CHECK_HEADERS): Likewise for textutils.
62364         Merge the three lists of headers.
62365
62366         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
62367         from fileutils' configure.in.
62368
62369         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
62370         code. Moved tests into their own function (_jm_DECL_HEADERS) in
62371         check-decl.m4.
62372
62373         * m4/check-decl.m4: Use #if rather than #ifdef.
62374         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
62375         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
62376         (_jm_DECL_HEADERS): Define new function.
62377         (jm_CHECK_DECLARATIONS): Require it.
62378
62379 2000-01-22  Jim Meyering  <meyering@lucent.com>
62380
62381         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
62382         [! HAVE_DECL_STRTOULL]: Declare strtoull.
62383         Required for some AIX systems.  Reported by Christian Krackowizer.
62384         [TESTING] (main): New function.
62385
62386         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
62387         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
62388         letters.
62389
62390         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
62391         iswprint.
62392
62393         * lib/strverscmp.c (ISDIGIT): Define.
62394         (strverscmp): Use ISDIGIT, not isdigit.
62395
62396 2000-01-19  Jim Meyering  <meyering@lucent.com>
62397
62398         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
62399         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
62400         defines `struct timespec' in <sys/time.h>
62401
62402         * m4/c-bs-a.m4: Remove uses of changequote altogether.
62403         Thanks to Akim for explaining.
62404
62405 2000-01-17  Paul Eggert  <eggert@twinsun.com>
62406
62407         * lib/nanosleep.c (nanosleep):
62408         Don't use SA_INTERRUPT to decide whether to call sigaction, as
62409         POSIX.1 doesn't require SA_INTERRUPT and some systems
62410         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
62411         it's been part of POSIX.1 since day 1 (in 1988).
62412
62413 2000-01-17  Jim Meyering  <meyering@lucent.com>
62414
62415         * lib/interlock: Remove unused file.  Reported by François Pinard.
62416
62417 2000-01-16  Paul Eggert  <eggert@twinsun.com>
62418
62419         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
62420         alert, backslash, formfeed, and vertical tab unnecessarily in
62421         shell quoting style.
62422
62423 2000-01-16  Jim Meyering  <meyering@lucent.com>
62424
62425         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
62426         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
62427         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
62428         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
62429
62430 2000-01-16  Jim Meyering  <meyering@lucent.com>
62431
62432         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
62433         because the latter didn't work.
62434
62435 2000-01-15  Jim Meyering  <meyering@lucent.com>
62436
62437         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
62438         (AC_REPLACE_FUNCS): Add memcpy and memset.
62439         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
62440         Add strpbrk.
62441         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
62442
62443 2000-01-12  Jim Meyering  <meyering@lucent.com>
62444
62445         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
62446         (jm_PREREQ): Use it.
62447         (jm_PREREQ_READUTMP): New macro.
62448         (jm_PREREQ): Use it.
62449
62450 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62451
62452         Quote multibyte characters correctly.
62453         * m4/c-bs-a.m4: New file.
62454         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
62455         (jm_PREREQ): Use it.
62456
62457 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62458
62459         * m4/uintmax_t.m4: Port to autoconf 2.13.
62460
62461 2000-01-08  Jim Meyering  <meyering@ascend.com>
62462
62463         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
62464         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
62465
62466 2000-01-04  Jim Meyering  <meyering@ascend.com>
62467
62468         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
62469         jm_STRUCT_DIRENT_D_TYPE.
62470         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
62471         jm_STRUCT_DIRENT_D_INO.
62472         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
62473         jm_STRUCT_UTIMBUF.
62474         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
62475         renamings.
62476         * m4/utime.m4: Likewise.
62477
62478         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
62479         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
62480
62481 2000-01-03  Paul Eggert  <eggert@twinsun.com>
62482
62483         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
62484         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
62485
62486 2000-01-02  Jim Meyering  <meyering@ascend.com>
62487
62488         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
62489         remember if this is necessary.
62490
62491 1999-12-26  Jim Meyering  <meyering@ascend.com>
62492
62493         * m4/jm-macros.m4: Use it here.
62494         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
62495
62496 1999-12-23  Jim Meyering  <meyering@ascend.com>
62497
62498         * m4/jm-macros.m4: Check for clock_gettime (moved from
62499         fileutils/configure.in)
62500         Check for gettimeofday.
62501
62502 1999-12-20  Jim Meyering  <meyering@ascend.com>
62503
62504         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
62505         autoconf-2.14a-1999-12-20.
62506
62507 1999-12-19  Jim Meyering  <meyering@ascend.com>
62508
62509         * m4/lstat-slash.m4: New file.
62510         * m4/jm-macros.m4: Use the new macro:
62511         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62512
62513 1999-12-07  Jim Meyering  <meyering@ascend.com>
62514
62515         * m4/perl.m4: Require that File::Compare be available, too.
62516         Too many systems seem to lack it.
62517
62518         * m4/strftime.m4: Add checks for most of the cpp macros tested in
62519         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
62520
62521 1999-11-18  Paul Eggert  <eggert@twinsun.com>
62522
62523         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
62524         problem with the QNX 4.25 shell, which doesn't propagate exit
62525         status of failed commands inside shell assignments.
62526
62527 1999-11-17  Jim Meyering  <meyering@ascend.com>
62528
62529         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
62530
62531 1999-11-07  Jim Meyering  <meyering@ascend.com>
62532
62533         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
62534
62535 1999-11-06  Jim Meyering  <meyering@ascend.com>
62536
62537         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
62538         * m4/jm-macros.m4 (jm_MACROS): Use it here.
62539
62540 1999-11-05  Jim Meyering  <meyering@ascend.com>
62541
62542         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
62543         configure.in of textutils, fileutils, and sh-utils into this one
62544         (shared between those packages) file.
62545         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
62546         AC_STRUCT_ST_BLKSIZE.
62547
62548 1999-11-03  Jim Meyering  <meyering@ascend.com>
62549
62550         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
62551         of AC_CHECK_TYPE checks includes unistd.h.
62552         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
62553         Suggestion from Akim Demaille.
62554
62555 1999-10-30  Jim Meyering  <meyering@ascend.com>
62556
62557         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
62558         m4-quoted string.
62559         * m4/ls-mntd-fs.m4: Likewise.
62560         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
62561         * m4/jm-winsz1.m4: Likewise.
62562
62563         * m4/const.m4: Remove file, since the fix made it into the experimental
62564         version of autoconf.
62565         * m4/mktime.m4: Likewise.
62566
62567         * m4/check-type.m4: Remove file, now that the latest version of
62568         AC_CHECK_TYPE takes a third arg to specify additional #includes.
62569
62570         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
62571         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
62572         AC_CHECK_TYPE.
62573
62574 1999-10-04  Jim Meyering  <meyering@ascend.com>
62575
62576         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
62577
62578 1999-09-22  Paul Eggert  <eggert@twinsun.com>
62579
62580         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
62581         2.95.1 bug with HP-UX 10.20.
62582
62583 1999-09-17  Jim Meyering  <meyering@ascend.com>
62584
62585         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
62586         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
62587         due to missing strdup (against sh-utils-2.0).
62588
62589 1999-08-29  Jim Meyering  <meyering@ascend.com>
62590
62591         * m4/jm-macros.m4: Require jm_BISON.
62592         * m4/bison.m4: New file.
62593
62594 1999-08-17  Paul Eggert  <eggert@twinsun.com>
62595
62596         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
62597         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
62598
62599 1999-08-05  Jim Meyering  <meyering@ascend.com>
62600
62601         * m4/getline.m4: Rename test file from conftestdata to conftest.data
62602         to avoid conflicts with `conftest' on 8+3 filesystems.
62603         Suggestion from Eli Zaretskii.
62604
62605 1999-08-04  Jim Meyering  <meyering@ascend.com>
62606
62607         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
62608         fileutils and sh-utils (textutils's getline test was inadequate).
62609         (AM_FUNC_GETLINE): Run this test.
62610         (AC_CHECK_FUNCS): Check for getdelim.
62611         Reported by Bob Proulx.
62612
62613 1999-08-02  Jim Meyering  <meyering@ascend.com>
62614
62615         * m4/jm-macros.m4: Add a comment.
62616
62617 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62618
62619         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
62620         <inttypes.h> defines strtoumax as a macro (and not as a
62621         function).
62622
62623 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62624
62625         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
62626         that we can shift, multiply and divide unsigned long long
62627         values; Ultrix cc can't do it.
62628
62629 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62630
62631         * m4/mktime.m4: New file, which is a preview of what should appear
62632         in the next public autoconf release.
62633
62634 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62635
62636         * m4/lfs.m4: Remove this file.
62637         * m4/largefile.m4: New file.  It contains the old contents of
62638         lfs.m4, except that all names with prefix AC_LFS have been
62639         changed to use the prefix AC_SYS_LARGEFILE instead, to be
62640         compatible with future autoconf versions.  Also, some minor m4
62641         quoting problems have been fixed.
62642
62643 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62644
62645         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
62646         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
62647         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
62648         and simplify the shell code.
62649
62650 1999-08-01  Jim Meyering  <meyering@ascend.com>
62651
62652         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
62653         m4.
62654
62655 1999-07-20  Jim Meyering  <meyering@ascend.com>
62656
62657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
62658
62659 1999-07-15  Jim Meyering  <meyering@ascend.com>
62660
62661         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
62662
62663 1999-05-22  Jim Meyering  <meyering@ascend.com>
62664
62665         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
62666
62667 1999-05-20  Jim Meyering  <meyering@ascend.com>
62668
62669         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
62670         Add a colon after each `then' in case $4 is empty.
62671
62672 1999-05-16  Jim Meyering  <meyering@ascend.com>
62673
62674         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
62675
62676 1999-05-10  Jim Meyering  <meyering@ascend.com>
62677
62678         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
62679
62680         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
62681         AC_FUNC_MKTIME.
62682
62683 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
62684
62685         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
62686
62687 1999-05-04  Paul Eggert  <eggert@twinsun.com>
62688
62689         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
62690         not CPPFLAGS, so that linking works correctly in IRIX.
62691
62692 1999-04-30  Paul Eggert  <eggert@twinsun.com>
62693
62694         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
62695
62696 1999-04-20  Paul Eggert  <eggert@twinsun.com>
62697
62698         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
62699         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
62700         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
62701         jm_AC_TYPE_UNSIGNED_LONG_LONG.
62702         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
62703
62704         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
62705
62706 1999-04-20  Jim Meyering  <meyering@ascend.com>
62707
62708         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
62709         AC_REPLACE xstroull if necessary.  From Paul Eggert.
62710         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
62711
62712 1999-04-18  Jim Meyering  <meyering@ascend.com>
62713
62714         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
62715         * m4/jm-macros.m4: Use it.
62716
62717 1999-04-06  Jim Meyering  <meyering@ascend.com>
62718
62719         * m4/strftime.m4: Remove test for %f.
62720
62721 1999-03-29  Jim Meyering  <meyering@ascend.com>
62722
62723         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
62724         superset of the AC_TYPE_* checks in the textutils, fileutils,
62725         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
62726         AC_TYPE_PID_T.
62727
62728 1999-03-28  Jim Meyering  <meyering@ascend.com>
62729
62730         * m4/jm-macros.m4: Define GNU_PACKAGE here.
62731         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
62732         replaced e.g., in the *.sh files of the sh-utils.
62733
62734 1999-03-20  Jim Meyering  <meyering@ascend.com>
62735
62736         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
62737         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
62738         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
62739
62740 1999-03-19  Jim Meyering  <meyering@ascend.com>
62741
62742         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
62743
62744 1999-03-12  Jim Meyering  <meyering@ascend.com>
62745
62746         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
62747
62748 1999-03-07  Jim Meyering  <meyering@ascend.com>
62749
62750         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
62751         declared.
62752
62753 1999-02-17  Jim Meyering  <meyering@ascend.com>
62754
62755         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
62756         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
62757
62758 1999-02-07  Jim Meyering  <meyering@ascend.com>
62759
62760         * m4/group-member.m4: New file -- extracted from sh-utils'
62761         configure.in.
62762
62763         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
62764         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
62765
62766 1999-02-06  Jim Meyering  <meyering@ascend.com>
62767
62768         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
62769         * m4/fnmatch.m4: Likewise.
62770         * m4/getgroups.m4: Likewise.
62771         * m4/lstat.m4: Likewise.
62772         * m4/malloc.m4: Likewise.
62773         * m4/putenv.m4: Likewise.
62774         * m4/realloc.m4: Likewise.
62775         * m4/regex.m4: Likewise.
62776         * m4/stat.m4: Likewise.
62777         * m4/strftime.m4: Likewise.
62778         Suggestion from Alain Magloire.
62779
62780         * m4/chown.m4: Use `.$ac_objext', not `.o'.
62781         * m4/fnmatch.m4: Likewise.
62782         * m4/getgroups.m4: Likewise.
62783         * m4/getline.m4: Likewise.
62784         * m4/lstat.m4: Likewise.
62785         * m4/malloc.m4: Likewise.
62786         * m4/memcmp.m4: Likewise.
62787         * m4/putenv.m4: Likewise.
62788         * m4/realloc.m4: Likewise.
62789         * m4/regex.m4: Likewise.
62790         * m4/stat.m4: Likewise.
62791         * m4/strftime.m4: Likewise.
62792         Suggestion from Alain Magloire.
62793
62794         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
62795         an argument.
62796
62797         * m4/regex.m4: Add a run-time Test for proper operation of
62798         re_compile_pattern.
62799
62800 1999-01-31  Jim Meyering  <meyering@ascend.com>
62801
62802         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
62803
62804 1999-01-30  Jim Meyering  <meyering@ascend.com>
62805
62806         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
62807
62808         * m4/jm-mktime.m4: Make this a wrapper around the official
62809         AM_FUNC_MKTIME rather than my private copy, now that the official one
62810         is up to date.
62811         * m4/mktime.m4: Remove file.
62812
62813         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
62814         * m4/uptime.m4: Likewise.
62815         * m4/uintmax_t.m4: Likewise.
62816
62817 1999-01-28  Jim Meyering  <meyering@ascend.com>
62818
62819         * m4/jm-macros.m4: Use jm_AFS.
62820         * m4/afs.m4: New file (from fileutils' configure.in).
62821
62822         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
62823         * m4/chown.m4: Likewise.
62824         * m4/d-ino.m4: Likewise.
62825         * m4/d-type.m4: Likewise.
62826         * m4/fnmatch.m4: Likewise.
62827         * m4/getgroups.m4: Likewise.
62828         * m4/gettext.m4: Likewise.
62829         * m4/jm-mktime.m4: Likewise.
62830         * m4/jm-winsz2.m4: Likewise.
62831         * m4/lcmessage.m4: Likewise.
62832         * m4/ls-mntd-fs.m4: Likewise.
62833         * m4/malloc.m4: Likewise.
62834         * m4/memcmp.m4: Likewise.
62835         * m4/putenv.m4: Likewise.
62836         * m4/realloc.m4: Likewise.
62837         * m4/st_mtim.m4: Likewise.
62838         * m4/strftime.m4: Likewise.
62839
62840 1999-01-16  Jim Meyering  <meyering@ascend.com>
62841
62842         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
62843         (ARGMATCH_DIE_DECL): Define.
62844
62845 1999-01-12  Jim Meyering  <meyering@ascend.com>
62846
62847         * m4/Makefile.am.in: Rewrite to avoid using fmt.
62848         Reported by Lars Hecking.
62849
62850 1999-01-10  Jim Meyering  <meyering@ascend.com>
62851
62852         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
62853         gross kludge.
62854         * m4/inttypes_h.m4: Likewise.
62855         * m4/lstat.m4: Likewise.
62856         * m4/malloc.m4: Likewise.
62857         * m4/readdir.m4: Likewise.
62858         * m4/realloc.m4: Likewise.
62859         * m4/st_dm_mode.m4: Likewise.
62860         * m4/stat.m4: Likewise.
62861         * m4/utimbuf.m4: Likewise.
62862         * m4/utimes.m4: Likewise.
62863
62864         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
62865         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
62866         comments in config.h.in are meaningful.
62867
62868         * m4/jm-macros.m4: Require autoconf-2.13 here.
62869
62870         * m4/regex.m4: By default, don't use the included regex.c on systems
62871         with glibc 2.  Suggestion from Uli Drepper.
62872
62873 1999-01-02  Jim Meyering  <meyering@ascend.com>
62874
62875         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
62876
62877 1998-12-18  Jim Meyering  <meyering@ascend.com>
62878
62879         * m4/Makefile.am.in (Makefile.am): Simplify rule.
62880         Based on a suggestion from Lars Hecking.
62881
62882 1998-11-16  Paul Eggert  <eggert@twinsun.com>
62883
62884         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
62885
62886 1998-11-16  Jim Meyering  <meyering@ascend.com>
62887
62888         * m4/lfs.m4: Double-quote the `uname...` expression.
62889
62890 1998-11-14  Jim Meyering  <meyering@ascend.com>
62891
62892         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
62893         * m4/stat.m4: Likewise.
62894
62895 1998-11-03  Jim Meyering  <meyering@ascend.com>
62896
62897         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
62898         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
62899
62900 1998-10-18  Jim Meyering  <meyering@ascend.com>
62901
62902         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
62903
62904 1998-10-17  Jim Meyering  <meyering@ascend.com>
62905
62906         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
62907         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
62908         calls for those previously hard-coded headers.  Instead, take a new
62909         parameter.
62910         (jm_CHECK_DECLARATIONS): Reflect interface change.
62911         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
62912         (jm_CHECK_DECL_LOCALTIME_R): New macro.
62913
62914         * m4/mktime.m4: Test for spring-forward gap before long-running test.
62915
62916 1998-10-14  Jim Meyering  <meyering@ascend.com>
62917
62918         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
62919         instead of "TZ=America/Vancouver".  From Paul Eggert.
62920
62921 1998-10-11  Jim Meyering  <meyering@ascend.com>
62922
62923         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
62924         This adds a test for a recently added compatibility fix for mktime.c.
62925         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
62926
62927 1998-09-27  Jim Meyering  <meyering@ascend.com>
62928
62929         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
62930
62931         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
62932         ../configure.in, including a change from Gordon Matzigkeit to allow
62933         cross-compiling for the Hurd.
62934
62935         * m4/glibc.m4: New file/macro to test for the GNU C Library
62936         versions 1 and 2.  From Gordon Matzigkeit.
62937         Indent.
62938
62939 1998-09-21  Jim Meyering  <meyering@ascend.com>
62940
62941         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
62942
62943 1998-08-18  Paul Eggert  <eggert@twinsun.com>
62944
62945         Port nanosecond-resolution times to UnixWare 2.1.2 and
62946         pedantic Solaris 2.6.
62947
62948         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
62949         AC_STRUCT_ST_MTIM.
62950         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
62951         Generate name of ns member, instead of just 1 or undef.
62952         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
62953
62954 1998-08-15  Jim Meyering  <meyering@ascend.com>
62955
62956         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
62957         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
62958         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
62959         instead of jm_TYPE_SSIZE_T.
62960
62961 1998-08-12  Jim Meyering  <meyering@ascend.com>
62962
62963         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
62964
62965 1998-08-02  Jim Meyering  <meyering@ascend.com>
62966
62967         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
62968         in acconfig.h manually.
62969
62970 1998-07-31  Paul Eggert  <eggert@twinsun.com>
62971
62972         * m4/st_mtim.m4: New file.
62973
62974 1998-07-28  Jim Meyering  <meyering@ascend.com>
62975
62976         * m4/utimes.m4: Undef stat.
62977
62978 1998-07-25  Jim Meyering  <meyering@ascend.com>
62979
62980         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
62981         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
62982
62983 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
62984
62985         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
62986         uid and gid actually remain unchanged.
62987
62988 1998-07-07  Jim Meyering  <meyering@ascend.com>
62989
62990         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
62991
62992 1998-07-04  Jim Meyering  <meyering@ascend.com>
62993
62994         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
62995         to prove that this macro can be used in packages without regex.c.
62996
62997 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
62998
62999         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63000         is to be used.
63001
63002 1998-07-03  Jim Meyering  <meyering@ascend.com>
63003
63004         * m4/gettext.m4: Add -lintl if it's found to be necessary.
63005
63006         * m4/gettext.m4: New file -- from gettext-0.10.35.
63007         * m4/lcmessage.m4: Likewise.
63008         * m4/progtest.m4: Likewise.
63009
63010         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63011         * m4/jm-macros.m4: Require the new macro.
63012
63013 1998-06-29  Jim Meyering  <meyering@ascend.com>
63014
63015         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
63016         for the definition of NGROUPS (used in a system header included
63017         by sys/mount.h).
63018
63019 1998-06-28  Jim Meyering  <meyering@ascend.com>
63020
63021         * m4/ls-mntd-fs.m4: New file.
63022         * m4/fstypename.m4: New file.
63023
63024         * m4/jm-macros.m4: Require the new macro.
63025         * m4/jm-glibc-io.m4: New file.
63026
63027 1998-05-19  Jim Meyering  <meyering@ascend.com>
63028
63029         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63030         * m4/lchown.m4: New file.
63031
63032         * m4/Makefile.am.in: New file.
63033         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63034
63035 1998-05-14  Jim Meyering  <meyering@ascend.com>
63036
63037         * m4/Makefile.am (EXTRA_DIST): Add them.
63038         * m4/jm-macros.m4: New file.
63039         * m4/utimbuf.m4: New file.
63040
63041 1998-05-12  Jim Meyering  <meyering@ascend.com>
63042
63043         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63044
63045 1998-05-11  Jim Meyering  <meyering@ascend.com>
63046
63047         * m4/isc-posix.m4: New file.
63048
63049 1998-05-10  Jim Meyering  <meyering@ascend.com>
63050
63051         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63052
63053 1998-05-09  Jim Meyering  <meyering@ascend.com>
63054
63055         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63056         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63057         with automake.
63058
63059         * m4/ssize_t.m4: New file.
63060         * m4/mktime.m4: Remove file -- the new automake has this now.
63061
63062 1998-04-26  Jim Meyering  <meyering@ascend.com>
63063
63064         * m4/assert.m4: New file.
63065         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63066
63067 1998-04-05  Jim Meyering  <meyering@ascend.com>
63068
63069         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63070         (jm_PREREQ): Use it here.
63071
63072 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
63073
63074         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63075         in acconfig.h.
63076
63077 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
63078
63079         * m4/prereq.m4: New file.
63080         * m4/error.m4: New file.
63081         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63082
63083 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
63084
63085         * m4/getline.m4: Don't set am_cv_func_working_getline before the
63086         cache-check for the same variable -- that defeated the purpose of
63087         the test; the test program was never run.  This was a problem only
63088         on systems with losing getline functions -- HP-UX 10.20 is one.
63089         Reported by Bjorn Helgaas.
63090
63091 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
63092
63093         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63094
63095 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
63096
63097         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63098
63099         * m4/const.m4: New file.  Use an initializer in this declaration
63100         typedef int charset[2]; const charset x;
63101         Reported by Bob Glickstein.
63102
63103 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
63104
63105         * m4/chown.m4: Fix reversed types on -1 args to chown.
63106         From Kaveh Ghazi.
63107
63108 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
63109
63110         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63111         Add lseek and memchr.
63112
63113         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63114         T.E.Dickey <dickey@clark.net> said that some older preprocessors
63115         have a 20-character limit on names.
63116
63117 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
63118
63119         * m4/inttypes_h.m4: New file.
63120         * m4/uintmax_t.m4: New file.
63121         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63122
63123
63124         -----
63125
63126         Local Variables:
63127         coding: utf-8
63128         End:
63129
63130         Copyright (C) 1997-2010 Free Software Foundation, Inc.
63131
63132         Copying and distribution of this file, with or without
63133         modification, are permitted provided the copyright notice
63134         and this notice are preserved.