ChangeLog: add entry for "init.sh: automatically accommodate programs with the .exe...
[gnulib.git] / ChangeLog
1 2010-02-22  Eric Blake  <eblake@redhat.com>
2
3         lseek: avoid bash 3.2 broken pipe bug
4         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
5         warning from bash 3.2.
6         Reported by Ben Pfaff, with analysis from Bruno Haible.
7
8         bootstrap: support non-FSF copyright holder
9         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
10         bootstrap.conf override of COPYRIGHT_HOLDER.
11         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
12
13         bootstrap: interoperate with gettext 0.14.1
14         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
15
16         bootstrap: allow for alternate submodule location
17         * build-aux/bootstrap (gnulib_path): New variable; use instead of
18         hardcoding submodule location.
19         (gnulib_mk): Allow direct use of Makefile.am.
20
21         bootstrap: use GNULIB_SRCDIR to reduce disk usage
22         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23         rather than reconfiguring where the submodule points.
24
25         gettimeofday: restore support for platforms that lack function
26         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27         replacement if function is missing.
28         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29         * modules/sys_time (Makefile.am): Substitute it.
30         * lib/sys_time.in.h (gettimeofday): Check it.
31         Reported by Michael Goffioul.
32
33 2010-02-21  Bruno Haible  <bruno@clisp.org>
34
35         * lib/stdio.in.h (obstack_printf): Fix typo.
36
37 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
38
39         vc-list-files: use bzr ls's -R option
40         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
41         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
42
43 2010-02-21  Jim Meyering  <meyering@redhat.com>
44
45         init.sh: fix EXEEXT shims to work also for names like test-prog
46         * tests/init.sh: Re-exec a better shell, when needed.
47         If the current shell lacks support for posix $(...), an init.sh-using
48         test will now try to find a shell that supports that.  If EXEEXT is
49         nonempty, we also require support for hyphen-in-alias-name and shell
50         substitutions like ${var#glob}.  Failure to find such a shell results
51         in a skipped test.
52
53 2010-02-21  Bruno Haible  <bruno@clisp.org>
54
55         Really work around around "broken pipe" error message from bash 3.2.
56         * gnulib-tool (func_reset_sigpipe): Remove function.
57         (echo): In bash 3.2, define to a function that uses printf.
58         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
59
60 2010-02-20  Bruno Haible  <bruno@clisp.org>
61
62         Restore support for automake 1.9.6 with autoconf 2.61.
63         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
64         Reported by James Youngman <jay@gnu.org>.
65
66 2010-02-20  Bruno Haible  <bruno@clisp.org>
67
68         Improve *printf warning condition.
69         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
70         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
71         and the function is overridden due to SIGPIPE emulation.
72
73 2010-02-20  Bruno Haible  <bruno@clisp.org>
74
75         * lib/stdio.in.h: Tweak comments.
76
77 2010-02-19  Bruno Haible  <bruno@clisp.org>
78
79         Make it easier to find modules. New gnulib-tool option '--find'.
80         * gnulib-tool: New option --find.
81         (func_usage): Document it.
82         (func_sanitize_modulelist): New function, extracted from
83         func_all_modules.
84         (func_all_modules): Invoke it.
85         * doc/gnulib-tool.texi (Which modules?): New node.
86
87 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
88
89         * lib/sys_select.in.h: Provide select replacement even if
90         sys/select.h exists on a system, for Interix.
91
92 2010-02-18  Jim Meyering  <meyering@redhat.com>
93
94         init.sh: don't use $(...) just yet
95         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
96         to accommodate e.g., Solaris' /bin/sh.
97
98 2010-02-17  Bruno Haible  <bruno@clisp.org>
99
100         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
101         Reported by Ludovic Courtès <ludo@gnu.org>.
102
103 2010-02-16  Simon Josefsson  <simon@josefsson.org>
104
105         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
106         linking with -lintl.
107
108 2010-02-17  Simon Josefsson  <simon@josefsson.org>
109
110         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
111         if not provided by the system's netdb.h.  Reported by
112         ludo@gnu.org (Ludovic Courtès).
113
114 2010-02-15  Jim Meyering  <meyering@redhat.com>
115
116         init.sh: improve portability and efficiency
117         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
118         "dummy" in a for loop.
119         Use '!', not '^' to select the complement of a character set used
120         in a "case" statement.
121         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
122         Suggestions from Eric Blake.
123
124         init.sh: automatically accommodate programs with the .exe suffix
125         Automatically arrange for an invocation of "prog" to execute the
126         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
127         may use the simpler "prog", yet still work when built on a system
128         that requires specifying the added suffix.
129         Do this by constructing a function named "prog" that invokes
130         "prog.exe" for each .exe file in selected directories.
131         * tests/init.sh (find_exe_basenames_): New function.
132         (create_exe_shim_functions_): New function.
133         (path_prepend_): Use it.
134
135         maint.mk: mark syntax-check sc_*.m rules as .PHONY
136         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
137         "make -t syntax-check" doesn't create a ton of sc_*.m files.
138
139 2010-02-14  Jim Meyering  <meyering@redhat.com>
140
141         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
142         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
143         (sc_prohibit_hash_pjw_without_use): New rule.
144
145         maint.mk: allow the default upload destination dir to be overridden
146         * top/maint.mk (upload_dest_dir_): Define with a default that
147         preserves the status quo.
148         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
149         Reported by Peter Simons.
150
151         maint.mk: prohibit inclusion of "hash.h" without_use
152         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
153
154 2010-02-10  Jim Meyering  <meyering@redhat.com>
155
156         maint.mk: prohibit inclusion of "ignore-value.h" without_use
157         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
158
159 2010-02-09  Eric Blake  <ebb9@byu.net>
160         and Bruno Haible  <bruno@clisp.org>
161
162         obstack-printf-posix: ensure declaration
163         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
164         extracted from gl_FUNC_OBSTACK_PRINTF.
165         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
166         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
167         Likewise.
168         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
169         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
170         0.
171
172 2010-02-08  Bruno Haible  <bruno@clisp.org>
173
174         gnulib-tool: Fix typo in 2010-02-07 commit.
175         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
176         Reported by Eric Blake.
177
178 2010-02-07  Bruno Haible  <bruno@clisp.org>
179
180         gnulib-tool: Fix up caching patches.
181         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
182         option --no-cache. Use associative arrays when supported by the shell.
183         (sed_comments): New variable.
184         (modcache): Renamed from do_cache.
185         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
186         abbreviate unnecessarily.
187         (have_associative): New variable.
188         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
189         way also for ksh and zsh.
190         (func_init_sed_convert_to_cache_statements): New function, extracted
191         from func_cache_lookup_module. Add support for associative arrays.
192         Don't set the c_MODULE_cached variable here. Ignore all lines before
193         the first field header. Remove only the final newline, not all trailing
194         newlines. Support empty fields correctly. Limit the use of 'eval' to
195         assignments.
196         (func_get_description, func_get_status, func_get_notice,
197         func_get_applicability, func_get_filelist, func_get_dependencies,
198         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
199         func_get_automake_snippet, func_get_include_directive,
200         func_get_link_directive, func_get_license, func_get_maintainer):
201         Update documentation. List the unoptimized code first. Add support for
202         associative arrays. Limit the use of 'eval' to assignments.
203         (func_get_applicability): Undo stylistic pessimisations.
204         (func_get_automake_snippet, func_get_include_directive): Reduce code
205         duplication.
206         (func_modules_transitive_closure, func_modules_add_dummy,
207         func_modules_notice, func_modules_to_filelist, func_add_file,
208         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
209         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
210         func_create_testdir, func_create_megatestdir): Update documentation.
211
212 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
213
214         * gnulib-tool (func_cache_lookup_module): Store the module name
215         belonging to the cache variable; error out if two different
216         module names map to the same cache variable name.
217
218 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
219
220         gnulib-tool: Make caching optional.
221         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
222         Update matching short versions of --no-changelog.
223         (func_usage): Update.
224         (sed_extract_cache_prog): Renamed from ...
225         (sed_extract_prog): ... this; revert to old extraction script.
226         (func_get_description, func_get_status)
227         (func_get_notice, func_get_applicability, func_get_filelist)
228         (func_get_dependencies, func_get_autoconf_early_snippet)
229         (func_get_autoconf_snippet, func_get_automake_snippet)
230         (func_get_include_directive, func_get_link_directive)
231         (func_get_license, func_get_maintainer): If $do_cache is false,
232         use old, non-caching extraction scripts.
233         Suggestion by Bruno Haible.
234
235 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
236
237         gnulib-tool: cache module metainformation.
238         * gnulib-tool (sed_extract_prog): Match newline before each
239         header, and rewrite header to a shell variable suffix.
240         (func_cache_var, func_cache_lookup_module): New functions,
241         to turn a module name into a cache variable prefix, and to
242         look up and cache module metainformation.
243         (func_get_description, func_get_status)
244         (func_get_notice, func_get_applicability, func_get_filelist)
245         (func_get_dependencies, func_get_autoconf_early_snippet)
246         (func_get_autoconf_snippet, func_get_automake_snippet)
247         (func_get_include_directive, func_get_link_directive)
248         (func_get_license, func_get_maintainer): Use
249         func_cache_lookup_module.
250
251 2010-02-07  Bruno Haible  <bruno@clisp.org>
252
253         fnctl: Fix missing dependency.
254         * modules/fcntl (Depends-on): Add getdtablesize.
255         Reported by John W. Eaton <jwe@gnu.org>.
256
257 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
258
259         Argp: fix recognition of short alias options.
260
261         * lib/argp-parse.c (convert_options): Fix improper use of
262         `|' between character values.
263         * tests/test-argp.c (group1_option): New alias option
264         --read (-r).
265         (group1_parser): Special handling for 'r'.
266         (test15): New test case.
267         (test_fun): Add test15.
268         * tests/test-argp-2.sh: Update expected --help and --usage
269         outputs.
270
271 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
272
273         * tests/test-argp.c: Fix indentation.
274
275 2010-02-04  Eric Blake  <ebb9@byu.net>
276
277         gettimeofday: expose type of second argument
278         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
279         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
280         * tests/test-gettimeofday.c: Use it to silence warning.
281         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
282         the issue.
283
284 2010-02-03  Jim Meyering  <meyering@redhat.com>
285
286         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
287         * lib/regcomp.c (TYPE_SIGNED): Define.
288         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
289
290         regcomp.c: avoid a new -Wshadow warning
291         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
292
293 2010-02-01  Jim Meyering  <meyering@redhat.com>
294
295         removing useless parentheses in cpp #define directives
296         For motivation, see commit c0221df4, "define STREQ(a,b)
297         consistently, removing useless parentheses"
298         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
299         * lib/mountlist.c (MNT_IGNORE): Likewise.
300         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
301
302 2010-02-01  Eric Blake  <ebb9@byu.net>
303
304         sys_time: use link-warning
305         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
306         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
307         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
308         * modules/sys_time (Depends-on): Add warn-on-use.
309         (Makefile.am): Always build replacement.
310         (configure.ac): Update substitutions.
311         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
312         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
313         bother with SYS_TIME_H.
314         * modules/gettimeofday (configure.ac): Declare indicator.
315         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
316         in use.
317
318         closein-tests: silence compiler warning
319         * tests/test-closein.c (main): Ignore fread result.
320         * modules/closein-tests (Depends-on): Add ignore-value.
321
322         tests: silence warning about system return
323         * tests/test-areadlink-with-size.c (main): Ignore system result.
324         * tests/test-areadlink.c (main): Likewise.
325         * tests/test-areadlinkat-with-size.c (main): Likewise.
326         * tests/test-areadlinkat.c (main): Likewise.
327         * tests/test-canonicalize-lgpl.c (main): Likewise.
328         * tests/test-canonicalize.c (main): Likewise.
329         * tests/test-chown.c (main): Likewise.
330         * tests/test-fchownat.c (main): Likewise.
331         * tests/test-fdutimensat.c (main): Likewise.
332         * tests/test-fstatat.c (main): Likewise.
333         * tests/test-futimens.c (main): Likewise.
334         * tests/test-lchown.c (main): Likewise.
335         * tests/test-link.c (main): Likewise.
336         * tests/test-linkat.c (main): Likewise.
337         * tests/test-lstat.c (main): Likewise.
338         * tests/test-mkdir.c (main): Likewise.
339         * tests/test-mkdirat.c (main): Likewise.
340         * tests/test-mkfifo.c (main): Likewise.
341         * tests/test-mkfifoat.c (main): Likewise.
342         * tests/test-mknod.c (main): Likewise.
343         * tests/test-readlink.c (main): Likewise.
344         * tests/test-remove.c (main): Likewise.
345         * tests/test-rename.c (main): Likewise.
346         * tests/test-renameat.c (main): Likewise.
347         * tests/test-rmdir.c (main): Likewise.
348         * tests/test-symlink.c (main): Likewise.
349         * tests/test-symlinkat.c (main): Likewise.
350         * tests/test-unlink.c (main): Likewise.
351         * tests/test-unlinkat.c (main): Likewise.
352         * tests/test-utimens.c (main): Likewise.
353         * tests/test-utimensat.c (main): Likewise.
354         * modules/areadlink-tests (Depends-on): Add ignore-value.
355         * modules/areadlink-with-size-tests (Depends-on): Likewise.
356         * modules/areadlinkat-tests (Depends-on): Likewise.
357         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
358         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
359         * modules/canonicalize-tests (Depends-on): Likewise.
360         * modules/chown-tests (Depends-on): Likewise.
361         * modules/fdutimensat-tests (Depends-on): Likewise.
362         * modules/futimens-tests (Depends-on): Likewise.
363         * modules/lchown-tests (Depends-on): Likewise.
364         * modules/link-tests (Depends-on): Likewise.
365         * modules/linkat-tests (Depends-on): Likewise.
366         * modules/lstat-tests (Depends-on): Likewise.
367         * modules/mkdir-tests (Depends-on): Likewise.
368         * modules/mkfifo-tests (Depends-on): Likewise.
369         * modules/mkfifoat-tests (Depends-on): Likewise.
370         * modules/mknod-tests (Depends-on): Likewise.
371         * modules/openat-tests (Depends-on): Likewise.
372         * modules/readlink-tests (Depends-on): Likewise.
373         * modules/remove-tests (Depends-on): Likewise.
374         * modules/rename-tests (Depends-on): Likewise.
375         * modules/renameat-tests (Depends-on): Likewise.
376         * modules/rmdir-tests (Depends-on): Likewise.
377         * modules/symlink-tests (Depends-on): Likewise.
378         * modules/symlinkat-tests (Depends-on): Likewise.
379         * modules/unlink-tests (Depends-on): Likewise.
380         * modules/utimens-tests (Depends-on): Likewise.
381         * modules/utimensat-tests (Depends-on): Likewise.
382
383 2010-01-31  Bruno Haible  <bruno@clisp.org>
384
385         Perform the same test for many <math.h> functions.
386         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
387         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
388         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
389         of gl_MATHFUNC.
390         * modules/acos (configure.ac): Likewise.
391         * modules/asin (configure.ac): Likewise.
392         * modules/atan (configure.ac): Likewise.
393         * modules/atan2 (configure.ac): Likewise.
394         * modules/cbrt (configure.ac): Likewise.
395         * modules/copysign (configure.ac): Likewise.
396         * modules/cos (configure.ac): Likewise.
397         * modules/cosh (configure.ac): Likewise.
398         * modules/erf (configure.ac): Likewise.
399         * modules/erfc (configure.ac): Likewise.
400         * modules/exp (configure.ac): Likewise.
401         * modules/fmod (configure.ac): Likewise.
402         * modules/hypot (configure.ac): Likewise.
403         * modules/j0 (configure.ac): Likewise.
404         * modules/j1 (configure.ac): Likewise.
405         * modules/jn (configure.ac): Likewise.
406         * modules/lgamma (configure.ac): Likewise.
407         * modules/log (configure.ac): Likewise.
408         * modules/log10 (configure.ac): Likewise.
409         * modules/log1p (configure.ac): Likewise.
410         * modules/pow (configure.ac): Likewise.
411         * modules/remainder (configure.ac): Likewise.
412         * modules/sin (configure.ac): Likewise.
413         * modules/sinh (configure.ac): Likewise.
414         * modules/tan (configure.ac): Likewise.
415         * modules/tanh (configure.ac): Likewise.
416         * modules/y0 (configure.ac): Likewise.
417         * modules/y1 (configure.ac): Likewise.
418         * modules/yn (configure.ac): Likewise.
419         Suggested by Paolo Bonzini.
420
421 2010-01-31  Bruno Haible  <bruno@clisp.org>
422
423         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
424
425 2010-01-31  Bruno Haible  <bruno@clisp.org>
426
427         Work around getdelim() bug on FreeBSD 8.0.
428         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
429         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
430         not work.
431         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
432         is 1.
433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
434         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
435         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
436         a non-zero size.
437         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
438
439 2010-01-31  Bruno Haible  <bruno@clisp.org>
440
441         Work around getline() bug on FreeBSD 8.0.
442         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
443         and a non-zero size.
444         * tests/test-getline.c (main): Likewise.
445         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
446         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
447
448 2010-01-28  Eric Blake  <ebb9@byu.net>
449
450         regex: fix build failure
451         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
452         platforms.
453
454 2010-01-28  Jim Meyering  <meyering@redhat.com>
455
456         regex: do not ignore memory allocation failure
457         * lib/regex_internal.c (create_cd_newstate): Detect
458         re_node_set_init_copy failure.   Extracted from glibc commit
459         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
460
461         regex: sync more white-space changes from libc
462         * lib/regex_internal.c: White-space only changes.
463         * lib/regexec.c: Likewise.
464
465         regex: add many uses of __attribute_warn_unused_result__
466         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
467         * lib/regexec.c: Likewise.
468         Extracted from a messy glibc commit.
469
470         regcomp.c: spelling and merge-artifact from glibc
471         * lib/regcomp.c: Merge remainder of glibc's
472         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
473
474         regcomp.c: sync white-space changes from glibc
475         * lib/regcomp.c: Merge to accommodate white space
476         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
477
478         regcomp.c: do not ignore internal return values
479         * lib/regcomp.c: Do not ignore internal return values.
480         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
481         but without its white-space changes and spelling fixes.
482
483         regex_internal.h: define __attribute_warn_unused_result__
484         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
485
486         maint: add a syntax-check rule to check for vulnerable Makefile.in
487         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
488
489 2010-01-27  Jim Meyering  <meyering@redhat.com>
490
491         ncftpput-ftp: clean up spaces
492         * build-aux/ncftpput-ftp: Make Copyright line consistent.
493         Remove trailing blanks.
494
495 2010-01-27  Simon Josefsson  <simon@josefsson.org>
496
497         * build-aux/git-version-gen: Fix copyright statement.
498         * build-aux/gnupload: Likewise.
499         * tests/test-arcfour.c: Likewise.
500         * tests/test-arctwo.c: Likewise.
501         * tests/test-count-one-bits.c: Likewise.
502         * tests/test-crc.c: Likewise.
503         * tests/test-des.c: Likewise.
504         * tests/test-gc-arcfour.c: Likewise.
505         * tests/test-gc-arctwo.c: Likewise.
506         * tests/test-gc-des.c: Likewise.
507         * tests/test-gc-hmac-md5.c: Likewise.
508         * tests/test-gc-hmac-sha1.c: Likewise.
509         * tests/test-gc-md2.c: Likewise.
510         * tests/test-gc-md4.c: Likewise.
511         * tests/test-gc-md5.c: Likewise.
512         * tests/test-gc-pbkdf2-sha1.c: Likewise.
513         * tests/test-gc-rijndael.c: Likewise.
514         * tests/test-gc-sha1.c: Likewise.
515         * tests/test-gc.c: Likewise.
516         * tests/test-gethostname.c: Likewise.
517         * tests/test-gettimeofday.c: Likewise.
518         * tests/test-hash.c: Likewise.
519         * tests/test-hmac-md5.c: Likewise.
520         * tests/test-hmac-sha1.c: Likewise.
521         * tests/test-md2.c: Likewise.
522         * tests/test-md4.c: Likewise.
523         * tests/test-md5.c: Likewise.
524         * tests/test-memchr.c: Likewise.
525         * tests/test-memchr2.c: Likewise.
526         * tests/test-memcmp.c: Likewise.
527         * tests/test-memmem.c: Likewise.
528         * tests/test-memrchr.c: Likewise.
529         * tests/test-rawmemchr.c: Likewise.
530         * tests/test-read-file.c: Likewise.
531         * tests/test-rijndael.c: Likewise.
532         * tests/test-sockets.c: Likewise.
533         * tests/test-strchrnul.c: Likewise.
534         * tests/test-strstr.c: Likewise.
535         * tests/test-strtod.c: Likewise.
536         * build-aux/ncftpput-ftp: Likewise.
537
538 2010-01-26  Eric Blake  <ebb9@byu.net>
539
540         ignore-value: update recommended header name
541         * modules/ignore-value (Include): Only use <> for headers that
542         exist in glibc.
543
544 2010-01-26  Jim Meyering  <meyering@redhat.com>
545
546         test-userspec.c: avoid compiler warnings
547         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
548         and "initialization discards qualifiers..." warnings.
549         Put the first "uid" in its own scope, and make char* members "const".
550
551 2010-01-25  Bruno Haible  <bruno@clisp.org>
552
553         gnulib-tool: Make warning diagnostics consistent.
554         * gnulib-tool (func_warning): New function.
555         Use it everywhere where gnulib-tool produces output to stderr and it is
556         not a fatal error.
557
558 2010-01-25  Bruno Haible  <bruno@clisp.org>
559
560         Fix test dependencies.
561         * modules/xstrtol-tests (Depends-on): Add inttypes.
562         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
563
564 2010-01-25 Pádraig Brady <P@draigBrady.com>
565
566         syntax-check: detect incorrect boolean macro values in config.h
567         * modules/maintainer-makefile (configure.ac): Parameterize the location
568         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
569         The logic is from Eric Blake and the location indicated by Jim Meyering.
570         Note the more natural CONFIG_HEADER name is prohibited by automake
571         for backwards compatibility reasons.
572         * top/maint.mk (sc_Wundef_boolean): New rule.
573
574 2010-01-25  Jim Meyering  <meyering@redhat.com>
575
576         bootstrap: detect MacOS 10.6's shasum, too
577         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
578         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
579
580 2010-01-23  Jim Meyering  <meyering@redhat.com>
581
582         xstrtoll: new module
583         * modules/xstrtoll: New file.
584         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
585         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
586         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
587         ./configure fails if you use this module and lack "long long".
588         * modules/xstrtoll-tests: New module.
589         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
590         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
591         new init.sh-based test framework.
592
593 2010-01-24  Bruno Haible  <bruno@clisp.org>
594
595         Tests for module 'yn'.
596         * modules/yn-tests: New file.
597         * tests/test-yn.c: New file.
598
599         Tests for module 'y1'.
600         * modules/y1-tests: New file.
601         * tests/test-y1.c: New file.
602
603         Tests for module 'y0'.
604         * modules/y0-tests: New file.
605         * tests/test-y0.c: New file.
606
607         Tests for module 'tanh'.
608         * modules/tanh-tests: New file.
609         * tests/test-tanh.c: New file.
610
611         Tests for module 'tan'.
612         * modules/tan-tests: New file.
613         * tests/test-tan.c: New file.
614
615         Tests for module 'sqrt'.
616         * modules/sqrt-tests: New file.
617         * tests/test-sqrt.c: New file.
618
619         Tests for module 'sinh'.
620         * modules/sinh-tests: New file.
621         * tests/test-sinh.c: New file.
622
623         Tests for module 'sin'.
624         * modules/sin-tests: New file.
625         * tests/test-sin.c: New file.
626
627         Tests for module 'rint'.
628         * modules/rint-tests: New file.
629         * tests/test-rint.c: New file.
630
631         Tests for module 'remainder'.
632         * modules/remainder-tests: New file.
633         * tests/test-remainder.c: New file.
634
635         Tests for module 'pow'.
636         * modules/pow-tests: New file.
637         * tests/test-pow.c: New file.
638
639         Tests for module 'nextafter'.
640         * modules/nextafter-tests: New file.
641         * tests/test-nextafter.c: New file.
642
643         Tests for module 'modf'.
644         * modules/modf-tests: New file.
645         * tests/test-modf.c: New file.
646
647         Tests for module 'logb'.
648         * modules/logb-tests: New file.
649         * tests/test-logb.c: New file.
650
651         Tests for module 'log1p'.
652         * modules/log1p-tests: New file.
653         * tests/test-log1p.c: New file.
654
655         Tests for module 'log10'.
656         * modules/log10-tests: New file.
657         * tests/test-log10.c: New file.
658
659         Tests for module 'log'.
660         * modules/log-tests: New file.
661         * tests/test-log.c: New file.
662
663         Tests for module 'lgamma'.
664         * modules/lgamma-tests: New file.
665         * tests/test-lgamma.c: New file.
666
667         Tests for module 'ldexp'.
668         * modules/ldexp-tests: New file.
669         * tests/test-ldexp.c: New file.
670
671         Tests for module 'jn'.
672         * modules/jn-tests: New file.
673         * tests/test-jn.c: New file.
674
675         Tests for module 'j1'.
676         * modules/j1-tests: New file.
677         * tests/test-j1.c: New file.
678
679         Tests for module 'j0'.
680         * modules/j0-tests: New file.
681         * tests/test-j0.c: New file.
682
683         Tests for module 'hypot'.
684         * modules/hypot-tests: New file.
685         * tests/test-hypot.c: New file.
686
687         Tests for module 'fmod'.
688         * modules/fmod-tests: New file.
689         * tests/test-fmod.c: New file.
690
691         Tests for module 'fabs'.
692         * modules/fabs-tests: New file.
693         * tests/test-fabs.c: New file.
694
695         Tests for module 'exp'.
696         * modules/exp-tests: New file.
697         * tests/test-exp.c: New file.
698
699         Tests for module 'erfc'.
700         * modules/erfc-tests: New file.
701         * tests/test-erfc.c: New file.
702
703         Tests for module 'erf'.
704         * modules/erf-tests: New file.
705         * tests/test-erf.c: New file.
706
707         Tests for module 'cosh'.
708         * modules/cosh-tests: New file.
709         * tests/test-cosh.c: New file.
710
711         Tests for module 'cos'.
712         * modules/cos-tests: New file.
713         * tests/test-cos.c: New file.
714
715         Tests for module 'copysign'.
716         * modules/copysign-tests: New file.
717         * tests/test-copysign.c: New file.
718
719         Tests for module 'cbrt'.
720         * modules/cbrt-tests: New file.
721         * tests/test-cbrt.c: New file.
722
723         Tests for module 'atan2'.
724         * modules/atan2-tests: New file.
725         * tests/test-atan2.c: New file.
726
727         Tests for module 'atan'.
728         * modules/atan-tests: New file.
729         * tests/test-atan.c: New file.
730
731         Tests for module 'asin'.
732         * modules/asin-tests: New file.
733         * tests/test-asin.c: New file.
734
735         Tests for module 'acos'.
736         * modules/acos-tests: New file.
737         * tests/test-acos.c: New file.
738
739 2010-01-24  Bruno Haible  <bruno@clisp.org>
740
741         Fix tests for common <math.h> functions.
742         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
743         code snippet that references the function pointer, rather than merely
744         calling the function. Substitute the FUNC_LIBM variable.
745         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
746         * modules/acos (configure.ac): Likewise.
747         * modules/asin (configure.ac): Likewise.
748         * modules/atan (configure.ac): Likewise.
749         * modules/atan2 (configure.ac): Likewise.
750         * modules/cbrt (configure.ac): Likewise.
751         * modules/copysign (configure.ac): Likewise.
752         * modules/cos (configure.ac): Likewise.
753         * modules/cosh (configure.ac): Likewise.
754         * modules/erf (configure.ac): Likewise.
755         * modules/erfc (configure.ac): Likewise.
756         * modules/exp (configure.ac): Likewise.
757         * modules/fabs (configure.ac): Likewise.
758         * modules/fmod (configure.ac): Likewise.
759         * modules/hypot (configure.ac): Likewise.
760         * modules/j0 (configure.ac): Likewise.
761         * modules/j1 (configure.ac): Likewise.
762         * modules/jn (configure.ac): Likewise.
763         * modules/ldexp (configure.ac): Likewise.
764         * modules/lgamma (configure.ac): Likewise.
765         * modules/log (configure.ac): Likewise.
766         * modules/log10 (configure.ac): Likewise.
767         * modules/log1p (configure.ac): Likewise.
768         * modules/logb (configure.ac): Likewise.
769         * modules/modf (configure.ac): Likewise.
770         * modules/nextafter (configure.ac): Likewise.
771         * modules/pow (configure.ac): Likewise.
772         * modules/remainder (configure.ac): Likewise.
773         * modules/rint (configure.ac): Likewise.
774         * modules/sin (configure.ac): Likewise.
775         * modules/sinh (configure.ac): Likewise.
776         * modules/tan (configure.ac): Likewise.
777         * modules/tanh (configure.ac): Likewise.
778         * modules/y0 (configure.ac): Likewise.
779         * modules/y1 (configure.ac): Likewise.
780         * modules/yn (configure.ac): Likewise.
781
782 2010-01-24  Bruno Haible  <bruno@clisp.org>
783
784         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
785         * tests/test-acosl.c (x): New variable.
786         (main): Store argument in x and fetch it from x.
787         * tests/test-asinl.c (x): New variable.
788         (main): Store argument in x and fetch it from x.
789         * tests/test-atanl.c (x): New variable.
790         (main): Store argument in x and fetch it from x.
791         * tests/test-cosl.c (x): New variable.
792         (main): Store argument in x and fetch it from x.
793         * tests/test-expl.c (x): New variable.
794         (main): Store argument in x and fetch it from x.
795         * tests/test-logl.c (x): New variable.
796         (main): Store argument in x and fetch it from x.
797         * tests/test-sinl.c (x): New variable.
798         (main): Store argument in x and fetch it from x.
799         * tests/test-sqrtl.c (x): New variable.
800         (main): Store argument in x and fetch it from x.
801         * tests/test-tanl.c (x): New variable.
802         (main): Store argument in x and fetch it from x.
803
804 2010-01-24  Bruno Haible  <bruno@clisp.org>
805
806         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
807         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
808         assignments to the initial TESTS_ENVIRONMENT.
809         * doc/gnulib.texi (Unit test modules): Document it.
810         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
811         TESTS_ENVIRONMENT.
812         * modules/btowc-tests (Makefile.am): Likewise.
813         * modules/c-stack-tests (Makefile.am): Likewise.
814         * modules/c-strcase-tests (Makefile.am): Likewise.
815         * modules/copy-file-tests (Makefile.am): Likewise.
816         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
817         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
818         * modules/mbrtowc-tests (Makefile.am): Likewise.
819         * modules/mbscasecmp-tests (Makefile.am): Likewise.
820         * modules/mbscasestr-tests (Makefile.am): Likewise.
821         * modules/mbschr-tests (Makefile.am): Likewise.
822         * modules/mbscspn-tests (Makefile.am): Likewise.
823         * modules/mbsinit-tests (Makefile.am): Likewise.
824         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
825         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
826         * modules/mbspbrk-tests (Makefile.am): Likewise.
827         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
828         * modules/mbsrchr-tests (Makefile.am): Likewise.
829         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
830         * modules/mbsspn-tests (Makefile.am): Likewise.
831         * modules/mbsstr-tests (Makefile.am): Likewise.
832         * modules/nl_langinfo-tests (Makefile.am): Likewise.
833         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
834         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
835         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
836         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
837         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
838         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
839         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
840         * modules/wcrtomb-tests (Makefile.am): Likewise.
841         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
842         * modules/wcsrtombs-tests (Makefile.am): Likewise.
843         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
844         assignments from TESTS_ENVIRONMENT.
845         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
846         augmentation.
847         * modules/argp-version-etc-tests (Makefile.am): Likewise.
848         * modules/atexit-tests (Makefile.am): Likewise.
849         * modules/binary-io-tests (Makefile.am): Likewise.
850         * modules/closein-tests (Makefile.am): Likewise.
851         * modules/dprintf-posix-tests (Makefile.am): Likewise.
852         * modules/exclude-tests (Makefile.am): Likewise.
853         * modules/fflush-tests (Makefile.am): Likewise.
854         * modules/fpending-tests (Makefile.am): Likewise.
855         * modules/fprintf-posix-tests (Makefile.am): Likewise.
856         * modules/freadahead-tests (Makefile.am): Likewise.
857         * modules/freadptr-tests (Makefile.am): Likewise.
858         * modules/freadseek-tests (Makefile.am): Likewise.
859         * modules/fseek-tests (Makefile.am): Likewise.
860         * modules/fseeko-tests (Makefile.am): Likewise.
861         * modules/ftell-tests (Makefile.am): Likewise.
862         * modules/ftello-tests (Makefile.am): Likewise.
863         * modules/idpriv-drop-tests (Makefile.am): Likewise.
864         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
865         * modules/lseek-tests (Makefile.am): Likewise.
866         * modules/parse-duration-tests (Makefile.am): Likewise.
867         * modules/perror-tests (Makefile.am): Likewise.
868         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
869         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
870         * modules/pipe-tests (Makefile.am): Likewise.
871         * modules/pread-tests (Makefile.am): Likewise.
872         * modules/printf-posix-tests (Makefile.am): Likewise.
873         * modules/select-tests (Makefile.am): Likewise.
874         * modules/sigpipe-tests (Makefile.am): Likewise.
875         * modules/tsearch-tests (Makefile.am): Likewise.
876         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
877         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
878         * modules/uniname/uniname-tests (Makefile.am): Likewise.
879         * modules/uniwidth/width-tests (Makefile.am): Likewise.
880         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
881         * modules/version-etc-tests (Makefile.am): Likewise.
882         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
883         * modules/vprintf-posix-tests (Makefile.am): Likewise.
884         * modules/xalloc-die-tests (Makefile.am): Likewise.
885         * modules/xprintf-posix-tests (Makefile.am): Likewise.
886         * modules/xstrtoimax-tests (Makefile.am): Likewise.
887         * modules/xstrtol-tests (Makefile.am): Likewise.
888         * modules/xstrtoumax-tests (Makefile.am): Likewise.
889         * modules/yesno-tests (Makefile.am): Likewise.
890         Suggested by Jim Meyering.
891
892 2010-01-24  Bruno Haible  <bruno@clisp.org>
893
894         More documentation.
895         * doc/gnulib.texi (Writing modules): New chapter.
896         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
897         the new chapter.
898
899 2010-01-24  Jim Meyering  <meyering@redhat.com>
900
901         maint.mk: do not prepend "./" after filtering
902         * top/maint.mk (_prepend_srcdir_prefix): New variable
903         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
904         "./" when $(srcdir) is ".".
905
906         define STREQ(a,b) consistently, removing useless parentheses
907         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
908         since the only risk is that "a" or "b" contains an unparenthesized
909         comma, but if either did that, STREQ would have 3 or more arguments.
910         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
911         * lib/fts.c (STREQ): Remove unnecessary parentheses.
912         * lib/hash-triple.c (STREQ): Likewise.
913         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
914         * lib/getugroups.c (STREQ): Likewise.
915
916 2010-01-23  Jim Meyering  <meyering@redhat.com>
917
918         maint.mk: fix syntax-check in a non-srcdir build directory
919         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
920         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
921
922 2010-01-22  Jim Meyering  <meyering@redhat.com>
923
924         userspec: add unit tests
925         * tests/test-userspec.c: New file.
926         * modules/userspec-tests: Likewise.
927
928 2010-01-21  Jim Meyering  <meyering@redhat.com>
929
930         maint.mk: handle source file names containing "." robustly
931         * top/maint.mk (_dot_escaped_srcdir): Define.
932         (VC_LIST): Use it in LHS of sed substitution.
933
934 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
935
936         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
937         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
938         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
939         from a non-srcdir build.
940
941 2010-01-20  Eric Blake  <ebb9@byu.net>
942
943         warn-on-use: use instead of link-warning
944         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
945         * modules/unistd (Depends-on, Makefile.am): Likewise.
946         * modules/arpa_inet (Depends-on): Replace link-warning with
947         warn-on-use.
948         (Makefile.am): Update rules accordingly.
949         * modules/ctype (Depends-on, Makefile.am): Likewise.
950         * modules/dirent (Depends-on, Makefile.am): Likewise.
951         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
952         * modules/inttypes (Depends-on, Makefile.am): Likewise.
953         * modules/langinfo (Depends-on, Makefile.am): Likewise.
954         * modules/locale (Depends-on, Makefile.am): Likewise.
955         * modules/math (Depends-on, Makefile.am): Likewise.
956         * modules/search (Depends-on, Makefile.am): Likewise.
957         * modules/signal (Depends-on, Makefile.am): Likewise.
958         * modules/spawn (Depends-on, Makefile.am): Likewise.
959         * modules/stdlib (Depends-on, Makefile.am): Likewise.
960         * modules/string (Depends-on, Makefile.am): Likewise.
961         * modules/strings (Depends-on, Makefile.am): Likewise.
962         * modules/sys_file (Depends-on, Makefile.am): Likewise.
963         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
964         * modules/sys_select (Depends-on, Makefile.am): Likewise.
965         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
966         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
967         * modules/sys_times (Depends-on, Makefile.am): Likewise.
968         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
969         * modules/wchar (Depends-on, Makefile.am): Likewise.
970         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
971         should be poisoned.
972         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
973         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
974         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
975         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
976         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
977         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
978         * m4/math_h.m4 (gl_MATH_H): Likewise.
979         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
980         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
981         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
982         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
983         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
984         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
985         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
986         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
987         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
988         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
989         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
990         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
991         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
992         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
993         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
994         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
995         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
996         GL_LINK_WARNING.
997         * lib/ctype.in.h: Likewise.
998         * lib/dirent.in.h: Likewise.
999         * lib/fcntl.in.h: Likewise.
1000         * lib/inttypes.in.h: Likewise.
1001         * lib/langinfo.in.h: Likewise.
1002         * lib/locale.in.h: Likewise.
1003         * lib/math.in.h: Likewise.
1004         * lib/search.in.h: Likewise.
1005         * lib/signal.in.h: Likewise.
1006         * lib/spawn.in.h: Likewise.
1007         * lib/stdio.in.h: Likewise.
1008         * lib/stdlib.in.h: Likewise.
1009         * lib/string.in.h: Likewise.
1010         * lib/strings.in.h: Likewise.
1011         * lib/sys_file.in.h: Likewise.
1012         * lib/sys_ioctl.in.h: Likewise.
1013         * lib/sys_select.in.h: Likewise.
1014         * lib/sys_socket.in.h: Likewise.
1015         * lib/sys_stat.in.h: Likewise.
1016         * lib/sys_times.in.h: Likewise.
1017         * lib/sys_utsname.in.h: Likewise.
1018         * lib/unistd.in.h: Likewise.
1019         * lib/wchar.in.h: Likewise.
1020
1021 2010-01-20  Bruno Haible  <bruno@clisp.org>
1022
1023         Avoid duplicate -lm.
1024         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1025         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1026         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1027         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1028         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1029         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1030         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1031         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1032         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1033         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1034         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1035         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1036         Reported by Paolo Bonzini.
1037
1038 2010-01-19  Bruno Haible  <bruno@clisp.org>
1039
1040         langinfo, nl_langinfo: Relicense under LGPLv2+.
1041         * modules/langinfo (License): Change to LGPLv2+.
1042         * modules/nl_langinfo (License): Likewise.
1043         Patch by David Lutterkort <lutter@redhat.com>.
1044
1045 2010-01-19  Bruno Haible  <bruno@clisp.org>
1046
1047         Avoid compilation error with cc on OSF/1 5.1.
1048         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1049         statement, not before.
1050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1051
1052 2010-01-18  Bruno Haible  <bruno@clisp.org>
1053
1054         Avoid a link error due to the __printf__ symbol.
1055         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1056         and 2.6.x.
1057         (__format__, __printf__): Remove definitions.
1058         * lib/argp-fmtstream.h: Likewise.
1059         * lib/argp.h: Likewise.
1060         * lib/error.h: Likewise.
1061         * lib/vasnprintf.h: Likewise.
1062         * lib/xprintf.h: Likewise.
1063         * lib/xvasprintf.h: Likewise.
1064         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1065
1066 2010-01-18  Bruno Haible  <bruno@clisp.org>
1067
1068         Tests for module 'tanl'.
1069         * modules/tanl-tests: New file.
1070         * tests/test-tanl.c: New file.
1071
1072         Tests for module 'sqrtl'.
1073         * modules/sqrtl-tests: New file.
1074         * tests/test-sqrtl.c: New file.
1075
1076         Tests for module 'sinl'.
1077         * modules/sinl-tests: New file.
1078         * tests/test-sinl.c: New file.
1079
1080         Tests for module 'logl'.
1081         * modules/logl-tests: New file.
1082         * tests/test-logl.c: New file.
1083
1084         Tests for module 'expl'.
1085         * modules/expl-tests: New file.
1086         * tests/test-expl.c: New file.
1087
1088         Tests for module 'cosl'.
1089         * modules/cosl-tests: New file.
1090         * tests/test-cosl.c: New file.
1091
1092         Tests for module 'atanl'.
1093         * modules/atanl-tests: New file.
1094         * tests/test-atanl.c: New file.
1095
1096         Tests for module 'asinl'.
1097         * modules/asinl-tests: New file.
1098         * tests/test-asinl.c: New file.
1099
1100         Tests for module 'acosl'.
1101         * modules/acosl-tests: New file.
1102         * tests/test-acosl.c: New file.
1103
1104         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1105         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1106         tanl): Use the standard gnulib idiom.
1107         * lib/cosl.c: Don't include trigl.c and sincosl.c.
1108         * lib/sinl.c: Likewise.
1109         * lib/tanl.c: Don't include trigl.c.
1110         (kernel_tanl): Make static.
1111         * lib/sincosl.c: Include trigl.h first.
1112         * lib/trigl.c: Likewise.
1113         * m4/acosl.m4: New file.
1114         * m4/asinl.m4: New file.
1115         * m4/atanl.m4: New file.
1116         * m4/cosl.m4: New file.
1117         * m4/expl.m4: New file.
1118         * m4/logl.m4: New file.
1119         * m4/sinl.m4: New file.
1120         * m4/sqrtl.m4: New file.
1121         * m4/tanl.m4: New file.
1122         * m4/mathl.m4: Remove file.
1123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1124         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1125         Don't initialize GNULIB_MATHL.
1126         * modules/acosl: New file.
1127         * modules/asinl: New file.
1128         * modules/atanl: New file.
1129         * modules/cosl: New file.
1130         * modules/expl: New file.
1131         * modules/logl: New file.
1132         * modules/sinl: New file.
1133         * modules/sqrtl: New file.
1134         * modules/tanl: New file.
1135         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1136         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1137         substitute GNULIB_MATHL.
1138         * modules/mathl: Rewritten.
1139         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1140         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1141         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1142         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1143         * doc/posix-functions/expl.texi: Mention the 'expl' module.
1144         * doc/posix-functions/logl.texi: Mention the 'logl' module.
1145         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1146         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1147         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1148
1149 2010-01-18  Bruno Haible  <bruno@clisp.org>
1150
1151         sqrt: Make gl_FUNC_SQRT requirable.
1152         * m4/sqrt.m4: New file.
1153         * modules/sqrt (Files): Add it.
1154         (configure.ac): Invoke gl_FUNC_SQRT.
1155
1156 2010-01-18  Bruno Haible  <bruno@clisp.org>
1157
1158         New modules for common <math.h> functions.
1159         * m4/mathfunc.m4: New file.
1160         * modules/acos: New file.
1161         * modules/asin: New file.
1162         * modules/atan: New file.
1163         * modules/atan2: New file.
1164         * modules/cbrt: New file.
1165         * modules/copysign: New file.
1166         * modules/cos: New file.
1167         * modules/cosh: New file.
1168         * modules/erf: New file.
1169         * modules/erfc: New file.
1170         * modules/exp: New file.
1171         * modules/fabs: New file.
1172         * modules/fmod: New file.
1173         * modules/hypot: New file.
1174         * modules/j0: New file.
1175         * modules/j1: New file.
1176         * modules/jn: New file.
1177         * modules/ldexp: New file.
1178         * modules/lgamma: New file.
1179         * modules/log: New file.
1180         * modules/log10: New file.
1181         * modules/log1p: New file.
1182         * modules/logb: New file.
1183         * modules/modf: New file.
1184         * modules/nextafter: New file.
1185         * modules/pow: New file.
1186         * modules/remainder: New file.
1187         * modules/rint: New file.
1188         * modules/sin: New file.
1189         * modules/sinh: New file.
1190         * modules/sqrt: New file.
1191         * modules/tan: New file.
1192         * modules/tanh: New file.
1193         * modules/y0: New file.
1194         * modules/y1: New file.
1195         * modules/yn: New file.
1196         * doc/posix-functions/acos.texi: Mention the 'acos' module.
1197         * doc/posix-functions/asin.texi: Mention the 'asin' module.
1198         * doc/posix-functions/atan.texi: Mention the 'atan' module.
1199         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1200         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1201         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1202         * doc/posix-functions/cos.texi: Mention the 'cos' module.
1203         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1204         * doc/posix-functions/erf.texi: Mention the 'erf' module.
1205         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1206         * doc/posix-functions/exp.texi: Mention the 'exp' module.
1207         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1208         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1209         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1210         * doc/posix-functions/j0.texi: Mention the 'j0' module.
1211         * doc/posix-functions/j1.texi: Mention the 'j1' module.
1212         * doc/posix-functions/jn.texi: Mention the 'jn' module.
1213         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1214         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1215         * doc/posix-functions/log.texi: Mention the 'log' module.
1216         * doc/posix-functions/log10.texi: Mention the 'log10' module.
1217         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1218         * doc/posix-functions/logb.texi: Mention the 'logb' module.
1219         * doc/posix-functions/modf.texi: Mention the 'modf' module.
1220         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1221         * doc/posix-functions/pow.texi: Mention the 'pow' module.
1222         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1223         * doc/posix-functions/rint.texi: Mention the 'rint' module.
1224         * doc/posix-functions/sin.texi: Mention the 'sin' module.
1225         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1226         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1227         * doc/posix-functions/tan.texi: Mention the 'tan' module.
1228         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1229         * doc/posix-functions/y0.texi: Mention the 'y0' module.
1230         * doc/posix-functions/y1.texi: Mention the 'y1' module.
1231         * doc/posix-functions/yn.texi: Mention the 'yn' module.
1232
1233 2010-01-18  Jim Meyering  <meyering@redhat.com>
1234
1235         ignore-value: relax license to LGPLv2+
1236         * modules/ignore-value (License): Relax to LGPLv2+.
1237
1238         getdate: don't leak when TZ contains two or more '"'s
1239         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1240         double quote in TZ after the first one.
1241
1242         readtokens: do not leak internal token_lengths buffer
1243         * lib/readtokens.c (readtokens): Free the local, lengths,
1244         when the supplied "token_lengths" parameter is NULL.
1245
1246 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1247
1248         Fix a couple of missing LIBTHREAD link failures on AIX.
1249         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1250         $(LIBTHREAD).
1251         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1252
1253         Link test-poll against INET_PTON_LIB.
1254         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1255         for inet_pton on Solaris 10.
1256
1257 2010-01-17  Bruno Haible  <bruno@clisp.org>
1258
1259         unistdio/*-sprintf: Fix typo in module description.
1260         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1261         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1262         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1263         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1264         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1265         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1266         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1267         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1268
1269 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1270
1271         gnulib-tool: fix filelist for AIX, HP-UX ksh.
1272         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1273         variables in shell case patterns, for AIX and HP-UX ksh.
1274
1275         Split large sed scripts, for HP-UX sed.
1276         * modules/stdio: Split sed scripts around 50 sed commands,
1277         to avoid HP-UX limit of 99 commands, in the near future.
1278         * modules/string: Likewise.
1279         * modules/unistd: Likewise.
1280
1281         gnulib-tool: avoid writing in the current directory.
1282         * gnulib-tool (func_emit_lib_Makefile_am)
1283         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1284         not in the current directory, so concurrent gnulib-tool
1285         instances do not interfere.
1286
1287 2010-01-16  Jim Meyering  <meyering@redhat.com>
1288
1289         doc: update users.txt
1290         * users.txt: Add grep.
1291         (diffutils, gzip): Update URLs.
1292
1293 2010-01-12  Bruno Haible  <bruno@clisp.org>
1294
1295         posix_spawn: Avoid test failure on Cygwin.
1296         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
1297         characters.
1298         Reported by Simon Josefsson.
1299
1300 2010-01-12  Bruno Haible  <bruno@clisp.org>
1301
1302         * tests/test-cond.c (main): When skipping the test, show the reason.
1303
1304 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1305
1306         * lib/striconv.c (str_cd_iconv): Avoid if before free.
1307
1308 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1309
1310         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
1311         VC_LIST_ALWAYS_EXCLUDE_REGEX.
1312
1313 2010-01-12  Eric Blake  <ebb9@byu.net>
1314
1315         build: guarantee AS_VAR_IF
1316         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
1317         (gl_AS_VAR_IF): Move...
1318         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
1319         Reported by Simon Josefsson.
1320
1321 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1322
1323         * lib/stdio.in.h: Fix typo.
1324
1325 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1326
1327         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
1328         libgpg-error.
1329
1330 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1331
1332         * tests/test-xalloc-die.sh: Use $EXEEXT.
1333
1334 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1335             Bruno Haible  <bruno@clisp.org>
1336
1337         getlogin, getlogin_r: Avoid test failure.
1338         * tests/test-getlogin.c: Include <stdio.h>.
1339         (main): Skip the test when the function fails because stdin is not a
1340         tty.
1341         * tests/test-getlogin_r.c: Include <stdio.h>.
1342         (main): Skip the test when the function fails because stdin is not a
1343         tty.
1344
1345 2010-01-11  Eric Blake  <ebb9@byu.net>
1346
1347         tests: avoid more large file warnings
1348         * tests/test-fflush.c: Avoid warning about ftell use.
1349         * tests/test-fseek.c: Avoid warning about fseek use.
1350
1351 2010-01-10  Bruno Haible  <bruno@clisp.org>
1352
1353         nproc: Work better on Linux when /proc and /sys are not mounted.
1354         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
1355         as lower bound when, on glibc/Linux systems,
1356         sysconf (_SC_NPROCESSORS_CONF) returns 1.
1357         Suggested by Pádraig Brady <P@draigbrady.com>.
1358         Reported by Dmitry V. Levin <ldv@altlinux.org>.
1359
1360         nproc: Refactor.
1361         * lib/nproc.c (num_processors_via_affinity_mask): New function,
1362         extracted from num_processors.
1363         (num_processors): Call it.
1364
1365 2010-01-11  Jim Meyering  <meyering@redhat.com>
1366
1367         utimecmp: avoid new warning from upcoming gcc-4.5.0
1368         * lib/utimecmp.c (BILLION): Define using #define rather than an
1369         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
1370
1371 2010-01-11  Eric Blake  <ebb9@byu.net>
1372
1373         math: add portability warnings for classification macros
1374         * modules/math (Depends-on): Add warn-on-use.
1375         (Makefile.am): Provide new substitutions.
1376         * m4/math_h.m4 (gl_MATH_H): Require inline.
1377         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
1378         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
1379         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
1380         implement warnings.
1381
1382         unistd: warn on use of environ without module
1383         * modules/unistd (Depends-on): Add warn-on-use.
1384         (Makefile.am): Provide new substitutions.
1385         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
1386         * lib/unistd.in.h (environ): Wrap with a warning helper function.
1387
1388         stdio: warn on suspicious uses
1389         * modules/stdio (Depends-on): Add warn-on-use.
1390         (Makefile.am): Provide new substitutions.
1391         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
1392         fseeko.
1393         * lib/stdio.in.h (gets): Always warn on use.
1394         (fseek, ftell): Adjust when warnings are issued, and honor
1395         _GL_NO_LARGE_FILES as a way to silence the warning.
1396         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
1397         any warning about large file offsets.
1398         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
1399         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
1400         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
1401         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
1402         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
1403         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
1404         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
1405         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
1406
1407         warn-on-use: new module
1408         * modules/warn-on-use: New file.
1409         * build-aux/warn-on-use.h: Likewise.
1410         * m4/warn-on-use.m4: Likewise.
1411         * MODULES.html.sh (Support for building): Mention it.
1412
1413 2010-01-10  Bruno Haible  <bruno@clisp.org>
1414
1415         Tests for module 'unistr/u32-strdup'.
1416         * modules/unistr/u32-strdup-tests: New file.
1417         * tests/unistr/test-u32-strdup.c: New file.
1418
1419         Tests for module 'unistr/u16-strdup'.
1420         * modules/unistr/u16-strdup-tests: New file.
1421         * tests/unistr/test-u16-strdup.c: New file.
1422
1423         Tests for module 'unistr/u8-strdup'.
1424         * modules/unistr/u8-strdup-tests: New file.
1425         * tests/unistr/test-u8-strdup.c: New file.
1426         * tests/unistr/test-strdup.h: New file.
1427
1428         Tests for module 'unistr/u32-strncmp'.
1429         * modules/unistr/u32-strncmp-tests: New file.
1430         * tests/unistr/test-u32-strncmp.c: New file.
1431
1432         Tests for module 'unistr/u16-strncmp'.
1433         * modules/unistr/u16-strncmp-tests: New file.
1434         * tests/unistr/test-u16-strncmp.c: New file.
1435
1436         Tests for module 'unistr/u8-strncmp'.
1437         * modules/unistr/u8-strncmp-tests: New file.
1438         * tests/unistr/test-u8-strncmp.c: New file.
1439         * tests/unistr/test-strncmp.h: New file.
1440
1441         Tests for module 'unistr/u32-strcoll'.
1442         * modules/unistr/u32-strcoll-tests: New file.
1443         * tests/unistr/test-u32-strcoll.c: New file.
1444
1445         Tests for module 'unistr/u16-strcoll'.
1446         * modules/unistr/u16-strcoll-tests: New file.
1447         * tests/unistr/test-u16-strcoll.c: New file.
1448
1449         Tests for module 'unistr/u8-strcoll'.
1450         * modules/unistr/u8-strcoll-tests: New file.
1451         * tests/unistr/test-u8-strcoll.c: New file.
1452
1453         Tests for module 'unistr/u32-strcmp'.
1454         * modules/unistr/u32-strcmp-tests: New file.
1455         * tests/unistr/test-u32-strcmp.c: New file.
1456         * tests/unistr/test-u32-strcmp.h: New file.
1457
1458         Tests for module 'unistr/u16-strcmp'.
1459         * modules/unistr/u16-strcmp-tests: New file.
1460         * tests/unistr/test-u16-strcmp.c: New file.
1461         * tests/unistr/test-u16-strcmp.h: New file.
1462
1463         Tests for module 'unistr/u8-strcmp'.
1464         * modules/unistr/u8-strcmp-tests: New file.
1465         * tests/unistr/test-u8-strcmp.c: New file.
1466         * tests/unistr/test-u8-strcmp.h: New file.
1467         * tests/unistr/test-strcmp.h: New file.
1468
1469         Tests for module 'unistr/u32-strncat'.
1470         * modules/unistr/u32-strncat-tests: New file.
1471         * tests/unistr/test-u32-strncat.c: New file.
1472
1473         Tests for module 'unistr/u16-strncat'.
1474         * modules/unistr/u16-strncat-tests: New file.
1475         * tests/unistr/test-u16-strncat.c: New file.
1476
1477         Tests for module 'unistr/u8-strncat'.
1478         * modules/unistr/u8-strncat-tests: New file.
1479         * tests/unistr/test-u8-strncat.c: New file.
1480         * tests/unistr/test-strncat.h: New file.
1481
1482         Tests for module 'unistr/u32-strcat'.
1483         * modules/unistr/u32-strcat-tests: New file.
1484         * tests/unistr/test-u32-strcat.c: New file.
1485
1486         Tests for module 'unistr/u16-strcat'.
1487         * modules/unistr/u16-strcat-tests: New file.
1488         * tests/unistr/test-u16-strcat.c: New file.
1489
1490         Tests for module 'unistr/u8-strcat'.
1491         * modules/unistr/u8-strcat-tests: New file.
1492         * tests/unistr/test-u8-strcat.c: New file.
1493         * tests/unistr/test-strcat.h: New file.
1494
1495         Tests for module 'unistr/u32-stpncpy'.
1496         * modules/unistr/u32-stpncpy-tests: New file.
1497         * tests/unistr/test-u32-stpncpy.c: New file.
1498
1499         Tests for module 'unistr/u16-stpncpy'.
1500         * modules/unistr/u16-stpncpy-tests: New file.
1501         * tests/unistr/test-u16-stpncpy.c: New file.
1502
1503         Tests for module 'unistr/u8-stpncpy'.
1504         * modules/unistr/u8-stpncpy-tests: New file.
1505         * tests/unistr/test-u8-stpncpy.c: New file.
1506         * tests/unistr/test-stpncpy.h: New file.
1507
1508         Tests for module 'unistr/u32-strncpy'.
1509         * modules/unistr/u32-strncpy-tests: New file.
1510         * tests/unistr/test-u32-strncpy.c: New file.
1511
1512         Tests for module 'unistr/u16-strncpy'.
1513         * modules/unistr/u16-strncpy-tests: New file.
1514         * tests/unistr/test-u16-strncpy.c: New file.
1515
1516         Tests for module 'unistr/u8-strncpy'.
1517         * modules/unistr/u8-strncpy-tests: New file.
1518         * tests/unistr/test-u8-strncpy.c: New file.
1519         * tests/unistr/test-strncpy.h: New file.
1520
1521         Tests for module 'unistr/u32-stpcpy'.
1522         * modules/unistr/u32-stpcpy-tests: New file.
1523         * tests/unistr/test-u32-stpcpy.c: New file.
1524
1525         Tests for module 'unistr/u16-stpcpy'.
1526         * modules/unistr/u16-stpcpy-tests: New file.
1527         * tests/unistr/test-u16-stpcpy.c: New file.
1528
1529         Tests for module 'unistr/u8-stpcpy'.
1530         * modules/unistr/u8-stpcpy-tests: New file.
1531         * tests/unistr/test-u8-stpcpy.c: New file.
1532         * tests/unistr/test-stpcpy.h: New file.
1533
1534         Tests for module 'unistr/u32-strcpy'.
1535         * modules/unistr/u32-strcpy-tests: New file.
1536         * tests/unistr/test-u32-strcpy.c: New file.
1537
1538         Tests for module 'unistr/u16-strcpy'.
1539         * modules/unistr/u16-strcpy-tests: New file.
1540         * tests/unistr/test-u16-strcpy.c: New file.
1541
1542         Tests for module 'unistr/u8-strcpy'.
1543         * modules/unistr/u8-strcpy-tests: New file.
1544         * tests/unistr/test-u8-strcpy.c: New file.
1545         * tests/unistr/test-strcpy.h: New file.
1546
1547         Tests for module 'unistr/u32-strnlen'.
1548         * modules/unistr/u32-strnlen-tests: New file.
1549         * tests/unistr/test-u32-strnlen.c: New file.
1550
1551         Tests for module 'unistr/u16-strnlen'.
1552         * modules/unistr/u16-strnlen-tests: New file.
1553         * tests/unistr/test-u16-strnlen.c: New file.
1554
1555         Tests for module 'unistr/u8-strnlen'.
1556         * modules/unistr/u8-strnlen-tests: New file.
1557         * tests/unistr/test-u8-strnlen.c: New file.
1558         * tests/unistr/test-strnlen.h: New file.
1559
1560         Tests for module 'unistr/u32-strlen'.
1561         * modules/unistr/u32-strlen-tests: New file.
1562         * tests/unistr/test-u32-strlen.c: New file.
1563
1564         Tests for module 'unistr/u16-strlen'.
1565         * modules/unistr/u16-strlen-tests: New file.
1566         * tests/unistr/test-u16-strlen.c: New file.
1567
1568         Tests for module 'unistr/u8-strlen'.
1569         * modules/unistr/u8-strlen-tests: New file.
1570         * tests/unistr/test-u8-strlen.c: New file.
1571
1572         Tests for module 'unistr/u32-prev'.
1573         * modules/unistr/u32-prev-tests: New file.
1574         * tests/unistr/test-u32-prev.c: New file.
1575
1576         Tests for module 'unistr/u16-prev'.
1577         * modules/unistr/u16-prev-tests: New file.
1578         * tests/unistr/test-u16-prev.c: New file.
1579
1580         Tests for module 'unistr/u8-prev'.
1581         * modules/unistr/u8-prev-tests: New file.
1582         * tests/unistr/test-u8-prev.c: New file.
1583
1584         Tests for module 'unistr/u32-next'.
1585         * modules/unistr/u32-next-tests: New file.
1586         * tests/unistr/test-u32-next.c: New file.
1587
1588         Tests for module 'unistr/u16-next'.
1589         * modules/unistr/u16-next-tests: New file.
1590         * tests/unistr/test-u16-next.c: New file.
1591
1592         Tests for module 'unistr/u8-next'.
1593         * modules/unistr/u8-next-tests: New file.
1594         * tests/unistr/test-u8-next.c: New file.
1595
1596         Tests for module 'unistr/u32-strmbtouc'.
1597         * modules/unistr/u32-strmbtouc-tests: New file.
1598         * tests/unistr/test-u32-strmbtouc.c: New file.
1599
1600         Tests for module 'unistr/u16-strmbtouc'.
1601         * modules/unistr/u16-strmbtouc-tests: New file.
1602         * tests/unistr/test-u16-strmbtouc.c: New file.
1603
1604         Tests for module 'unistr/u8-strmbtouc'.
1605         * modules/unistr/u8-strmbtouc-tests: New file.
1606         * tests/unistr/test-u8-strmbtouc.c: New file.
1607
1608         Tests for module 'unistr/u32-strmblen'.
1609         * modules/unistr/u32-strmblen-tests: New file.
1610         * tests/unistr/test-u32-strmblen.c: New file.
1611
1612         Tests for module 'unistr/u16-strmblen'.
1613         * modules/unistr/u16-strmblen-tests: New file.
1614         * tests/unistr/test-u16-strmblen.c: New file.
1615
1616         Tests for module 'unistr/u8-strmblen'.
1617         * modules/unistr/u8-strmblen-tests: New file.
1618         * tests/unistr/test-u8-strmblen.c: New file.
1619
1620         Tests for module 'unistr/u32-cpy-alloc'.
1621         * modules/unistr/u32-cpy-alloc-tests: New file.
1622         * tests/unistr/test-u32-cpy-alloc.c: New file.
1623
1624         Tests for module 'unistr/u16-cpy-alloc'.
1625         * modules/unistr/u16-cpy-alloc-tests: New file.
1626         * tests/unistr/test-u16-cpy-alloc.c: New file.
1627
1628         Tests for module 'unistr/u8-cpy-alloc'.
1629         * modules/unistr/u8-cpy-alloc-tests: New file.
1630         * tests/unistr/test-u8-cpy-alloc.c: New file.
1631         * tests/unistr/test-cpy-alloc.h: New file.
1632
1633         Tests for module 'unistr/u32-mbsnlen'.
1634         * modules/unistr/u32-mbsnlen-tests: New file.
1635         * tests/unistr/test-u32-mbsnlen.c: New file.
1636
1637         Tests for module 'unistr/u16-mbsnlen'.
1638         * modules/unistr/u16-mbsnlen-tests: New file.
1639         * tests/unistr/test-u16-mbsnlen.c: New file.
1640
1641         Tests for module 'unistr/u8-mbsnlen'.
1642         * modules/unistr/u8-mbsnlen-tests: New file.
1643         * tests/unistr/test-u8-mbsnlen.c: New file.
1644
1645         Tests for module 'unistr/u32-chr'.
1646         * modules/unistr/u32-chr-tests: New file.
1647         * tests/unistr/test-u32-chr.c: New file.
1648
1649         Tests for module 'unistr/u16-chr'.
1650         * modules/unistr/u16-chr-tests: New file.
1651         * tests/unistr/test-u16-chr.c: New file.
1652
1653         Tests for module 'unistr/u8-chr'.
1654         * modules/unistr/u8-chr-tests: New file.
1655         * tests/unistr/test-u8-chr.c: New file.
1656         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
1657
1658         Tests for module 'unistr/u32-cmp2'.
1659         * modules/unistr/u32-cmp2-tests: New file.
1660         * tests/unistr/test-u32-cmp2.c: New file.
1661
1662         Tests for module 'unistr/u16-cmp2'.
1663         * modules/unistr/u16-cmp2-tests: New file.
1664         * tests/unistr/test-u16-cmp2.c: New file.
1665
1666         Tests for module 'unistr/u8-cmp2'.
1667         * modules/unistr/u8-cmp2-tests: New file.
1668         * tests/unistr/test-u8-cmp2.c: New file.
1669         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
1670
1671         Tests for module 'unistr/u32-cmp'.
1672         * modules/unistr/u32-cmp-tests: New file.
1673         * tests/unistr/test-u32-cmp.c: New file.
1674
1675         Tests for module 'unistr/u16-cmp'.
1676         * modules/unistr/u16-cmp-tests: New file.
1677         * tests/unistr/test-u16-cmp.c: New file.
1678
1679         Tests for module 'unistr/u8-cmp'.
1680         * modules/unistr/u8-cmp-tests: New file.
1681         * tests/unistr/test-u8-cmp.c: New file.
1682         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
1683
1684         Tests for module 'unistr/u32-set'.
1685         * modules/unistr/u32-set-tests: New file.
1686         * tests/unistr/test-u32-set.c: New file.
1687
1688         Tests for module 'unistr/u16-set'.
1689         * modules/unistr/u16-set-tests: New file.
1690         * tests/unistr/test-u16-set.c: New file.
1691
1692         Tests for module 'unistr/u8-set'.
1693         * modules/unistr/u8-set-tests: New file.
1694         * tests/unistr/test-u8-set.c: New file.
1695         * tests/unistr/test-set.h: New file.
1696
1697         Tests for module 'unistr/u32-move'.
1698         * modules/unistr/u32-move-tests: New file.
1699         * tests/unistr/test-u32-move.c: New file.
1700
1701         Tests for module 'unistr/u16-move'.
1702         * modules/unistr/u16-move-tests: New file.
1703         * tests/unistr/test-u16-move.c: New file.
1704
1705         Tests for module 'unistr/u8-move'.
1706         * modules/unistr/u8-move-tests: New file.
1707         * tests/unistr/test-u8-move.c: New file.
1708         * tests/unistr/test-move.h: New file.
1709
1710         Tests for module 'unistr/u32-cpy'.
1711         * modules/unistr/u32-cpy-tests: New file.
1712         * tests/unistr/test-u32-cpy.c: New file.
1713
1714         Tests for module 'unistr/u16-cpy'.
1715         * modules/unistr/u16-cpy-tests: New file.
1716         * tests/unistr/test-u16-cpy.c: New file.
1717
1718         Tests for module 'unistr/u8-cpy'.
1719         * modules/unistr/u8-cpy-tests: New file.
1720         * tests/unistr/test-u8-cpy.c: New file.
1721         * tests/unistr/test-cpy.h: New file.
1722
1723 2010-01-09  Bruno Haible  <bruno@clisp.org>
1724
1725         Tests for module 'unistr/u32-uctomb'.
1726         * modules/unistr/u32-uctomb-tests: New file.
1727         * tests/unistr/test-u32-uctomb.c: New file.
1728
1729         Tests for module 'unistr/u16-uctomb'.
1730         * modules/unistr/u16-uctomb-tests: New file.
1731         * tests/unistr/test-u16-uctomb.c: New file.
1732
1733         Tests for module 'unistr/u8-uctomb'.
1734         * modules/unistr/u8-uctomb-tests: New file.
1735         * tests/unistr/test-u8-uctomb.c: New file.
1736
1737         Tests for module 'unistr/u32-mbtoucr'.
1738         * modules/unistr/u32-mbtoucr-tests: New file.
1739         * tests/unistr/test-u32-mbtoucr.c: New file.
1740
1741         Tests for module 'unistr/u16-mbtoucr'.
1742         * modules/unistr/u16-mbtoucr-tests: New file.
1743         * tests/unistr/test-u16-mbtoucr.c: New file.
1744
1745         Tests for module 'unistr/u8-mbtoucr'.
1746         * modules/unistr/u8-mbtoucr-tests: New file.
1747         * tests/unistr/test-u8-mbtoucr.c: New file.
1748
1749         Tests for module 'unistr/u32-mbtouc'.
1750         * modules/unistr/u32-mbtouc-tests: New file.
1751         * tests/unistr/test-u32-mbtouc.c: New file.
1752
1753         Tests for module 'unistr/u16-mbtouc'.
1754         * modules/unistr/u16-mbtouc-tests: New file.
1755         * tests/unistr/test-u16-mbtouc.c: New file.
1756
1757         Tests for module 'unistr/u8-mbtouc'.
1758         * modules/unistr/u8-mbtouc-tests: New file.
1759         * tests/unistr/test-u8-mbtouc.c: New file.
1760
1761         Tests for module 'unistr/u32-mbtouc-unsafe'.
1762         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
1763         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
1764         * tests/unistr/test-u32-mbtouc.h: New file.
1765
1766         Tests for module 'unistr/u16-mbtouc-unsafe'.
1767         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
1768         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
1769         * tests/unistr/test-u16-mbtouc.h: New file.
1770
1771         Tests for module 'unistr/u8-mbtouc-unsafe'.
1772         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
1773         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
1774         * tests/unistr/test-u8-mbtouc.h: New file.
1775
1776         Tests for module 'unistr/u32-mblen'.
1777         * modules/unistr/u32-mblen-tests: New file.
1778         * tests/unistr/test-u32-mblen.c: New file.
1779
1780         Tests for module 'unistr/u16-mblen'.
1781         * modules/unistr/u16-mblen-tests: New file.
1782         * tests/unistr/test-u16-mblen.c: New file.
1783
1784         Tests for module 'unistr/u8-mblen'.
1785         * modules/unistr/u8-mblen-tests: New file.
1786         * tests/unistr/test-u8-mblen.c: New file.
1787
1788         Tests for module 'unistr/u32-to-u16'.
1789         * modules/unistr/u32-to-u16-tests: New file.
1790         * tests/unistr/test-u32-to-u16.c: New file.
1791
1792         Tests for module 'unistr/u32-to-u8'.
1793         * modules/unistr/u32-to-u8-tests: New file.
1794         * tests/unistr/test-u32-to-u8.c: New file.
1795
1796         Tests for module 'unistr/u16-to-u32'.
1797         * modules/unistr/u16-to-u32-tests: New file.
1798         * tests/unistr/test-u16-to-u32.c: New file.
1799
1800         Tests for module 'unistr/u16-to-u8'.
1801         * modules/unistr/u16-to-u8-tests: New file.
1802         * tests/unistr/test-u16-to-u8.c: New file.
1803
1804         Tests for module 'unistr/u8-to-u32'.
1805         * modules/unistr/u8-to-u32-tests: New file.
1806         * tests/unistr/test-u8-to-u32.c: New file.
1807
1808         Tests for module 'unistr/u8-to-u16'.
1809         * modules/unistr/u8-to-u16-tests: New file.
1810         * tests/unistr/test-u8-to-u16.c: New file.
1811
1812         Tests for module 'unistr/u32-check'.
1813         * modules/unistr/u32-check-tests: New file.
1814         * tests/unistr/test-u32-check.c: New file.
1815
1816         Tests for module 'unistr/u16-check'.
1817         * modules/unistr/u16-check-tests: New file.
1818         * tests/unistr/test-u16-check.c: New file.
1819
1820         Tests for module 'unistr/u8-check'.
1821         * modules/unistr/u8-check-tests: New file.
1822         * tests/unistr/test-u8-check.c: New file.
1823
1824         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
1825         (category_equals): New function.
1826         (main): Add more tests.
1827         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
1828
1829         * tests/unictype/test-bidi_byname.c (main): Add more tests.
1830
1831 2010-01-10  Bruno Haible  <bruno@clisp.org>
1832
1833         unistr/u*-strcoll: Try harder to distinguish different strings.
1834         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
1835         compare s1 and s2 to see if they are different.
1836
1837 2010-01-10  Bruno Haible  <bruno@clisp.org>
1838
1839         unistr/u*-stpncpy: Fix the return value.
1840         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
1841         description of the return value consistent with stpncpy in glibc.
1842         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
1843         written non-NUL unit.
1844
1845 2010-01-10  Bruno Haible  <bruno@clisp.org>
1846
1847         unistr/u*-next: Add missing dependencies.
1848         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
1849         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
1850         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
1851
1852 2010-01-10  Bruno Haible  <bruno@clisp.org>
1853
1854         unistr/u8-mbsnlen: Fix return value for incomplete character.
1855         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
1856         u8_mblen.
1857         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
1858         Remove unistr/u8-mblen.
1859         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
1860         u16_mblen.
1861         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
1862         Remove unistr/u16-mblen.
1863
1864 2010-01-10  Bruno Haible  <bruno@clisp.org>
1865
1866         wchar: Fix compilation error when <wchar.h> is used from coreutils.
1867         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
1868         Reported by Brian Gough <bjg@gnu.org> and
1869         Chris Clayton <chris2553@googlemail.com> via
1870         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
1871
1872 2010-01-09  Bruno Haible  <bruno@clisp.org>
1873
1874         unistr/u16-to-u32: Reject invalid input.
1875         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
1876         u16_mbtouc.
1877         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
1878         Remove unistr/u16-mbtouc.
1879
1880         unistr/u16-to-u8: Reject invalid input.
1881         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
1882         u16_mbtouc.
1883         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
1884         Remove unistr/u16-mbtouc.
1885
1886         unistr/u8-to-u32: Reject invalid input.
1887         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
1888         u8_mbtouc.
1889         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
1890         Remove unistr/u8-mbtouc.
1891
1892         unistr/u8-to-u16: Reject invalid input.
1893         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
1894         u8_mbtouc.
1895         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
1896         Remove unistr/u8-mbtouc.
1897
1898 2010-01-09  Bruno Haible  <bruno@clisp.org>
1899
1900         Tests for module 'getlogin'.
1901         * modules/getlogin-tests: New file.
1902         * tests/test-getlogin.c: New file.
1903
1904         New module 'getlogin'.
1905         * lib/unistd.in.h (getlogin): New declaration.
1906         * lib/getlogin.c: New file.
1907         * m4/getlogin.m4: New file.
1908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
1909         HAVE_GETLOGIN.
1910         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
1911         HAVE_GETLOGIN.
1912         * modules/getlogin: New file.
1913         * doc/posix-functions/getlogin.texi: Mention the new module.
1914         Reported by John W. Eaton <jwe@gnu.org>.
1915
1916 2010-01-09  Bruno Haible  <bruno@clisp.org>
1917
1918         getlogin_r: Support for native Windows.
1919         * lib/getlogin_r.c: Include <windows.h>
1920         (getlogin_r): Implement for native Windows.
1921         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
1922         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
1923         via John W. Eaton <jwe@gnu.org>.
1924
1925 2010-01-09  Bruno Haible  <bruno@clisp.org>
1926
1927         getlogin_r: Small fixes.
1928         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
1929         succeeds.
1930         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
1931         before testing whether getlogin_r is declared. No need to set
1932         HAVE_DECL_GETLOGIN_R to 1.
1933         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
1934
1935 2010-01-09  Bruno Haible  <bruno@clisp.org>
1936
1937         * lib/unistd.in.h (getlogin_r): Add comment.
1938
1939 2010-01-09  Bruno Haible  <bruno@clisp.org>
1940
1941         Tests for module 'getlogin_r'.
1942         * modules/getlogin_r-tests: New file.
1943         * tests/test-getlogin_r.c: New file.
1944
1945 2010-01-09  Jim Meyering  <meyering@redhat.com>
1946
1947         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
1948         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
1949         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
1950
1951 2010-01-08  Simon Josefsson  <simon@josefsson.org>
1952
1953         * lib/dup2.c (rpl_dup2): Improve comment.
1954
1955 2010-01-08  Eric Blake  <ebb9@byu.net>
1956
1957         maint.mk: allow packages to add makefile @@ exceptions
1958         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
1959         (sc_makefile_check): Rename...
1960         (sc_makefile_at_at_check): ...to this, and use hook.
1961
1962         dup2: work around mingw bug
1963         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
1964         Reported by Simon Josefsson.
1965
1966 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
1967
1968         glob: Fix C++ compilation.
1969         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
1970         C++.
1971
1972 2010-01-07  Bruno Haible  <bruno@clisp.org>
1973
1974         Fix indentation of wctype.in.h, broken since 2007-01-06.
1975         * lib/wctype.in.h: Fix indentation of preprocessor directives.
1976
1977 2010-01-07  Bruno Haible  <bruno@clisp.org>
1978
1979         mbslen: Avoid collision with system function.
1980         * lib/string.in.h [MirBSD]: Include <wchar.h>.
1981         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
1982         * m4/mbslen.m4: New file.
1983         * modules/mbslen (Files): Add it.
1984         (configure.ac): Invoke gl_MBSLEN.
1985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
1986         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
1987         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
1988         via Ian Beckwith <ianb@erislabs.net>.
1989
1990 2010-01-07  Bruno Haible  <bruno@clisp.org>
1991
1992         dirent: Document the last fix.
1993         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
1994
1995 2010-01-07  Bruno Haible  <bruno@clisp.org>
1996
1997         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
1998         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
1999         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2000         va_list are defined.
2001         * doc/posix-headers/stdio.texi: Document the bug of missing types.
2002         Reported by Eric Blake.
2003
2004 2010-01-07  Bruno Haible  <bruno@clisp.org>
2005
2006         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2007         * modules/xlist (Depends-on): Add 'list',
2008         * modules/xoset (Depends-on): Add 'oset'.
2009         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2010
2011 2010-01-07  Bruno Haible  <bruno@clisp.org>
2012
2013         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2014         * doc/posix-functions/strncasecmp.texi: Likewise.
2015
2016 2010-01-07  Bruno Haible  <bruno@clisp.org>
2017
2018         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2019
2020 2010-01-07  John W. Eaton  <jwe@octave.org>
2021
2022         wctype: allow C++ use
2023         * lib/wctype.in.h: Add extern "C" block for C++.
2024
2025 2010-01-06  Eric Blake  <ebb9@byu.net>
2026
2027         maint.mk: detect incorrect GFDL usage
2028         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2029
2030 2010-01-06  Jim Meyering  <meyering@redhat.com>
2031         and Eric Blake  <ebb9@byu.net>
2032
2033         maint.mk: ignore multi-line copyright in NEWS
2034         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2035
2036 2010-01-06  Eric Blake  <ebb9@byu.net>
2037
2038         select: add missing dependency
2039         * modules/select-tests (Depends-on): Move sockets dependency...
2040         * modules/select (Depends-on): ...here.
2041         Reported by Ian Beckwith.
2042
2043         doc: regenerate INSTALL
2044         * doc/INSTALL: Reflect recent autoconf update.
2045         * doc/INSTALL.ISO: Likewise.
2046         * doc/INSTALL.UTF-8: Likewise.
2047
2048         pread: fix compilation on glibc
2049         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2050         Reported by Ralf Wildenhues.
2051
2052         dirent: fix test failure
2053         * lib/dirent.in.h (includes): Guarantee ino_t.
2054         Reported by Ralf Wildenhues.
2055
2056 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
2057
2058         linkat, renameat: avoid bad free
2059         * lib/at-func2.c (at_func2): Fix typo.
2060         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2061
2062 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2063
2064         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2065         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2066         to avoid failure of symlink test later.
2067
2068 2010-01-06  Eric Blake  <ebb9@byu.net>
2069
2070         stdio, unistd: guarantee ssize_t
2071         * lib/unistd.in.h (includes): Ensure that types required by POSIX
2072         2008 are exposed when needed.
2073         * lib/stdio.in.h (includes): Likewise.
2074         Reported by Ralf Wildenhues.
2075
2076 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
2077
2078         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2079         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2080         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2081
2082 2010-01-06  Jim Meyering  <meyering@redhat.com>
2083
2084         readtokens: this module *does* require xalloc.h
2085         It uses only functions that were omitted by the old syntax-check rule.
2086         * lib/readtokens.c: Include "xalloc.h" once again.
2087         * modules/readtokens (Depends-on): Add xalloc.
2088         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2089
2090 2010-01-05  Eric Blake  <ebb9@byu.net>
2091
2092         maint: support 'make announcement' from a VPATH build
2093         * top/maint.mk (announcement): Look for correct NEWS file.
2094
2095 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
2096
2097         utimens (fdutimens): ignore a negative FD, per contract
2098         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2099         when we have a valid file descriptor.  Otherwise, using a brand
2100         new glibc (with just-patched futimens that now fails with EBADF)
2101         would cause this function to fail with ENOSYS.
2102         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2103         See also http://bugzilla.redhat.com/552320.
2104
2105 2010-01-05  Eric Blake  <ebb9@byu.net>
2106
2107         strcase: document what it provides
2108         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2109         gnulib module.
2110         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2111         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2112
2113 2010-01-05  Jim Meyering  <meyering@redhat.com>
2114
2115         maint: remove useless inclusions of "xalloc.h"
2116         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2117         * lib/readtokens.c: Likewise.
2118         * lib/same.c: Likewise.
2119         * modules/getloadavg (Depends-on): Remove xalloc.
2120         * modules/readtokens: Likewise.
2121         * modules/same: Likewise.
2122
2123         maint.mk: include 4 more function names in alloca.h-checking regexp
2124         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2125         regexp.  Before, we would give a false-positive (saying alloca.h
2126         is included unnecessarily) when the only uses involved omitted symbols.
2127
2128         xalloc.h: use consistent formatting
2129         * lib/xalloc.h: Move declarations to start in the first column.
2130
2131 2010-01-05  Eric Blake  <ebb9@byu.net>
2132
2133         mkdir: avoid xalloc
2134         * lib/mkdir.c (includes): Drop unused header.
2135         Reported by John W. Eaton.
2136
2137 2010-01-04  Jim Meyering  <meyering@redhat.com>
2138
2139         nl_langinfo: avoid configure-time syntax error
2140         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2141         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2142         the empty string.  Don't let that provoke a shell syntax error.
2143
2144         regcomp, regexec, fnmatch: avoid array bounds read error
2145         * lib/regcomp.c (build_equiv_class): From glibc:
2146         Use only the low 24 bits of a findidx return value as an index
2147         into the weights array.  Patch by Ulrich Drepper:
2148         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2149         * lib/regexec.c (check_node_accept_bytes): Likewise.
2150         * lib/fnmatch_loop.c (FCT): Likewise.
2151
2152         regcomp: skip collseq lookup when there are no rules
2153         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2154         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2155
2156         regcomp: recognize ill-formed { } expressions
2157         * lib/regcomp.c (parse_dup_op): From glibc:
2158         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2159
2160         regcomp: fix typo in comment
2161         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2162         s/satisfy/satisfies/.
2163
2164         regcomp: sync from glibc: remove dead store
2165         * lib/regcomp.c (duplicate_node_closure): Remove useless
2166         search_duplicated_node call and dead store.
2167
2168         regcomp: sync from glibc; always use nl_langinfo
2169         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2170         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
2171         * modules/regex (Depends-on): Add nl_langinfo.
2172
2173 2010-01-04  Eric Blake  <ebb9@byu.net>
2174
2175         fdopendir: fix configure test
2176         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2177
2178 2010-01-01  Bruno Haible  <bruno@clisp.org>
2179
2180         wchar: Remove unused configure check.
2181         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2182
2183 2010-01-01  Eric Blake  <ebb9@byu.net>
2184
2185         headers: make check of system header explicit
2186         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2187         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2188         ourselves.
2189         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2190         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2191         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2192         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2193         internals.
2194         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2195         missing.
2196         Suggested by Bruno Haible.
2197
2198 2010-01-01  Jim Meyering  <meyering@redhat.com>
2199
2200         ChangeLog: tweak to eliminate unnecessary copyright line
2201         * ChangeLog: Remove a copyright line that was mistakenly updated
2202         by today's update-copyright run.  Reported by Eric Blake.
2203
2204         test-update-copyright: don't let envvar setting cause test failure
2205         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2206
2207 2010-01-01  Bruno Haible  <bruno@clisp.org>
2208
2209         localename: Avoid gcc warning.
2210         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2211         function if it is not used.
2212
2213 2010-01-01  Jim Meyering  <meyering@redhat.com>
2214
2215         update nearly all FSF copyright year lists to include 2010
2216         Use the same procedure as for 2009, outlined in
2217         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2218
2219         version-etc: set COPYRIGHT_YEAR to 2010
2220         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2221
2222 2009-12-31  Eric Blake  <ebb9@byu.net>
2223
2224         doc: correct availability of cygwin 1.5.x getopt
2225         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2226         variables.
2227         * doc/posix-functions/opterr.texi (opterr): Likewise.
2228         * doc/posix-functions/optind.texi (optind): Likewise.
2229         * doc/posix-functions/optopt.texi (optopt): Likewise.
2230         * doc/posix-functions/tzname.texi (tzname): Likewise.
2231
2232         openat: update maintainer
2233         * modules/openat (Maintainer): Add myself.
2234
2235         utimens: avoid shadowing warning
2236         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2237         buffers into one, to avoid shadowing, as well as avoiding a
2238         redundant stat.
2239         Reported by Jim Meyering.
2240
2241         test-dup2: avoid compiler warning
2242         * tests/test-dup2.c (is_inheritable): Only define if used.
2243
2244 2010-01-01  Bruno Haible  <bruno@clisp.org>
2245
2246         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2247         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2248         defined, use wctomb instead of wcrtomb.
2249
2250 2010-01-01  Bruno Haible  <bruno@clisp.org>
2251
2252         iconv: Reject native Solaris iconv.
2253         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2254         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2255
2256 2009-12-31  Bruno Haible  <bruno@clisp.org>
2257
2258         * tests/test-signal.c (main): Remove test of 'SIG'.
2259
2260 2009-12-31  Bruno Haible  <bruno@clisp.org>
2261
2262         spawn: Fix incomplete fix.
2263         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2264         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2265         warnings for GNULIB_POSIXCHECK again.
2266         Reported by Eric Blake.
2267
2268 2009-12-31  Bruno Haible  <bruno@clisp.org>
2269
2270         Avoid namespace pollution on glibc systems.
2271         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2272         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2273         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2274         glibc systems.
2275
2276 2009-12-31  Bruno Haible  <bruno@clisp.org>
2277
2278         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2279         (gl_REPLACE_WCHAR_H): Turn into a no-op.
2280         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2281         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2282         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2283         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2284         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2285
2286 2009-12-31  Bruno Haible  <bruno@clisp.org>
2287
2288         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2289         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
2290         afterwards.
2291
2292 2009-12-31  Bruno Haible  <bruno@clisp.org>
2293
2294         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
2295         SYS_UTSNAME_H.
2296
2297 2009-12-31  Bruno Haible  <bruno@clisp.org>
2298
2299         spawn: Fix misapplied patch.
2300         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2301         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2302         warnings for GNULIB_POSIXCHECK.
2303
2304 2009-12-31  Bruno Haible  <bruno@clisp.org>
2305
2306         times: Update after sys_times changed.
2307         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
2308         * modules/times (Files): Add it.
2309         (configure.ac): Invoke gl_FUNC_TIMES.
2310
2311 2009-12-31  Bruno Haible  <bruno@clisp.org>
2312
2313         Use AC_C_INLINE where necessary.
2314         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
2315         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2316         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
2317         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2318         * m4/mbfile.m4 (gl_MBFILE): Likewise.
2319         * m4/mbiter.m4 (gl_MBITER): Likewise.
2320         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2321         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2322         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
2323         * modules/u64 (configure.ac): Likewise.
2324
2325 2009-12-31  Bruno Haible  <bruno@clisp.org>
2326
2327         Use AC_C_INLINE instead of module 'inline' where possible.
2328         * modules/inline (Description): Clarify purpose.
2329         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
2330         * modules/count-one-bits (Depends-on): Remove inline.
2331         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
2332         * modules/openat (Depends-on): Remove inline.
2333         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
2334         instead of depending on module 'inline'.
2335         * modules/filevercmp (Depends-on, configure.ac): Likewise.
2336         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
2337         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
2338         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
2339         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
2340         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
2341         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
2342         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
2343         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
2344         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
2345         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
2346         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
2347         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
2348         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
2349         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
2350         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
2351         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
2352         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
2353         Likewise.
2354         * modules/unictype/property-ascii-hex-digit (Depends-on,
2355         configure.ac): Likewise.
2356         * modules/unictype/property-bidi-arabic-digit (Depends-on,
2357         configure.ac): Likewise.
2358         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
2359         configure.ac): Likewise.
2360         * modules/unictype/property-bidi-block-separator (Depends-on,
2361         configure.ac): Likewise.
2362         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
2363         configure.ac): Likewise.
2364         * modules/unictype/property-bidi-common-separator (Depends-on,
2365         configure.ac): Likewise.
2366         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
2367         Likewise.
2368         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
2369         configure.ac): Likewise.
2370         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
2371         configure.ac): Likewise.
2372         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
2373         configure.ac): Likewise.
2374         * modules/unictype/property-bidi-european-digit (Depends-on,
2375         configure.ac): Likewise.
2376         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
2377         configure.ac): Likewise.
2378         * modules/unictype/property-bidi-left-to-right (Depends-on,
2379         configure.ac): Likewise.
2380         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
2381         configure.ac): Likewise.
2382         * modules/unictype/property-bidi-other-neutral (Depends-on,
2383         configure.ac): Likewise.
2384         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
2385         Likewise.
2386         * modules/unictype/property-bidi-segment-separator (Depends-on,
2387         configure.ac): Likewise.
2388         * modules/unictype/property-bidi-whitespace (Depends-on,
2389         configure.ac): Likewise.
2390         * modules/unictype/property-combining (Depends-on, configure.ac):
2391         Likewise.
2392         * modules/unictype/property-composite (Depends-on, configure.ac):
2393         Likewise.
2394         * modules/unictype/property-currency-symbol (Depends-on,
2395         configure.ac): Likewise.
2396         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
2397         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
2398         Likewise.
2399         * modules/unictype/property-default-ignorable-code-point (Depends-on,
2400         configure.ac): Likewise.
2401         * modules/unictype/property-deprecated (Depends-on, configure.ac):
2402         Likewise.
2403         * modules/unictype/property-diacritic (Depends-on, configure.ac):
2404         Likewise.
2405         * modules/unictype/property-extender (Depends-on, configure.ac):
2406         Likewise.
2407         * modules/unictype/property-format-control (Depends-on, configure.ac):
2408         Likewise.
2409         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
2410         Likewise.
2411         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
2412         Likewise.
2413         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
2414         Likewise.
2415         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
2416         Likewise.
2417         * modules/unictype/property-hyphen (Depends-on, configure.ac):
2418         Likewise.
2419         * modules/unictype/property-id-continue (Depends-on, configure.ac):
2420         Likewise.
2421         * modules/unictype/property-id-start (Depends-on, configure.ac):
2422         Likewise.
2423         * modules/unictype/property-ideographic (Depends-on, configure.ac):
2424         Likewise.
2425         * modules/unictype/property-ids-binary-operator (Depends-on,
2426         configure.ac): Likewise.
2427         * modules/unictype/property-ids-trinary-operator (Depends-on,
2428         configure.ac): Likewise.
2429         * modules/unictype/property-ignorable-control (Depends-on,
2430         configure.ac): Likewise.
2431         * modules/unictype/property-iso-control (Depends-on, configure.ac):
2432         Likewise.
2433         * modules/unictype/property-join-control (Depends-on, configure.ac):
2434         Likewise.
2435         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
2436         Likewise.
2437         * modules/unictype/property-line-separator (Depends-on, configure.ac):
2438         Likewise.
2439         * modules/unictype/property-logical-order-exception (Depends-on,
2440         configure.ac): Likewise.
2441         * modules/unictype/property-lowercase (Depends-on, configure.ac):
2442         Likewise.
2443         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
2444         * modules/unictype/property-non-break (Depends-on, configure.ac):
2445         Likewise.
2446         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
2447         Likewise.
2448         * modules/unictype/property-numeric (Depends-on, configure.ac):
2449         Likewise.
2450         * modules/unictype/property-other-alphabetic (Depends-on,
2451         configure.ac): Likewise.
2452         * modules/unictype/property-other-default-ignorable-code-point
2453         (Depends-on, configure.ac): Likewise.
2454         * modules/unictype/property-other-grapheme-extend (Depends-on,
2455         configure.ac): Likewise.
2456         * modules/unictype/property-other-id-continue (Depends-on,
2457         configure.ac): Likewise.
2458         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
2459         Likewise.
2460         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
2461         Likewise.
2462         * modules/unictype/property-other-math (Depends-on, configure.ac):
2463         Likewise.
2464         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
2465         Likewise.
2466         * modules/unictype/property-paired-punctuation (Depends-on,
2467         configure.ac): Likewise.
2468         * modules/unictype/property-paragraph-separator (Depends-on,
2469         configure.ac): Likewise.
2470         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
2471         Likewise.
2472         * modules/unictype/property-pattern-white-space (Depends-on,
2473         configure.ac): Likewise.
2474         * modules/unictype/property-private-use (Depends-on, configure.ac):
2475         Likewise.
2476         * modules/unictype/property-punctuation (Depends-on, configure.ac):
2477         Likewise.
2478         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
2479         Likewise.
2480         * modules/unictype/property-radical (Depends-on, configure.ac):
2481         Likewise.
2482         * modules/unictype/property-sentence-terminal (Depends-on,
2483         configure.ac): Likewise.
2484         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
2485         Likewise.
2486         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
2487         * modules/unictype/property-terminal-punctuation (Depends-on,
2488         configure.ac): Likewise.
2489         * modules/unictype/property-titlecase (Depends-on, configure.ac):
2490         Likewise.
2491         * modules/unictype/property-unassigned-code-value (Depends-on,
2492         configure.ac): Likewise.
2493         * modules/unictype/property-unified-ideograph (Depends-on,
2494         configure.ac): Likewise.
2495         * modules/unictype/property-uppercase (Depends-on, configure.ac):
2496         Likewise.
2497         * modules/unictype/property-variation-selector (Depends-on,
2498         configure.ac): Likewise.
2499         * modules/unictype/property-white-space (Depends-on, configure.ac):
2500         Likewise.
2501         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
2502         Likewise.
2503         * modules/unictype/property-xid-start (Depends-on, configure.ac):
2504         Likewise.
2505         * modules/unictype/property-zero-width (Depends-on, configure.ac):
2506         Likewise.
2507         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
2508         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
2509         Likewise.
2510
2511 2009-12-31  Bruno Haible  <bruno@clisp.org>
2512
2513         Remove unnecessary AC_C_INLINE invocation.
2514         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
2515         since 2009-08-21.
2516
2517 2009-12-31  Jim Meyering  <meyering@redhat.com>
2518
2519         maint.mk: don't require explicit gpg_key_ID in cfg.mk
2520         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
2521         With this change, we can all remove the gpg_key_ID = ... definition
2522         from our respective cfg.mk files.
2523
2524         maint.mk: create announcement template in ~/, not in /tmp
2525         * top/maint.mk (emit_upload_commands): Adjust.
2526         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
2527         Remove temporary file, .ci-msg.
2528
2529 2009-12-31  Eric Blake  <ebb9@byu.net>
2530
2531         link-warning: always build headers with link warnings
2532         * modules/arpa_inet (Makefile.am): Always build replacement
2533         header.
2534         * modules/ctype (Makefile.am): Likewise.
2535         * modules/dirent (Makefile.am): Likewise.
2536         * modules/inttypes (Makefile.am): Likewise.
2537         * modules/langinfo (Makefile.am): Likewise.
2538         * modules/locale (Makefile.am): Likewise.
2539         * modules/spawn (Makefile.am): Likewise.
2540         * modules/sys_file (Makefile.am): Likewise.
2541         * modules/sys_ioctl (Makefile.am): Likewise.
2542         * modules/sys_select (Makefile.am): Likewise.
2543         * modules/sys_socket (Makefile.am): Likewise.
2544         * modules/sys_times (Makefile.am): Likewise.
2545         * modules/sys_utsname (Makefile.am): Likewise.
2546         * modules/sys_wait (Makefile.am): Likewise.
2547         * modules/wchar (Makefile.am): Likewise.
2548         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
2549         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
2550         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
2551         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
2552         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
2553         Likewise.
2554         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2555         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2556         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
2557         Likewise.
2558         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
2559         Likewise.
2560         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2561         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
2562         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
2563         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2564         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2565         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2566         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2567         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
2568         (gl_WCHAR_H_DEFAULTS): Likewise.
2569
2570 2009-12-31  Eric Blake  <ebb9@byu.net>
2571
2572         signal, spawn: use link warnings
2573         * lib/signal.in.h (sigset_t): Make unconditional.
2574         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
2575         (sigpending, sigprocmask, sigaction): Add link warnings.
2576         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
2577         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
2578         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
2579         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
2580         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
2581         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
2582         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
2583         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
2584         (posix_spawn_file_actions_destroy)
2585         (posix_spawn_file_actions_addopen)
2586         (posix_spawn_file_actions_addclose)
2587         (posix_spawwn_file_actions_adddup2): Likewise.
2588         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
2589         * tests/test-signal.c (main): Enhance test.
2590
2591         spawn: improve wrapper support
2592         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
2593         (gl_SPAWN_H_DEFAULTS): New defaults.
2594         * modules/spawn (Makefile.am): Substitute them.
2595         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
2596         Only declare if missing or broken.
2597
2598         sys_times, sys_utsname: use include_next
2599         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
2600         header.
2601         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
2602         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2603         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2604         * modules/sys_times (Depends-on): Add include_next.
2605         (Makefile.am): Substitute additional values.
2606         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2607         * lib/sys_times.in.h (includes): Include native header, if
2608         available.
2609         * lib/sys_utsname.in.h (includes): Likewise.
2610         * tests/test-sys_times.c (main): Enhance test.
2611
2612         fdutimensat: revert prior patch
2613         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
2614         utimens.h.
2615         Reported by Bruno Haible.
2616
2617 2009-12-30  Eric Blake  <ebb9@byu.net>
2618
2619         sys_wait: drop link-warning dependency
2620         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
2621         link-warning efforts.
2622         * lib/sys_wait.in.h: Likewise.
2623
2624         fdutimensat: remove bogus dependency
2625         * modules/fdutimensat (Depends-on): Drop inline.
2626
2627         unistd: fix typo
2628         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
2629
2630 2009-12-30  Bruno Haible  <bruno@clisp.org>
2631
2632         Fix compilation error with Solaris cc.
2633         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
2634         * lib/unicase/u16-is-invariant.c: Likewise.
2635         * lib/unicase/u32-is-invariant.c: Likewise.
2636         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2637
2638 2009-12-30  Bruno Haible  <bruno@clisp.org>
2639
2640         Fix test crash.
2641         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
2642         locales.
2643         Reported by Simon Josefsson <simon@josefsson.org>.
2644
2645 2009-12-30  Bruno Haible  <bruno@clisp.org>
2646
2647         Fix compilation error on most platforms.
2648         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
2649         Reported by Simon Josefsson <simon@josefsson.org>
2650         and Nelson H. F. Beebe <beebe@math.utah.edu>.
2651
2652 2009-12-30  Eric Blake  <ebb9@byu.net>
2653
2654         futimens, utimensat: work around ntfs-3g bug
2655         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
2656         a ctime bug is present, and expand workaround to cover ntfs-3g.
2657         * lib/utimens.c (fdutimens, lutimens): Likewise.
2658         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
2659         (validate_timespec): Adjust return value.
2660         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
2661         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2662         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
2663
2664 2009-12-29  Eric Blake  <ebb9@byu.net>
2665
2666         link-warning: make usage consistent
2667         * modules/ctype (Depends-on): Add link-warning.
2668         (Makefile.am): Update rules accordingly.
2669         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2670         * modules/locale (Depends-on, Makefile.am): Likewise.
2671         * modules/sys_file (Makefile.am): Likewise.
2672         * modules/getopt-posix (Makefile.am): Delete unused link warning
2673         efforts.
2674         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
2675         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
2676         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
2677         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
2678
2679         stdio: remove unused variables
2680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
2681         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2682         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2683
2684         tests: test more substitute headers
2685         * modules/ctype-tests: New file.
2686         * modules/dirent-tests: Likewise.
2687         * modules/spawn-tests: Likewise.
2688         * modules/sys_file-tests: Likewise.
2689         * modules/sys_ioctl-tests: Likewise.
2690         * modules/sys_wait-tests: Likewise.
2691         * tests/test-ctype.c: Likewise.
2692         * tests/test-dirent.c: Likewise.
2693         * tests/test-spawn.c: Likewise.
2694         * tests/test-sys_file.c: Likewise.
2695         * tests/test-sys_ioctl.c: Likewise.
2696         * tests/test-sys_wait.c: Likewise.
2697         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
2698         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
2699         whether or not flock is in use.
2700
2701         tests: remove License section from module
2702         * modules/arpa_inet-tests: Remove unneeded section.
2703         * modules/byteswap-tests: Likewise.
2704         * modules/ceilf-tests: Likewise.
2705         * modules/ceill-tests: Likewise.
2706         * modules/crypto/des-tests: Likewise.
2707         * modules/crypto/gc-arcfour-tests: Likewise.
2708         * modules/crypto/gc-arctwo-tests: Likewise.
2709         * modules/crypto/gc-des-tests: Likewise.
2710         * modules/crypto/gc-hmac-md5-tests: Likewise.
2711         * modules/crypto/gc-hmac-sha1-tests: Likewise.
2712         * modules/crypto/gc-md2-tests: Likewise.
2713         * modules/crypto/gc-md4-tests: Likewise.
2714         * modules/crypto/gc-md5-tests: Likewise.
2715         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
2716         * modules/crypto/gc-rijndael-tests: Likewise.
2717         * modules/crypto/gc-sha1-tests: Likewise.
2718         * modules/crypto/gc-tests: Likewise.
2719         * modules/crypto/md2-tests: Likewise.
2720         * modules/crypto/md4-tests: Likewise.
2721         * modules/fcntl-h-tests: Likewise.
2722         * modules/floorf-tests: Likewise.
2723         * modules/floorl-tests: Likewise.
2724         * modules/frexp-nolibm-tests: Likewise.
2725         * modules/frexp-tests: Likewise.
2726         * modules/frexpl-nolibm-tests: Likewise.
2727         * modules/frexpl-tests: Likewise.
2728         * modules/getaddrinfo-tests: Likewise.
2729         * modules/inttypes-tests: Likewise.
2730         * modules/isfinite-tests: Likewise.
2731         * modules/isinf-tests: Likewise.
2732         * modules/ldexpl-tests: Likewise.
2733         * modules/locale-tests: Likewise.
2734         * modules/math-tests: Likewise.
2735         * modules/netdb-tests: Likewise.
2736         * modules/netinet_in-tests: Likewise.
2737         * modules/printf-frexp-tests: Likewise.
2738         * modules/printf-frexpl-tests: Likewise.
2739         * modules/priv-set-tests: Likewise.
2740         * modules/random_r-tests: Likewise.
2741         * modules/round-tests: Likewise.
2742         * modules/roundf-tests: Likewise.
2743         * modules/roundl-tests: Likewise.
2744         * modules/search-tests: Likewise.
2745         * modules/select-tests: Likewise.
2746         * modules/signal-tests: Likewise.
2747         * modules/stdbool-tests: Likewise.
2748         * modules/stddef-tests: Likewise.
2749         * modules/stdint-tests: Likewise.
2750         * modules/stdio-tests: Likewise.
2751         * modules/stdlib-tests: Likewise.
2752         * modules/string-tests: Likewise.
2753         * modules/strings-tests: Likewise.
2754         * modules/sys_select-tests: Likewise.
2755         * modules/sys_socket-tests: Likewise.
2756         * modules/sys_stat-tests: Likewise.
2757         * modules/sys_time-tests: Likewise.
2758         * modules/sys_utsname-tests: Likewise.
2759         * modules/sysexits-tests: Likewise.
2760         * modules/time-tests: Likewise.
2761         * modules/trunc-tests: Likewise.
2762         * modules/truncf-tests: Likewise.
2763         * modules/truncl-tests: Likewise.
2764         * modules/tsearch-tests: Likewise.
2765         * modules/unistd-tests: Likewise.
2766         * modules/wchar-tests: Likewise.
2767         * modules/wctype-tests: Likewise.
2768
2769         tests: fix license on several tests
2770         * tests/test-des.c: Update to GPLv3+.
2771         * tests/test-flock.c: Likewise.
2772         * tests/test-fsync.c: Likewise.
2773         * tests/test-futimens.h: Likewise.
2774         * tests/test-gc-arcfour.c: Likewise.
2775         * tests/test-gc-arctwo.c: Likewise.
2776         * tests/test-gc-des.c: Likewise.
2777         * tests/test-gc-hmac-md5.c: Likewise.
2778         * tests/test-gc-hmac-sha1.c: Likewise.
2779         * tests/test-gc-md2.c: Likewise.
2780         * tests/test-gc-md4.c: Likewise.
2781         * tests/test-gc-md5.c: Likewise.
2782         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2783         * tests/test-gc-rijndael.c: Likewise.
2784         * tests/test-gc-sha1.c: Likewise.
2785         * tests/test-gc.c: Likewise.
2786         * tests/test-getcwd.c: Likewise.
2787         * tests/test-link.c: Likewise.
2788         * tests/test-link.h: Likewise.
2789         * tests/test-lutimens.h: Likewise.
2790         * tests/test-md2.c: Likewise.
2791         * tests/test-md4.c: Likewise.
2792         * tests/test-mkdir.h: Likewise.
2793         * tests/test-rename.c: Likewise.
2794         * tests/test-rename.h: Likewise.
2795         * tests/test-safe-alloc.c: Likewise.
2796         * tests/test-utimens-common.h: Likewise.
2797         * tests/test-utimens.h: Likewise.
2798
2799         maint: sync license texts
2800         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
2801         * doc/gpl-3.0.texi: Revert copyright year update.
2802         * doc/lgpl-3.0.texi: Likewise.
2803
2804 2009-12-29  Jim Meyering  <meyering@redhat.com>
2805
2806         update nearly all FSF copyright year lists to include 2009
2807         The files named by the following are exempted:
2808             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
2809               test -f "$dst" && { echo "$dst"; continue; }
2810               test -d "$dst" || continue
2811               echo "$dst"/$(basename "$src")
2812             done > exempt
2813             git ls-files tests/unictype >> exempt
2814         In the remaining files, convert to all-interval notation if
2815         - there is already at least one year interval like 2000-2003
2816         - the file is maintained by me
2817         - the file is in lib/uni*/, where that style already prevails
2818         Otherwise, use update-copyright's default.
2819
2820 2009-12-29  Simon Josefsson  <simon@josefsson.org>
2821         and Eric Blake  <ebb9@byu.net>
2822
2823         tests: don't require debug system() to pass
2824         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
2825         * tests/test-rmdir.h (test_rmdir_func): Likewise.
2826         * tests/test-unlink.h (test_unlink_func): Likewise.
2827         * tests/test-fstatat.c (main): ...into callers.
2828         * tests/test-lstat.c (main): Likewise.
2829         * tests/test-rmdir.c (main): Likewise.
2830         * tests/test-unlink.c (main): Likewise.
2831         * tests/test-unlinkat.c (main): Likewise.
2832         * tests/test-areadlink-with-size.c (main): Don't require a
2833         debug-only system call to pass, aiding cross-testing to mingw.
2834         * tests/test-areadlink.c (main): Likewise.
2835         * tests/test-areadlinkat-with-size.c (main): Likewise.
2836         * tests/test-areadlinkat.c (main): Likewise.
2837         * tests/test-canonicalize-lgpl.c (main): Likewise.
2838         * tests/test-canonicalize.c (main): Likewise.
2839         * tests/test-chown.c (main): Likewise.
2840         * tests/test-fchownat.c (main): Likewise.
2841         * tests/test-lchown.c (main): Likewise.
2842         * tests/test-fdutimensat.c (main): Likewise.
2843         * tests/test-futimens.c (main): Likewise.
2844         * tests/test-link.c (main): Likewise.
2845         * tests/test-linkat.c (main): Likewise.
2846         * tests/test-mkdir.c (main): Likewise.
2847         * tests/test-mkdirat.c (main): Likewise.
2848         * tests/test-mkfifo.c (main): Likewise.
2849         * tests/test-mkfifoat.c (main): Likewise.
2850         * tests/test-mknod.c (main): Likewise.
2851         * tests/test-readlink.c (main): Likewise.
2852         * tests/test-remove.c (main): Likewise.
2853         * tests/test-rename.c (main): Likewise.
2854         * tests/test-renameat.c (main): Likewise.
2855         * tests/test-symlink.c (main): Likewise.
2856         * tests/test-symlinkat.c (main): Likewise.
2857         * tests/test-utimens.c (main): Likewise.
2858         * tests/test-utimensat.c (main): Likewise.
2859
2860 2009-12-29  Simon Josefsson  <simon@josefsson.org>
2861
2862         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
2863         on $(UNUSED_PARAMETER_H) to avoid build failure.
2864
2865 2009-12-28  Jim Meyering  <meyering@redhat.com>
2866
2867         update-copyright: you may specify a max. line length other than 72
2868         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2869
2870         maint: use consistent FSF copyright line syntax
2871         * lib/posixtm.c: Add missing comma in FSF copyright line.
2872         * lib/posixtm.h: Likewise.
2873         * lib/getugroups.c: Add missing ", Inc.".
2874
2875         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
2876         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
2877         FSF copyright line.  Remove trailing blanks.
2878
2879 2009-12-28  Eric Blake  <ebb9@byu.net>
2880
2881         test-dup2: reduce dependencies
2882         * modules/cloexec (Configure.ac): Set witness.
2883         * modules/dup2-tests (Depends-on): Drop cloexec.
2884         * tests/test-dup2.c (main): Skip portion of test if cloexec module
2885         not present.
2886         Suggested by Bruno Haible.
2887
2888 2009-12-26  Bruno Haible  <bruno@clisp.org>
2889
2890         Remove an unneeded dependency.
2891         * modules/fseterr (Depends-on): Remove dup2.
2892
2893 2009-12-26  Eric Blake  <ebb9@byu.net>
2894
2895         tests: use macros.h in more places
2896         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
2897         (ASSERT_STREAM): Provide default of stderr.
2898         * tests/test-dirent-safer.c: Include macros.h, using alternate
2899         stream for assertions.
2900         * tests/test-dup-safer.c: Likewise.
2901         * tests/test-freopen-safer.c: Likewise.
2902         * tests/test-getopt.c: Likewise.
2903         * tests/test-openat-safer.c: Likewise.
2904         * tests/test-pipe.c: Likewise.
2905         * tests/test-popen-safer.c: Likewise.
2906         * modules/dirent-safer-tests (Files): Include macros.h.
2907         * modules/unistd-safer-tests (Files): Likewise.
2908         * modules/freopen-safer-tests (Files): Likewise.
2909         * modules/getopt-posix-tests (Files): Likewise.
2910         * modules/openat-safer-tests (Files): Likewise.
2911         * modules/pipe-tests (Files): Likewise.
2912
2913 2009-12-26  Bruno Haible  <bruno@clisp.org>
2914
2915         javacomp: Portability fix.
2916         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
2917         that it also works on Solaris.
2918
2919 2009-12-26  Bruno Haible  <bruno@clisp.org>
2920
2921         localename: Fix storage allocation of gl_locale_name_thread's result.
2922         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
2923         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
2924         all platforms that have 'uselocale'.
2925         (gl_locale_name_thread_unsafe): New function, extracted from
2926         gl_locale_name_thread.
2927         (gl_locale_name_thread): Call struniq on all platforms that have
2928         'uselocale'.
2929         * tests/test-localename.c (test_locale_name_thread): Check that the
2930         resulting strings are permanently allocated.
2931         * modules/localename-tests (Depends-on): Add strdup.
2932
2933 2009-12-26  Bruno Haible  <bruno@clisp.org>
2934
2935         * tests/test-localename.c (categories): Fill in the strings.
2936
2937 2009-12-26  Jim Meyering  <meyering@redhat.com>
2938
2939         isdir: complete the removal of m4/isdir.m4
2940         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
2941
2942         isdir: clean up, since at least grep still uses it
2943         * lib/isdir.c: Include "isdir.h".
2944         (S_ISDIR): Remove now-unneeded definition.
2945         * modules/isdir (Files): Add lib/isdir.h.
2946         * lib/isdir.h: New file, with declaration.
2947         * m4/isdir.m4: Remove file -- unneeded.
2948
2949 2009-12-25  Bruno Haible  <bruno@clisp.org>
2950
2951         selinux-h: Make generated .h files standalone.
2952         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
2953         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
2954         * lib/se-selinux.in.h: Likewise.
2955         * modules/selinux-h (Depends-on): Add unused-parameter.
2956         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
2957         selinux/selinux.h and selinux/context.h.
2958         Suggested by Eric Blake.
2959
2960 2009-12-25  Bruno Haible  <bruno@clisp.org>
2961
2962         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
2963         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
2964         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
2965         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
2966         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
2967
2968 2009-12-24  Bruno Haible  <bruno@clisp.org>
2969
2970         openat: Fix warning.
2971         * lib/openat-proc.c: Include <unistd.h>.
2972
2973 2009-12-24  Bruno Haible  <bruno@clisp.org>
2974
2975         New module 'unused-parameter'.
2976         * build-aux/unused-parameter.h: New file, extracted from earlier
2977         gnulib-common.m4.
2978         * modules/unused-parameter: New file.
2979         * lib/unistr.h: Include unused-parameter.h.
2980         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
2981         _GL_UNUSED.
2982         * modules/unistr/base (Depends-on): Add unused-parameter.
2983
2984 2009-12-24  Bruno Haible  <bruno@clisp.org>
2985
2986         Add missing dependencies to 'extensions' module.
2987         * m4/extensions.m4: Add comment.
2988         * modules/accept4 (Depends-on): Add extensions.
2989         * modules/dup3 (Depends-on): Likewise.
2990         * modules/fcntl (Depends-on): Likewise.
2991         * modules/futimens (Depends-on): Likewise.
2992         * modules/mknod (Depends-on): Likewise.
2993         * modules/pipe2 (Depends-on): Likewise.
2994         * modules/stat-time (Depends-on): Likewise.
2995         * modules/strcasestr-simple (Depends-on): Likewise.
2996         * modules/strsignal (Depends-on): Likewise.
2997         * modules/utimensat (Depends-on): Likewise.
2998         * modules/localcharset (Depends-on): Likewise. Needed because of
2999         gl_FCNTL_O_FLAGS.
3000         * modules/wcrtomb (Depends-on): Likewise. Needed because of
3001         AC_TYPE_MBSTATE_T.
3002         * modules/wcsnrtombs (Depends-on): Likewise.
3003         * modules/wcsrtombs (Depends-on): Likewise.
3004
3005 2009-12-24  Bruno Haible  <bruno@clisp.org>
3006
3007         binary-io: Avoid gcc warning due to SET_BINARY.
3008         * lib/binary-io.h (SET_BINARY): Cast the result to void.
3009         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3010
3011 2009-12-24  Bruno Haible  <bruno@clisp.org>
3012
3013         Avoid future namespace pollution on glibc systems.
3014         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3015         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3016         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3017         glibc systems.
3018
3019 2009-12-24  Bruno Haible  <bruno@clisp.org>
3020
3021         Refactor common macros used in tests.
3022         * tests/macros.h: New file.
3023         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3024         and/or <stdlib.h>, if appropriate.
3025         (ASSERT, SIZEOF): Remove macros.
3026         * tests/test-areadlink-with-size.c: Likewise.
3027         * tests/test-areadlinkat.c: Likewise.
3028         * tests/test-areadlinkat-with-size.c: Likewise.
3029         * tests/test-argmatch.c: Likewise.
3030         * tests/test-argv-iter.c: Likewise.
3031         * tests/test-array-mergesort.c: Likewise.
3032         * tests/test-array_list.c: Likewise.
3033         * tests/test-array_oset.c: Likewise.
3034         * tests/test-avltree_list.c: Likewise.
3035         * tests/test-avltree_oset.c: Likewise.
3036         * tests/test-avltreehash_list.c: Likewise.
3037         * tests/test-base64.c: Likewise.
3038         * tests/test-binary-io.c: Likewise.
3039         * tests/test-bitrotate.c: Likewise.
3040         * tests/test-btowc.c: Likewise.
3041         * tests/test-byteswap.c: Likewise.
3042         * tests/test-c-ctype.c: Likewise.
3043         * tests/test-c-stack.c: Likewise.
3044         * tests/test-c-strcasecmp.c: Likewise.
3045         * tests/test-c-strcasestr.c: Likewise.
3046         * tests/test-c-strncasecmp.c: Likewise.
3047         * tests/test-c-strstr.c: Likewise.
3048         * tests/test-canonicalize-lgpl.c: Likewise.
3049         * tests/test-canonicalize.c: Likewise.
3050         * tests/test-carray_list.c: Likewise.
3051         * tests/test-ceilf1.c: Likewise.
3052         * tests/test-ceilf2.c: Likewise.
3053         * tests/test-ceill.c: Likewise.
3054         * tests/test-chown.c: Likewise.
3055         * tests/test-cloexec.c: Likewise.
3056         * tests/test-copy-acl.c: Likewise.
3057         * tests/test-copy-file.c: Likewise.
3058         * tests/test-count-one-bits.c: Likewise.
3059         * tests/test-dprintf-posix.c: Likewise.
3060         * tests/test-dup2.c: Likewise.
3061         * tests/test-dup3.c: Likewise.
3062         * tests/test-duplocale.c: Likewise.
3063         * tests/test-fbufmode.c: Likewise.
3064         * tests/test-fchdir.c: Likewise.
3065         * tests/test-fchownat.c: Likewise.
3066         * tests/test-fcntl-safer.c: Likewise.
3067         * tests/test-fcntl.c: Likewise.
3068         * tests/test-fdopendir.c: Likewise.
3069         * tests/test-fdutimensat.c: Likewise.
3070         * tests/test-fflush2.c: Likewise.
3071         * tests/test-file-has-acl.c: Likewise.
3072         * tests/test-filevercmp.c: Likewise.
3073         * tests/test-flock.c: Likewise.
3074         * tests/test-floorf1.c: Likewise.
3075         * tests/test-floorf2.c: Likewise.
3076         * tests/test-floorl.c: Likewise.
3077         * tests/test-fnmatch.c: Likewise.
3078         * tests/test-fopen.h: Likewise.
3079         * tests/test-fpending.c: Likewise.
3080         * tests/test-fprintf-posix.c: Likewise.
3081         * tests/test-fpurge.c: Likewise.
3082         * tests/test-freadable.c: Likewise.
3083         * tests/test-freadahead.c: Likewise.
3084         * tests/test-freading.c: Likewise.
3085         * tests/test-freadptr.c: Likewise.
3086         * tests/test-freadptr2.c: Likewise.
3087         * tests/test-freadseek.c: Likewise.
3088         * tests/test-freopen.c: Likewise.
3089         * tests/test-frexp.c: Likewise.
3090         * tests/test-frexpl.c: Likewise.
3091         * tests/test-fseek.c: Likewise.
3092         * tests/test-fseeko.c: Likewise.
3093         * tests/test-fstatat.c: Likewise.
3094         * tests/test-fstrcmp.c: Likewise.
3095         * tests/test-fsync.c: Likewise.
3096         * tests/test-ftell.c: Likewise.
3097         * tests/test-ftello.c: Likewise.
3098         * tests/test-func.c: Likewise.
3099         * tests/test-futimens.c: Likewise.
3100         * tests/test-fwritable.c: Likewise.
3101         * tests/test-fwriting.c: Likewise.
3102         * tests/test-getcwd.c: Likewise.
3103         * tests/test-getdate.c: Likewise.
3104         * tests/test-getdelim.c: Likewise.
3105         * tests/test-getdtablesize.c: Likewise.
3106         * tests/test-getgroups.c: Likewise.
3107         * tests/test-getline.c: Likewise.
3108         * tests/test-getndelim2.c: Likewise.
3109         * tests/test-glob.c: Likewise.
3110         * tests/test-hash.c: Likewise.
3111         * tests/test-i-ring.c: Likewise.
3112         * tests/test-iconv-utf.c: Likewise.
3113         * tests/test-iconv.c: Likewise.
3114         * tests/test-idpriv-drop.c: Likewise.
3115         * tests/test-idpriv-droptemp.c: Likewise.
3116         * tests/test-inet_ntop.c: Likewise.
3117         * tests/test-inet_pton.c: Likewise.
3118         * tests/test-isblank.c: Likewise.
3119         * tests/test-isfinite.c: Likewise.
3120         * tests/test-isinf.c: Likewise.
3121         * tests/test-isnan.c: Likewise.
3122         * tests/test-isnand.h: Likewise.
3123         * tests/test-isnanf.h: Likewise.
3124         * tests/test-isnanl.h: Likewise.
3125         * tests/test-lchown.c: Likewise.
3126         * tests/test-ldexpl.c: Likewise.
3127         * tests/test-link.c: Likewise.
3128         * tests/test-linkat.c: Likewise.
3129         * tests/test-linked_list.c: Likewise.
3130         * tests/test-linkedhash_list.c: Likewise.
3131         * tests/test-localename.c: Likewise.
3132         * tests/test-lseek.c: Likewise.
3133         * tests/test-lstat.c: Likewise.
3134         * tests/test-mbmemcasecmp.c: Likewise.
3135         * tests/test-mbmemcasecoll.c: Likewise.
3136         * tests/test-mbrtowc.c: Likewise.
3137         * tests/test-mbscasecmp.c: Likewise.
3138         * tests/test-mbscasestr1.c: Likewise.
3139         * tests/test-mbscasestr2.c: Likewise.
3140         * tests/test-mbscasestr3.c: Likewise.
3141         * tests/test-mbscasestr4.c: Likewise.
3142         * tests/test-mbschr.c: Likewise.
3143         * tests/test-mbscspn.c: Likewise.
3144         * tests/test-mbsinit.c: Likewise.
3145         * tests/test-mbsncasecmp.c: Likewise.
3146         * tests/test-mbsnrtowcs.c: Likewise.
3147         * tests/test-mbspbrk.c: Likewise.
3148         * tests/test-mbspcasecmp.c: Likewise.
3149         * tests/test-mbsrchr.c: Likewise.
3150         * tests/test-mbsrtowcs.c: Likewise.
3151         * tests/test-mbsspn.c: Likewise.
3152         * tests/test-mbsstr1.c: Likewise.
3153         * tests/test-mbsstr2.c: Likewise.
3154         * tests/test-mbsstr3.c: Likewise.
3155         * tests/test-memchr.c: Likewise.
3156         * tests/test-memchr2.c: Likewise.
3157         * tests/test-memcmp.c: Likewise.
3158         * tests/test-memmem.c: Likewise.
3159         * tests/test-memrchr.c: Likewise.
3160         * tests/test-mkdir.c: Likewise.
3161         * tests/test-mkdirat.c: Likewise.
3162         * tests/test-mkfifo.c: Likewise.
3163         * tests/test-mkfifoat.c: Likewise.
3164         * tests/test-mknod.c: Likewise.
3165         * tests/test-nanosleep.c: Likewise.
3166         * tests/test-nl_langinfo.c: Likewise.
3167         * tests/test-obstack-printf.c: Likewise.
3168         * tests/test-open.c: Likewise.
3169         * tests/test-openat.c: Likewise.
3170         * tests/test-pipe-filter-gi1.c: Likewise.
3171         * tests/test-pipe-filter-gi2-main.c: Likewise.
3172         * tests/test-pipe-filter-ii1.c: Likewise.
3173         * tests/test-pipe-filter-ii2-main.c: Likewise.
3174         * tests/test-pipe2.c: Likewise.
3175         * tests/test-popen.h: Likewise.
3176         * tests/test-posixtm.c: Likewise.
3177         * tests/test-pread.c: Likewise.
3178         * tests/test-printf-frexp.c: Likewise.
3179         * tests/test-printf-frexpl.c: Likewise.
3180         * tests/test-printf-posix.c: Likewise.
3181         * tests/test-priv-set.c: Likewise.
3182         * tests/test-quotearg.c: Likewise.
3183         * tests/test-random_r.c: Likewise.
3184         * tests/test-rawmemchr.c: Likewise.
3185         * tests/test-rbtree_list.c: Likewise.
3186         * tests/test-rbtree_oset.c: Likewise.
3187         * tests/test-rbtreehash_list.c: Likewise.
3188         * tests/test-readlink.c: Likewise.
3189         * tests/test-remove.c: Likewise.
3190         * tests/test-rename.c: Likewise.
3191         * tests/test-renameat.c: Likewise.
3192         * tests/test-rmdir.c: Likewise.
3193         * tests/test-round1.c: Likewise.
3194         * tests/test-roundf1.c: Likewise.
3195         * tests/test-roundl.c: Likewise.
3196         * tests/test-safe-alloc.c: Likewise.
3197         * tests/test-sameacls.c: Likewise.
3198         * tests/test-set-mode-acl.c: Likewise.
3199         * tests/test-setenv.c: Likewise.
3200         * tests/test-sigaction.c: Likewise.
3201         * tests/test-signbit.c: Likewise.
3202         * tests/test-sleep.c: Likewise.
3203         * tests/test-snprintf-posix.c: Likewise.
3204         * tests/test-snprintf.c: Likewise.
3205         * tests/test-sprintf-posix.c: Likewise.
3206         * tests/test-stat-time.c: Likewise.
3207         * tests/test-stat.c: Likewise.
3208         * tests/test-strcasestr.c: Likewise.
3209         * tests/test-strchrnul.c: Likewise.
3210         * tests/test-strerror.c: Likewise.
3211         * tests/test-striconv.c: Likewise.
3212         * tests/test-striconveh.c: Likewise.
3213         * tests/test-striconveha.c: Likewise.
3214         * tests/test-strsignal.c: Likewise.
3215         * tests/test-strstr.c: Likewise.
3216         * tests/test-strtod.c: Likewise.
3217         * tests/test-strverscmp.c: Likewise.
3218         * tests/test-symlink.c: Likewise.
3219         * tests/test-symlinkat.c: Likewise.
3220         * tests/test-trunc1.c: Likewise.
3221         * tests/test-trunc2.c: Likewise.
3222         * tests/test-truncf1.c: Likewise.
3223         * tests/test-truncf2.c: Likewise.
3224         * tests/test-truncl.c: Likewise.
3225         * tests/test-uname.c: Likewise.
3226         * tests/test-unlink.c: Likewise.
3227         * tests/test-unlinkat.c: Likewise.
3228         * tests/test-unsetenv.c: Likewise.
3229         * tests/test-usleep.c: Likewise.
3230         * tests/test-utimens.c: Likewise.
3231         * tests/test-utimensat.c: Likewise.
3232         * tests/test-vasnprintf-posix.c: Likewise.
3233         * tests/test-vasnprintf-posix2.c: Likewise.
3234         * tests/test-vasnprintf.c: Likewise.
3235         * tests/test-vasprintf-posix.c: Likewise.
3236         * tests/test-vasprintf.c: Likewise.
3237         * tests/test-vdprintf-posix.c: Likewise.
3238         * tests/test-vfprintf-posix.c: Likewise.
3239         * tests/test-vprintf-posix.c: Likewise.
3240         * tests/test-vsnprintf-posix.c: Likewise.
3241         * tests/test-vsnprintf.c: Likewise.
3242         * tests/test-vsprintf-posix.c: Likewise.
3243         * tests/test-wcrtomb.c: Likewise.
3244         * tests/test-wcsnrtombs.c: Likewise.
3245         * tests/test-wcsrtombs.c: Likewise.
3246         * tests/test-wctype.c: Likewise.
3247         * tests/test-wcwidth.c: Likewise.
3248         * tests/test-xfprintf-posix.c: Likewise.
3249         * tests/test-xmemdup0.c: Likewise.
3250         * tests/test-xprintf-posix.c: Likewise.
3251         * tests/test-xvasprintf.c: Likewise.
3252         * tests/unicase/test-locale-language.c: Likewise.
3253         * tests/unicase/test-mapping-part1.h: Likewise.
3254         * tests/unicase/test-predicate-part1.h: Likewise.
3255         * tests/unicase/test-u8-casecmp.c: Likewise.
3256         * tests/unicase/test-u8-casecoll.c: Likewise.
3257         * tests/unicase/test-u8-casefold.c: Likewise.
3258         * tests/unicase/test-u8-is-cased.c: Likewise.
3259         * tests/unicase/test-u8-is-casefolded.c: Likewise.
3260         * tests/unicase/test-u8-is-lowercase.c: Likewise.
3261         * tests/unicase/test-u8-is-titlecase.c: Likewise.
3262         * tests/unicase/test-u8-is-uppercase.c: Likewise.
3263         * tests/unicase/test-u8-tolower.c: Likewise.
3264         * tests/unicase/test-u8-totitle.c: Likewise.
3265         * tests/unicase/test-u8-toupper.c: Likewise.
3266         * tests/unicase/test-u16-casecmp.c: Likewise.
3267         * tests/unicase/test-u16-casecoll.c: Likewise.
3268         * tests/unicase/test-u16-casefold.c: Likewise.
3269         * tests/unicase/test-u16-is-cased.c: Likewise.
3270         * tests/unicase/test-u16-is-casefolded.c: Likewise.
3271         * tests/unicase/test-u16-is-lowercase.c: Likewise.
3272         * tests/unicase/test-u16-is-titlecase.c: Likewise.
3273         * tests/unicase/test-u16-is-uppercase.c: Likewise.
3274         * tests/unicase/test-u16-tolower.c: Likewise.
3275         * tests/unicase/test-u16-totitle.c: Likewise.
3276         * tests/unicase/test-u16-toupper.c: Likewise.
3277         * tests/unicase/test-u32-casecmp.c: Likewise.
3278         * tests/unicase/test-u32-casecoll.c: Likewise.
3279         * tests/unicase/test-u32-casefold.c: Likewise.
3280         * tests/unicase/test-u32-is-cased.c: Likewise.
3281         * tests/unicase/test-u32-is-casefolded.c: Likewise.
3282         * tests/unicase/test-u32-is-lowercase.c: Likewise.
3283         * tests/unicase/test-u32-is-titlecase.c: Likewise.
3284         * tests/unicase/test-u32-is-uppercase.c: Likewise.
3285         * tests/unicase/test-u32-tolower.c: Likewise.
3286         * tests/unicase/test-u32-totitle.c: Likewise.
3287         * tests/unicase/test-u32-toupper.c: Likewise.
3288         * tests/unicase/test-ulc-casecmp.c: Likewise.
3289         * tests/unicase/test-ulc-casecoll.c: Likewise.
3290         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3291         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3292         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3293         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3294         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3295         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3296         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3297         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3298         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3299         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3300         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3301         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3302         * tests/unictype/test-bidi_byname.c: Likewise.
3303         * tests/unictype/test-bidi_name.c: Likewise.
3304         * tests/unictype/test-bidi_of.c: Likewise.
3305         * tests/unictype/test-bidi_test.c: Likewise.
3306         * tests/unictype/test-block_list.c: Likewise.
3307         * tests/unictype/test-block_of.c: Likewise.
3308         * tests/unictype/test-block_test.c: Likewise.
3309         * tests/unictype/test-categ_and.c: Likewise.
3310         * tests/unictype/test-categ_and_not.c: Likewise.
3311         * tests/unictype/test-categ_byname.c: Likewise.
3312         * tests/unictype/test-categ_name.c: Likewise.
3313         * tests/unictype/test-categ_none.c: Likewise.
3314         * tests/unictype/test-categ_of.c: Likewise.
3315         * tests/unictype/test-categ_or.c: Likewise.
3316         * tests/unictype/test-categ_test_withtable.c: Likewise.
3317         * tests/unictype/test-combining.c: Likewise.
3318         * tests/unictype/test-decdigit.c: Likewise.
3319         * tests/unictype/test-digit.c: Likewise.
3320         * tests/unictype/test-mirror.c: Likewise.
3321         * tests/unictype/test-numeric.c: Likewise.
3322         * tests/unictype/test-pr_byname.c: Likewise.
3323         * tests/unictype/test-pr_test.c: Likewise.
3324         * tests/unictype/test-predicate-part1.h: Likewise.
3325         * tests/unictype/test-scripts.c: Likewise.
3326         * tests/unictype/test-sy_c_ident.c: Likewise.
3327         * tests/unictype/test-sy_java_ident.c: Likewise.
3328         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
3329         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
3330         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
3331         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
3332         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
3333         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
3334         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
3335         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
3336         * tests/uninorm/test-canonical-decomposition.c: Likewise.
3337         * tests/uninorm/test-compat-decomposition.c: Likewise.
3338         * tests/uninorm/test-composition.c: Likewise.
3339         * tests/uninorm/test-decomposing-form.c: Likewise.
3340         * tests/uninorm/test-decomposition.c: Likewise.
3341         * tests/uninorm/test-u8-nfc.c: Likewise.
3342         * tests/uninorm/test-u8-nfd.c: Likewise.
3343         * tests/uninorm/test-u8-nfkc.c: Likewise.
3344         * tests/uninorm/test-u8-nfkd.c: Likewise.
3345         * tests/uninorm/test-u8-normcmp.c: Likewise.
3346         * tests/uninorm/test-u8-normcoll.c: Likewise.
3347         * tests/uninorm/test-u16-nfc.c: Likewise.
3348         * tests/uninorm/test-u16-nfd.c: Likewise.
3349         * tests/uninorm/test-u16-nfkc.c: Likewise.
3350         * tests/uninorm/test-u16-nfkd.c: Likewise.
3351         * tests/uninorm/test-u16-normcmp.c: Likewise.
3352         * tests/uninorm/test-u16-normcoll.c: Likewise.
3353         * tests/uninorm/test-u32-nfc.c: Likewise.
3354         * tests/uninorm/test-u32-nfd.c: Likewise.
3355         * tests/uninorm/test-u32-nfkc.c: Likewise.
3356         * tests/uninorm/test-u32-nfkd.c: Likewise.
3357         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3358         * tests/uninorm/test-u32-normcmp.c: Likewise.
3359         * tests/uninorm/test-u32-normcoll.c: Likewise.
3360         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
3361         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3362         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3363         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3364         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3365         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3366         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3367         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3368         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3369         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3370         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3371         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3372         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3373         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3374         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3375         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3376         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3377         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3378         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3379         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3380         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3381         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3382         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
3383         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
3384         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
3385         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
3386         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
3387         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3388         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3389         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
3390         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
3391         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
3392         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
3393         * tests/uniwidth/test-u8-strwidth.c: Likewise.
3394         * tests/uniwidth/test-u8-width.c: Likewise.
3395         * tests/uniwidth/test-u16-strwidth.c: Likewise.
3396         * tests/uniwidth/test-u16-width.c: Likewise.
3397         * tests/uniwidth/test-u32-strwidth.c: Likewise.
3398         * tests/uniwidth/test-u32-width.c: Likewise.
3399         * tests/uniwidth/test-uc_width.c: Likewise.
3400         * tests/uniwidth/test-uc_width2.c: Likewise.
3401         * modules/acl-tests (Files): Add tests/macros.h.
3402         * modules/areadlink-tests (Files): Likewise.
3403         * modules/areadlink-with-size-tests (Files): Likewise.
3404         * modules/areadlinkat-tests (Files): Likewise.
3405         * modules/areadlinkat-with-size-tests (Files): Likewise.
3406         * modules/argmatch-tests (Files): Likewise.
3407         * modules/argv-iter-tests (Files): Likewise.
3408         * modules/array-list-tests (Files): Likewise.
3409         * modules/array-mergesort-tests (Files): Likewise.
3410         * modules/array-oset-tests (Files): Likewise.
3411         * modules/avltree-list-tests (Files): Likewise.
3412         * modules/avltree-oset-tests (Files): Likewise.
3413         * modules/avltreehash-list-tests (Files): Likewise.
3414         * modules/base64-tests (Files): Likewise.
3415         * modules/binary-io-tests (Files): Likewise.
3416         * modules/bitrotate-tests (Files): Likewise.
3417         * modules/btowc-tests (Files): Likewise.
3418         * modules/byteswap-tests (Files): Likewise.
3419         * modules/c-ctype-tests (Files): Likewise.
3420         * modules/c-stack-tests (Files): Likewise.
3421         * modules/c-strcase-tests (Files): Likewise.
3422         * modules/c-strcasestr-tests (Files): Likewise.
3423         * modules/c-strstr-tests (Files): Likewise.
3424         * modules/canonicalize-lgpl-tests (Files): Likewise.
3425         * modules/canonicalize-tests (Files): Likewise.
3426         * modules/carray-list-tests (Files): Likewise.
3427         * modules/ceilf-tests (Files): Likewise.
3428         * modules/ceill-tests (Files): Likewise.
3429         * modules/chown-tests (Files): Likewise.
3430         * modules/cloexec-tests (Files): Likewise.
3431         * modules/copy-file-tests (Files): Likewise.
3432         * modules/count-one-bits-tests (Files): Likewise.
3433         * modules/dprintf-posix-tests (Files): Likewise.
3434         * modules/dup2-tests (Files): Likewise.
3435         * modules/dup3-tests (Files): Likewise.
3436         * modules/duplocale-tests (Files): Likewise.
3437         * modules/fbufmode-tests (Files): Likewise.
3438         * modules/fchdir-tests (Files): Likewise.
3439         * modules/fcntl-safer-tests (Files): Likewise.
3440         * modules/fcntl-tests (Files): Likewise.
3441         * modules/fdopendir-tests (Files): Likewise.
3442         * modules/fdutimensat-tests (Files): Likewise.
3443         * modules/fflush-tests (Files): Likewise.
3444         * modules/filevercmp-tests (Files): Likewise.
3445         * modules/flock-tests (Files): Likewise.
3446         * modules/floorf-tests (Files): Likewise.
3447         * modules/floorl-tests (Files): Likewise.
3448         * modules/fnmatch-tests (Files): Likewise.
3449         * modules/fopen-safer-tests (Files): Likewise.
3450         * modules/fopen-tests (Files): Likewise.
3451         * modules/fpending-tests (Files): Likewise.
3452         * modules/fprintf-posix-tests (Files): Likewise.
3453         * modules/fpurge-tests (Files): Likewise.
3454         * modules/freadable-tests (Files): Likewise.
3455         * modules/freadahead-tests (Files): Likewise.
3456         * modules/freading-tests (Files): Likewise.
3457         * modules/freadptr-tests (Files): Likewise.
3458         * modules/freadseek-tests (Files): Likewise.
3459         * modules/freopen-tests (Files): Likewise.
3460         * modules/frexp-nolibm-tests (Files): Likewise.
3461         * modules/frexp-tests (Files): Likewise.
3462         * modules/frexpl-nolibm-tests (Files): Likewise.
3463         * modules/frexpl-tests (Files): Likewise.
3464         * modules/fseek-tests (Files): Likewise.
3465         * modules/fseeko-tests (Files): Likewise.
3466         * modules/fstrcmp-tests (Files): Likewise.
3467         * modules/fsync-tests (Files): Likewise.
3468         * modules/ftell-tests (Files): Likewise.
3469         * modules/ftello-tests (Files): Likewise.
3470         * modules/func-tests (Files): Likewise.
3471         * modules/futimens-tests (Files): Likewise.
3472         * modules/fwritable-tests (Files): Likewise.
3473         * modules/fwriting-tests (Files): Likewise.
3474         * modules/getcwd-tests (Files): Likewise.
3475         * modules/getdate-tests (Files): Likewise.
3476         * modules/getdelim-tests (Files): Likewise.
3477         * modules/getdtablesize-tests (Files): Likewise.
3478         * modules/getgroups-tests (Files): Likewise.
3479         * modules/getline-tests (Files): Likewise.
3480         * modules/getndelim2-tests (Files): Likewise.
3481         * modules/glob-tests (Files): Likewise.
3482         * modules/hash-tests (Files): Likewise.
3483         * modules/i-ring-tests (Files): Likewise.
3484         * modules/iconv-tests (Files): Likewise.
3485         * modules/iconv_open-utf-tests (Files): Likewise.
3486         * modules/idpriv-drop-tests (Files): Likewise.
3487         * modules/idpriv-droptemp-tests (Files): Likewise.
3488         * modules/inet_ntop-tests (Files): Likewise.
3489         * modules/inet_pton-tests (Files): Likewise.
3490         * modules/isblank-tests (Files): Likewise.
3491         * modules/isfinite-tests (Files): Likewise.
3492         * modules/isinf-tests (Files): Likewise.
3493         * modules/isnan-tests (Files): Likewise.
3494         * modules/isnand-nolibm-tests (Files): Likewise.
3495         * modules/isnand-tests (Files): Likewise.
3496         * modules/isnanf-nolibm-tests (Files): Likewise.
3497         * modules/isnanf-tests (Files): Likewise.
3498         * modules/isnanl-nolibm-tests (Files): Likewise.
3499         * modules/isnanl-tests (Files): Likewise.
3500         * modules/lchown-tests (Files): Likewise.
3501         * modules/ldexpl-tests (Files): Likewise.
3502         * modules/link-tests (Files): Likewise.
3503         * modules/linkat-tests (Files): Likewise.
3504         * modules/linked-list-tests (Files): Likewise.
3505         * modules/linkedhash-list-tests (Files): Likewise.
3506         * modules/localename-tests (Files): Likewise.
3507         * modules/lseek-tests (Files): Likewise.
3508         * modules/lstat-tests (Files): Likewise.
3509         * modules/mbmemcasecmp-tests (Files): Likewise.
3510         * modules/mbmemcasecoll-tests (Files): Likewise.
3511         * modules/mbrtowc-tests (Files): Likewise.
3512         * modules/mbscasecmp-tests (Files): Likewise.
3513         * modules/mbscasestr-tests (Files): Likewise.
3514         * modules/mbschr-tests (Files): Likewise.
3515         * modules/mbscspn-tests (Files): Likewise.
3516         * modules/mbsinit-tests (Files): Likewise.
3517         * modules/mbsncasecmp-tests (Files): Likewise.
3518         * modules/mbsnrtowcs-tests (Files): Likewise.
3519         * modules/mbspbrk-tests (Files): Likewise.
3520         * modules/mbspcasecmp-tests (Files): Likewise.
3521         * modules/mbsrchr-tests (Files): Likewise.
3522         * modules/mbsrtowcs-tests (Files): Likewise.
3523         * modules/mbsspn-tests (Files): Likewise.
3524         * modules/mbsstr-tests (Files): Likewise.
3525         * modules/memchr-tests (Files): Likewise.
3526         * modules/memchr2-tests (Files): Likewise.
3527         * modules/memcmp-tests (Files): Likewise.
3528         * modules/memmem-tests (Files): Likewise.
3529         * modules/memrchr-tests (Files): Likewise.
3530         * modules/mkdir-tests (Files): Likewise.
3531         * modules/mkfifo-tests (Files): Likewise.
3532         * modules/mkfifoat-tests (Files): Likewise.
3533         * modules/mknod-tests (Files): Likewise.
3534         * modules/nanosleep-tests (Files): Likewise.
3535         * modules/nl_langinfo-tests (Files): Likewise.
3536         * modules/obstack-printf-tests (Files): Likewise.
3537         * modules/open-tests (Files): Likewise.
3538         * modules/openat-tests (Files): Likewise.
3539         * modules/pipe-filter-gi-tests (Files): Likewise.
3540         * modules/pipe-filter-ii-tests (Files): Likewise.
3541         * modules/pipe2-tests (Files): Likewise.
3542         * modules/popen-safer-tests (Files): Likewise.
3543         * modules/popen-tests (Files): Likewise.
3544         * modules/posixtm-tests (Files): Likewise.
3545         * modules/pread-tests (Files): Likewise.
3546         * modules/printf-frexp-tests (Files): Likewise.
3547         * modules/printf-frexpl-tests (Files): Likewise.
3548         * modules/printf-posix-tests (Files): Likewise.
3549         * modules/priv-set-tests (Files): Likewise.
3550         * modules/quotearg-tests (Files): Likewise.
3551         * modules/random_r-tests (Files): Likewise.
3552         * modules/rawmemchr-tests (Files): Likewise.
3553         * modules/rbtree-list-tests (Files): Likewise.
3554         * modules/rbtree-oset-tests (Files): Likewise.
3555         * modules/rbtreehash-list-tests (Files): Likewise.
3556         * modules/readlink-tests (Files): Likewise.
3557         * modules/remove-tests (Files): Likewise.
3558         * modules/rename-tests (Files): Likewise.
3559         * modules/renameat-tests (Files): Likewise.
3560         * modules/rmdir-tests (Files): Likewise.
3561         * modules/round-tests (Files): Likewise.
3562         * modules/roundf-tests (Files): Likewise.
3563         * modules/roundl-tests (Files): Likewise.
3564         * modules/safe-alloc-tests (Files): Likewise.
3565         * modules/setenv-tests (Files): Likewise.
3566         * modules/sigaction-tests (Files): Likewise.
3567         * modules/signbit-tests (Files): Likewise.
3568         * modules/sleep-tests (Files): Likewise.
3569         * modules/snprintf-posix-tests (Files): Likewise.
3570         * modules/snprintf-tests (Files): Likewise.
3571         * modules/sprintf-posix-tests (Files): Likewise.
3572         * modules/stat-tests (Files): Likewise.
3573         * modules/stat-time-tests (Files): Likewise.
3574         * modules/strcasestr-tests (Files): Likewise.
3575         * modules/strchrnul-tests (Files): Likewise.
3576         * modules/strerror-tests (Files): Likewise.
3577         * modules/striconv-tests (Files): Likewise.
3578         * modules/striconveh-tests (Files): Likewise.
3579         * modules/striconveha-tests (Files): Likewise.
3580         * modules/strsignal-tests (Files): Likewise.
3581         * modules/strstr-tests (Files): Likewise.
3582         * modules/strtod-tests (Files): Likewise.
3583         * modules/strverscmp-tests (Files): Likewise.
3584         * modules/symlink-tests (Files): Likewise.
3585         * modules/symlinkat-tests (Files): Likewise.
3586         * modules/trunc-tests (Files): Likewise.
3587         * modules/truncf-tests (Files): Likewise.
3588         * modules/truncl-tests (Files): Likewise.
3589         * modules/uname-tests (Files): Likewise.
3590         * modules/unicase/cased-tests (Files): Likewise.
3591         * modules/unicase/ignorable-tests (Files): Likewise.
3592         * modules/unicase/locale-language-tests (Files): Likewise.
3593         * modules/unicase/tolower-tests (Files): Likewise.
3594         * modules/unicase/totitle-tests (Files): Likewise.
3595         * modules/unicase/toupper-tests (Files): Likewise.
3596         * modules/unicase/u8-casecmp-tests (Files): Likewise.
3597         * modules/unicase/u8-casecoll-tests (Files): Likewise.
3598         * modules/unicase/u8-casefold-tests (Files): Likewise.
3599         * modules/unicase/u8-is-cased-tests (Files): Likewise.
3600         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
3601         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
3602         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
3603         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
3604         * modules/unicase/u8-tolower-tests (Files): Likewise.
3605         * modules/unicase/u8-totitle-tests (Files): Likewise.
3606         * modules/unicase/u8-toupper-tests (Files): Likewise.
3607         * modules/unicase/u16-casecmp-tests (Files): Likewise.
3608         * modules/unicase/u16-casecoll-tests (Files): Likewise.
3609         * modules/unicase/u16-casefold-tests (Files): Likewise.
3610         * modules/unicase/u16-is-cased-tests (Files): Likewise.
3611         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
3612         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
3613         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
3614         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
3615         * modules/unicase/u16-tolower-tests (Files): Likewise.
3616         * modules/unicase/u16-totitle-tests (Files): Likewise.
3617         * modules/unicase/u16-toupper-tests (Files): Likewise.
3618         * modules/unicase/u32-casecmp-tests (Files): Likewise.
3619         * modules/unicase/u32-casecoll-tests (Files): Likewise.
3620         * modules/unicase/u32-casefold-tests (Files): Likewise.
3621         * modules/unicase/u32-is-cased-tests (Files): Likewise.
3622         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
3623         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
3624         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
3625         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
3626         * modules/unicase/u32-tolower-tests (Files): Likewise.
3627         * modules/unicase/u32-totitle-tests (Files): Likewise.
3628         * modules/unicase/u32-toupper-tests (Files): Likewise.
3629         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
3630         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
3631         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
3632         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
3633         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
3634         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
3635         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
3636         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
3637         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
3638         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
3639         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
3640         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
3641         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
3642         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
3643         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
3644         * modules/unictype/bidicategory-name-tests (Files): Likewise.
3645         * modules/unictype/bidicategory-of-tests (Files): Likewise.
3646         * modules/unictype/bidicategory-test-tests (Files): Likewise.
3647         * modules/unictype/block-list-tests (Files): Likewise.
3648         * modules/unictype/block-of-tests (Files): Likewise.
3649         * modules/unictype/block-test-tests (Files): Likewise.
3650         * modules/unictype/category-C-tests (Files): Likewise.
3651         * modules/unictype/category-Cc-tests (Files): Likewise.
3652         * modules/unictype/category-Cf-tests (Files): Likewise.
3653         * modules/unictype/category-Cn-tests (Files): Likewise.
3654         * modules/unictype/category-Co-tests (Files): Likewise.
3655         * modules/unictype/category-Cs-tests (Files): Likewise.
3656         * modules/unictype/category-L-tests (Files): Likewise.
3657         * modules/unictype/category-Ll-tests (Files): Likewise.
3658         * modules/unictype/category-Lm-tests (Files): Likewise.
3659         * modules/unictype/category-Lo-tests (Files): Likewise.
3660         * modules/unictype/category-Lt-tests (Files): Likewise.
3661         * modules/unictype/category-Lu-tests (Files): Likewise.
3662         * modules/unictype/category-M-tests (Files): Likewise.
3663         * modules/unictype/category-Mc-tests (Files): Likewise.
3664         * modules/unictype/category-Me-tests (Files): Likewise.
3665         * modules/unictype/category-Mn-tests (Files): Likewise.
3666         * modules/unictype/category-N-tests (Files): Likewise.
3667         * modules/unictype/category-Nd-tests (Files): Likewise.
3668         * modules/unictype/category-Nl-tests (Files): Likewise.
3669         * modules/unictype/category-No-tests (Files): Likewise.
3670         * modules/unictype/category-P-tests (Files): Likewise.
3671         * modules/unictype/category-Pc-tests (Files): Likewise.
3672         * modules/unictype/category-Pd-tests (Files): Likewise.
3673         * modules/unictype/category-Pe-tests (Files): Likewise.
3674         * modules/unictype/category-Pf-tests (Files): Likewise.
3675         * modules/unictype/category-Pi-tests (Files): Likewise.
3676         * modules/unictype/category-Po-tests (Files): Likewise.
3677         * modules/unictype/category-Ps-tests (Files): Likewise.
3678         * modules/unictype/category-S-tests (Files): Likewise.
3679         * modules/unictype/category-Sc-tests (Files): Likewise.
3680         * modules/unictype/category-Sk-tests (Files): Likewise.
3681         * modules/unictype/category-Sm-tests (Files): Likewise.
3682         * modules/unictype/category-So-tests (Files): Likewise.
3683         * modules/unictype/category-Z-tests (Files): Likewise.
3684         * modules/unictype/category-Zl-tests (Files): Likewise.
3685         * modules/unictype/category-Zp-tests (Files): Likewise.
3686         * modules/unictype/category-Zs-tests (Files): Likewise.
3687         * modules/unictype/category-and-not-tests (Files): Likewise.
3688         * modules/unictype/category-and-tests (Files): Likewise.
3689         * modules/unictype/category-byname-tests (Files): Likewise.
3690         * modules/unictype/category-name-tests (Files): Likewise.
3691         * modules/unictype/category-none-tests (Files): Likewise.
3692         * modules/unictype/category-of-tests (Files): Likewise.
3693         * modules/unictype/category-or-tests (Files): Likewise.
3694         * modules/unictype/category-test-withtable-tests (Files): Likewise.
3695         * modules/unictype/combining-class-tests (Files): Likewise.
3696         * modules/unictype/ctype-alnum-tests (Files): Likewise.
3697         * modules/unictype/ctype-alpha-tests (Files): Likewise.
3698         * modules/unictype/ctype-blank-tests (Files): Likewise.
3699         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
3700         * modules/unictype/ctype-digit-tests (Files): Likewise.
3701         * modules/unictype/ctype-graph-tests (Files): Likewise.
3702         * modules/unictype/ctype-lower-tests (Files): Likewise.
3703         * modules/unictype/ctype-print-tests (Files): Likewise.
3704         * modules/unictype/ctype-punct-tests (Files): Likewise.
3705         * modules/unictype/ctype-space-tests (Files): Likewise.
3706         * modules/unictype/ctype-upper-tests (Files): Likewise.
3707         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
3708         * modules/unictype/decimal-digit-tests (Files): Likewise.
3709         * modules/unictype/digit-tests (Files): Likewise.
3710         * modules/unictype/mirror-tests (Files): Likewise.
3711         * modules/unictype/numeric-tests (Files): Likewise.
3712         * modules/unictype/property-alphabetic-tests (Files): Likewise.
3713         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
3714         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
3715         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
3716         Likewise.
3717         * modules/unictype/property-bidi-block-separator-tests (Files):
3718         Likewise.
3719         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
3720         Likewise.
3721         * modules/unictype/property-bidi-common-separator-tests (Files):
3722         Likewise.
3723         * modules/unictype/property-bidi-control-tests (Files): Likewise.
3724         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
3725         Likewise.
3726         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
3727         Likewise.
3728         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
3729         Likewise.
3730         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
3731         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
3732         Likewise.
3733         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
3734         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
3735         Likewise.
3736         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
3737         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
3738         * modules/unictype/property-bidi-segment-separator-tests (Files):
3739         Likewise.
3740         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
3741         * modules/unictype/property-byname-tests (Files): Likewise.
3742         * modules/unictype/property-combining-tests (Files): Likewise.
3743         * modules/unictype/property-composite-tests (Files): Likewise.
3744         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
3745         * modules/unictype/property-dash-tests (Files): Likewise.
3746         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
3747         * modules/unictype/property-default-ignorable-code-point-tests (Files):
3748         Likewise.
3749         * modules/unictype/property-deprecated-tests (Files): Likewise.
3750         * modules/unictype/property-diacritic-tests (Files): Likewise.
3751         * modules/unictype/property-extender-tests (Files): Likewise.
3752         * modules/unictype/property-format-control-tests (Files): Likewise.
3753         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
3754         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
3755         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
3756         * modules/unictype/property-hex-digit-tests (Files): Likewise.
3757         * modules/unictype/property-hyphen-tests (Files): Likewise.
3758         * modules/unictype/property-id-continue-tests (Files): Likewise.
3759         * modules/unictype/property-id-start-tests (Files): Likewise.
3760         * modules/unictype/property-ideographic-tests (Files): Likewise.
3761         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
3762         * modules/unictype/property-ids-trinary-operator-tests (Files):
3763         Likewise.
3764         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
3765         * modules/unictype/property-iso-control-tests (Files): Likewise.
3766         * modules/unictype/property-join-control-tests (Files): Likewise.
3767         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
3768         * modules/unictype/property-line-separator-tests (Files): Likewise.
3769         * modules/unictype/property-logical-order-exception-tests (Files):
3770         Likewise.
3771         * modules/unictype/property-lowercase-tests (Files): Likewise.
3772         * modules/unictype/property-math-tests (Files): Likewise.
3773         * modules/unictype/property-non-break-tests (Files): Likewise.
3774         * modules/unictype/property-not-a-character-tests (Files): Likewise.
3775         * modules/unictype/property-numeric-tests (Files): Likewise.
3776         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
3777         * modules/unictype/property-other-default-ignorable-code-point-tests
3778         (Files): Likewise.
3779         * modules/unictype/property-other-grapheme-extend-tests (Files):
3780         Likewise.
3781         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
3782         * modules/unictype/property-other-id-start-tests (Files): Likewise.
3783         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
3784         * modules/unictype/property-other-math-tests (Files): Likewise.
3785         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
3786         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
3787         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
3788         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
3789         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
3790         * modules/unictype/property-private-use-tests (Files): Likewise.
3791         * modules/unictype/property-punctuation-tests (Files): Likewise.
3792         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
3793         * modules/unictype/property-radical-tests (Files): Likewise.
3794         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
3795         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
3796         * modules/unictype/property-space-tests (Files): Likewise.
3797         * modules/unictype/property-terminal-punctuation-tests (Files):
3798         Likewise.
3799         * modules/unictype/property-test-tests (Files): Likewise.
3800         * modules/unictype/property-titlecase-tests (Files): Likewise.
3801         * modules/unictype/property-unassigned-code-value-tests (Files):
3802         Likewise.
3803         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
3804         * modules/unictype/property-uppercase-tests (Files): Likewise.
3805         * modules/unictype/property-variation-selector-tests (Files): Likewise.
3806         * modules/unictype/property-white-space-tests (Files): Likewise.
3807         * modules/unictype/property-xid-continue-tests (Files): Likewise.
3808         * modules/unictype/property-xid-start-tests (Files): Likewise.
3809         * modules/unictype/property-zero-width-tests (Files): Likewise.
3810         * modules/unictype/scripts-tests (Files): Likewise.
3811         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
3812         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
3813         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
3814         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
3815         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
3816         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
3817         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
3818         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
3819         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
3820         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
3821         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
3822         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
3823         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
3824         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
3825         * modules/uninorm/composition-tests (Files): Likewise.
3826         * modules/uninorm/decomposing-form-tests (Files): Likewise.
3827         * modules/uninorm/decomposition-tests (Files): Likewise.
3828         * modules/uninorm/filter-tests (Files): Likewise.
3829         * modules/uninorm/nfc-tests (Files): Likewise.
3830         * modules/uninorm/nfd-tests (Files): Likewise.
3831         * modules/uninorm/nfkc-tests (Files): Likewise.
3832         * modules/uninorm/nfkd-tests (Files): Likewise.
3833         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
3834         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
3835         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
3836         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
3837         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
3838         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
3839         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
3840         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3841         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
3842         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
3843         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
3844         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
3845         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3846         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
3847         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
3848         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
3849         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
3850         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3851         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
3852         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
3853         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
3854         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
3855         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3856         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
3857         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
3858         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
3859         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
3860         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
3861         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
3862         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
3863         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
3864         * modules/uniwidth/u8-width-tests (Files): Likewise.
3865         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
3866         * modules/uniwidth/u16-width-tests (Files): Likewise.
3867         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
3868         * modules/uniwidth/u32-width-tests (Files): Likewise.
3869         * modules/uniwidth/width-tests (Files): Likewise.
3870         * modules/unlink-tests (Files): Likewise.
3871         * modules/unsetenv-tests (Files): Likewise.
3872         * modules/usleep-tests (Files): Likewise.
3873         * modules/utimens-tests (Files): Likewise.
3874         * modules/utimensat-tests (Files): Likewise.
3875         * modules/vasnprintf-posix-tests (Files): Likewise.
3876         * modules/vasnprintf-tests (Files): Likewise.
3877         * modules/vasprintf-posix-tests (Files): Likewise.
3878         * modules/vasprintf-tests (Files): Likewise.
3879         * modules/vdprintf-posix-tests (Files): Likewise.
3880         * modules/vfprintf-posix-tests (Files): Likewise.
3881         * modules/vprintf-posix-tests (Files): Likewise.
3882         * modules/vsnprintf-posix-tests (Files): Likewise.
3883         * modules/vsnprintf-tests (Files): Likewise.
3884         * modules/vsprintf-posix-tests (Files): Likewise.
3885         * modules/wcrtomb-tests (Files): Likewise.
3886         * modules/wcsnrtombs-tests (Files): Likewise.
3887         * modules/wcsrtombs-tests (Files): Likewise.
3888         * modules/wctype-tests (Files): Likewise.
3889         * modules/wcwidth-tests (Files): Likewise.
3890         * modules/xmemdup0-tests (Files): Likewise.
3891         * modules/xprintf-posix-tests (Files): Likewise.
3892         * modules/xvasprintf-tests (Files): Likewise.
3893
3894 2009-12-24  Eric Blake  <ebb9@byu.net>
3895
3896         test-nanosleep: fix typo
3897         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
3898         patch.
3899         Reported by Bruno Haible.
3900
3901 2009-12-24  Bruno Haible  <bruno@clisp.org>
3902
3903         Reduce namespace pollution on glibc systems.
3904         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
3905         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
3906         systems.
3907         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
3908         <getopt.h> on glibc systems.
3909         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
3910         systems.
3911         * lib/fcntl.c: Include <unistd.h> here instead.
3912
3913 2009-12-24  Bruno Haible  <bruno@clisp.org>
3914
3915         * lib/stdlib.in.h (includes): Fix typo in today's commit.
3916
3917 2009-12-24  Eric Blake  <ebb9@byu.net>
3918
3919         tests: add signature checks
3920         * tests/signature.h (SIGNATURE_CHECK): New file.
3921         * modules/atexit-tests (Files): Use it.
3922         * modules/btowc-tests (Files): Likewise.
3923         * modules/canonicalize-lgpl-tests (Files): Likewise.
3924         * modules/ceilf-tests (Files): Likewise.
3925         * modules/ceill-tests (Files): Likewise.
3926         * modules/chown-tests (Files): Likewise.
3927         * modules/dprintf-posix-tests (Files): Likewise.
3928         * modules/dup2-tests (Files): Likewise.
3929         * modules/dup3-tests (Files): Likewise.
3930         * modules/duplocale-tests (Files): Likewise.
3931         * modules/fchdir-tests (Files): Likewise.
3932         * modules/fcntl-tests (Files): Likewise.
3933         * modules/fdopendir-tests (Files): Likewise.
3934         * modules/fflush-tests (Files): Likewise.
3935         * modules/flock-tests (Files): Likewise.
3936         * modules/floorf-tests (Files): Likewise.
3937         * modules/floorl-tests (Files): Likewise.
3938         * modules/fnmatch-tests (Files): Likewise.
3939         * modules/fopen-tests (Files): Likewise.
3940         * modules/fprintf-posix-tests (Files): Likewise.
3941         * modules/freopen-tests (Files): Likewise.
3942         * modules/frexp-nolibm-tests (Files): Likewise.
3943         * modules/frexp-tests (Files): Likewise.
3944         * modules/frexpl-nolibm-tests (Files): Likewise.
3945         * modules/frexpl-tests (Files): Likewise.
3946         * modules/fseek-tests (Files): Likewise.
3947         * modules/fseeko-tests (Files): Likewise.
3948         * modules/fsync-tests (Files): Likewise.
3949         * modules/ftell-tests (Files): Likewise.
3950         * modules/ftello-tests (Files): Likewise.
3951         * modules/futimens-tests (Files): Likewise.
3952         * modules/getaddrinfo-tests (Files): Likewise.
3953         * modules/getcwd-tests (Files): Likewise.
3954         * modules/getdelim-tests (Files): Likewise.
3955         * modules/getdtablesize-tests (Files): Likewise.
3956         * modules/getgroups-tests (Files): Likewise.
3957         * modules/gethostname-tests (Files): Likewise.
3958         * modules/getline-tests (Files): Likewise.
3959         * modules/getopt-posix-tests (Files): Likewise.
3960         * modules/gettimeofday-tests (Files): Likewise.
3961         * modules/glob-tests (Files): Likewise.
3962         * modules/iconv-tests (Files): Likewise.
3963         * modules/inet_ntop-tests (Files): Likewise.
3964         * modules/inet_pton-tests (Files): Likewise.
3965         * modules/isblank-tests (Files): Likewise.
3966         * modules/lchown-tests (Files): Likewise.
3967         * modules/ldexpl-tests (Files): Likewise.
3968         * modules/link-tests (Files): Likewise.
3969         * modules/linkat-tests (Files): Likewise.
3970         * modules/lseek-tests (Files): Likewise.
3971         * modules/lstat-tests (Files): Likewise.
3972         * modules/mbrtowc-tests (Files): Likewise.
3973         * modules/mbsinit-tests (Files): Likewise.
3974         * modules/mbsnrtowcs-tests (Files): Likewise.
3975         * modules/mbsrtowcs-tests (Files): Likewise.
3976         * modules/memchr-tests (Files): Likewise.
3977         * modules/memcmp-tests (Files): Likewise.
3978         * modules/memmem-tests (Files): Likewise.
3979         * modules/memrchr-tests (Files): Likewise.
3980         * modules/mkdir-tests (Files): Likewise.
3981         * modules/mkfifo-tests (Files): Likewise.
3982         * modules/mkfifoat-tests (Files): Likewise.
3983         * modules/mknod-tests (Files): Likewise.
3984         * modules/nanosleep-tests (Files): Likewise.
3985         * modules/nl_langinfo-tests (Files): Likewise.
3986         * modules/obstack-printf-tests (Files): Likewise.
3987         * modules/open-tests (Files): Likewise.
3988         * modules/openat-tests (Files): Likewise.
3989         * modules/perror-tests (Files): Likewise.
3990         * modules/pipe2-tests (Files): Likewise.
3991         * modules/poll-tests (Files): Likewise.
3992         * modules/popen-tests (Files): Likewise.
3993         * modules/posix_spawn-tests (Files): Likewise.
3994         * modules/posix_spawnp-tests (Files): Likewise.
3995         * modules/pread-tests (Files): Likewise.
3996         * modules/printf-posix-tests (Files): Likewise.
3997         * modules/pty-tests (Files): Likewise.
3998         * modules/random_r-tests (Files): Likewise.
3999         * modules/rawmemchr-tests (Files): Likewise.
4000         * modules/readlink-tests (Files): Likewise.
4001         * modules/remove-tests (Files): Likewise.
4002         * modules/rename-tests (Files): Likewise.
4003         * modules/renameat-tests (Files): Likewise.
4004         * modules/rmdir-tests (Files): Likewise.
4005         * modules/round-tests (Files): Likewise.
4006         * modules/roundf-tests (Files): Likewise.
4007         * modules/roundl-tests (Files): Likewise.
4008         * modules/select-tests (Files): Likewise.
4009         * modules/setenv-tests (Files): Likewise.
4010         * modules/sigaction-tests (Files): Likewise.
4011         * modules/sleep-tests (Files): Likewise.
4012         * modules/snprintf-posix-tests (Files): Likewise.
4013         * modules/snprintf-tests (Files): Likewise.
4014         * modules/sprintf-posix-tests (Files): Likewise.
4015         * modules/stat-tests (Files): Likewise.
4016         * modules/strcasestr-tests (Files): Likewise.
4017         * modules/strchrnul-tests (Files): Likewise.
4018         * modules/strerror-tests (Files): Likewise.
4019         * modules/strsignal-tests (Files): Likewise.
4020         * modules/strstr-tests (Files): Likewise.
4021         * modules/strtod-tests (Files): Likewise.
4022         * modules/strverscmp-tests (Files): Likewise.
4023         * modules/symlink-tests (Files): Likewise.
4024         * modules/symlinkat-tests (Files): Likewise.
4025         * modules/times-tests (Files): Likewise.
4026         * modules/trunc-tests (Files): Likewise.
4027         * modules/truncf-tests (Files): Likewise.
4028         * modules/truncl-tests (Files): Likewise.
4029         * modules/tsearch-tests (Files): Likewise.
4030         * modules/uname-tests (Files): Likewise.
4031         * modules/unlink-tests (Files): Likewise.
4032         * modules/unsetenv-tests (Files): Likewise.
4033         * modules/usleep-tests (Files): Likewise.
4034         * modules/utimensat-tests (Files): Likewise.
4035         * modules/vasprintf-tests (Files): Likewise.
4036         * modules/vdprintf-posix-tests (Files): Likewise.
4037         * modules/vfprintf-posix-tests (Files): Likewise.
4038         * modules/vprintf-posix-tests (Files): Likewise.
4039         * modules/vsnprintf-posix-tests (Files): Likewise.
4040         * modules/vsnprintf-tests (Files): Likewise.
4041         * modules/vsprintf-posix-tests (Files): Likewise.
4042         * modules/wcrtomb-tests (Files): Likewise.
4043         * modules/wcsnrtombs-tests (Files): Likewise.
4044         * modules/wcsrtombs-tests (Files): Likewise.
4045         * modules/wcwidth-tests (Files): Likewise.
4046         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4047         * tests/test-isinf.c (isinf): Likewise.
4048         * tests/test-isnan.c (isnan): Likewise.
4049         * tests/test-signbit.c (signbit): Likewise.
4050         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4051         declaration, either as macro or with correct signature.
4052         (select): Ensure function under test is declared with correct
4053         signature in correct header.
4054         * tests/test-atexit.c (atexit): Likewise.
4055         * tests/test-btowc.c (btowc): Likewise.
4056         * tests/test-canonicalize-lgpl.c (realpath)
4057         (canonicalize_file_name): Likewise.
4058         * tests/test-ceilf1.c (ceilf): Likewise.
4059         * tests/test-ceill.c (ceill): Likewise.
4060         * tests/test-chown.c (chown): Likewise.
4061         * tests/test-dprintf-posix.c (dprintf): Likewise.
4062         * tests/test-dup2.c (dup2): Likewise.
4063         * tests/test-dup3.c (dup3): Likewise.
4064         * tests/test-duplocale.c (duplocale): Likewise.
4065         * tests/test-fchdir.c (fchdir): Likewise.
4066         * tests/test-fchownat.c (fchownat): Likewise.
4067         * tests/test-fcntl.c (fcntl): Likewise.
4068         * tests/test-fdopendir.c (fdopendir): Likewise.
4069         * tests/test-fflush.c (fflush): Likewise.
4070         * tests/test-flock.c (flock): Likewise.
4071         * tests/test-floorf1.c (floorf): Likewise.
4072         * tests/test-floorl.c (floorl): Likewise.
4073         * tests/test-fnmatch.c (fnmatch): Likewise.
4074         * tests/test-fopen.c (fopen): Likewise.
4075         * tests/test-fprintf-posix.c (fprintf): Likewise.
4076         * tests/test-freopen.c (freopen): Likewise.
4077         * tests/test-frexp.c (frexp): Likewise.
4078         * tests/test-frexpl.c (frexpl): Likewise.
4079         * tests/test-fseek.c (fseek): Likewise.
4080         * tests/test-fseeko.c (fseeko): Likewise.
4081         * tests/test-fstatat.c (fstatat): Likewise.
4082         * tests/test-fsync.c (fsync): Likewise.
4083         * tests/test-ftell.c (ftell): Likewise.
4084         * tests/test-ftello.c (ftello): Likewise.
4085         * tests/test-futimens.c (futimens): Likewise.
4086         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4087         (gai_strerror): Likewise.
4088         * tests/test-getcwd.c (getcwd): Likewise.
4089         * tests/test-getdelim.c (getdelim): Likewise.
4090         * tests/test-getdtablesize.c (getdtablesize): Likewise.
4091         * tests/test-getgroups.c (getgroups): Likewise.
4092         * tests/test-gethostname.c (gethostname): Likewise.
4093         * tests/test-getline.c (getline): Likewise.
4094         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4095         Likewise.
4096         * tests/test-gettimeofday.c (gettimeofday): Likewise.
4097         * tests/test-glob.c (glob, globfree): Likewise.
4098         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4099         * tests/test-inet_ntop.c (inet_ntop): Likewise.
4100         * tests/test-inet_pton.c (inet_pton): Likewise.
4101         * tests/test-isblank.c (isblank): Likewise.
4102         * tests/test-lchown.c (lchown): Likewise.
4103         * tests/test-ldexpl.c (ldexpl): Likewise.
4104         * tests/test-link.c (link): Likewise.
4105         * tests/test-linkat.c (linkat): Likewise.
4106         * tests/test-lseek.c (lseek): Likewise.
4107         * tests/test-lstat.c (lstat): Likewise.
4108         * tests/test-mbrtowc.c (mbrtowc): Likewise.
4109         * tests/test-mbsinit.c (mbsinit): Likewise.
4110         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4111         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4112         * tests/test-memchr.c (memchr): Likewise.
4113         * tests/test-memcmp.c (memcmp): Likewise.
4114         * tests/test-memmem.c (memmem): Likewise.
4115         * tests/test-memrchr.c (memrchr): Likewise.
4116         * tests/test-mkdir.c (mkdir): Likewise.
4117         * tests/test-mkdirat.c (mkdirat): Likewise.
4118         * tests/test-mkfifo.c (mkfifo): Likewise.
4119         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4120         * tests/test-mknod.c (mknod): Likewise.
4121         * tests/test-nanosleep.c (nanosleep): Likewise.
4122         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4123         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4124         Likewise.
4125         * tests/test-open.c (open): Likewise.
4126         * tests/test-openat.c (openat): Likewise.
4127         * tests/test-perror.c (perror): Likewise.
4128         * tests/test-pipe2.c (pipe2): Likewise.
4129         * tests/test-poll.c (poll): Likewise.
4130         * tests/test-popen.c (popen, pclose): Likewise.
4131         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4132         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4133         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4134         (posix_spawn_file_actions_destroy)
4135         (posix_spawn_file_actions_addclose)
4136         (posix_spawn_file_actions_addopen)
4137         (posix_spawn_file_actions_adddup2): Likewise.
4138         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4139         * tests/test-pread.c (pread): Likewise.
4140         * tests/test-printf-posix.c (printf): Likewise.
4141         * tests/test-pty.c (openpty, forkpty): Likewise.
4142         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4143         (random_r): Likewise.
4144         * tests/test-rawmemchr.c (rawmemchr): Likewise.
4145         * tests/test-readlink.c (readlink): Likewise.
4146         * tests/test-remove.c (remove): Likewise.
4147         * tests/test-rename.c (rename): Likewise.
4148         * tests/test-renameat.c (renameat): Likewise.
4149         * tests/test-rmdir.c (rmdir): Likewise.
4150         * tests/test-round1.c (round): Likewise.
4151         * tests/test-roundf1.c (roundf): Likewise.
4152         * tests/test-roundl.c (roundl): Likewise.
4153         * tests/test-setenv.c (setenv): Likewise.
4154         * tests/test-sigaction.c (sigaction): Likewise.
4155         * tests/test-sleep.c (sleep): Likewise.
4156         * tests/test-snprintf.c (snprintf): Likewise.
4157         * tests/test-sprintf-posix.c (sprintf): Likewise.
4158         * tests/test-stat.c (stat): Likewise.
4159         * tests/test-stpncpy.c (stpncpy): Likewise.
4160         * tests/test-strcasestr.c (strcasestr): Likewise.
4161         * tests/test-strchrnul.c (strchrnul): Likewise.
4162         * tests/test-strerror.c (strerror): Likewise.
4163         * tests/test-strsignal.c (strsignal): Likewise.
4164         * tests/test-strstr.c (strstr): Likewise.
4165         * tests/test-strtod.c (strtod): Likewise.
4166         * tests/test-strverscmp.c (strverscmp): Likewise.
4167         * tests/test-symlink.c (symlink): Likewise.
4168         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4169         * tests/test-times.c (times): Likewise.
4170         * tests/test-trunc1.c (trunc): Likewise.
4171         * tests/test-truncf1.c (truncf): Likewise.
4172         * tests/test-truncl.c (truncl): Likewise.
4173         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4174         Likewise.
4175         * tests/test-uname.c (uname): Likewise.
4176         * tests/test-unlink.c (unlink): Likewise.
4177         * tests/test-unlinkat.c (unlinkat): Likewise.
4178         * tests/test-unsetenv.c (unsetenv): Likewise.
4179         * tests/test-usleep.c (usleep): Likewise.
4180         * tests/test-utimensat.c (utimensat): Likewise.
4181         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4182         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4183         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4184         * tests/test-vprintf-posix.c (vprintf): Likewise.
4185         * tests/test-vsnprintf.c (vsnprintf): Likewise.
4186         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4187         * tests/test-wcrtomb.c (wcrtomb): Likewise.
4188         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4189         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4190         * tests/test-wcwidth.c (wcwidth): Likewise.
4191
4192         build: pull in conditional headers during GNULIB_POSIXCHECK
4193         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4194         definitions from any conditionally-included headers.
4195         * lib/stdlib.in.h (includes): Likewise.
4196         * lib/unistd.in.h (includes): Likewise.
4197
4198 2009-12-24  Bruno Haible  <bruno@clisp.org>
4199
4200         * tests/test-argv-iter.c: Include header file being tested immediately
4201         after config.h.
4202         * tests/test-base64.c: Likewise.
4203         * tests/test-flock.c: Likewise.
4204         * tests/test-fsync.c: Likewise.
4205         * tests/test-getdate.c: Likewise.
4206         * tests/test-getndelim2.c: Likewise.
4207         * tests/test-isfinite.c: Likewise.
4208         * tests/test-isinf.c: Likewise.
4209         * tests/test-strerror.c: Likewise.
4210         * tests/test-strsignal.c: Likewise.
4211
4212 2009-12-23  Eric Blake  <ebb9@byu.net>
4213
4214         unistd: work around cygwin bug
4215         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4216         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4217         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4218
4219 2009-12-23  Bruno Haible  <bruno@clisp.org>
4220
4221         localename: More tests.
4222         * tests/test-localename.c (SIZEOF): New macro.
4223         (categories): New variable.
4224         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4225         test_locale_name_default): Add test w.r.t. thread locale.
4226         (test_locale_name_thread): New function.
4227         (main): Invoke it.
4228
4229         localename: Make aware of thread locale.
4230         * lib/localename.h (gl_locale_name_thread): New declaration.
4231         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4232         behaviour with respect to thread locale.
4233         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4234         <langinfo.h>, glthread/lock.h.
4235         (SIZE_BITS): New macro.
4236         (string_hash): New function.
4237         (struct hash_node): New type.
4238         (HASH_TABLE_SIZE): New macro.
4239         (struniq_hash_table, struniq_lock): New variables.
4240         (struniq): New function.
4241         (gl_locale_name_thread): New function.
4242         (gl_locale_name): Invoke it.
4243         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4244         * modules/localename (Depends-on): Add lock.
4245         Reported by Mike Gran <spk121@yahoo.com>.
4246
4247 2009-12-23  Eric Blake  <ebb9@byu.net>
4248
4249         va-args: new module
4250         * modules/va-args: New file.
4251         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4252         * MODULES.html.sh (Core language properties): Mention it.
4253
4254         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4255         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4256         named alias for __attribute__((__unused__)).
4257         * lib/chown.c: Update client.
4258         * lib/fchmodat.c: Likewise.
4259         * lib/fts.c: Likewise.
4260         * lib/getdate.y: Likewise.
4261         * lib/getgroups.c: Likewise.
4262         * lib/getopt.c: Likewise.
4263         * lib/getugroups.c: Likewise.
4264         * lib/mkdir.c: Likewise.
4265         * lib/mkfifo.c: Likewise.
4266         * lib/mkfifoat.c: Likewise.
4267         * lib/mknod.c: Likewise.
4268         * lib/mknodat.c: Likewise.
4269         * lib/readlink.c: Likewise.
4270         * lib/se-context.in.h: Likewise.
4271         * lib/se-selinux.in.h: Likewise.
4272         * lib/sockets.c: Likewise.
4273         * lib/symlink.c: Likewise.
4274         * lib/symlinkat.c: Likewise.
4275         * lib/unicodeio.c: Likewise.
4276         * lib/unistr.h: Likewise.
4277         * tests/test-areadlink.c: Likewise.
4278         * tests/test-areadlinkat.c: Likewise.
4279         * tests/test-filenamecat.c: Likewise.
4280         * tests/test-fseeko.c: Likewise.
4281         * tests/test-ftello.c: Likewise.
4282         * tests/test-getdate.c: Likewise.
4283         * tests/test-getgroups.c: Likewise.
4284         * tests/test-gethostname.c: Likewise.
4285         * tests/test-quotearg.c: Likewise.
4286         * tests/test-version-etc.c: Likewise.
4287         * tests/test-xalloc-die.c: Likewise.
4288         * tests/test-xfprintf-posix.c: Likewise.
4289         * tests/test-xprintf-posix.c: Likewise.
4290         * tests/test-xvasprintf.c: Likewise.
4291
4292         tests: avoid compiler warnings
4293         * tests/test-fcntl.c (main): Delete unused parameters.
4294         * tests/test-freopen-safer.c (main): Likewise.
4295         * tests/test-xalloc-die.c (main): Mark unused parameters.
4296         * tests/test-fseeko.c (main): Likewise.
4297         * tests/test-ftello.c (main): Likewise.
4298         * tests/test-nanosleep.c (main): Avoid declaration warning.
4299         * tests/test-sleep.c (main): Likewise.
4300         * tests/test-unsetenv.c (main): Silence warning about string
4301         literal.
4302         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4303
4304 2009-12-23  Bruno Haible  <bruno@clisp.org>
4305
4306         * tests/test-localename.c (test_locale_name): New function, extracted
4307         from main. Also test mixed situations.
4308         (test_locale_name_posix, test_locale_name_environ,
4309         test_locale_name_default): New functions.
4310         (main): Invoke them all.
4311         * modules/localename-tests (configure.ac): Test for newlocale.
4312
4313 2009-12-23  Bruno Haible  <bruno@clisp.org>
4314
4315         unistd: Ensure getcwd gets declared before being overridden.
4316         * lib/unistd.in.h: Conditionally include <io.h>.
4317
4318 2009-12-22  Bruno Haible  <bruno@clisp.org>
4319
4320         wchar: Diagnose broken combination of glibc and gcc versions and flags.
4321         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
4322         (gl_WCHAR_H): Invoke it.
4323         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
4324         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
4325         Reported by Karl Berry <karl@freefriends.org>.
4326
4327 2009-12-22  Eric Blake  <ebb9@byu.net>
4328
4329         math, unistd: avoid redundant includes
4330         * lib/math.in.h (isnan): No need to re-include <math.h>.
4331         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
4332
4333         getsubopt: work around cygwin bug
4334         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
4335         avoid conflicting with system getsubopt.
4336         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
4337         bug.
4338
4339         getopt: synchronize from glibc
4340         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
4341         parameter order.  Adjust all callers.
4342         (_getopt_internal_r, main): Adjust quoting in error messages.
4343         Drop considerations for outdated POSIX 1003.2 error message.
4344         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
4345         callers.
4346         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
4347
4348         test-getopt: test stderr behavior
4349         * modules/getopt-posix-tests (Depends-on): Add dup2.
4350         * tests/test-getopt.c (ASSERT): Avoid stderr.
4351         (main): Move stderr to a temporary file.
4352         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
4353         Instead, add parameter to inform caller if output occurred.
4354         (test_getopt): Adjust all existing tests to expect silence, and
4355         add new tests of leading ":".
4356         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4357         glibc shortcomings with leading "-:" or "+:" in optstring.
4358         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4359         Likewise.
4360         * doc/posix-functions/getopt.texi (getopt): Likewise.
4361
4362         test-getopt: enhance test
4363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
4364         supports optind=0.
4365         * tests/test-getopt.c (OPTIND_MIN): Move...
4366         * tests/test-getopt.h (OPTIND_MIN): ...here.
4367         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
4368         Require that optind=0 works, since modern BSD supports it in
4369         addition to optreset, and since coreutils expects it.
4370         (test_getopt_long_only): New test.
4371         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4372         glibc shortcomings with 'W;', and enforcement of optind=0.
4373         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4374         Likewise.
4375
4376 2009-12-21  Bruno Haible  <bruno@clisp.org>
4377
4378         localename: Improvements for MacOS X and Cygwin.
4379         * lib/localename.h (gl_locale_name_environ): New declaration.
4380         * lib/localename.c (gl_locale_name_environ): New function, extracted from
4381         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
4382         (gl_locale_name_posix): Invoke it.
4383         (gl_locale_name_default): Add comments. Use Windows native API also on
4384         Cygwin.
4385
4386 2009-12-21  Bruno Haible  <bruno@clisp.org>
4387
4388         Update list of Win32 locale ids.
4389         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
4390         (LANG_SAMI): Renamed from LANG_SAAMI.
4391         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
4392         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
4393         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
4394         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
4395         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
4396         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
4397         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
4398         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
4399         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
4400         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
4401         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
4402         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
4403         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
4404         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
4405         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
4406         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
4407         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
4408         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
4409         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
4410         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
4411         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
4412         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
4413         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
4414         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
4415         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
4416         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
4417         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
4418         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
4419         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
4420         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
4421         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
4422         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
4423         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
4424         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
4425         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
4426         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
4427         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
4428         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
4429         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
4430         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
4431         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
4432         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
4433         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
4434         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
4435         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
4436         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
4437         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
4438         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
4439         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
4440         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
4441         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
4442         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
4443         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
4444         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
4445         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
4446         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
4447         Add more languages and countries for Sami, Sorbian. Add more countries
4448         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
4449         for Pashto. Change country for Syriac, Tswana.
4450
4451 2009-12-21  Eric Blake  <ebb9@byu.net>
4452
4453         test-utimens: avoid spurious failure
4454         * tests/test-chown.h (nap): Factor...
4455         * tests/nap.h: ...into new file.
4456         * tests/test-lchown.h (nap): Avoid duplication.
4457         * tests/test-utimens-common.h (nap): Use shared implementation,
4458         necessary on file systems with 1-second resolution.
4459         * modules/chown-tests (Files): Include new file.
4460         * modules/fdutimensat-tests (Files): Likewise.
4461         * modules/futimens-tests (Files): Likewise.
4462         * modules/lchown-tests (Files): Likewise.
4463         * modules/openat-tests (Files): Likewise.
4464         * modules/utimens-tests (Files): Likewise.
4465         * modules/utimensat-tests (Files): Likewise.
4466
4467 2009-12-19  Eric Blake  <ebb9@byu.net>
4468
4469         futimens, utimensat: work around Linux bug
4470         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
4471         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4472         * lib/utimensat.c (rpl_utimensat): Work around it.
4473         * lib/futimens.c (rpl_futimens): Adjust comment.
4474
4475         utimens: work around Linux ctime bug
4476         * lib/utimens.c (detect_ctime_bug): New helper function.
4477         (update_timespec): Differentiate between workaround needed for
4478         this bug vs. what is needed for systems that lack utimensat.
4479         (fdutimens, lutimens): Work around bug.
4480
4481         utimens: check for ctime update
4482         * tests/test-utimens-common.h (check_ctime): Define.
4483         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
4484         * tests/test-futimens.h (test_futimens): Likewise.
4485         * tests/test-lutimens.h (test_lutimens): Likewise.
4486         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4487         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4488
4489 2009-12-19  Bruno Haible  <bruno@clisp.org>
4490
4491         dprintf-posix: Check against memory leak fixed on 2009-12-15.
4492         * tests/test-dprintf-posix2.sh: New file.
4493         * tests/test-dprintf-posix2.c: New file.
4494         * modules/dprintf-posix-tests (Files): Add them.
4495         (configure.ac): Check for getrlimit and setrlimit.
4496         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4497
4498 2009-12-19  Bruno Haible  <bruno@clisp.org>
4499
4500         fprintf-posix: Check against memory leak fixed on 2009-12-15.
4501         * tests/test-fprintf-posix3.sh: New file.
4502         * tests/test-fprintf-posix3.c: New file.
4503         * modules/fprintf-posix-tests (Files): Add them.
4504         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4505
4506 2009-12-19  Eric Blake  <ebb9@byu.net>
4507
4508         dirfd: fix prototype
4509         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
4510         * lib/dirfd.c (dirfd): Likewise.
4511
4512         canonicalize: reduce memory usage
4513         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
4514         allocation to size.
4515         Reported by Solar Designer <solar@openwall.com>.
4516
4517 2009-12-19  Bruno Haible  <bruno@clisp.org>
4518
4519         New module attribute 'Applicability'.
4520         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
4521         * gnulib-tool: New option --extract-applicability.
4522         (func_usage): Document it.
4523         (sed_extract_prog): Recognize it.
4524         (func_get_applicability): New function.
4525         (func_import): Generalize handling of 'link-warning' module.
4526         * modules/link-warning (Applicability): New section.
4527         * modules/arg-nonnull (Applicability): New section.
4528         Repoted by Simon Josefsson <simon@josefsson.org>.
4529
4530 2009-12-19  Bruno Haible  <bruno@clisp.org>
4531
4532         fflush: tweak
4533         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
4534         * lib/fseeko.c (rpl_fseeko): Likewise.
4535
4536 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
4537
4538         * lib/gl_list.h: Fix typo in comment.
4539
4540 2009-12-16  Eric Blake  <ebb9@byu.net>
4541
4542         fcntl: use to simplify other modules
4543         * modules/cloexec (Depends-on): Add fcntl.
4544         * modules/fchdir (Depends-on): Likewise.
4545         * modules/fd-safer-flag (Depends-on): Likewise.
4546         * modules/unistd-safer (Depends-on): Likewise.
4547         * modules/dup3 (configure.ac): Set module indicator.
4548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
4549         missing.
4550         * lib/fchdir.c (_gl_register_dup): Fix comment.
4551         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
4552         * lib/dup-safer.c (dup_safer): Likewise.
4553         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
4554         * lib/dup3.c (dup3): Likewise.
4555         * tests/test-fchdir.c (main): Enhance test.
4556         Fixes a dup_cloexec bug reported by Ondřej Vašík.
4557
4558         fcntl: port portions of fcntl to mingw
4559         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
4560         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
4561         replacement for mingw.
4562         * modules/fcntl (Description): Update.
4563         (Depends-on): Add dup2.
4564         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
4565         * modules/fcntl-h (Makefile.am): Substitute it.
4566         * lib/fcntl.in.h (fcntl): Update declaration.
4567         (F_DUPFD, F_GETFD): New macros, when needed.
4568         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
4569         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
4570         * tests/test-fcntl.c (check_flags, main): Enhance test for items
4571         we now guarantee.
4572
4573         fcntl: work around cygwin bug in F_DUPFD
4574         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
4575         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
4576         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
4577         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
4578         * doc/posix-functions/fcntl.texi (fcntl): Document it.
4579
4580         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
4581         * modules/fcntl (Files): List new files.
4582         (configure.ac): Run a test.
4583         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
4584         * lib/fcntl.c (rpl_fcntl): Likewise.
4585         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
4586         (gl_FCNTL_H): Always replace fcntl.h.
4587         * modules/fcntl-h (Makefile.am): Substitute witnesses.
4588         * lib/fcntl.in.h (fcntl): Declare replacement.
4589         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
4590         needed, plus a witness.
4591         * doc/posix-functions/fcntl.texi (fcntl): Document this.
4592         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
4593         * tests/test-fcntl.c: New file.
4594         * modules/fcntl-tests: Likewise.
4595
4596         binary-io: avoid potential compilation warning
4597         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
4598         directives.
4599
4600         fflush: avoid compilation error on NetBSD
4601         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
4602         between off_t and fpos_t, since the latter is sometimes a struct.
4603         * lib/fseeko.c (rpl_fseeko): Likewise.
4604         Reported by Alexander Nasonov <alnsn@yandex.ru>.
4605
4606 2009-12-15  Eric Blake  <ebb9@byu.net>
4607
4608         fcntl-h, stdio, sys_ioctl: fix declarations
4609         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
4610         function must not take arguments.
4611         * lib/sys_ioctl.in.h (ioctl): Likewise.
4612         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
4613         (open): Add a link warning.
4614
4615 2009-12-15  Jim Meyering  <meyering@redhat.com>
4616
4617         areadlink, areadlink-with-size: relax license to LGPLv2+
4618         * modules/areadlink (License): Relax to LGPLv2+.
4619         * modules/areadlink-with-size (License): Likewise.
4620
4621 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
4622             Bruno Haible  <bruno@clisp.org>
4623
4624         *printf: Fix memory leak.
4625         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
4626         * lib/vfprintf.c (vfprintf): Likewise.
4627         * lib/dprintf.c (dprintf): Likewise.
4628         * lib/vdprintf.c (vdprintf): Likewise.
4629
4630 2009-12-14  Eric Blake  <ebb9@byu.net>
4631
4632         accept4: adjust module dependencies
4633         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
4634
4635         utimens: one more try at avoiding compiler warning
4636         * lib/utimens.c (lutimens): Lower scope of result.
4637
4638 2009-12-13  Bruno Haible  <bruno@clisp.org>
4639
4640         Move the malloc checking from module 'list' to new module 'xlist'.
4641         * modules/xlist: New file.
4642         * lib/gl_xlist.h: New file.
4643         * lib/gl_xlist.c: New file.
4644         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
4645         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
4646         gl_list_add_last, gl_list_add_before, gl_list_add_after,
4647         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
4648         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
4649         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
4650         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
4651         gl_sortedlist_nx_add): New declarations.
4652         (struct gl_list_implementation): Rename and change methods accordingly.
4653         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
4654         (gl_list_nx_create): Renamed from gl_list_create.
4655         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4656         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4657         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4658         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4659         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4660         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4661         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4662         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4663         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
4664         gl_list_create_empty.
4665         (gl_list_nx_create): Renamed from gl_list_create.
4666         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4667         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4668         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4669         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4670         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4671         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4672         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4673         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4674         * lib/gl_array_list.c: Don't include xalloc.h.
4675         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
4676         NULL upon out-of-memory.
4677         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
4678         out-of-memory.
4679         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
4680         Change return type to 'int'.
4681         (gl_array_nx_set_at): Renamed from gl_array_set_at.
4682         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4683         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
4684         upon out-of-memory.
4685         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
4686         upon out-of-memory.
4687         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
4688         upon out-of-memory.
4689         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
4690         upon out-of-memory.
4691         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
4692         out-of-memory.
4693         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
4694         Update.
4695         (gl_array_list_implementation): Update.
4696         * lib/gl_carray_list.c: Don't include xalloc.h.
4697         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
4698         Return NULL upon out-of-memory.
4699         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
4700         out-of-memory.
4701         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
4702         Change return type to 'int'.
4703         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
4704         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4705         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
4706         upon out-of-memory.
4707         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
4708         upon out-of-memory.
4709         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
4710         out-of-memory.
4711         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
4712         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
4713         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
4714         Update.
4715         (gl_carray_list_implementation): Update.
4716         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
4717         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
4718         gl_linked_create_empty. Return NULL upon out-of-memory.
4719         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
4720         out-of-memory.
4721         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
4722         Change return type to 'int'. Return -1 upon out-of-memory.
4723         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
4724         out-of-memory.
4725         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
4726         upon out-of-memory.
4727         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
4728         upon out-of-memory.
4729         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
4730         NULL upon out-of-memory.
4731         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
4732         upon out-of-memory.
4733         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
4734         out-of-memory.
4735         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
4736         Update.
4737         * lib/gl_linked_list.c: Don't include xalloc.h.
4738         (gl_linked_list_implementation): Update.
4739         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
4740         (add_to_bucket): Change return type to 'int'.
4741         (gl_linkedhash_list_implementation): Update.
4742         * lib/gl_anytree_list1.h (free_subtree): New function.
4743         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
4744         gl_tree_create_empty. Return NULL upon out-of-memory.
4745         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
4746         Change return type to 'int'. Return -1 upon out-of-memory.
4747         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
4748         out-of-memory.
4749         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
4750         (gl_tree_remove_node): New function, moved here from
4751         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
4752         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
4753         Update.
4754         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
4755         malloc, not xmalloc. Return NULL upon out-of-memory.
4756         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4757         out-of-memory.
4758         (gl_tree_remove_node_from_tree): New function, extracted from
4759         gl_tree_remove_node.
4760         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4761         upon out-of-memory.
4762         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4763         out-of-memory.
4764         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4765         upon out-of-memory.
4766         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4767         upon out-of-memory.
4768         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4769         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
4770         not xmalloc. Return NULL upon out-of-memory.
4771         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4772         out-of-memory.
4773         (gl_tree_remove_node_from_tree): New function, extracted from
4774         gl_tree_remove_node.
4775         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4776         upon out-of-memory.
4777         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4778         out-of-memory.
4779         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4780         upon out-of-memory.
4781         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4782         upon out-of-memory.
4783         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4784         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
4785         gl_anytree_list1.h before gl_anyavltree_list2.h.
4786         (gl_avltree_list_implementation): Update.
4787         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
4788         gl_anytree_list1.h before gl_anyavltree_list2.h.
4789         (gl_rbtree_list_implementation): Update.
4790         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
4791         Change return type to 'int'. Return -1 upon out-of-memory. Use
4792         __builtin_expect.
4793         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
4794         (gl_avltreehash_list_implementation): Update.
4795         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
4796         (gl_rbtreehash_list_implementation): Update.
4797         * modules/array-list (Depends-on): Remove xalloc.
4798         * modules/carray-list (Depends-on): Likewise.
4799         * modules/linked-list (Depends-on): Likewise.
4800         * modules/linkedhash-list (Depends-on): Likewise.
4801         * modules/avltree-list (Depends-on): Likewise.
4802         * modules/rbtree-list (Depends-on): Likewise.
4803         * modules/avltreehash-list (Depends-on): Likewise.
4804         * modules/rbtreehash-list (Depends-on): Likewise.
4805
4806         * modules/xsublist: New file.
4807         * lib/gl_xsublist.h: New file.
4808         * lib/gl_xsublist.c: New file.
4809         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
4810         (gl_sublist_nx_create): New declaration.
4811         * lib/gl_sublist.c: Don't include xalloc.h.
4812         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
4813         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
4814         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
4815         Change return type to 'int'. Return -1 upon out-of-memory.
4816         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
4817         upon out-of-memory.
4818         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
4819         NULL upon out-of-memory.
4820         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
4821         upon out-of-memory.
4822         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
4823         NULL upon out-of-memory.
4824         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
4825         NULL upon out-of-memory.
4826         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
4827         upon out-of-memory.
4828         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
4829         (gl_sublist_list_implementation): Update.
4830         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
4831         upon out-of-memory.
4832         * modules/sublist (Depends-on): Remove xalloc.
4833
4834         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
4835         * tests/test-carray_list.c: Likewise.
4836         * tests/test-linked_list.c: Likewise.
4837         * tests/test-linkedhash_list.c: Likewise.
4838         * tests/test-avltree_list.c: Likewise.
4839         * tests/test-rbtree_list.c: Likewise.
4840         * tests/test-avltreehash_list.c: Likewise.
4841         * tests/test-rbtreehash_list.c: Likewise.
4842         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
4843         * modules/carray-list-tests (Makefile.am): Likewise.
4844         * modules/linked-list-tests (Makefile.am): Likewise.
4845         * modules/linkedhash-list-tests (Makefile.am): Likewise.
4846         * modules/avltree-list-tests (Makefile.am): Likewise.
4847         * modules/rbtree-list-tests (Makefile.am): Likewise.
4848         * modules/avltreehash-list-tests (Makefile.am): Likewise.
4849         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
4850
4851         * NEWS: Mention the changes.
4852
4853         * lib/clean-temp.c: Include gl_xlist.h.
4854         * modules/clean-temp (Depends-on): Add xlist.
4855
4856         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
4857         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
4858
4859         * tests/test-array_oset.c: Include gl_xlist.h.
4860         * modules/array-oset-tests (Depends-on): Add xlist.
4861
4862         Reported by José E. Marchesi <jemarch@gnu.org>.
4863
4864 2009-12-13  Bruno Haible  <bruno@clisp.org>
4865
4866         Move the malloc checking from module 'oset' to new module 'xoset'.
4867         * modules/xoset: New file.
4868         * lib/gl_xoset.h: New file.
4869         * lib/gl_xoset.c: New file.
4870         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
4871         declarations.
4872         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
4873         (struct gl_oset_implementation): Rename and change methods accordingly.
4874         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
4875         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
4876         'int'. Mark as __warn_unused_result__.
4877         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
4878         gl_oset_create_empty.
4879         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
4880         'int'.
4881         * lib/gl_array_oset.c: Don't include xalloc.h.
4882         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
4883         malloc, not xmalloc.
4884         (grow): Change return type to 'int'. Don't call xalloc_die.
4885         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
4886         to 'int'.
4887         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
4888         'int'.
4889         (gl_array_oset_implementation): Update.
4890         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
4891         gl_tree_create_empty.
4892         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
4893         'int'.
4894         * lib/gl_avltree_oset.c: Don't include xalloc.h.
4895         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
4896         xmalloc.
4897         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
4898         not xmalloc.
4899         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
4900         xmalloc.
4901         (gl_avltree_oset_implementation): Update.
4902         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
4903         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
4904         xmalloc.
4905         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
4906         not xmalloc.
4907         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
4908         xmalloc.
4909         (gl_rbtree_oset_implementation): Update.
4910         * modules/array-oset (Depends-on): Remove xalloc.
4911         * modules/avltree-oset (Depends-on): Likewise.
4912         * modules/rbtree-oset (Depends-on): Likewise.
4913         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
4914         * tests/test-avltree_oset.c: Likewise.
4915         * tests/test-rbtree_oset.c: Likewise.
4916         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
4917         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
4918         * modules/rbtree-oset-tests (Makefile.am): Likewise.
4919         * NEWS: Mention the change.
4920
4921 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
4922
4923         maint.mk: allow a project to override release-prep commands
4924         * top/maint.mk (alpha, beta, stable): Move release-preparatory
4925         commands into a new rule.
4926         (release-prep): New rule.
4927         (release-prep-hook): New overridable variable.
4928
4929 2009-12-13  Bruno Haible  <bruno@clisp.org>
4930
4931         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
4932
4933 2009-12-13  Jim Meyering  <meyering@redhat.com>
4934
4935         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
4936         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
4937
4938 2009-12-12  Bruno Haible  <bruno@clisp.org>
4939
4940         duplocale: Tweak.
4941         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
4942
4943 2009-12-12  Karl Berry  <karl@gnu.org>
4944
4945         * config/srclist.txt (strtoll.c): tab changes, no more sync.
4946
4947 2009-12-12  Bruno Haible  <bruno@clisp.org>
4948
4949         * m4/po.m4: Undo incorrect untabification.
4950
4951 2009-12-12  Bruno Haible  <bruno@clisp.org>
4952
4953         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
4954         * modules/c-strtod (Depends-on): Add locale.
4955         * modules/c-strtold (Depends-on): Likewise.
4956
4957 2009-12-12  Bruno Haible  <bruno@clisp.org>
4958
4959         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
4960
4961 2009-12-11  Eric Blake  <ebb9@byu.net>
4962
4963         setenv: relax requirement in light of POSIX ruling
4964         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
4965         not NULL.
4966         * tests/test-setenv.c (main): Relax test.
4967         * tests/test-unsetenv.c (main): Likewise.
4968         * doc/posix-functions/setenv.texi (setenv): Document this.
4969         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4970
4971 2009-12-11  Bruno Haible  <bruno@clisp.org>
4972
4973         New module 'fd-safer-flag'.
4974         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
4975         * lib/dup-safer.c (dup_safer_flag): Remove function.
4976         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
4977         * lib/fd-safer.c (fd_safer_flag): Remove function.
4978         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
4979         * modules/cloexec (configure.ac): Drop indicator macro.
4980         * modules/fd-safer-flag: New file.
4981         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
4982         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
4983         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
4984
4985 2009-12-11  Bruno Haible  <bruno@clisp.org>
4986
4987         Tests for module 'nl_langinfo'.
4988         * modules/nl_langinfo-tests: New file.
4989         * tests/test-nl_langinfo.sh: New file.
4990         * tests/test-nl_langinfo.c: New file.
4991
4992         New module 'nl_langinfo'.
4993         * lib/nl_langinfo.c: New file.
4994         * m4/nl_langinfo.m4: New file.
4995         * modules/nl_langinfo: New file.
4996         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
4997
4998 2009-12-11  Bruno Haible  <bruno@clisp.org>
4999
5000         Tests for module 'langinfo'.
5001         * modules/langinfo-tests: New file.
5002         * tests/test-langinfo.c: New file.
5003
5004         New module 'langinfo'.
5005         * lib/langinfo.in.h: New file.
5006         * m4/langinfo_h.m4: New file.
5007         * modules/langinfo: New file.
5008         * doc/posix-headers/langinfo.texi: Mention the new module.
5009
5010 2009-12-11  Bruno Haible  <bruno@clisp.org>
5011
5012         * lib/config.charset: Untabify.
5013
5014 2009-12-11  Bruno Haible  <bruno@clisp.org>
5015
5016         * modules/unistd-safer (configure.ac): Drop indicator macro.
5017
5018 2009-12-11  Bruno Haible  <bruno@clisp.org>
5019
5020         Move pipe2-safer code to its own file.
5021         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5022         * lib/pipe-safer.c (pipe2_safer): Remove function.
5023         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5024         (Makefile.am): Add it to lib_SOURCES.
5025
5026 2009-12-10  Bruno Haible  <bruno@clisp.org>
5027
5028         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5029
5030 2009-12-10  Bruno Haible  <bruno@clisp.org>
5031
5032         Declare which arguments expect non-NULL values, for GCC and clang.
5033         * build-aux/arg-nonnull.h: New file.
5034         * modules/arg-nonnull: New file.
5035         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5036         (inet_ntop, inet_pton): Use it.
5037         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5038         (closedir, dirfd, opendir, scandir, alphasort): Use it.
5039         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5040         (open, openat): Use it.
5041         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5042         (fnmatch): Use it.
5043         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5044         (getopt, getopt_long, getopt_long_only): Use it.
5045         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5046         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5047         Use it.
5048         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5049         (iconv_open): Use it.
5050         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5051         (strtoimax, strtoumax): Use it.
5052         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5053         (duplocale): Use it.
5054         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5055         (frexp, frexpl): Use it.
5056         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5057         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5058         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5059         (tsearch, tfind, tdelete, twalk): Use it.
5060         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5061         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5062         sigpending): Use it.
5063         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5064         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5065         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5066         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5067         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5068         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5069         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5070         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5071         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5072         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5073         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5074         Use it.
5075         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5076         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5077         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5078         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5079         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5080         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5081         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5082         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5083         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5084         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5085         strtoull, unsetenv): Use it.
5086         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5087         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5088         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5089         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5090         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5091         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5092         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5093         (strcasecmp, strncasecmp): Use it.
5094         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5095         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5096         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5097         rpl_setsockopt): Use it.
5098         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5099         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5100         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5101         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5102         (gettimeofday): Use it.
5103         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5104         (times): Use it.
5105         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5106         (uname): Use it.
5107         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5108         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5109         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5110         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5111         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5112         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5113         unlinkat, write): Use it.
5114         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5115         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5116         * lib/argv-iter.h: Include arg-nonnull.h.
5117         (_ATTRIBUTE_NONNULL_): Remove macro.
5118         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5119         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5120         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5121         optimization.
5122         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5123         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5124         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5125         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5126         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5127         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5128         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5129         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5130         * modules/arpa_inet (Depends-on): Add arg-nonnull.
5131         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5132         * modules/dirent (Depends-on): Add arg-nonnull.
5133         (Makefile.am): Insert arg-nonnull.h into dirent.h.
5134         * modules/fcntl-h (Depends-on): Add arg-nonnull.
5135         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5136         * modules/fnmatch (Depends-on): Add arg-nonnull.
5137         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5138         * modules/getopt-posix (Depends-on): Add arg-nonnull.
5139         (Makefile.am): Insert arg-nonnull.h into getopt.h.
5140         * modules/glob (Depends-on): Add arg-nonnull.
5141         (Makefile.am): Insert arg-nonnull.h into glob.h.
5142         * modules/iconv_open (Depends-on): Add arg-nonnull.
5143         (Makefile.am): Insert arg-nonnull.h into iconv.h.
5144         * modules/inttypes (Depends-on): Add arg-nonnull.
5145         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5146         * modules/locale (Depends-on): Add arg-nonnull.
5147         (Makefile.am): Insert arg-nonnull.h into locale.h.
5148         * modules/math (Depends-on): Add arg-nonnull.
5149         (Makefile.am): Insert arg-nonnull.h into math.h.
5150         * modules/netdb (Depends-on): Add arg-nonnull.
5151         (Makefile.am): Insert arg-nonnull.h into netdb.h.
5152         * modules/search (Depends-on): Add arg-nonnull.
5153         (Makefile.am): Insert arg-nonnull.h into search.h.
5154         * modules/signal (Depends-on): Add arg-nonnull.
5155         (Makefile.am): Insert arg-nonnull.h into signal.h.
5156         * modules/spawn (Depends-on): Add arg-nonnull.
5157         (Makefile.am): Insert arg-nonnull.h into spawn.h.
5158         * modules/stdio (Depends-on): Add arg-nonnull.
5159         (Makefile.am): Insert arg-nonnull.h into stdio.h.
5160         * modules/stdlib (Depends-on): Add arg-nonnull.
5161         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5162         * modules/string (Depends-on): Add arg-nonnull.
5163         (Makefile.am): Insert arg-nonnull.h into string.h.
5164         * modules/strings (Depends-on): Add arg-nonnull.
5165         (Makefile.am): Insert arg-nonnull.h into strings.h.
5166         * modules/sys_socket (Depends-on): Add arg-nonnull.
5167         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5168         * modules/sys_stat (Depends-on): Add arg-nonnull.
5169         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5170         * modules/sys_time (Depends-on): Add arg-nonnull.
5171         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5172         * modules/sys_times (Depends-on): Add arg-nonnull.
5173         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5174         * modules/sys_utsname (Depends-on): Add arg-nonnull.
5175         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5176         * modules/time (Depends-on): Add arg-nonnull.
5177         (Makefile.am): Insert arg-nonnull.h into time.h.
5178         * modules/unistd (Depends-on): Add arg-nonnull.
5179         (Makefile.am): Insert arg-nonnull.h into unistd.h.
5180         * modules/wchar (Depends-on): Add arg-nonnull.
5181         (Makefile.am): Insert arg-nonnull.h into wchar.h.
5182         * modules/argv-iter (Depends-on): Add arg-nonnull.
5183         * tests/test-canonicalize.c (null_ptr): New function.
5184         (main): Use it.
5185         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5186         (main): Use it.
5187         * tests/test-memmem.c (null_ptr): New function.
5188         (main): Use it.
5189         Reported by Jim Meyering.
5190
5191 2009-12-10  Bruno Haible  <bruno@clisp.org>
5192
5193         Use spaces for indentation, not tabs.
5194         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5195         * m4/*.m4: Untabify.
5196         * build-aux/*.h: Untabify.
5197         * tests/**/*.[hc]: Untabify.
5198         * README: New section "Indent with spaces, not TABs", based on
5199         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5200         * NEWS: Mention the change.
5201
5202 2009-12-10  Bruno Haible  <bruno@clisp.org>
5203
5204         pty test: Fix link error.
5205         * modules/pty-tests (Makefile.am): Add the default LDADD value to
5206         test_pty_LDADD.
5207
5208 2009-12-07  Simon Josefsson  <simon@josefsson.org>
5209
5210         * modules/pty: New file.
5211         * modules/pty-tests: New file.
5212         * m4/pty.m4: New file.
5213         * tests/test-pty.c: New file.
5214         * doc/glibc-headers/pty.texi: Modified.
5215         * doc/glibc-functions/forkpty.texi: Modified.
5216         * doc/glibc-functions/openpty.texi: Modified.
5217
5218 2009-12-10  Bruno Haible  <bruno@clisp.org>
5219
5220         Avoid syntax error in C++ mode.
5221         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5222
5223 2009-12-10  Bruno Haible  <bruno@clisp.org>
5224
5225         Use sed with option -e.
5226         * gnulib-tool (func_version, func_emit_copyright_notice,
5227         func_emit_initmacro_end, func_import, func_create_testdir): Pass
5228         option -e to sed.
5229         * modules/link-warning (Makefile.am): Likewise.
5230
5231 2009-12-10  Jim Meyering  <meyering@redhat.com>
5232
5233         mgetgroups: do not write bytes beyond end of malloc'd buffer
5234         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
5235         username, we call getgroups with a one-element-shorter buffer,
5236         but still told it the length was original, max_n_groups.
5237
5238 2009-12-09  Eric Blake  <ebb9@byu.net>
5239
5240         cloexec: relax license
5241         * modules/cloexec (Maintainer): Add myself.
5242         (License): Use LGPL, not GPL.
5243
5244         link-warning: optimize generation
5245         * modules/link-warning (Makefile.am): Reduce process usage.
5246
5247 2009-12-09  Bruno Haible  <bruno@clisp.org>
5248
5249         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5250         workaround was added on 2009-11-17.
5251
5252 2009-12-09  Jim Meyering  <meyering@redhat.com>
5253             Bruno Haible  <bruno@clisp.org>
5254
5255         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5256         * modules/link-warning (Makefile.am): Make the comment-removing sed
5257         command more robust in the face of bootstrap-prepended comment lines.
5258
5259 2009-12-09  Bruno Haible  <bruno@clisp.org>
5260
5261         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5262         most one group.
5263
5264 2009-12-09  Simon Josefsson <simon@josefsson.org>
5265             Bruno Haible  <bruno@clisp.org>
5266
5267         * build-aux/link-warning.h: Add copyright notice.
5268         * modules/link-warning (Makefile.am): Generate link-warning.h from
5269         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5270         * NEWS: Mention change in link-warning module.
5271         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5272         * modules/dirent (Makefile.am): Add dependency to dirent.h.
5273         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5274         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5275         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5276         * modules/math (Makefile.am): Add dependency to math.h.
5277         * modules/search (Makefile.am): Add dependency to search.h.
5278         * modules/signal (Makefile.am): Add dependency to signal.h.
5279         * modules/spawn (Makefile.am): Add dependency to spawn.h.
5280         * modules/stdio (Makefile.am): Add dependency to stdio.h.
5281         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5282         * modules/string (Makefile.am): Add dependency to string.h.
5283         * modules/strings (Makefile.am): Add dependency to strings.h.
5284         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5285         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5286         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5287         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
5288         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
5289         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
5290         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
5291         * modules/unistd (Makefile.am): Add dependency to unistd.h.
5292         * modules/wchar (Makefile.am): Add dependency to wchar.h.
5293
5294 2009-12-09  Bruno Haible  <bruno@clisp.org>
5295
5296         fchdir: Optimize away rpl_fstat when possible.
5297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
5298         REPLACE_OPEN_DIRECTORY.
5299         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
5300
5301 2009-12-09  Bruno Haible  <bruno@clisp.org>
5302
5303         * lib/fchdir.c: Update comment.
5304
5305 2009-12-09  Bruno Haible  <bruno@clisp.org>
5306
5307         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
5308
5309 2009-12-08  Eric Blake  <ebb9@byu.net>
5310
5311         fchdir: avoid memory leak on re-registration.
5312         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
5313
5314 2009-12-08  Jim Meyering  <meyering@redhat.com>
5315
5316         init.sh: avoid Solaris 10 /bin/sh portability problem
5317         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
5318         sourced script:
5319           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
5320           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
5321           bar
5322         tests/init.sh relied on that, accepting a --set-path=DIR argument,
5323         and two tests used that idiom.
5324         * tests/init.sh: Update suggested usage comments.
5325         (path_prepend_): New function, to be used in place
5326         of the --src-path=DIR option.
5327         (setup_): Move PATH-prepending code into path_prepend_.
5328         * tests/test-pread.sh: Adapt to new usage.
5329         * tests/test-xalloc-die.sh: Likewise.
5330
5331 2009-12-08  Simon Josefsson  <simon@josefsson.org>
5332
5333         * doc/gnulib.texi (Glibc pty.h): Add.
5334         * doc/glibc-functions/forkpty.texi: Add.
5335         * doc/glibc-functions/openpty.texi: Add.
5336         Suggested by Bruno Haible.
5337
5338 2009-12-08  Eric Blake  <ebb9@byu.net>
5339
5340         fchdir: fix logic bugs
5341         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
5342         * tests/test-fchdir.c (main): Enhance test.
5343         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
5344         is in use.
5345
5346         dup2: fix logic bugs
5347         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
5348         REPLACE_DUP2 to decide when rpl_dup2 is needed.
5349         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
5350         exists.
5351         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
5352
5353 2009-12-07  Eric Blake  <ebb9@byu.net>
5354
5355         unlink: fix m4 detection
5356         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
5357
5358         unistd-safer: add unit test
5359         * modules/unistd-safer-tests: New file.
5360         * tests/test-dup-safer.c: Likewise.
5361         * tests/test-cloexec.c (setmode): Avoid compiler warning.
5362         * tests/test-dup2.c (setmode): Likewise.
5363         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
5364
5365         cloexec: preserve text vs. binary across dup_cloexec
5366         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
5367         mode.
5368         * modules/dup2-tests (Depends-on): Add binary-io.
5369         * modules/cloexec-tests (Depends-on): Likewise.
5370         * tests/test-dup2.c (setmode, is_mode): New helpers.
5371         (main): Add tests that translation mode is preserved.
5372         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
5373         Reported by Bruno Haible.
5374
5375         mgetgroups: reduce duplicate listings
5376         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
5377         resulting array.
5378         * tests/test-chown.h (test_chown): Simplify client.
5379         * tests/test-lchown.h (test_lchown): Likewise.
5380
5381 2009-12-06  Bruno Haible  <bruno@clisp.org>
5382
5383         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
5384         value.
5385
5386 2009-12-06  Bruno Haible  <bruno@clisp.org>
5387
5388         * lib/progname.c: Include stdio.h, stdlib.h.
5389         (set_program_name): Reject a NULL argument.
5390
5391 2009-12-05  Eric Blake  <ebb9@byu.net>
5392
5393         pipe2-safer: new module
5394         * modules/pipe2-safer: New file.
5395         * lib/unistd-safer.h (pipe2_safer): New prototype.
5396         * lib/unistd--.h (pipe2): New wrapper.
5397         * lib/pipe-safer.c (pipe2_safer): New function.
5398         * modules/pipe (Depends-on): Add pipe2-safer.
5399         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
5400
5401         stdlib-safer: preserve cloexec flag for mkostemp[s]
5402         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
5403         fd_safer_flag.
5404
5405         unistd-safer: allow preservation of cloexec status via flag
5406         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
5407         prototypes.
5408         * lib/dup-safer.c (dup_safer_flag): New function.
5409         * lib/fd-safer.c (fd_safer_flag): Likewise.
5410         * modules/cloexec (configure.ac): Set witness.
5411
5412         test-dup2: enhance test
5413         * modules/dup2-tests (Depends-on): Add cloexec.
5414         * tests/test-dup2.c (main): Enhance test.
5415
5416         cloexec: add dup_cloexec
5417         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
5418         header and comments.
5419         * lib/cloexec.c (set_cloexec_flag): Add comments.
5420         (dup_cloexec): New function, with mingw implementation borrowed
5421         from...
5422         * lib/w32spawn.h (dup_noinherit): ...here.
5423         * modules/execute (Depends-on): Add cloexec.
5424         * modules/pipe (Depends-on): Likewise.
5425         * modules/cloexec (Depends-on): Add dup2.
5426         * modules/cloexec-tests (Files): New file.
5427         * tests/test-cloexec.c: Likewise.
5428
5429         test-xalloc-die: fix test for mingw
5430         * modules/xalloc-die-tests (Files): Add tests/init.sh.
5431         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
5432         directory and .exe suffix off argv[0] output.
5433
5434         test-fseeko: fix test for mingw
5435         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
5436         than undefining fseek, so test will pass on mingw.
5437
5438 2009-12-05  Bruno Haible  <bruno@clisp.org>
5439
5440         * lib/progname.h (set_program_name): Clarify specification.
5441         * lib/progname.c (set_program_name): Likewise.
5442         Reported by Jim Meyering.
5443
5444 2009-12-05  Jim Meyering  <meyering@redhat.com>
5445
5446         maint.mk: backslash-escape parens in default regexp
5447         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
5448         backslash-escape the literal parentheses.
5449
5450         maint.mk: news-date-check: use grep -E
5451         * top/maint.mk (today): Define a Make variable, not a...
5452         (news-date-check): ...shell variable.
5453         (news-date-regexp): Use the Make variable.
5454         Use grep's -E option.  Change the failing diagnostic to mention
5455         the variable, $(news-date-regexp).
5456
5457 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
5458
5459         maintainer-makefile: allow customization of NEWS entry format
5460         * top/maint.mk (news-date-regexp): New overridable variable.
5461         (news-date-check): Use it.
5462
5463 2009-12-04  Eric Blake  <ebb9@byu.net>
5464
5465         mgetgroups: add xgetgroups, and avoid ENOSYS failures
5466         * lib/mgetgroups.h (xgetgroups): New prototype.
5467         * lib/mgetgroups.c (xgetgroups): New wrapper.
5468         (mgetgroups): Handle ENOSYS.
5469         * modules/mgetgroups (Depends-on): Add realloc.
5470         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
5471
5472         mgetgroups: avoid argument promotion issues with -1
5473         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
5474         for invalid gid_t.
5475         * tests/test-chown.h (getegid, test_chown): Likewise.
5476         * tests/test-lchown.h (getegid, test_lchown): Likewise.
5477
5478 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
5479
5480         exclude: Fix header file problems.
5481         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
5482
5483 2009-12-01  Jim Meyering  <meyering@redhat.com>
5484
5485         fts: fts_open: do not let an empty string cause immediate failure
5486         This is required in support of GNU rm, for which the command
5487         "rm A '' B" must process and remove both A and B, in spite of
5488         the empty string argument.
5489         * lib/fts.c (fts_open): Do not let the presence of an empty string
5490         cause fts_open to fail immediately.  Most fts-using tools must be
5491         able to process all arguments, in order, and can be expected to
5492         diagnose such arguments themselves.
5493
5494 2009-11-30  Eric Blake  <ebb9@byu.net>
5495
5496         utimens: fix compilation error
5497         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
5498         Declare variable at right scope.
5499
5500 2009-11-29  Jim Meyering  <meyering@redhat.com>
5501
5502         bootstrap: handle perl-5.11's changed --version output
5503         * build-aux/bootstrap (get_version): Handle perl separately,
5504         since perl-5.11's --version output is different.
5505
5506 2009-11-28  Jim Meyering  <meyering@redhat.com>
5507
5508         userspec: depend on the inttostr module, too
5509         * modules/userspec (Depends-on): Add inttostr.
5510
5511         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
5512         * lib/userspec.c (parse_with_separator): Do not accept a user ID
5513         number of MAXUID when it evaluates to (uid_t) -1.
5514         Likewise for group ID.  Reported by Matt McCutchen in
5515         <http://savannah.gnu.org/bugs/?28113>
5516
5517         userspec: reformat to use spaces, not TABs
5518         * lib/userspec.c: Expand TABs to spaces.
5519         Add Emacs' "indent-tabs-mode: nil" hint.
5520
5521 2009-11-27  Eric Blake  <ebb9@byu.net>
5522
5523         getopt-gnu: flush out another BSD bug
5524         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
5525         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
5526         flush out BSD bug.
5527         * tests/test-getopt.h (test_getopt): End lists with NULL.
5528         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5529         (test_getopt_long_posix): Enhance test.
5530         * modules/getopt-posix-tests (Depends-on): Add stdbool.
5531         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
5532         getopt-gnu.
5533         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5534         Likewise.
5535
5536 2009-11-27  Simon Josefsson  <simon@josefsson.org>
5537
5538         * modules/idpriv-droptemp-tests (Notice): Fix text.
5539
5540 2009-11-27  Jim Meyering  <meyering@redhat.com>
5541
5542         test-xalloc-die: avoid spurious failure due to libtool argv difference
5543         In a libtool-enabled project, this test would fail due to a difference
5544         in the emitted program name, e.g.,
5545         -test-xalloc-die: memory exhausted
5546         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
5547         Use program to avoid that.
5548         * modules/xalloc-die-tests (Depends-on): Add progname.
5549         * tests/test-xalloc-die.c: Include progname.h".
5550         (program_name): Remove decl.
5551         (main): Call set_program_name.
5552         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
5553
5554 2009-11-26  Richard Jones  <rjones@redhat.com>
5555
5556         w32sock: leave win32 error in place.
5557         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
5558
5559 2009-11-26  Eric Blake  <ebb9@byu.net>
5560
5561         init.sh: suggest to use skip_ and fail_ functions in comments
5562         * tests/init.sh: Add a sentence.
5563
5564 2009-11-25  Bruno Haible  <bruno@clisp.org>
5565
5566         init.sh: add documentation in comments
5567         * tests/init.sh: Add some developer and user documentation.
5568
5569 2009-11-26  Jim Meyering  <meyering@redhat.com>
5570
5571         init.sh: accommodate even those who specify bogus srcdir manually
5572         * tests/init.sh: Normally, srcdir is guaranteed by automake and
5573         configure-time tests to be sanitized, so that there is no need to
5574         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
5575         (with no double quotes) suffices.  However, since tests may be
5576         invoked manually, and since you may explicitly set srcdir to the
5577         name of a directory containing spaces, do quote its uses here.
5578         * tests/test-pread.sh: Likewise.
5579         Suggested by Bruno Haible.
5580
5581         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
5582         * tests/test-pread.sh: Write no data into the pipe, because
5583         test-pread actually reads none.  This avoids a diagnostic,
5584         "bash: echo: write error: Broken pipe", that arises in the unusual
5585         event something is ignoring SIGPIPE, and might be interpreted
5586         as some sort of failure.  Reported by Bruno Haible.
5587
5588 2009-11-25  Jim Meyering  <meyering@redhat.com>
5589
5590         test-pread: cover failure with ESPIPE and EINVAL
5591         * tests/test-pread.c (main): Test for failure, too.
5592         * tests/test-pread.sh: Invoke with stdin on a pipe.
5593         Suggested by Eric Blake.
5594
5595         pread: improvement and fix
5596         * modules/pread (Depends-on): Depend on lseek, for portability to
5597         e.g., mingw.  Suggested by Eric Blake.
5598         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
5599
5600         unistd.in.h: correct declaration of pread
5601         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
5602         Reported by Richard W.M. Jones.
5603
5604         test-pread.sh: distribute the test script
5605         * modules/pread-tests (Files): Include test-pread.sh.
5606
5607         test-pread.sh: clean up
5608         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
5609         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
5610         That is unnecessary, since it's always ".".
5611         Suggestion from Eric Blake.
5612
5613         test-pread.sh: make executable
5614         * tests/test-pread.sh: Set executable bit.
5615         Reported by Eric Blake.
5616
5617         correct typo in test-pread.sh
5618         * tests/test-pread.sh: Add #! line.
5619
5620         test pread
5621         * tests/test-pread.c: New file.
5622         * tests/test-pread.sh: Likewise.
5623         * modules/pread-tests: Likewise.
5624
5625         pread: new module
5626         * modules/pread: New file.
5627         * lib/unistd.in.h (pread): Define/declare.
5628         * lib/pread.c (pread): New file.
5629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
5630         * modules/unistd (Makefile.am): Substitute witnesses.
5631         * doc/posix-functions/pread.texi (pread): Update.
5632         * MODULES.html.sh: Add pread.
5633
5634 2009-11-25  Jim Meyering  <meyering@redhat.com>
5635
5636         tests/init.sh: new file to be used via most *.sh tests
5637         * tests/init.sh: New file.
5638
5639 2009-11-25  Eric Blake  <ebb9@byu.net>
5640
5641         utimens: work around older Linux failure with symlinks
5642         * lib/utimens.c (lutimensat_works_really): New variable.
5643         (fdutimens, lutimens): Use it to manage kernels that support
5644         nanosecond times on files, but not on symlinks.
5645         Reported by Ondřej Vašík.
5646
5647         utimes: fix configure grammar
5648         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
5649
5650 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
5651
5652         regex: Fix fastmap for multibyte character ranges.
5653         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
5654         characters when a multibyte character range is included.
5655
5656 2009-11-22  Andy Wingo  <wingo@pobox.com>
5657
5658         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
5659         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
5660
5661 2009-11-24  Bruno Haible  <bruno@clisp.org>
5662
5663         doc: Most *_l functions exist in MacOS X 10.5.
5664         * doc/posix-functions/duplocale.texi: Update platforms list.
5665         * doc/posix-functions/freelocale.texi: Likewise.
5666         * doc/posix-functions/newlocale.texi: Likewise.
5667         * doc/posix-functions/uselocale.texi: Likewise.
5668         * doc/posix-functions/isalnum_l.texi: Likewise.
5669         * doc/posix-functions/isalpha_l.texi: Likewise.
5670         * doc/posix-functions/isblank_l.texi: Likewise.
5671         * doc/posix-functions/iscntrl_l.texi: Likewise.
5672         * doc/posix-functions/isdigit_l.texi: Likewise.
5673         * doc/posix-functions/isgraph_l.texi: Likewise.
5674         * doc/posix-functions/islower_l.texi: Likewise.
5675         * doc/posix-functions/isprint_l.texi: Likewise.
5676         * doc/posix-functions/ispunct_l.texi: Likewise.
5677         * doc/posix-functions/isspace_l.texi: Likewise.
5678         * doc/posix-functions/isupper_l.texi: Likewise.
5679         * doc/posix-functions/iswalnum_l.texi: Likewise.
5680         * doc/posix-functions/iswalpha_l.texi: Likewise.
5681         * doc/posix-functions/iswblank_l.texi: Likewise.
5682         * doc/posix-functions/iswcntrl_l.texi: Likewise.
5683         * doc/posix-functions/iswctype_l.texi: Likewise.
5684         * doc/posix-functions/iswdigit_l.texi: Likewise.
5685         * doc/posix-functions/iswgraph_l.texi: Likewise.
5686         * doc/posix-functions/iswlower_l.texi: Likewise.
5687         * doc/posix-functions/iswprint_l.texi: Likewise.
5688         * doc/posix-functions/iswpunct_l.texi: Likewise.
5689         * doc/posix-functions/iswspace_l.texi: Likewise.
5690         * doc/posix-functions/iswupper_l.texi: Likewise.
5691         * doc/posix-functions/iswxdigit_l.texi: Likewise.
5692         * doc/posix-functions/isxdigit_l.texi: Likewise.
5693         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
5694         * doc/posix-functions/strcasecmp_l.texi: Likewise.
5695         * doc/posix-functions/strcoll_l.texi: Likewise.
5696         * doc/posix-functions/strfmon_l.texi: Likewise.
5697         * doc/posix-functions/strftime_l.texi: Likewise.
5698         * doc/posix-functions/strncasecmp_l.texi: Likewise.
5699         * doc/posix-functions/strxfrm_l.texi: Likewise.
5700         * doc/posix-functions/tolower_l.texi: Likewise.
5701         * doc/posix-functions/toupper_l.texi: Likewise.
5702         * doc/posix-functions/towctrans_l.texi: Likewise.
5703         * doc/posix-functions/towlower_l.texi: Likewise.
5704         * doc/posix-functions/towupper_l.texi: Likewise.
5705         * doc/posix-functions/wcscoll_l.texi: Likewise.
5706         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5707         * doc/posix-functions/wctrans_l.texi: Likewise.
5708         * doc/posix-functions/wctype_l.texi: Likewise.
5709         * doc/glibc-functions/strptime_l.texi: Likewise.
5710         * doc/glibc-functions/strtod_l.texi: Likewise.
5711         * doc/glibc-functions/strtof_l.texi: Likewise.
5712         * doc/glibc-functions/strtol_l.texi: Likewise.
5713         * doc/glibc-functions/strtold_l.texi: Likewise.
5714         * doc/glibc-functions/strtoll_l.texi: Likewise.
5715         * doc/glibc-functions/strtoul_l.texi: Likewise.
5716         * doc/glibc-functions/strtoull_l.texi: Likewise.
5717         * doc/glibc-functions/wcsftime_l.texi: Likewise.
5718         * doc/glibc-functions/wcstod_l.texi: Likewise.
5719         * doc/glibc-functions/wcstof_l.texi: Likewise.
5720         * doc/glibc-functions/wcstol_l.texi: Likewise.
5721         * doc/glibc-functions/wcstold_l.texi: Likewise.
5722         * doc/glibc-functions/wcstoll_l.texi: Likewise.
5723         * doc/glibc-functions/wcstoul_l.texi: Likewise.
5724         * doc/glibc-functions/wcstoull_l.texi: Likewise.
5725
5726 2009-11-24  Bruno Haible  <bruno@clisp.org>
5727
5728         duplocale: Fix logic bug.
5729         * lib/duplocale.c: Don't include <langinfo.h>.
5730         (_NL_LOCALE_NAME): Remove macro.
5731         (rpl_duplocale): Use setlocale instead of nl_langinfo.
5732         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
5733
5734 2009-11-23  Jim Meyering  <meyering@redhat.com>
5735
5736         test-update-copyright: don't hard-code /usr/bin/perl
5737         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
5738         perl to print the current year.  Gilles Espinasse reported that
5739         the replaced use of perl was hard-coded as /usr/bin/perl.
5740
5741 2009-11-23  Bruno Haible  <bruno@clisp.org>
5742
5743         duplocale: Add support for glibc 2.3.x.
5744         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
5745
5746 2009-11-22  Bruno Haible  <bruno@clisp.org>
5747
5748         vasnprintf: Tiny optimization.
5749         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
5750         MacOS X.
5751
5752 2009-11-22  Bruno Haible  <bruno@clisp.org>
5753
5754         Tests for module 'duplocale'.
5755         * modules/duplocale-tests: New file.
5756         * tests/test-duplocale.c: New file.
5757
5758         New module 'duplocale'.
5759         * m4/duplocale.m4: New file.
5760         * lib/locale.in.h (duplocale): New declaration.
5761         * lib/duplocale.c: New file.
5762         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
5763         gl_LOCALE_H_DEFAULTS): New macros.
5764         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
5765         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
5766         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
5767         REPLACE_DUPLOCALE.
5768         * modules/duplocale: New file.
5769         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
5770
5771 2009-11-22  Bruno Haible  <bruno@clisp.org>
5772
5773         * modules/locale-tests (configure.ac): Test for newlocale function.
5774         * tests/test-locale.c: When the system has extended locale functions,
5775         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
5776
5777         locale: Make locale_t available when possible.
5778         * lib/locale.in.h: Include <xlocale.h> when it exists.
5779         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
5780         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
5781         * modules/locale (Depends-on): Add extensions.
5782         (Makefile.am): Also substitute HAVE_XLOCALE_H.
5783         * doc/posix-headers/locale.texi: Document the problem with locale_t.
5784
5785 2009-11-22  Bruno Haible  <bruno@clisp.org>
5786
5787         Add comments.
5788         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
5789         invocation.
5790         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
5791         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5792         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5793
5794 2009-11-22  Bruno Haible  <bruno@clisp.org>
5795
5796         error: account for the possibility of freopen (stdout).
5797         * lib/error.c: Include <unistd.h>.
5798         (flush_stdout): New function, extracted from error and error_at_line.
5799         Determine stdout's fd dynamically.
5800         (error, error_at_line): Invoke flush_stdout.
5801         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
5802         * modules/error (Depends-on): Add unistd.
5803
5804 2009-11-22  Bruno Haible  <bruno@clisp.org>
5805
5806         diffseq: Add comment.
5807         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
5808
5809 2009-11-22  Jim Meyering  <meyering@redhat.com>
5810
5811         c-stack: avoid defining an unused static function
5812         * lib/c-stack.c (find_stack_direction): Do not define this function
5813         when it will not be used.
5814
5815         diffseq: avoid spurious gcc warnings
5816         * lib/diffseq.h (IF_LINT2): Define.
5817         (compareseq): Use it to initialize two members of "part".
5818         This avoids two used-uninitialized warnings.
5819
5820 2009-11-21  Jim Meyering  <meyering@redhat.com>
5821
5822         c-stack: avoid "ignoring return value of `write'" warning
5823         * lib/c-stack.c: Include "ignore-value.h".
5824         (die): Explicitly ignore each write return value.
5825         * modules/c-stack (Depends-on): Add ignore-value.
5826
5827 2009-11-21  Bruno Haible  <bruno@clisp.org>
5828
5829         diffseq: reduce scope of variable 'best'.
5830         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
5831         variable, earlier used for two different purposes.
5832
5833 2009-11-21  Jim Meyering  <meyering@redhat.com>
5834
5835         diffseq: remove useless assignment to "best"
5836         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
5837         assignment.  At that point "best" is already guaranteed to be zero.
5838
5839 2009-11-20  Eric Blake  <ebb9@byu.net>
5840
5841         build: mention ftp redirector in release announcements
5842         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
5843         values that used to come from cfg.mk; mention FTP redirect URL.
5844         * build-aux/announce-gen: Mention the mirror list.
5845         Suggested by Karl Berry.
5846
5847         nanosleep: improve port to mingw
5848         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
5849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
5850         LIB_NANOSLEEP, but only when needed.
5851         * modules/select (Link): Document LIBSOCKET.
5852         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
5853         enough.
5854
5855         nanosleep: work around cygwin bug
5856         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
5857         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
5858         bug.
5859         (getnow): Delete, not needed.
5860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
5861         LIB_CLOCK_GETTIME.
5862         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
5863         clock-time, gettime.
5864         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
5865         bug.
5866         * modules/nanosleep-tests: New test.
5867         * tests/test-nanosleep.c: New file.
5868
5869         sleep: work around cygwin bug
5870         * lib/sleep.c (rpl_sleep): Work around the bug.
5871         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
5872         (gl_PREREQ_SLEEP): Delete unused macro.
5873         * modules/sleep (Depends-on): Add verify.
5874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
5875         * modules/unistd (Makefile.am): Substitute witness.
5876         * lib/unistd.in.h (sleep): Update prototype.
5877         * doc/posix-functions/sleep.texi (sleep): Document the bug.
5878         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
5879         * modules/sleep-tests (Depends-on): Check for alarm.
5880
5881 2009-11-20  Jim Meyering  <meyering@redhat.com>
5882
5883         maint.mk: improve sc_prohibit_magic_number_exit
5884         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
5885         so it does not match uses like System.exit(1).
5886         Add comments showing how to correct all offenders.
5887
5888 2009-11-19  Eric Blake  <ebb9@byu.net>
5889
5890         xalloc-die-tests: add missing library
5891         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
5892
5893         test-xvasprintf: silence compiler warnings
5894         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
5895         empty string from gcc.
5896
5897 2009-11-19  Jim Meyering  <meyering@redhat.com>
5898
5899         xfreopen: new module, from coreutils
5900         * modules/xfreopen: New module.
5901         * lib/xfreopen.c: New file.
5902         * lib/xfreopen.h: New file.
5903         * MODULES.html.sh (File stream based Input/Output"): Add it.
5904
5905 2009-11-19  Eric Blake  <ebb9@byu.net>
5906
5907         manywarnings: depend on warnings
5908         * modules/manywarnings (Depends-on): Add warnings.
5909
5910         build: avoid compiler warnings
5911         * lib/select.c (rpl_select): Delete unused variable.
5912         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
5913
5914 2009-11-18  Eric Blake  <ebb9@byu.net>
5915
5916         tests: avoid false negative with --with-packager
5917         * tests/test-version-etc.sh: Discard packager information.
5918         * tests/test-argp-version-etc-1.sh: Likewise.
5919         Reported by Mike Frysinger.
5920
5921         utimens: fix regression on Solaris
5922         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
5923         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
5924         can only change fd timestamps via futimesat.  Instead, use an
5925         additional witness macro to avoid BSD bug.
5926         Reported by Jim Meyering.
5927
5928 2009-11-17  Eric Blake  <ebb9@byu.net>
5929
5930         usleep: use it to simplify tests
5931         * modules/stat-time-tests (Depends-on): Add usleep.
5932         (configure.ac): Drop usleep check.
5933         * modules/chown-tests (Depends-on, configure.ac): Likewise.
5934         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
5935         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
5936         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
5937         * modules/openat-tests (Depends-on, configure.ac): Likewise.
5938         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
5939         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
5940         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
5941         Likewise.
5942         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
5943         * tests/test-lchown.h (nap): Likewise.
5944         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
5945         * tests/test-stat-time.c (nap): Likewise.
5946         * tests/test-utimens-common.h (nap): Update comments.
5947
5948         usleep: new module
5949         * modules/usleep: New file.
5950         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
5951         * lib/usleep.c (usleep): Likewise.
5952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
5953         * modules/unistd (Makefile.am): Substitute witnesses.
5954         * lib/unistd.in.h (usleep): Add declaration.
5955         * doc/pastposix-functions/usleep.texi (usleep): Document this.
5956         * MODULES.html.sh (Date and time): Likewise.
5957         * modules/usleep-tests (Depends-on): New test.
5958         * tests/test-usleep.c: New file.
5959
5960         chown: work around OpenBSD bug
5961         * lib/chown.c (rpl_chown): Work around the bug.
5962         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
5963         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
5964         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
5965         * modules/chown (Depends-on): Add stdbool.
5966         * modules/lchown (Depends-on): Likewise.
5967         * doc/posix-functions/chown.texi (chown): Document the bug.
5968         * doc/posix-functions/lchown.texi (lchown): Likewise.
5969         * tests/test-lchown.h (test_chown): Relax test.
5970
5971         mkstemp: avoid conflict with C++ keyword template
5972         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
5973         * lib/mkostemp.c (mkostemp): Likewise.
5974         * lib/mkostemps.c (mkostemps): Likewise.
5975         * lib/mkstemp.c (mkstemp): Likewise.
5976         * lib/mkstemps.c (mkstemps): Likewise.
5977
5978         xalloc-die-tests: optimize
5979         * tests/test-xalloc-die.sh: Reduce number of processes.
5980
5981 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5982
5983         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
5984         patch from ludo@gnu.org (Ludovic Courtès).
5985
5986 2009-11-17  Jim Meyering  <meyering@redhat.com>
5987
5988         version-etc: use proper license string
5989         * modules/version-etc (License): Use LGPL, not LGPLv3+.
5990         * modules/version-etc-fsf: Likewise.
5991
5992 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5993
5994         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
5995         printed to stdout.  Deal with EOL differences.
5996
5997 2009-11-17  Eric Blake  <ebb9@byu.net>
5998
5999         unsetenv: work around Solaris bug
6000         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6001         * lib/unsetenv.c (rpl_unsetenv): Work around it.
6002         Reported by Jim Meyering.
6003
6004         vasnprintf: avoid compiler warnings
6005         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6006         variables.
6007         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6008
6009 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6010
6011         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6012         settings since xalloc-die is no longer the self test,
6013         xalloc-die.sh is.
6014
6015 2009-11-17  Jim Meyering  <meyering@redhat.com>
6016
6017         test-xalloc-die.sh: make the code agree with the commit log
6018         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6019         at the end, just in case you happen to have a test-xalloc-die
6020         program in some other PATH directory.
6021
6022         test-xalloc-die.sh: fix a portability bug
6023         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6024         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6025         Otherwise, argv[0] (as often seen in diagnostics) would be too
6026         system-dependent, sometimes with, and sometimes without the leading "./".
6027
6028         version-etc-fsf: relax license to LGPLv3+
6029         * modules/version-etc-fsf (License): Relax license.
6030
6031 2009-11-16  Eric Blake  <ebb9@byu.net>
6032
6033         xalloc-die-tests: avoid printing null pointer
6034         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6035         shell script.
6036         * tests/test-xalloc-die.c (program_name): Declare.
6037         * tests/test-xalloc-die.sh (tmpfiles): New file.
6038
6039         setenv, unsetenv: work around various bugs
6040         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6041         (setenv) [HAVE_SETENV]: Work around bugs.
6042         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6043         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6044         for bugs.
6045         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6046         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6048         * modules/stdlib (Makefile.am): Update substitutions.
6049         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6050         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6051         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6052         * modules/setenv-tests: New test.
6053         * modules/unsetenv-tests: Likewise.
6054         * tests/test-setenv.c: New file.
6055         * tests/test-unsetenv.c: Likewise.
6056
6057 2009-11-16  Jim Meyering  <meyering@redhat.com>
6058
6059         version-etc: relax license to LGPLv3+
6060         * modules/version-etc (License): Relax license.
6061
6062         better AC_REQUIRE expanded-before-required-warning avoidance
6063         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6064         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6065         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
6066         which is no longer needed.
6067
6068 2009-11-16  Eric Blake  <ebb9@byu.net>
6069
6070         test-freading: clean up temporary file
6071         * tests/test-freading.c (main): Remove file on success, and use
6072         ASSERT more liberally.
6073         Reported by Jim Meyering.
6074
6075 2009-11-16  Jim Meyering  <meyering@redhat.com>
6076
6077         avoid new AC_REQUIRE expanded-before-required warnings
6078         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6079         merely using it.
6080         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6081         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6082
6083 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6084
6085         * tests/test-xalloc-die.c: New file.
6086         * modules/xalloc-die-tests: New file.
6087         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6088         XFAIL_TESTS so it can be appended by modules.
6089
6090 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6091
6092         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
6093         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6094
6095 2009-11-14  Eric Blake  <ebb9@byu.net>
6096
6097         fnmatch: avoid compiler warning
6098         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6099         to silence compiler warning about mismatch signedness in ?:.
6100         Reported by Robert Millan.
6101
6102         intprops: add double-inclusion guard
6103         * lib/intprops.h: Allow idempotent includes.
6104         Suggested by Bruce Korb.
6105
6106         openat: detect Solaris fchownat bug
6107         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
6108         penalizing glibc chownat when only lchownat is broken.
6109         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6110         trailing slash bugs.
6111         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6112         * modules/openat-tests (Files): Include more files.
6113         (Depends-on): Add mgetgroups, sleep, stat-time.
6114         (configure.ac): Add additional checks.
6115         (Makefile.am): Build new test.
6116         * tests/test-fchownat.c: New file.
6117
6118         lchown: detect Solaris and FreeBSD bug
6119         * lib/lchown.c (rpl_lchown): Work around bug.
6120         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6122         * modules/unistd (Makefile.am): Populate it.
6123         * lib/unistd.in.h (lchown): Update declaration.
6124         * doc/posix-functions/lchown.texi (lchown): Document the bug.
6125         * modules/lchown-tests: New file.
6126         * tests/test-lchown.h (test_lchown): Likewise.
6127         * tests/test-lchown.c (main): Likewise.
6128
6129         chown: detect Solaris and FreeBSD bug
6130         * lib/chown.c (rpl_chown): Work around bug.
6131         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6132         (gl_PREREQ_CHOWN): Delete.
6133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6134         * modules/unistd (Makefile.am): Populate it.
6135         * lib/unistd.in.h (chown): Update declaration.
6136         * lib/lchown.c (chown): Update client.
6137         * modules/lchown (Depends-on): Add lstat.
6138         * doc/posix-functions/chown.texi (chown): Document the bug.
6139         * doc/posix-functions/getgroups.texi (getgroups): Document
6140         getgroups pitfall.
6141         * modules/chown-tests: New file.
6142         * tests/test-chown.h (test_chown): Likewise.
6143         * tests/test-chown.c (main): Likewise.
6144
6145 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
6146
6147         gnulib-tool: correctly detect absence of m4 directories
6148         * gnulib-tool: Avoid extra newline on data passed to wc -l.
6149
6150 2009-11-14  Jim Meyering  <meyering@redhat.com>
6151
6152         maint.mk: Prohibit inclusion of "xalloc.h" without use.
6153         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6154
6155 2009-11-14  John W. Eaton  <jwe@gnu.org>
6156
6157         strftime.h: wrap funtion declaration in extern "C" block
6158         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6159
6160 2009-11-13  Eric Blake  <ebb9@byu.net>
6161
6162         getgroups: avoid compiler warning
6163         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6164
6165         getgroups: work around FreeBSD bug
6166         * lib/getgroups.c (rpl_getgroups): Work around the bug.
6167         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6168         * doc/posix-functions/getgroups.texi (getgroups): Document it.
6169         * tests/test-getgroups.c (main): Fix buffer overrun.
6170
6171         getgroups: avoid compilation failure
6172         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6173         * modules/getgroups (Depends-on): Add stdint.
6174
6175 2009-11-13  Jim Meyering  <meyering@redhat.com>
6176
6177         test-getgroups: avoid compilation failure
6178         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6179
6180 2009-11-13  Eric Blake  <ebb9@byu.net>
6181
6182         mgetgroups: new module, taken from coreutils
6183         * modules/mgetgroups: New file.
6184         * lib/mgetgroups.h: Likewise.
6185         * lib/mgetgroups.c (mgetgroups): Likewise.
6186         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6187         * MODULES.html.sh (Users and groups): Mention it.
6188
6189         getgroups: don't expose GETGROUPS_T to user
6190         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
6191         an element at a time if GETGROUPS_T is wrong size.
6192         * lib/getugroups.h (getugroups): Change signature.
6193         * lib/unistd.in.h (getgroups): Likewise.
6194         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6195         signature needs fixing.
6196         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6197         AC_TYPE_GETGROUPS.
6198         * modules/group-member (Depends-on): Add getgroups.
6199         * lib/group-member.c (group_info, get_group_info): Use gid_t.
6200         (group_member): Rely on getgroups replacement.
6201         * lib/getugroups.c (getugroups): Use gid_t.
6202         * tests/test-getgroups.c (main): Likewise.
6203         * NEWS: Mention the signature change.
6204         * doc/posix-functions/getgroups.texi (getgroups): Mention the
6205         problem with signature.
6206         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6207         GETGROUPS_T is still useful for setgroups.
6208
6209         getgroups, getugroups: provide stubs for mingw
6210         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6211         * lib/getugroups.c (getugroups): Likewise.
6212         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6213         function.  Modernize replacement scheme.
6214         (gl_PREREQ_GETGROUPS): Delete.
6215         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6216         * modules/getgroups (configure.ac): Declare witness.
6217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6218         * modules/unistd (Depends-on): Substitute witness.
6219         * lib/unistd.in.h (getgroups): Declare replacement.
6220
6221         getgroups: avoid calling exit
6222         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6223         drop xalloc.
6224         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6225         dependencies.
6226         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6227         exiting, in the rare case of malloc failure.
6228
6229         getgroups: fix logic error
6230         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6231         has more than 20 groups.
6232         * modules/getgroups-tests: New test.
6233         * tests/test-getgroups.c: New file.
6234
6235 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6236
6237         * tests/test-base64.c: Improve.
6238
6239 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6240
6241         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6242         Blake <ebb9@byu.net>.
6243
6244 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6245
6246         * tests/test-xvasprintf.c: Add %s%s related checks.
6247
6248 2009-11-12  Eric Blake  <ebb9@byu.net>
6249
6250         version-etc: match standards.texi style
6251         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6252         and use <> only for URLs.
6253
6254 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
6255
6256         fts: do not fail on a submount during traversal
6257         * lib/fts.c (fts_build): Read the stat info again after opening
6258         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6259         Original report at http://bugzilla.redhat.com/501848.
6260
6261 2009-11-12  Jim Meyering  <meyering@redhat.com>
6262
6263         bootstrap: sync from coreutils
6264         * build-aux/bootstrap (bootstrap_epilogue): New function.
6265         Use git_modules_config in one more place.  This make bootstrap's
6266         --gnulib-srcdir option more useful for testing.
6267
6268         bootstrap: generalize autoheader check
6269         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6270         AC_CONFIG_HEADERS.
6271
6272 2009-11-11  Eric Blake  <ebb9@byu.net>
6273
6274         mkfifoat: use new modules for Solaris and BSD bugs
6275         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6276         * lib/mkfifoat.c (mknodat): Split...
6277         * lib/mknodat.c (mknodat): ...into new file.
6278         * modules/mkfifoat (Files): Ship new file.
6279         (Depends-on): Add mkfifo, mknod.
6280         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6281         (Depends-on): Add symlink.
6282         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
6283         redundant with test_mkfifo.h.
6284         (do_mkfifoat, do_mknodat): New helpers.
6285
6286         mknod: new module
6287         * modules/mknod: New file.
6288         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
6289         * lib/mknod.c (mknod): Likewise.
6290         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6291         defaults.
6292         * modules/sys_stat (Makefile.am): Substitute them.
6293         * lib/sys_stat.in.h (mknod): Declare replacement.
6294         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6295         Document it.
6296         * doc/posix-functions/mknod.texi (mknod): Likewise.
6297         * modules/mknod-tests: New test.
6298         * tests/test-mknod.c: Likewise.
6299
6300         mkfifo: new module
6301         * modules/mkfifo: New file.
6302         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6303         * lib/mkfifo.c (mkfifo): Likewise.
6304         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6305         defaults.
6306         * modules/sys_stat (Makefile.am): Substitute them.
6307         * lib/sys_stat.in.h (mkfifo): Declare replacement.
6308         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6309         Document it.
6310         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
6311         * modules/mkfifo-tests: New test.
6312         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
6313         from test-mkfifoat.c.
6314         * tests/test-mkfifo.c: New file.
6315
6316         readlink: detect FreeBSD bug
6317         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
6318         slash on symlink.
6319         * doc/posix-functions/readlink.texi (readlink): Document the bug.
6320         * tests/test-readlink.h (test_readlink): Enhance test.
6321
6322         symlink: detect FreeBSD bug
6323         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
6324         slash on symlink.
6325         * doc/posix-functions/symlink.texi (symlink): Document the bug.
6326         * tests/test-symlink.h (test_symlink): Enhance test.
6327
6328 2009-11-10  Eric Blake  <ebb9@byu.net>
6329
6330         link: detect FreeBSD bug
6331         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
6332         symlink.
6333         * doc/posix-functions/link.texi (link): Document the bug.
6334         * tests/test-link.h (test_link): Enhance test.
6335         * tests/test-linkat.c (main): Update caller.
6336
6337         unlink, remove: detect FreeBSD bug
6338         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
6339         slash on symlink.
6340         * doc/posix-functions/unlink.texi (unlink): Document the bug.
6341         * doc/posix-functions/remove.texi (remove): Likewise.
6342         * tests/test-unlink.h (test_unlink): Enhance test.
6343         * tests/test-remove.c (main): Likewise.
6344
6345 2009-11-09  Eric Blake  <ebb9@byu.net>
6346
6347         rename: detect FreeBSD bug
6348         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
6349         slash on symlink.
6350         * modules/renameat-tests (Depends-on): Add filenamecat.
6351         * tests/test-rename.h (test_rename): Allow one more errno.
6352         * tests/test-renameat.c (main): Likewise.
6353         * doc/posix-functions/rename.texi (rename): Document the bug.
6354
6355         open: detect FreeBSD bug
6356         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
6357         symlink.
6358         * doc/posix-functions/open.texi (open): Document the bug.
6359         * doc/posix-functions/utimes.texi (utimes): Likewise.
6360         * tests/test-open.h (test_open): Add parameters, and test symlink
6361         handling.
6362         * tests/test-open.c (main): Adjust caller.
6363         * tests/test-fcntl-safer.c (main): Likewise.
6364         * modules/open-tests (Depends-on): Add stdbool, symlink.
6365         * modules/fcntl-safer-tests (Depends-on): Likewise.
6366         * tests/test-openat.c (main): Add test-open tests.
6367
6368         stat: detect FreeBSD bug
6369         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
6370         symlink.
6371         * doc/posix-functions/stat.texi (stat): Document the bug.
6372         * tests/test-stat.h (test_stat_func): Add argument.
6373         * tests/test-stat.c (main): Adjust caller.
6374         * tests/test-fstatat.c (main): Likewise.
6375         * modules/stat-tests (Depends-on): Add stdbool, symlink.
6376         Reported by Jim Meyering.
6377
6378 2009-11-09  James Youngman  <jay@gnu.org>
6379
6380         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
6381         * lib/strftime.c: Correct placement of #include "ignore-value.h".
6382
6383 2009-11-08  Jim Meyering  <meyering@redhat.com>
6384
6385         utimens: remove invalid futimesat call
6386         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
6387         It used the file descriptor of the target file as the DIR_FD
6388         parameter and NULL as the file name.  That caused failure with
6389         errno == EFAULT on FreeBSD-8.0-rc2
6390
6391 2009-11-07  Eric Blake  <ebb9@byu.net>
6392
6393         fflush, freadseek: use fseeko, not fseek
6394         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
6395         (clear_ungetc_buffer): Avoid potential problems on large files.
6396         * lib/freadseek.c (freadseek): Likewise.
6397         * modules/freadseek (Depends-on): Add fseeko.
6398         * modules/fseek (configure.ac): Set a witness.
6399         * tests/test-fflush.c (main): Use fseeko.
6400         * tests/test-fpurge.c (fseek): Disable link warning.
6401         * tests/test-freadable.c (fseek): Likewise.
6402         * tests/test-freading.c (fseek): Likewise.
6403         * tests/test-fseeko.c (fseek): Likewise.
6404         * tests/test-ftell.c (fseek): Likewise.
6405         * tests/test-ftello.c (fseek): Likewise.
6406         * tests/test-fwritable.c (fseek): Likewise.
6407         * tests/test-fwriting.c (fseek): Likewise.
6408
6409 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6410
6411         * modules/memchr (Depends-on): Drop getpagesize dependency.
6412
6413 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6414
6415         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
6416         Reported by Ludovic Courtès.
6417         * build-aux/pmccabe2html: Improve example usage.
6418         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
6419
6420 2009-11-06  Jim Meyering  <meyering@redhat.com>
6421
6422         do-release-commit-and-tag: New module.
6423         Automate the release-commit and tag process.
6424         * build-aux/do-release-commit-and-tag: New script, from coreutils.
6425         * modules/do-release-commit-and-tag: New file.
6426         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6427
6428 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6429
6430         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
6431         because test-select.c uses inet_pton.
6432
6433 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6434
6435         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
6436         GETADDRINFO_LIB.  Bump serial number.
6437         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
6438         Suggested by Eric Blake <ebb9@byu.net>.
6439
6440 2009-11-05  Eric Blake  <ebb9@byu.net>
6441
6442         strtod: detect darwin bug
6443         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
6444         Reported by Leo Davis.
6445
6446         freopen-safer: new module
6447         * modules/freopen-safer: New module.
6448         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
6449         * lib/freopen-safer.c (freopen_safer): New file.
6450         * lib/stdio-safer.h (freopen_safer): New declaration.
6451         * lib/stdio--.h (freopen): New override.
6452         * MODULES.html.sh (File stream based Input/Output): Mention it.
6453         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
6454         freopen-safer module.
6455         * doc/posix-functions/stderr.texi (stderr): Likewise.
6456         * doc/posix-functions/stdin.texi (stdin): Likewise.
6457         * doc/posix-functions/stdout.texi (stdout): Likewise.
6458         * modules/freopen-safer-tests: New test.
6459         * tests/test-reopen-safer.c: New file.
6460
6461 2009-11-05  Jim Meyering  <meyering@redhat.com>
6462
6463         maint.mk: Prohibit inclusion of "close-stream.h" without use.
6464         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6465
6466 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6467
6468         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
6469
6470 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6471
6472         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
6473
6474 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6475
6476         Fix link error.
6477         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6478         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6479
6480 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6481
6482         * tests/test-func.c: Also test value of __func__.
6483
6484 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6485
6486         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
6487         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
6488
6489 2009-11-05  Bruno Haible  <bruno@clisp.org>
6490
6491         Fix link error.
6492         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6493         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6494         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
6495
6496 2009-11-05  Bruno Haible  <bruno@clisp.org>
6497
6498         Tests for module 'inet_pton'.
6499         * modules/inet_pton-tests: New file.
6500         * tests/test-inet_pton.c: New file.
6501
6502 2009-11-05  Bruno Haible  <bruno@clisp.org>
6503
6504         Tests for module 'inet_ntop'.
6505         * modules/inet_ntop-tests: New file.
6506         * tests/test-inet_ntop.c: New file.
6507
6508 2009-11-04  Eric Blake  <ebb9@byu.net>
6509
6510         stdlib-safer: wrap all mkstemp variants
6511         * modules/mkostemp (configure.ac): Set witness.
6512         * modules/mkostemps (configure.ac): Likewise.
6513         * modules/mkstemps (configure.ac): Likewise.
6514         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
6515         (mkstemps_safer): Wrap more functions.
6516         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
6517         wrapping.
6518         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
6519         (mkstemps_safer): Implement the wrappers.
6520
6521         mkstemps, mkostemps: new modules
6522         * modules/mkostemps: New module.
6523         * modules/mkstemps: Likewise.
6524         * lib/mkostemps.c (mkostemps): New file.
6525         * lib/mkstemps.c (mkstemps): Likewise.
6526         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
6527         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
6528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
6529         * modules/stdlib (Makefile.am): Substitute them.
6530         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
6531         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
6532         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6533         * doc/gnulib.texi (Glibc stdlib.h): Include them.
6534         * MODULES.html.sh (File system functions): Mention them.
6535
6536         tempname: resync from glibc
6537         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
6538         same values for __GT_FILE as glibc.  Abort even when assertions
6539         are disabled.
6540         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
6541         match its value otherwise.  Allow idempotent inclusion.
6542         * lib/mkdtemp.c (mkdtemp): Adjust caller.
6543         * lib/mkostemp.c (mkostemp): Likewise.
6544         * lib/mkstemp.c (mkstemp): Likewise.
6545         * lib/tmpfile.c (tmpfile): Likewise.
6546         * NEWS: Document this.
6547
6548         utimens: fix use of futimens on older Linux
6549         * lib/utimens.c (fdutimens): Use updated, rather than original,
6550         timespec to avoid bug in older Linux kernel.
6551         Reported by Simon Josefsson.
6552
6553 2009-11-04  Bruno Haible  <bruno@clisp.org>
6554
6555         Make num_processors more flexible and consistent.
6556         * lib/nproc.h (enum nproc_query): New type.
6557         (num_processors): Add a 'query' argument.
6558         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
6559         (num_processors): Add a 'query' argument. Test the value of the
6560         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
6561         mingw, count the number of CPUs available for the current process.
6562         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
6563         Check for sched_getaffinity and sched_getaffinity_np.
6564         * modules/nproc (Depends-on): Add c-ctype, extensions.
6565         * NEWS: Mention the change.
6566
6567 2009-11-03  Bruno Haible  <bruno@clisp.org>
6568
6569         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
6570
6571 2009-11-03  Jim Meyering  <meyering@redhat.com>
6572
6573         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
6574         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
6575         if it is defined.
6576
6577 2009-11-02  Eric Blake  <ebb9@byu.net>
6578
6579         mktime, timegm: share common declaration
6580         * lib/mktime-internal.h: New file.
6581         * lib/mktime.c: Use it rather than open-coding a declaration.
6582         * lib/timegm.c: Likewise.
6583         * modules/mktime (Files): Ship it.
6584         * modules/timegm (Files): Likewise.
6585         Suggested by Bruno Haible.
6586
6587         test-update-copyright: update test to match script changes
6588         * tests/test-update-copyright.sh: Avoid hard-coding perl
6589         location.  Don't update *.bak created by earlier runs.
6590
6591 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
6592             Simon Josefsson  <simon@josefsson.org>
6593             Bruno Haible  <bruno@clisp.org>
6594
6595         Fix link error on Solaris 8.
6596         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
6597         also in libnsl. Define also INET_PTON_LIB.
6598         * modules/inet_pton (Link): New section.
6599
6600 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6601             Bruno Haible  <bruno@clisp.org>
6602
6603         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
6604         * modules/inet_ntop (Link): New section.
6605         Reported by Boyan Kasarov <bkasarov@gmail.com>.
6606
6607 2009-11-02  Eric Blake  <ebb9@byu.net>
6608
6609         maint: avoid compiler warnings in m4 macros
6610         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
6611         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
6612
6613 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6614
6615         * m4/pmccabe2html.m4: Remove file.
6616         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
6617         function.  Change maintainer.
6618         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
6619         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
6620         Courtès).
6621
6622 2009-10-31  Eric Blake  <ebb9@byu.net>
6623
6624         fseeko: fix m4 regression
6625         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
6626         regression from 2009-10-27.
6627         Reported by Ralf Wildenhues.
6628
6629 2009-10-31  Jim Meyering  <meyering@redhat.com>
6630
6631         inttostr: aesthetics and improved (compile-time) safety
6632         Define inttype_is_signed rather than inttype_is_unsigned,
6633         since the sole use is via "#if inttype_is_signed".
6634         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
6635         inttype_is_unsigned.
6636         * lib/offtostr.c (inttype_is_signed): Likewise.
6637         * lib/uinttostr.c (inttype_is_signed): Likewise.
6638         * lib/umaxtostr.c (inttype_is_signed): Likewise.
6639         * lib/inttostr.c (inttostr): Use verify to cross-check the
6640         inttype_is_signed value and the signedness of the actual type.
6641         * modules/inttostr (Depends-on): Add verify.
6642
6643 2009-10-30  Eric Blake  <ebb9@byu.net>
6644
6645         build: avoid compiler warnings
6646         * lib/fchmodat.c (lchmod): Mark unused variables.
6647         * lib/getopt.c (_getopt_initialize): Likewise.
6648         * lib/mktime.c (__mktime_internal): Provide prototype.
6649         * lib/inttostr.c (inttostr): Avoid compiler warning even with
6650         older gcc that do not understand #pragma GCC diagnostic.
6651         * lib/uinttostr.c (inttype_is_unsigned): Define.
6652         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
6653
6654 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
6655
6656         stat: fix compilation on AIX
6657         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
6658         only see struct stat64.
6659
6660 2009-10-30  Eric Blake  <ebb9@byu.net>
6661
6662         exclude: make more robust
6663         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
6664         rather than masking a coding bug.
6665         Suggested by Bruno Haible.
6666
6667 2009-10-30  Jim Meyering  <meyering@redhat.com>
6668
6669         perl scripts: remove #!/usr/bin/perl in favor of more portable...
6670         Rather than putting #!/usr/bin/perl on the first line,
6671         start with a variant of what's recommended by "man perlrun" that
6672         invokes the first "perl" program from your shell's search path.
6673         * build-aux/gitlog-to-changelog: Replace #!... as above.
6674         Add a "Local Variables" perl mode setting.
6675         Prompted by a patch from Ludovic Courtès.
6676         Improved by Eric Blake.
6677         * build-aux/useless-if-before-free: Likewise.
6678         * build-aux/announce-gen: Likewise.
6679         * build-aux/update-copyright: Likewise.
6680
6681 2009-10-29  Eric Blake  <ebb9@byu.net>
6682
6683         filenamecat-lgpl: adjust clients
6684         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
6685         filenamecat.
6686         * modules/renameat (Depends-on): Likewise.
6687
6688         filenamecat: split into filenamecat-lgpl
6689         * modules/filenamecat-lgpl: New module.
6690         * modules/filenamecat (Files): Move library-safe files into
6691         filenamecat-lgpl.
6692         (Depends-on): Add filenamecat-lgpl.
6693         (configure.ac): Declare witness.
6694         * lib/filenamecat.h (file_name_concat): Only declare when using
6695         GPL module.
6696         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
6697         Move...
6698         * lib/filenamecat-lgpl.c: ...into new file.
6699         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
6700         (gl_FILE_NAME_CONCAT): Use it.
6701         * MODULES.html.sh (File system functions): Mention new module.
6702
6703         argp: avoid memory leak
6704         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
6705         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
6706         base_name, since the latter malloc()s and can call exit().
6707         Leak introduced 2006-07-03.
6708
6709         dirname-lgpl: adjust clients that don't need full dirname
6710         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
6711         * modules/filenamecat (Depends-on): Likewise.
6712         * modules/linkat (Depends-on): Likewise.
6713         * modules/mkancesdirs (Depends-on): Likewise.
6714         * modules/mkdir (Depends-on): Likewise.
6715         * modules/openat (Depends-on): Likewise.
6716         * modules/savewd (Depends-on): Likewise.
6717         * modules/rename (Depends-on): Likewise.
6718         (License): Relax license.
6719         * modules/mkdir-tests (Depends-on): Drop progname.
6720         (Makefile.am): Delete unneeded LDADD.
6721         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
6722
6723         dirname: split into dirname-lgpl
6724         * modules/dirname-lgpl: New module.
6725         * modules/dirname (Files): Move library-safe files into
6726         dirname-lgpl.
6727         (Depends-on): Add dirname-lgpl.
6728         (configure.ac): Declare witness.
6729         * modules/double-slash-root (License): Relax license.
6730         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
6731         module.
6732         * lib/dirname.c (dir_len, mdir_name): Move...
6733         * lib/dirname-lgpl.c: ...into new file.
6734         * lib/basename.c (last_component, base_len): Move...
6735         * lib/basename-lgpl.c: ...into new file.
6736         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
6737         (gl_DIRNAME): Use it.
6738         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
6739         Mention new module.
6740         * modules/dirname-tests (Depends-on): Add progname.
6741         * tests/test-dirname.c (program_name): Delete.
6742
6743         mkdir: make safe for libraries
6744         * modules/mkdir (Depends-on): Drop xalloc.
6745         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
6746         exit.
6747
6748         tests: avoid some compiler warnings
6749         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
6750         literals.
6751         * tests/test-memchr.c (main): Avoid type mismatch.
6752         * tests/test-arpa_inet.c (main): Avoid unused parameters.
6753         * tests/test-base64.c (main): Likewise.
6754         * tests/test-getdelim.c (main): Likewise.
6755         * tests/test-gethostname.c (main): Likewise.
6756         * tests/test-getline.c (main): Likewise.
6757         * tests/test-netinet_in.c (main): Likewise.
6758         * tests/test-select.c (open_server_socket, main): Likewise.
6759         * tests/test-select-stdin.c (main): Likewise.
6760         * tests/test-sockets.c (main): Likewise.
6761         * tests/test-strsignal.c (main): Likewise.
6762         * tests/test-sys_select.c (main): Likewise.
6763         * tests/test-sys_socket.c (main): Likewise.
6764         * tests/test-u64.c (main): Likewise.
6765         * tests/test-xfprintf-posix.c (main): Likewise.
6766         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
6767
6768         sockets: avoid compiler warning
6769         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
6770
6771         maint: detect usage(1) and other suspicious exits
6772         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
6773
6774 2009-10-29  Jim Meyering  <meyering@redhat.com>
6775
6776         timespec: long-to-int truncation could make timespec_cmp malfunction
6777         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
6778         a multiple of 2^32 nanoseconds as no difference.
6779
6780 2009-10-28  Jim Meyering  <meyering@redhat.com>
6781
6782         fprintftime: wrap macro code argument in "do {...} while(0)"
6783         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
6784         cpy macro must be a statement that can be followed by a semicolon.
6785         Now that the else clause contains a comment and is hence longer
6786         than one line, I require curly braces.  That in turn requires
6787         that we wrap this code block in the standard do...while(0).
6788
6789         fprintftime: remove stray semicolon from previous change
6790         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
6791
6792         fprintftime: avoid a warning about ignored fwrite return value
6793         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
6794         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
6795         that is unsafe.
6796         * modules/fprintftime (Depends-on): Add ignore-value.
6797
6798         exclude: avoid an unwarranted warning
6799         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
6800
6801 2009-10-27  Eric Blake  <ebb9@byu.net>
6802
6803         fseek: avoid compilation failure when fflush is replaced
6804         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
6805         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
6806         module is in use.
6807         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
6808         module is not in use; since REPLACE_FSEEK worked otherwise.
6809         (GNULIB_FTELLO): Likewise for ftell.
6810         Reported by Ian Beckwith and others.
6811
6812 2009-10-27  Bruno Haible  <bruno@clisp.org>
6813
6814         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
6815         Reported by Jim Meyering.
6816
6817 2009-10-27  Jim Meyering  <jim@meyering.net>
6818             Bruno Haible  <bruno@clisp.org>
6819
6820         Avoid warning despite dropping the return value of fwrite.
6821         * lib/unicodeio.c: Include ignore-value.h.
6822         (fwrite_success_callback): Explicitly ignore fwrite's return value.
6823         * modules/unicodeio (Depends-on): Add ignore-value.
6824
6825 2009-10-26  Eric Blake  <ebb9@byu.net>
6826
6827         areadlinkat: fix fallback path
6828         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
6829         pointer and zero.
6830
6831 2009-10-22  Pádraig Brady  <P@draigBrady.com>
6832
6833         Use a better IO block size for modern systems
6834         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
6835         * lib/md2.c: Likewise.
6836         * lib/md4.c: Likewise.
6837         * lib/md5.c: Likewise.
6838         * lib/sha1.c: Likewise.
6839         * lib/sha256.c: Likewise.
6840         * lib/sha512.c: Likewise.
6841
6842 2009-10-22  Eric Blake  <ebb9@byu.net>
6843
6844         tests: avoid several compiler warnings
6845         * tests/test-getcwd.c (main): Avoid buffer underflow.
6846         * tests/test-getdate.c (main): String literals are not safe with
6847         putenv, so use setenv.  Declare unused argument.
6848         * modules/getdate-tests (Depends-on): Add setenv.
6849         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
6850         problems with string literals in char *.
6851         * tests/test-hash.c (main): Avoid shadowing declaration.
6852         (insert_new): Treat string literals as char const *.
6853         * tests/test-getopt.h (test_getopt): Likewise.
6854         (getopt_loop): Alter types to minimize casting elsewhere.
6855         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
6856         (test_getopt_long_posix): Likewise.
6857         (do_getopt_long): Add wrapper to minimize casting.
6858         * tests/test-atexit.c (clear_temp_file): Use void.
6859         * tests/test-areadlink-with-size.c (main): Declare unused
6860         arguments.
6861         * tests/test-areadlink.c (main): Likewise.
6862         * tests/test-areadlinkat-with-size.c (main): Likewise.
6863         * tests/test-areadlinkat.c (main): Likewise.
6864         * tests/test-canonicalize-lgpl.c (main): Likewise.
6865         * tests/test-canonicalize.c (main): Likewise.
6866         * tests/test-dirent-safer.c (main): Likewise.
6867         * tests/test-dirname.c (main): Likewise.
6868         * tests/test-dup2.c (main): Likewise.
6869         * tests/test-fchdir.c (main): Likewise.
6870         * tests/test-fcntl-h.c (main): Likewise.
6871         * tests/test-fcntl-safer.c (main): Likewise.
6872         * tests/test-fdopendir.c (main): Likewise.
6873         * tests/test-fdutimensat.c (main): Likewise.
6874         * tests/test-fflush.c (main): Likewise.
6875         * tests/test-filenamecat.c (main): Likewise.
6876         * tests/test-filevercmp.c (main): Likewise.
6877         * tests/test-fopen-safer.c (main): Likewise.
6878         * tests/test-fopen.c (main): Likewise.
6879         * tests/test-fpending.c (main): Likewise.
6880         * tests/test-fpurge.c (main): Likewise.
6881         * tests/test-freading.c (main): Likewise.
6882         * tests/test-fstatat.c (main): Likewise.
6883         * tests/test-fsync.c (main): Likewise.
6884         * tests/test-futimens.c (main): Likewise.
6885         * tests/test-getndelim2.c (main): Likewise.
6886         * tests/test-gettimeofday.c (main): Likewise.
6887         * tests/test-getopt.c (main): Likewise.
6888         * tests/test-i-ring.c (main): Likewise.
6889         * tests/test-inttypes.c (main): Likewise.
6890         * tests/test-link.c (main): Likewise.
6891         * tests/test-lstat.c (main): Likewise.
6892         * tests/test-math.c (main): Likewise.
6893         * tests/test-md5.c (main): Likewise.
6894         * tests/test-memchr2.c (main): Likewise.
6895         * tests/test-memrchr.c (main): Likewise.
6896         * tests/test-mkdir.c (main): Likewise.
6897         * tests/test-mkdirat.c (main): Likewise.
6898         * tests/test-mkfifoat.c (main): Likewise.
6899         * tests/test-open.c (main): Likewise.
6900         * tests/test-openat-safer.c (main): Likewise.
6901         * tests/test-openat.c (main): Likewise.
6902         * tests/test-quotearg.c (main): Likewise.
6903         * tests/test-rawmemchr.c (main): Likewise.
6904         * tests/test-readlink.c (main): Likewise.
6905         * tests/test-remove.c (main): Likewise.
6906         * tests/test-rename.c (main): Likewise.
6907         * tests/test-renameat.c (main): Likewise.
6908         * tests/test-rmdir.c (main): Likewise.
6909         * tests/test-sha1.c (main): Likewise.
6910         * tests/test-signal.c (main): Likewise.
6911         * tests/test-sigaction.c (main): Likewise.
6912         * tests/test-stat.c (main): Likewise.
6913         * tests/test-stat-time.c (main): Likewise.
6914         * tests/test-stddef.c (main): Likewise.
6915         * tests/test-stdint.c (main): Likewise.
6916         * tests/test-stdio.c (main): Likewise.
6917         * tests/test-stdlib.c (main): Likewise.
6918         * tests/test-strchrnul.c (main): Likewise.
6919         * tests/test-strerror.c (main): Likewise.
6920         * tests/test-string.c (main): Likewise.
6921         * tests/test-strtod.c (main): Likewise.
6922         * tests/test-strverscmp.c (main): Likewise.
6923         * tests/test-symlink.c (main): Likewise.
6924         * tests/test-symlinkat.c (main): Likewise.
6925         * tests/test-sys_stat.c (main): Likewise.
6926         * tests/test-sys_time.c (main): Likewise.
6927         * tests/test-time.c (main): Likewise.
6928         * tests/test-unistd.c (main): Likewise.
6929         * tests/test-unlink.c (main): Likewise.
6930         * tests/test-unlinkat.c (main): Likewise.
6931         * tests/test-utimens.c (main): Likewise.
6932         * tests/test-utimensat.c (main): Likewise.
6933         * tests/test-version-etc.c (main): Likewise.
6934         * tests/test-wchar.c (main): Likewise.
6935         * tests/test-wctype.c (main): Likewise.
6936         * tests/test-xprintf-posix.c (main): Likewise.
6937         * tests/test-posixtm.c (main): Likewise.
6938         (STREQ): Delete unused macro.
6939         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
6940         shadowed variables.
6941         * tests/test-memchr.c (main): Likewise.
6942
6943 2009-10-21  Eric Blake  <ebb9@byu.net>
6944
6945         areadlinkat: avoid failure on older glibc
6946         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
6947         rather than mis-comparing 0 against FUNC_RESULT of char*.
6948
6949 2009-10-21  Bruno Haible  <bruno@clisp.org>
6950
6951         * modules/stpncpy (License): Relicense under LGPLv2+.
6952         Reported by David Lutterkort <lutter@redhat.com>.
6953
6954 2009-10-20  Eric Blake  <ebb9@byu.net>
6955
6956         utimensat: work around Solaris 9 bug
6957         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
6958         has trailing slash bugs.
6959         * tests/test-lutimens.h (test_lutimens): Enhance test.
6960         * tests/test-utimens.h (test_utimens): Likewise.
6961         * doc/posix-functions/utime.texi (utime): Enhance documentation.
6962         * doc/posix-functions/utimes.texi (utimes): Likewise.
6963         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6964         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
6965         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
6966         * doc/posix-functions/futimens.texi (futimens): Likewise.
6967
6968         fdutimensat: new module
6969         * modules/fdutimensat: New file.
6970         * lib/fdutimensat.c (fdutimensat): Likewise.
6971         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
6972         * MODULES.html.sh (File system functions): Mention module.
6973         * modules/fdutimensat-tests: New test.
6974         * tests/test-fdutimensat.c: Likewise.
6975
6976         doc: regenerate INSTALL
6977         * doc/INSTALL: Reflect recent autoconf update.
6978         * doc/INSTALL.ISO: Likewise.
6979         * doc/INSTALL.UTF-8: Likewise.
6980
6981 2009-10-20  Pádraig Brady  <P@draigBrady.com>
6982
6983         acl: warn if ACL support is not detected
6984         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
6985
6986 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
6987
6988         * lib/nproc.h: Add extern "C" block for C++.
6989
6990 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
6991             Bruno Haible  <bruno@clisp.org>
6992
6993         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
6994         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
6995         * doc/posix-functions/isalpha.texi: Likewise.
6996         * doc/posix-functions/isblank.texi: Likewise.
6997         * doc/posix-functions/iscntrl.texi: Likewise.
6998         * doc/posix-functions/isdigit.texi: Likewise.
6999         * doc/posix-functions/isgraph.texi: Likewise.
7000         * doc/posix-functions/islower.texi: Likewise.
7001         * doc/posix-functions/isprint.texi: Likewise.
7002         * doc/posix-functions/ispunct.texi: Likewise.
7003         * doc/posix-functions/isspace.texi: Likewise.
7004         * doc/posix-functions/isupper.texi: Likewise.
7005         * doc/posix-functions/isxdigit.texi: Likewise.
7006
7007 2009-10-18  Bruno Haible  <bruno@clisp.org>
7008
7009         Tests for module 'isblank'.
7010         * modules/isblank-tests: New file.
7011         * tests/test-isblank.c: New file.
7012
7013         New module 'isblank'.
7014         * lib/isblank.c: New file.
7015         * m4/isblank.m4: New file.
7016         * modules/isblank: New file.
7017         * doc/posix-functions/isblank.texi: Mention the new module.
7018
7019 2009-10-18  Bruno Haible  <bruno@clisp.org>
7020
7021         New module 'ctype'.
7022         * lib/ctype.in.h: New file.
7023         * m4/ctype.m4: New file.
7024         * modules/ctype: New file.
7025         * doc/posix-headers/ctype.texi: Mention the new module.
7026
7027 2009-10-18  Jim Meyering  <meyering@redhat.com>
7028
7029         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7030         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7031         right after its initialization, rather than farther down.
7032         Keeping these in close proximity makes it easier to ensure
7033         that each such variable is initialized.  E.g.,
7034
7035             LIB_CLOCK_GETTIME=
7036             AC_SUBST([LIB_CLOCK_GETTIME])
7037
7038         This change also increments these serial numbers.
7039         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7040         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7041         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7042
7043 2009-10-18  Bruno Haible  <bruno@clisp.org>
7044
7045         Don't let environment variables perturb build.
7046         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7047         (gl_PREREQ_GETHRXTIME): ... not here.
7048
7049 2009-10-18  Bruno Haible  <bruno@clisp.org>
7050
7051         Avoid symlink attack in localcharset module.
7052         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7053         (O_NOFOLLOW): Define fallback.
7054         (get_charset_aliases): Don't open the file if it is a symbolic link.
7055         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7056         gl_FCNTL_H.
7057         (gl_FCNTL_H): Require it.
7058         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7059         * modules/localcharset (Files): Add m4/fcntl_h.m4.
7060         Reported by Fergal Glynn <fglynn@veracode.com>.
7061
7062 2009-10-18  Bruno Haible  <bruno@clisp.org>
7063
7064         Implement nproc for mingw.
7065         * lib/nproc.c: Include <windows.h>
7066         (num_processors): On native Windows platforms, try GetSystemInfo.
7067
7068 2009-10-18  Bruno Haible  <bruno@clisp.org>
7069
7070         Implement nproc for IRIX.
7071         * lib/nproc.c: Include <sys/sysmp.h>.
7072         (num_processors): On IRIX systems, try sysmp.
7073         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7074
7075 2009-10-18  Bruno Haible  <bruno@clisp.org>
7076
7077         Implement nproc for HP-UX.
7078         * lib/nproc.c: Include <sys/pstat.h>
7079         (num_processors): On HP-UX systems, try pstat_getdynamic.
7080         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7081         pstat_getdynamic.
7082
7083 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
7084             Bruno Haible  <bruno@clisp.org>
7085
7086         Implement nproc for NetBSD, OpenBSD.
7087         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7088         (ARRAY_SIZE): New macro.
7089         (num_processors): On BSD systems, try sysctl of HW_NCPU.
7090         * m4/nproc.m4: New file.
7091         * modules/nproc (Files): Add m4/nproc.m4.
7092         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7093         (Makefile.am): Instead, augment lib_SOURCES.
7094
7095 2009-10-18  Bruno Haible  <bruno@clisp.org>
7096
7097         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7098         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7099         sys/param.h.
7100
7101 2009-10-16  Eric Blake  <ebb9@byu.net>
7102
7103         utimensat: new module
7104         * modules/utimensat: New file.
7105         * lib/utimensat.c (utimensat): Likewise.
7106         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7107         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7108         so we can work around Linux bugs.
7109         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7110         * modules/sys_stat (Makefile.am): Substitute them.
7111         * lib/sys_stat.in.h (utimensat): Declare it.
7112         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7113         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7114         * modules/utimensat-tests: New test.
7115         * tests/test-utimensat.c: Likewise.
7116
7117         utimens: let lutimens work on non-symlinks
7118         * lib/utimens.c (lutimens): Fall back to utimens rather than
7119         failing with ENOSYS, when file is not a symlink.
7120         (utimens): Reduce redirection.
7121         * tests/test-lutimens.h (test_lutimens): Update test to cover
7122         non-symlinks.
7123         * tests/test-utimens.h (test_utimens): Update test to cover
7124         symlinks.
7125         * tests/test-utimens.c (main): Update caller.
7126
7127         utimens: cache whether utimensat syscall works
7128         * lib/utimens.c (utimensat_works_really): New cache variable.
7129         (fdutimens, lutimens): Use it to avoid failing syscall.
7130
7131         test-stat-time, test-utimens: improve portability
7132         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7133         ext4 on alpha, and for cygwin.
7134         * tests/test-utimens-common.h: New file.
7135         (nap): Factor delays into single function.
7136         * tests/test-lutimens.h (test_lutimens): Use new header.
7137         * tests/test-futimens.h (test_futimens): Likewise.
7138         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
7139         timestamps to occur from same machine, as was done previously for
7140         test_utimens.
7141         * modules/utimens-tests (Files): Ship new file.
7142         * modules/futimens-tests (Files): Likewise.
7143         Reported in part by Jim Meyering.
7144
7145         sys_stat: sort replacement declarations
7146         * lib/sys_stat.in.h: Sort declarations.
7147         * lib/futimens.c (futimens): Fix typo.
7148
7149 2009-10-15  Jim Meyering  <meyering@redhat.com>
7150
7151         don't let environment settings perturb build
7152         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7153         could cause a configure-time and/or build-time malfunction.
7154         Typically, a configure-time function-in-library test is performed
7155         via code like this:
7156
7157           LIB_VAR=
7158           AC_SUBST([LIB_VAR])
7159           prefix_saved_LIBS=$LIBS
7160             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7161                        [test "$ac_cv_search_FUNC" = "none required" ||
7162                         LIB_VAR=$ac_cv_search_FUNC])
7163           LIBS=$prefix_saved_LIBS
7164
7165         However, in each of the files affected by this change, the LIB_VAR=
7166         initialization was omitted.  Thus, when set in the environment, its
7167         value would propagate into generated Makefiles when FUNC is not found
7168         in LIB_NAME.
7169         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7170         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7172
7173 2009-10-14  Eric Blake  <ebb9@byu.net>
7174
7175         fchdir: avoid infinite recursion in mingw
7176         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7177         recursing.
7178
7179         test-stat-time: port to mingw
7180         * tests/test-stat-time.c (force_unlink): Return a value.
7181         (test_ctime) [W32]: Fix compilation error.
7182         (nap): Don't call usleep with too large an argument.  Use
7183         force_unlink.
7184         * doc/pastposix-functions/usleep.texi (usleep): Document the
7185         portability issue.
7186
7187 2009-10-13  Jim Meyering  <meyering@redhat.com>
7188
7189         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7190         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7191         * modules/pipe-filter-ii: Likewise.
7192         * modules/sys_socket-tests: Likewise.
7193         * modules/tsearch-tests: Likewise.
7194         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7195         (check): Depend on it.
7196
7197 2009-10-12  Eric Blake  <ebb9@byu.net>
7198
7199         utimens-tests: port to NFS file systems
7200         * tests/test-utimens.h (test_utimens): Refactor utimecmp
7201         comparisons to avoid spurious failures from timestamp drift
7202         between NFS machines.
7203
7204 2009-10-12  Eric Blake  <ebb9@byu.net>
7205
7206         stat-time-tests: minor cleanups
7207         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7208         * tests/test-stat-time.c (nap): Separate assignment from call.
7209         Suggested by Paolo Bonzini and Bruno Haible.
7210
7211         sys_stat: guarantee struct timespec
7212         * lib/sys_stat.in.h (includes): Always include <time.h>
7213         * modules/sys_stat (Depends-on): Add time.
7214         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7215         mode_t permission values.
7216         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7217         get at subsecond timestamps.
7218
7219 2009-10-10  Eric Blake  <ebb9@byu.net>
7220
7221         futimens: new module
7222         * modules/futimens: New file.
7223         * lib/futimens.c (futimens): Likewise.
7224         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7225         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7226         we can work around Linux bugs.
7227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7228         * modules/sys_stat (Makefile.am): Substitute them.
7229         * lib/sys_stat.in.h (futimens): Declare it.
7230         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7231         * doc/posix-functions/futimens.texi (futimens): Likewise.
7232         * modules/futimens-tests: New test.
7233         * tests/test-futimens.c: Likewise.
7234
7235         utimens: introduce fdutimens
7236         * lib/utimens.h (fdutimens): New prototype.
7237         * lib/utimens.c (gl_futimens): Move guts...
7238         (fdutimens): ...to new interface.
7239         * tests/test-utimens.c (do_fdutimens): Use it.
7240
7241         utimens: add UTIME_NOW and UTIME_OMIT support
7242         * lib/utimens.c (validate_timespec, update_timespec): New helper
7243         functions.
7244         (gl_futimens, lutimens): Use them.
7245         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7246         stdbool, sys_stat.
7247         (Link): Mention resulting library dependency.
7248         * modules/utimecmp (Link): Likewise.
7249         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7250         (Makefile.am): Pick up library dependency.
7251         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7252         definition.
7253         * tests/test-sys_stat.c: Test the definitions.
7254         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7255         * NEWS: Document library dependency.
7256
7257         utimecmp: support symlink timestamps
7258         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
7259         hashing when possible.  Use pathconf when available.
7260         (SYSCALL_RESOLUTION): Recognize tighter resolution.
7261         * modules/utimecmp (Depends-on): Add lstat.
7262
7263         utimens: add lutimens interface
7264         * lib/utimens.c (lutimens): New function.
7265         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7266         * lib/utimens.h (lutimens): Declare new interface.
7267         * tests/test-utimens.c (main): Enhance test.
7268         * tests/test-lutimens.h (test_lutimens): New file.
7269         * modules/utimens-tests (Files): Distribute it.
7270         (Depends-on): Add symlink.
7271         (configure.ac): Check for usleep.
7272
7273         utimens: validate futimens usage
7274         * lib/utimens.c (gl_futimens): Require valid fd up front, using
7275         fewer syscalls on failure later on.  Avoid compiler warning on
7276         mingw.
7277         * modules/utimens (Depends-on): Add dup2.
7278
7279         utimens: add test
7280         * modules/utimens-tests: New test.
7281         * tests/test-utimens.h: New file.
7282         * tests/test-futimens.h: Likewise.
7283         * tests/test-utimens.c: Likewise.
7284
7285         doc: mention timestamp portability issues
7286         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7287         instead.
7288         * doc/posix-functions/utime.texi (utime): Likewise.
7289         * doc/posix-functions/utimes.texi (utimes): Likewise.
7290         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
7291         instead.
7292         * doc/posix-functions/futimens.texi (futimens): Mention utimens
7293         module.
7294         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7295         Mention weakness with symlink timestamps.
7296         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
7297         to utimensat/futimens instead.
7298         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
7299
7300         test-dup2: enhance test
7301         * tests/test-dup2.c (main): Also check AT_FDCWD.
7302
7303         test-stat-time: avoid more spurious failures
7304         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
7305         xfs; and avoid race if the two timestamps cross quantization edge.
7306
7307         relocatable: prefer 'file system' over 'filesystem'
7308         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
7309         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
7310         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
7311         * doc/relocatable.texi (Enabling Relocatability): Likewise.
7312         * lib/relocatable.c (compute_curr_prefix): Likewise.
7313
7314 2009-10-10  Jim Meyering  <meyering@redhat.com>
7315
7316         stat-time-tests: check for the usleep function
7317         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
7318
7319 2009-10-10  Bruno Haible  <bruno@clisp.org>
7320
7321         * modules/xnanosleep: Put the Link section after the Include section.
7322
7323 2009-10-09  Eric Blake  <ebb9@byu.net>
7324
7325         dup2: work around FreeBSD 6.1 bug
7326         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
7327         * doc/posix-functions/dup2.texi (dup2): Document it.
7328         Reported by Nelson H. F. Beebe and Jim Meyering.
7329
7330         test-stat-time: port to buggy NFS clients
7331         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
7332         (test_ctime): Also skip test if mtime and ctime are skewed.
7333
7334         maint: prefer 'file system' over 'filesystem'
7335         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7336         * doc/posix-functions/lstat.texi (lstat): Likewise.
7337         * lib/file-has-acl.c (file_has_acl): Likewise.
7338         * lib/fwriteerror.c [TEST]: Likewise.
7339         * tests/test-areadlink.h (test_areadlink): Likewise.
7340         * tests/test-areadlinkat-with-size.c (main): Likewise.
7341         * tests/test-areadlinkat.c (main): Likewise.
7342         * tests/test-canonicalize-lgpl.c (main): Likewise.
7343         * tests/test-canonicalize.c (main): Likewise.
7344         * tests/test-fstatat.c (main): Likewise.
7345         * tests/test-linkat.c (main): Likewise.
7346         * tests/test-lstat.h (test_lstat_func): Likewise.
7347         * tests/test-mkdir.h (test_mkdir): Likewise.
7348         * tests/test-readlink.h (test_readlink): Likewise.
7349         * tests/test-remove.c (main): Likewise.
7350         * tests/test-rename.h (test_rename): Likewise.
7351         * tests/test-renameat.c (main): Likewise.
7352         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7353         * tests/test-symlink.h (test_symlink): Likewise.
7354         * tests/test-symlinkat.c (main): Likewise.
7355         * tests/test-unlink.h (test_unlink_func): Likewise.
7356         * tests/test-unlinkat.c (main): Likewise.
7357
7358         maint: make realtime library usage explicit
7359         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
7360         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
7361         * modules/settime (Link): Likewise.
7362         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
7363
7364         test-stat-time: speed up execution
7365         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
7366         warning on mingw.
7367         (nap): New helper function.
7368         (prepare_test): Use it to reduce sleep time.
7369         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
7370         execution.
7371         * modules/stat-time-tests (configure.ac): Check for usleep.
7372
7373 2009-10-09  Jim Meyering  <meyering@redhat.com>
7374
7375         selinux-h: always use getfilecon wrappers
7376         * lib/getfilecon.c: New file.
7377         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
7378         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
7379         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
7380         (fgetfilecon): Provide a stub.
7381         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
7382         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
7383         file unconditionally.
7384         When <selinux/selinux.h> is found, arrange to use wrappers.
7385         * modules/selinux-h (Files): Add getfilecon.c.
7386         (Makefile.am): Substitute include-next-related bits
7387         into the now-always-generated selinux/selinux.h file.
7388         * doc/glibc-functions/lgetfilecon.texi: New file.
7389         * doc/glibc-functions/fgetfilecon.texi: New file.
7390         * doc/glibc-functions/getfilecon.texi: New file.
7391         * doc/glibc-functions/getfilecon-desc.texi: New file.
7392         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
7393         which to pull in the new files.
7394         * MODULES.html.sh (Misc): Add selinux-h.
7395
7396 2009-10-08  Jim Meyering  <meyering@redhat.com>
7397
7398         unistd: fix comment typo
7399         * lib/unistd.in.h (euidaccess): Fix a comment typo.
7400
7401 2009-10-08  Eric Blake  <ebb9@byu.net>
7402
7403         areadlink: use SIZE_MAX consistently
7404         * modules/areadlink (Depends-on): Add stdint.
7405         * modules/areadlink-with-size (Depends-on): Likewise.
7406         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
7407         gives NULL; drop sys/types, since unistd gives size_t; and add
7408         stdint for SIZE_MAX.
7409         (SIZE_MAX): Rely on headers.
7410         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
7411         and add stdint.
7412         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
7413         (SIZE_MAX): Likewise.
7414         (INITIAL_BUF_SIZE): Turn into enum.
7415         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
7416
7417 2009-10-08  Jim Meyering  <meyering@redhat.com>
7418
7419         areadlinkat: avoid compilation failure
7420         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
7421         Fix typo in comment.
7422
7423 2009-10-07  Eric Blake  <ebb9@byu.net>
7424
7425         areadlinkat-with-size: new module
7426         * modules/areadlinkat-with-size: New module.
7427         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
7428         * lib/areadlink.h (areadlinkat): Declare it.
7429         * MODULES.html.sh (File system functions): Mention it.
7430         * modules/areadlinkat-with-size-tests: New test.
7431         * tests/test-areadlinkat-with-size.c: New file.
7432
7433         xreadlinkat: new module
7434         * modules/xreadlinkat: New module.
7435         * lib/xreadlinkat.c (xreadlinkat): New file.
7436         * lib/xreadlink.h (xreadlinkat): Declare it.
7437         * MODULES.html.sh (File system functions): Mention it.
7438
7439         areadlinkat: new module
7440         * lib/at-func.c (FUNC_FAIL): New define.
7441         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
7442         * modules/areadlinkat: New module.
7443         * lib/linkat.c (areadlinkat): Move...
7444         * lib/areadlinkat.c (areadlinkat): ...to new file.
7445         * lib/areadlink.h (areadlinkat): Declare it.
7446         * modules/linkat (Depends-on): Add areadlinkat.
7447         * MODULES.html.sh (File system functions): Mention it.
7448         * modules/areadlinkat-tests: New test.
7449         * tests/test-areadlinkat.c: New file.
7450
7451         areadlink, areadlink-with-size: add tests
7452         * modules/areadlink-tests: New test.
7453         * modules/areadlink-with-size-tests: Likewise.
7454         * tests/test-areadlink.h: New file.
7455         * tests/test-areadlink.c: Likewise.
7456         * tests/test-areadlink-with-size.c: Likewise.
7457
7458         maint: minor cleanups
7459         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
7460         _UNUSED_PARAMETER_ instead.
7461         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
7462         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
7463         * modules/linkat-tests (Files): Distribute test-link.h.
7464
7465         openat, utimens: whitespace cleanup
7466         * lib/openat.c: Prefer space throughout, rather than mix of 8
7467         spaces vs. tabs.
7468         * lib/at-func.c: Likewise.
7469         * lib/utimens.c: Likewise.
7470
7471         openat: avoid using wrong fd
7472         * lib/openat.c (openat_permissive): Reject user's fd if saving the
7473         working directory chooses same fd.
7474         * lib/at-func.c (AT_FUNC_NAME): Likewise.
7475
7476         mkdir, mkdirat: fix cygwin 1.5.x bug
7477         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
7478         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
7479         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
7480         bug.
7481         (gl_PREREQ_MKDIR): Delete unused macro.
7482         * modules/mkdir (Files): Track file rename.
7483         (configure.ac): Update macro name.
7484         * modules/openat (Depends-on): Add mkdir.
7485         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
7486
7487         mkdir, mkdirat: add tests
7488         * modules/mkdir-tests: New test.
7489         * tests/test-mkdir.h: New file.
7490         * tests/test-mkdir.c: Likewise.
7491         * tests/test-mkdirat.c: Likewise.
7492         * modules/openat-tests (Files): Add new files.
7493         (Makefile.am): Run new test.
7494
7495 2009-10-06  Eric Blake  <ebb9@byu.net>
7496
7497         doc: tweak *at function documentation
7498         * doc/posix-functions/faccessat.texi (faccessat): Mention
7499         known issue with replacement.
7500         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
7501         * doc/posix-functions/linkat.texi (linkat): Likewise.
7502         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7503         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7504         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7505         * doc/posix-functions/renameat.texi (renameat): Likewise.
7506         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7507
7508         openat: fix GNU/Hurd bug in unlinkat
7509         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
7510         broken.
7511         * doc/posix-functions/unlink.texi (unlink): Document this.
7512         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
7513
7514         fdopendir: fix GNU/Hurd bug
7515         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
7516         allowing non-directory fds.
7517         * lib/fdopendir.c (rpl_fdopendir): Work around it.
7518         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7519         * modules/dirent (Makefile.am): Substitute it.
7520         * lib/dirent.in.h (fdopendir): Declare replacement.
7521         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
7522         * tests/test-fdopendir.c (main): Test something other than
7523         /dev/null, since on Hurd that behaves like a directory.
7524
7525         test-symlink: port to GNU/Hurd
7526         * tests/test-symlink.h (test_symlink): Relax expected errno.
7527
7528         doc: tweak more cygwin information
7529         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
7530         now compatible with glibc.
7531         * doc/posix-functions/getopt.texi (getopt): Likewise.
7532
7533         getopt-gnu: add another test
7534         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
7535         guarantee behavior relied on by m4.
7536         * tests/test-getopt.c (main): Use it.
7537         * modules/getopt-posix-tests (Depends-on): Add setenv.
7538         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
7539
7540         getopt: fix compilation on darwin
7541         * lib/getopt.in.h (includes): Leave breadcrumbs during system
7542         include.
7543         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
7544         Reported by Ludovic Courtès.
7545
7546 2009-10-06  Bruno Haible  <bruno@clisp.org>
7547
7548         * modules/size_max (Description): Discourage its use.
7549         Reported by Simon Josefsson.
7550
7551 2009-10-06  Jim Meyering  <meyering@redhat.com>
7552
7553         linkat: avoid compilation failure
7554         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
7555
7556 2009-10-05  Eric Blake  <ebb9@byu.net>
7557
7558         linkat: support Linux 2.6.17
7559         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
7560         linkat on Linux, but allow cache variable override.
7561         * lib/linkat.c (rpl_linkat): Define override.
7562         * modules/linkat (Depends-on): Add symlinkat.
7563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
7564         * modules/unistd (Makefile.am): Substitute it.
7565         * lib/unistd.in.h (linkat): Declare replacement.
7566         Reported by Pádraig Brady.
7567
7568         quotearg: port test to systems with C.UTF-8 locale
7569         * tests/test-quotearg.c (struct result_strings): Add another
7570         member, differentiating between C.ASCII and C.UTF-8 handling.
7571         (compare_strings): Add parameter.
7572         (main): Adjust all callers.
7573
7574         getopt: avoid clash with FreeBSD _getopt_internal
7575         * lib/getopt.in.h (_getopt_internal): Override the name.
7576         * lib/getopt_int.h (includes): Pick up any overrides.
7577         Reported by Reuben Thomas.
7578
7579         hash: allow C89 compilation
7580         * lib/hash.c (check_tuning): Move declaration before statement.
7581         Reported by Reuben Thomas.
7582
7583 2009-10-05  Karl Berry  <karl@gnu.org>
7584
7585         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
7586
7587 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
7588             Bruno Haible  <bruno@clisp.org>
7589
7590         * lib/uname.c (uname): Use a table-driven algorithm to compute
7591         Windows NT versions.
7592
7593 2009-10-04  Bruno Haible  <bruno@clisp.org>
7594
7595         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
7596         program_invocation_short_name.
7597         * modules/progname (configure.ac): Test for presence of
7598         program_invocation_short_name.
7599         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
7600
7601 2009-10-04  Bruno Haible  <bruno@clisp.org>
7602
7603         * lib/progname.c (set_program_name): Fix comment.
7604         Reported by Jim Meyering.
7605
7606 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7607             Bruno Haible  <bruno@clisp.org>
7608
7609         * lib/uname.c: Include <string.h>.
7610         (uname): Do only one call to GetVersionEx in the common case.
7611
7612 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7613             Bruno Haible  <bruno@clisp.org>
7614
7615         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
7616         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
7617         (uname): Add support for Windows CE and various non-x86 CPU types.
7618
7619 2009-10-03  Bruno Haible  <bruno@clisp.org>
7620
7621         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
7622         invocation to tests/configure.ac.
7623         Reported by Ian Beckwith <ianb@erislabs.net>.
7624
7625 2009-10-02  Eric Blake  <ebb9@byu.net>
7626
7627         fchdir: avoid compiler warning
7628         * lib/fchdir.c (canonicalize_file_name)
7629         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
7630
7631         test-open: support mingw errno values
7632         * tests/test-open.h (test_open): Relax test.
7633         * tests/test-fopen.h (test_fopen): Likewise.
7634         * tests/test-openat-safer.c (main): Likewise.
7635
7636         open: fix opening directory on mingw
7637         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
7638
7639         test-open: on GNU/Hurd, /dev/null is a directory
7640         * tests/test-fopen.h (main): Rename...
7641         (test_fopen): ...to this.  Use a guaranteed non-directory when
7642         confirming open behavior on trailing slash.
7643         * tests/test-openat-safer.c (main): Likewise.
7644         * tests/test-open.h (main): Likewise....
7645         (test_open): ...to this.
7646         * tests/test-fopen.c (main): Adjust caller.
7647         * tests/test-fopen-safer.c (main): Likewise.
7648         * tests/test-open.c (main): Likewise.
7649         * tests/test-fcntl-safer.c (main): Likewise.
7650         Reported by Samuel Thibault.
7651
7652         rename, fchdir: don't ignore chdir failure
7653         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
7654         * lib/rename.c (rpl_rename) [W32]: Likewise.
7655         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
7656         an empty destination directory if source cannot be renamed,
7657         although there is still possibility for failure.
7658         * doc/posix-functions/rename.texi (rename): Document the race.
7659         Reported by Jim Meyering.
7660
7661         maint: cleanup whitespace in recent commits
7662         * lib/rename.c (rpl_rename): Remove tabs.
7663         * tests/test-link.h (test_link): Likewise.
7664         * lib/fchdir.c (get_name): Likewise.
7665         Reported by Jim Meyering.
7666
7667 2009-10-02  Ben Pfaff  <blp@gnu.org>
7668
7669         relocatable-prog-wrapper: Add missing dependency on
7670         double-slash-root.
7671         * modules/relocatable-prog-wrapper: Add dependency.
7672         Reported by Ian Beckwith <ianb@erislabs.net>.
7673
7674 2009-10-02  Eric Blake  <ebb9@byu.net>
7675
7676         renameat: fix Solaris bugs
7677         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
7678         needed fixing.
7679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
7680         * modules/stdio (Makefile.am): Substitute it.
7681         * lib/stdio.in.h (renameat): Declare replacement.
7682         * lib/renameat.c (rpl_renameat): Implement fix.
7683
7684         renameat: new module
7685         * modules/renameat: New file.
7686         * lib/renameat.c (renameat): Likewise.
7687         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
7688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7689         * modules/stdio (Makefile.am): Substitute them.
7690         * lib/stdio.in.h (renameat): Declare it.
7691         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7692         * doc/posix-functions/renameat.texi (renameat): Likewise.
7693         * modules/renameat-tests: New test.
7694         * tests/test-renameat.c: Likewise.
7695
7696         rename: fix mingw bugs
7697         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
7698         directory overwrite bugs.
7699
7700         rename: fix another cygwin 1.5 bug
7701         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
7702         checks.
7703         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
7704         unnecessary cygwin workarounds.  Also work around bug with moving
7705         full directory onto an empty one.
7706         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
7707
7708         rename-dest-slash: merge into rename module
7709         * modules/rename-dest-slash (Status): Mark obsolete.
7710         (Depends-on): Add rename.
7711         (Files): Let rename do it all.
7712         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
7713         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
7714         * m4/rename-dest-slash.m4: ...so this file can be deleted.
7715         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
7716         * lib/rename.c (rpl_rename): Update comments.
7717
7718         rename: fix cygwin 1.5.x bugs
7719         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
7720         * lib/rename.c (rpl_rename): Work around them.
7721         * modules/rename (Depends-on): Add same-inode.
7722
7723         rename: fix Solaris 10 bug
7724         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7725         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
7726         was the only bug.
7727
7728         rename: fix Solaris 9 bug
7729         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
7730         on non-directory.  Avoid calling exit.
7731         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
7732         strdup.
7733         * modules/rename-tests (Depends-on): Drop lstat.
7734         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7735         (gl_PREREQ_RENAME): Delete unused macro.
7736
7737         rename-dest-slash: fix NetBSD bug
7738         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
7739         links.
7740         * modules/rename-dest-slash (Depends-on): Add same-inode.
7741
7742         rename-tests: new test, exposes several platform bugs
7743         * modules/rename-tests: New file.
7744         * tests/test-rename.h: Likewise.
7745         * tests/test-rename.c: Likewise.
7746         * doc/posix-functions/rename.texi (rename): Improve documentation,
7747         including bugs that will eventually be fixed in gnulib.
7748
7749 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
7750
7751         * lib/uname.c: Include <stdlib.h>
7752         (uname): Assume version info is available.
7753
7754 2009-10-02  Jim Meyering  <meyering@redhat.com>
7755
7756         gnu-web-doc-update: correct --help output
7757         * build-aux/gnu-web-doc-update: Make --help output relevant.
7758
7759         gnu-web-doc-update: add standard options
7760         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
7761
7762         gnu-web-doc-update: New module.
7763         Use this script to automatically update the on-line web documentation
7764         for your GNU project at http://www.gnu.org/software/$pkg/manual/
7765         * modules/gnu-web-doc-update: New file, from coreutils.
7766         * build-aux/gnu-web-doc-update: New script.
7767
7768 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
7769
7770         link: LoadLibrary is not needed.
7771         * lib/link.c: Use GetModuleHandle.
7772
7773 2009-10-01  Eric Blake  <ebb9@byu.net>
7774
7775         getopt: bump serial number
7776         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
7777         change.
7778
7779         tests: tighten link, rmdir, and remove tests
7780         * tests/test-link.h (includes): No need to use <config.h> here.
7781         Clean up if directory hard link was created, otherwise test for
7782         trailing '.'.
7783         * tests/test-linkat.c (main): Simplify.
7784         * tests/test-remove.c (main): Enhance test for trailing '.'.
7785         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7786
7787 2009-10-01  Jim Meyering  <meyering@redhat.com>
7788
7789         maint.mk: requiring "make major" was annoying, for a "minor" release.
7790         What is intended is "stable", to contrast with alpha and beta,
7791         so require "make stable", not "make major".
7792         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
7793         (get_tool_versions): Likewise.
7794         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
7795
7796 2009-09-30  Ben Pfaff  <blp@gnu.org>
7797
7798         Fix broken build of replacement for Windows tmpfile().
7799         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
7800         flags argument added along with the 'mkostemp' module.
7801
7802 2009-09-28  Bruno Haible  <bruno@clisp.org>
7803
7804         Avoid identifier clash with POSIX function 'remove' defined as a macro.
7805         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
7806         to 'remove_elt'.
7807         (gl_list_remove): Update.
7808         * lib/gl_list.c (gl_list_remove): Update.
7809         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
7810         to 'remove_elt'.
7811         (gl_oset_remove): Update.
7812         * lib/gl_list.c (gl_oset_remove): Update.
7813         Reported by Eric Blake.
7814
7815 2009-09-28  Eric Blake  <ebb9@byu.net>
7816
7817         doc: mention yet more cygwin 1.7 status
7818         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
7819         cygwin.
7820         * doc/glibc-functions/execvpe.texi (execvpe): New file.
7821         * doc/gnulib.texi (Glibc unistd.h): Mention it.
7822
7823         argp: fix test failure
7824         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
7825         that are not upper-case.  Pass correct range to tolower.
7826
7827 2009-09-27  Jim Meyering  <meyering@redhat.com>
7828
7829         test-yesno: work around sparc-dash here-document infelicity
7830         Without this change, the literal \177 byte in a here document
7831         would make dash 0.5.5.1-3 access uninitialized memory.
7832         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
7833         Instead, use a marker, "@", and filter through tr to create the desired
7834         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
7835
7836 2009-09-27  Bruno Haible  <bruno@clisp.org>
7837
7838         Disable untested support for new flavours of ACLs on AIX.
7839         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
7840         progress.
7841         * lib/set-mode-acl.c (qset_acl): Likewise.
7842
7843 2008-12-07  Bruno Haible  <bruno@clisp.org>
7844
7845         Add support for new flavours of ACLs on AIX. (Untested.)
7846         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
7847         (file_has_acl): Add support for newer AIX.
7848         * lib/set-mode-acl.c (qset_acl): Likewise.
7849         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
7850         Rainer Tammer <tammer@tammer.net>.
7851
7852 2009-09-26  Eric Blake  <ebb9@byu.net>
7853
7854         argp: fix compilation of getopt
7855         * lib/getopt.in.h (includes): Use different guard than glibc.
7856         Reported by Sergey Poznyakoff.
7857
7858         doc: mention more cygwin 1.7 status
7859         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
7860         bug.
7861         * doc/posix-functions/execl.texi (execl): Likewise.
7862         * doc/posix-functions/execle.texi (execle): Likewise.
7863         * doc/posix-functions/execlp.texi (execlp): Likewise.
7864         * doc/posix-functions/execv.texi (execv): Likewise.
7865         * doc/posix-functions/execve.texi (execve): Likewise.
7866         * doc/posix-functions/execvp.texi (execvp): Likewise.
7867         * doc/glibc-functions/canonicalize_file_name.texi
7868         (canonicalize_file_name): Cygwin 1.7 now provides this.
7869         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
7870         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
7871         on AT_SYMLINK_NOFOLLOW.
7872
7873 2009-09-24  Eric Blake  <ebb9@byu.net>
7874
7875         test-linkat: make test more robust
7876         * tests/test-linkat.c (main): Avoid collision with EEXIST.
7877
7878         getopt: fix inclusion guards for cygwin
7879         * modules/getopt-posix (Depends-on): Add include-next.
7880         (Makefile.am): Substitute more items in replacement header.
7881         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
7882         <getopt.h>.
7883         * lib/getopt.in.h (includes): Use split inclusion guard, and
7884         prefer <getopt.h> over include <unistd.h> when one is present.
7885         (option): Also override name of 'struct option'.
7886
7887         same-inode: revert prior change; it is not yet ready
7888         * NEWS: Undo mention of this change.
7889         * lib/same-inode.h (same-inode.h): Undo tri-state change.
7890         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
7891         * lib/cycle-check.c (cycle_check): Likewise.
7892         * lib/same.c (same_name): Likewise.
7893         * lib/at-func2.c (at_func2): Likewise.
7894
7895 2009-09-23  Eric Blake  <ebb9@byu.net>
7896
7897         linkat: new module
7898         * modules/linkat: New file.
7899         * lib/at-func2.c (at_func2): Likewise.
7900         * lib/linkat.c (linkat): Likewise.
7901         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7902         * lib/openat-priv.h (at_func2): Add declaration.
7903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7904         * modules/unistd (Makefile.am): Substitute them.
7905         * lib/unistd.in.h (linkat): Declare it.
7906         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7907         * doc/posix-functions/linkat.texi (linkat): Likewise.
7908         * doc/posix-functions/link.texi (link): Tweak wording.
7909         * tests/test-link.c (main): Move guts...
7910         * tests/test-link.h (test_link): ...into new file.
7911         * modules/linkat-tests: New test.
7912         * tests/test-linkat.c: Likewise.
7913         * modules/link-tests (Files): Ship new file.
7914         (Depends-on): Add stdbool.
7915
7916         dirname: add library-safe mdir_name
7917         * lib/dirname.h (mdir_name): New prototype.
7918         * lib/dirname.c (dir_name): Move guts...
7919         (mdir_name): ...to new function that avoids xalloc_die.
7920
7921         fchdir: another mingw fix
7922         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
7923         * lib/fchdir.c (get_name): New helper method; skips canonicalize
7924         on mingw (where it has not yet been ported), and make it optional
7925         elsewhere.
7926         (_gl_register_fd): Use it.
7927
7928         same-inode: make SAME_INODE tri-state, to port to mingw
7929         * NEWS: Mention this change.
7930         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
7931         st_ino always being 0.
7932         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
7933         * lib/cycle-check.c (cycle_check): Likewise.
7934         * lib/same.c (same_name): Likewise.
7935
7936         lstat: avoid mingw compilation error
7937         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
7938         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
7939         lstat ourselves.
7940         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
7941         was adequate.
7942         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
7943         the checks for lstat.
7944         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
7945
7946         link: fix test failure on Solaris 9
7947         * lib/link.c (rpl_link): Don't assume link will catch bogus
7948         trailing slash on source.
7949
7950         test-symlinkat: enhance test
7951         * tests/test-readlink.c (main): Move guts...
7952         * tests/test-readlink.h (test_readlink): ...into new file.
7953         * tests/test-symlink.c (main): Move guts...
7954         * tests/test-symlink.h (test_symlink): ...into new file.
7955         * tests/test-symlinkat.c (main): Use new files for further
7956         coverage.
7957         (do_symlink, do_readlink): New helper functions.
7958         * modules/symlink-tests (Files): Ship new file.
7959         (Depends-on): Add stdbool.
7960         * modules/readlink-tests (Files): Ship new file.
7961         (Depends-on): Add stdbool.
7962         * modules/symlinkat-tests (Files): Use new files.
7963
7964 2009-09-23  Eric Blake  <ebb9@byu.net>
7965
7966         readlink: document portability issue with symlink length
7967         * doc/posix-functions/lstat.texi (lstat): Mention that some file
7968         systems have bogus st_size on symlinks, and mention the
7969         areadlink-with-size module.
7970         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7971         * doc/posix-functions/readlink.texi (readlink): Mention the
7972         areadlink module, and ERANGE failure.
7973         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7974         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
7975
7976         readlink: fix Solaris 9 bug with trailing slash
7977         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
7978         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
7979         * doc/posix-functions/readlink.texi (readlink): Document this.
7980         * modules/readlink-tests: New test.
7981         * tests/test-readlink.c: Likewise.
7982
7983         readlink: fix cygwin 1.5.x bug with return type
7984         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
7985         * lib/unistd.in.h (readlink): Use ssize_t.
7986         * lib/readlink.c (readlink): Likewise.
7987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7988         * modules/unistd (Makefile.am): Substitute it.
7989         * lib/unistd.in.h (readlink): Declare replacement.
7990         * doc/posix-functions/readlink.texi (readlink): Document this.
7991
7992         symlink: use throughout gnulib
7993         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
7994         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
7995         symlink is not used.
7996         * modules/symlinkat (Depends-on): Add symlink.
7997         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7998         * modules/canonicalize-tests (Depends-on): Likewise.
7999         * modules/lstat-tests (Depends-on): Likewise.
8000         * modules/openat-tests (Depends-on): Likewise.
8001         * modules/remove-tests (Depends-on): Likewise.
8002         * modules/rmdir-tests (Depends-on): Likewise.
8003         * modules/unlink-tests (Depends-on): Likewise.
8004         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8005         * tests/test-canonicalize.c (symlink): Likewise.
8006         * tests/test-fstatat.c (symlink): Likewise.
8007         * tests/test-lstat.c (symlink): Likewise.
8008         * tests/test-remove.c (symlink): Likewise.
8009         * tests/test-rmdir.c (symlink): Likewise.
8010         * tests/test-unlink.c (symlink): Likewise.
8011         * tests/test-unlinkat.c (symlink): Likewise.
8012
8013         symlink: new module, for Solaris 9 bug
8014         * modules/symlink: New file.
8015         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8016         * lib/symlink.c: Likewise.
8017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8018         * modules/unistd (Makefile.am): Substitute them.
8019         * lib/unistd.in.h (symlink): Declare replacement.
8020         * MODULES.html.sh (File system functions): Mention it.
8021         * doc/posix-functions/symlink.texi (symlink): Likewise.
8022         * modules/symlink-tests: New test.
8023         * tests/test-symlink.c: Likewise.
8024
8025 2009-09-23  Bruno Haible  <bruno@clisp.org>
8026
8027         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8028         when needed.
8029         Test case: gnulib-tool --import --with-tests atexit inttypes.
8030         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8031
8032 2009-09-23  Bruno Haible  <bruno@clisp.org>
8033
8034         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8035         subcommand, not in a subshell.
8036
8037 2009-09-22  Eric Blake  <ebb9@byu.net>
8038
8039         unistd: sort replacement declarations
8040         * lib/unistd.in.h: Sort declarations.
8041
8042         open, openat: minor optimization
8043         * lib/open.c (open): If open succeeded, len is non-zero.
8044         * lib/openat.c (rpl_openat): Likewise.
8045
8046         link-follow: ensure correct result
8047         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8048         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8049         distinguish between possible failures.
8050
8051 2009-09-21  Eric Blake  <ebb9@byu.net>
8052
8053         fts: avoid compiler warning
8054         * lib/fts.c (dirent_inode_sort_may_be_useful)
8055         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8056
8057 2009-09-19  Bruno Haible  <bruno@clisp.org>
8058
8059         * lib/progreloc.c (canonicalize_file_name): New declaration.
8060
8061 2009-09-19  Eric Blake  <ebb9@byu.net>
8062
8063         link: fix quoting
8064         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8065
8066         openat: fix openat bugs on Solaris 9
8067         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8068         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8069         * modules/openat (Depends-on): Add open.
8070         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8071         * modules/fcntl-h (Makefile.am): Substitute it.
8072         * lib/fcntl.in.h (openat): Declare replacement.
8073         * doc/posix-functions/openat.texi (openat): Document this.
8074
8075         openat: move fstatat and unlinkat into correct files
8076         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8077         compiled.
8078         * lib/openat.c (fstatat, unlinkat): Move...
8079         * lib/fstatat.c (fstatat): ...into correct files.
8080         * lib/unlinkat.c (unlinkat): Likewise.
8081
8082         openat: fix unlinkat bugs on Solaris 9
8083         * lib/unlinkat.c (unlinkat): New file.
8084         * modules/openat (Depends-on): Add unlink.
8085         (Files): Distribute it.
8086         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8087         trailing slash behavior is broken.
8088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8089         * modules/unistd (Makefile.am): Substitute it.
8090         * lib/unistd.in.h (unlinkat): Declare replacement.
8091         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8092
8093         openat: fix fstatat bugs on Solaris 9
8094         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8095         stat.
8096         * doc/posix-functions/fstatat.texi (fstatat): Document this.
8097
8098         test-unlinkat: enhance test, to expose Solaris 9 bug
8099         * tests/test-unlink.c (main): Factor guts...
8100         * tests/test-unlink.h (test_rmdir_func): ...into new file.
8101         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8102         * tests/test-rmdir.c (main): Adjust caller.
8103         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
8104         (unlinker): New helper function.
8105         (rmdirat): Enhance check.
8106         * modules/rmdir-tests (Depends-on): Add stdbool.
8107         * modules/unlink-tests (Depends-on): Likewise.
8108         (Files): Add test-unlink.h.
8109         * modules/openat-tests (Files): Likewise.
8110         (Depends-on): Add unlinkdir.
8111
8112         test-fstatat: new test, to expose Solaris 9 bugs
8113         * tests/test-stat.c (main): Factor guts...
8114         * tests/test-stat.h (test_stat_func): ...into new file.
8115         * tests/test-lstat.c (main): Factor guts...
8116         * tests/test-lstat.h (test_lstat_func): ...into new file.
8117         * tests/test-fstatat.c: New file.
8118         * modules/stat-tests (Files): Add test-stat.h.
8119         * modules/lstat-tests (Files): Add test-lstat.h.
8120         (Depends-on): Add stdbool.
8121         * modules/openat-tests (Depends-on): Add pathmax.
8122         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8123         (Makefile.am): Run new test.
8124
8125         remove: new module, for mingw and Solaris 9 bugs
8126         * modules/remove: New file.
8127         * lib/remove.c: Likewise.
8128         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8130         * modules/stdio (Makefile.am): Use them.
8131         * lib/stdio.in.h (remove): Declare replacement.
8132         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8133         * doc/posix-functions/remove.texi (remove): Likewise.
8134         * modules/remove-tests: New test.
8135         * tests/test-remove.c: Likewise.
8136
8137         unlink: new module, for Solaris 9 bug
8138         * modules/unlink: New file.
8139         * lib/unlink.c: Likewise.
8140         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8142         * modules/unistd (Makefile.am): Use them.
8143         * lib/unistd.in.h (stat): Declare replacement.
8144         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8145         * doc/posix-functions/unlink.texi (unlink): Likewise.
8146         * modules/unlink-tests: New test.
8147         * tests/test-unlink.c: Likewise.
8148
8149         lstat: fix Solaris 9 bug
8150         * lib/lstat.c (lstat): Also check for trailing slash on
8151         non-symlink, non-directories.  Use stat module to simplify logic.
8152         * doc/posix-functions/lstat.texi (lstat): Document it.
8153         * modules/lstat-tests (Depends-on): Add errno, same-inode.
8154         (configure.ac): Check for symlink.
8155         * tests/test-lstat.c (main): Add more tests.
8156
8157         stat: add as dependency to other modules
8158         * modules/chown (Depends-on): Add stat.
8159         * modules/euidaccess (Depends-on): Likewise.
8160         * modules/fchdir (Depends-on): Likewise.
8161         * modules/isdir (Depends-on): Likewise.
8162         * modules/link (Depends-on): Likewise.
8163         * modules/lstat (Depends-on): Likewise.
8164         * modules/mkdir-p (Depends-on): Likewise.
8165         * modules/modechange (Depends-on): Likewise.
8166         * modules/open (Depends-on): Likewise.
8167         * modules/readlink (Depends-on): Likewise.
8168         * modules/same (Depends-on): Likewise.
8169
8170         stat: fix Solaris 9 bug
8171         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8172         slash.
8173         * lib/stat.c (rpl_stat): Work around it.
8174         * doc/posix-functions/stat.texi (stat): Update documentation.
8175
8176         stat: new module, for mingw bug
8177         * modules/stat: New file.
8178         * lib/stat.c: Likewise.
8179         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8180         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8181         * modules/sys_stat (Makefile.am): Use them.
8182         * lib/sys_stat.in.h (stat): Declare replacement.
8183         * lib/openat.c (fstatat): Deal with lstat and stat being function
8184         macros.
8185         * modules/openat (Depends-on): Add inline.
8186         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8187         * doc/posix-functions/stat.texi (stat): Likewise.
8188         * modules/stat-tests: New test.
8189         * tests/test-stat.c: Likewise.
8190
8191 2009-09-19  Jim Meyering  <meyering@redhat.com>
8192
8193         syntax-check: detect unnecessary inclusion of canonicalize.h
8194         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8195
8196 2009-09-19  Eric Blake  <ebb9@byu.net>
8197
8198         canonicalize-lgpl: adjust clients to use correct header
8199         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8200         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8201         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8202         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8203         * lib/progreloc.c (includes): Likewise.
8204
8205 2009-09-19  Jim Meyering  <meyering@redhat.com>
8206
8207         test-posixtm.c: correct a comment
8208         * tests/test-posixtm.c: Correct first-line comment.
8209         Spotted by Eric Blake.
8210
8211 2009-09-16  Jim Meyering  <meyering@redhat.com>
8212
8213         posixtm-tests: make T const-correct; add a test case
8214         * tests/test-posixtm.c (T): Declare const.
8215         Add a test for -(2^31+1).
8216         Remove useless can-succeed-only-in-2002 test.
8217
8218         posixtm-tests: adjust the sole failing test
8219         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8220         expected output matches what mktime now produces.  Cross-checked via
8221         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8222
8223         posixtm: move #ifdef'd tests into a new module
8224         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
8225         * tests/test-posixtm.c: ... this new file.
8226         * modules/posixtm-tests: New module.
8227
8228 2009-09-19  Eric Blake  <ebb9@byu.net>
8229
8230         openat: simplify use of at-func.c
8231         * lib/at-func.c (includes): Include prerequisites here, to
8232         simplify requirements on client files.
8233         * lib/openat-priv.h: Add double-inclusion guard.
8234         * lib/faccessat.c (includes): Simplify.
8235         * lib/fchmodat.c (includes): Likewise.
8236         * lib/fchownat.c (includes): Likewise.
8237         * lib/mkdirat.c (includes): Likewise.
8238         * lib/mkfifoat.c (includes): Likewise.
8239         * lib/symlinkat.c (includes): Likewise.
8240
8241         openat: allow return of fd 0
8242         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8243         * modules/save-cwd (Depends-on): Replace fcntl-safer with
8244         unistd-safer.
8245         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8246         <fcntl.h>; this module does not leak fds.
8247         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8248         must be allowed to return 0, leaving openat_safer to add the
8249         safety.
8250         (openat_permissive): Avoid writing to just-opened fd 2 if
8251         restoring the current directory fails.
8252         * lib/openat-die.c (openat_restore_fail): Add comment.
8253         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8254         (save_cwd): Guarantee safe fd, but without use of open_safer.
8255         * tests/test-openat.c: New test.
8256         * modules/openat-tests (Files, Makefile.am): Distribute and build
8257         new file.
8258
8259         relocatable-prog-wrapper: fix build
8260         * modules/relocatable-prog-wrapper (Files): Update name of
8261         canonicalize m4 file, broken on 2009-09-17.
8262         Reported by emad hajjar <aleppos@hotmail.com>.
8263
8264 2009-09-19  Bruno Haible  <bruno@clisp.org>
8265
8266         * lib/safe-alloc.h: Use the standard header with GPL copyright.
8267         * lib/safe-alloc.c: Likewise.
8268         Reported by Ian Beckwith <ianb@erislabs.net>.
8269
8270 2009-09-18  Bruno Haible  <bruno@clisp.org>
8271
8272         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8273         Reported by <erobles@sensacd.com.mx>.
8274
8275 2009-09-17  Eric Blake  <ebb9@byu.net>
8276
8277         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8278         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8279         slashes when checking if last component is missing.
8280         * tests/test-canonicalize.c (main): Test this.
8281
8282         canonicalize, canonicalize-lgpl: honor // if distinct from /
8283         * modules/canonicalize (Files): Add double-slash-root.m4.
8284         * modules/canonicalize-lgpl (Files): Likewise.
8285         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8286         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8287         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
8288         fallback definition.
8289         (canonicalize_filename_mode): Use it to protect //.
8290         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
8291         (__realpath): Likewise.
8292         * tests/test-canonicalize.c (main): Test this.
8293         * tests/test-canonicalize-lgpl.c (main): Likewise.
8294         * modules/canonicalize-tests (Depends-on): Add same-inode.
8295         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8296
8297         canonicalize-lgpl: fix glibc bug with trailing slash
8298         * m4/canonicalize-lgpl.m4: Move contents...
8299         * m4/canonicalize.m4: ...here.
8300         (gl_CANONICALIZE_LGPL): Factor realpath check...
8301         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
8302         glibc 2.3.5 bug, fixed 2005-04-27.
8303         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
8304         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
8305         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
8306         * modules/canonicalize-lgpl (Files): Manage file rename.
8307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8308         * modules/stdlib (Makefile.am): Substitute witness.
8309         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
8310         is needed.
8311         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
8312         replacement is required.
8313         * lib/canonicalize.c (canonicalize_file_name): Likewise.
8314         * doc/glibc-functions/canonicalize_file_name.texi
8315         (canonicalize_file_name): Document this.
8316         * doc/posix-functions/realpath.texi (realpath): Likewise.
8317
8318         canonicalize-lgpl: reject non-directory with trailing slash
8319         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
8320         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
8321         catches failures in glibc 2.3.5.
8322         * tests/test-canonicalize.c (main): Likewise.
8323
8324         canonicalize-lgpl: use native realpath if it works
8325         * lib/canonicalize-lgpl.c (realpath): Guard with
8326         FUNC_REALPATH_WORKS.
8327         * lib/stdlib.in.h (realpath): Make declaration optional based on
8328         HAVE_REALPATH.
8329         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
8330         native realpath works.
8331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8332         * modules/stdlib (Makefile.am): Substitute witness.
8333
8334         canonicalize, canonicalize-lgpl: use <stdlib.h>
8335         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
8336         (Include): Mention <stdlib.h>.
8337         (configure.ac): Mention functions we provide.
8338         * modules/canonicalize (configure.ac): Likewise.
8339         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
8340         realpath if canonicalize_file_name is missing.
8341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
8342         * modules/stdlib (Makefile.am): Substitute witnesses.
8343         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
8344         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
8345         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
8346         * NEWS: Document this.
8347         * doc/glibc-functions/canonicalize_file_name.texi
8348         (canonicalize_file_name): Likewise.
8349         * doc/posix-functions/realpath.texi (realpath): Likewise.
8350         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
8351
8352         test-canonicalize: consolidate into single C program
8353         * tests/test-canonicalize.sh: Delete; move setup into...
8354         * tests/test-canonicalize.c (main): ...the program, making it
8355         easier to run in debugger.  Add some tests.
8356         * modules/canonicalize-tests (Files): Remove unused file.
8357         (Depends-on): Add progname.
8358         (configure.ac, Makefile.am): Simplify.
8359
8360         test-canonicalize-lgpl: consolidate into single C program
8361         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
8362         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
8363         easier to run in debugger.  Add some tests.
8364         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
8365         (configure.ac, Makefile.am): Simplify.
8366
8367         canonicalize: avoid resolvepath
8368         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
8369         unnecessary checks.
8370         * lib/canonicalize.c (includes): Simplify.
8371         (canonicalize_file_name): Drop resolvepath implementation.
8372         * modules/canonicalize (Depends-on): Drop filenamecat.
8373
8374         canonicalize: don't lose errno
8375         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
8376         over calls to free.
8377
8378         canonicalize: simplify errno handling
8379         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
8380         assignment.
8381
8382         canonicalize, canonicalize-lgpl: update module dependencies
8383         * modules/canonicalize (Depends-on): Add extensions, lstat,
8384         pathmax, stdlib.
8385         (Files): Drop pathmax.h.
8386         (configure.ac): Adjust macro name.
8387         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
8388         lstat, stdlib, sys_stat.
8389         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
8390         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
8391         extensions.
8392         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
8393         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
8394         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
8395         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
8396         declaration, if available.
8397         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
8398         we can rely on the readlink module.
8399         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
8400         (includes): Use <unistd.h> unconditionally.
8401
8402 2009-09-17  Eric Blake  <ebb9@byu.net>
8403
8404         maint: make Include sections of modules consistent
8405         * modules/alloca: Use only header name; no need to list #include.
8406         * modules/alloca-opt: Likewise.
8407         * modules/arpa_inet: Likewise.
8408         * modules/canon-host: Likewise.
8409         * modules/configmake: Likewise.
8410         * modules/dirent: Likewise.
8411         * modules/eealloc: Likewise.
8412         * modules/environ: Likewise.
8413         * modules/fchdir: Likewise.
8414         * modules/fcntl: Likewise.
8415         * modules/fcntl-h: Likewise.
8416         * modules/gethrxtime: Likewise.
8417         * modules/gettime: Likewise.
8418         * modules/ignore-value: Likewise.
8419         * modules/inet_ntop: Likewise.
8420         * modules/inet_pton: Likewise.
8421         * modules/inttypes: Likewise.
8422         * modules/isnand-nolibm: Likewise.
8423         * modules/isnanf-nolibm: Likewise.
8424         * modules/mbchar: Likewise.
8425         * modules/mbfile: Likewise.
8426         * modules/mbiter: Likewise.
8427         * modules/mbuiter: Likewise.
8428         * modules/netdb: Likewise.
8429         * modules/netinet_in: Likewise.
8430         * modules/nproc: Likewise.
8431         * modules/pagealign_alloc: Likewise.
8432         * modules/poll: Likewise.
8433         * modules/printf-frexp: Likewise.
8434         * modules/pthread: Likewise.
8435         * modules/putenv: Likewise.
8436         * modules/random_r: Likewise.
8437         * modules/relocatable-prog: Likewise.
8438         * modules/search: Likewise.
8439         * modules/select: Likewise.
8440         * modules/selinux-h: Likewise.
8441         * modules/settime: Likewise.
8442         * modules/signal: Likewise.
8443         * modules/size_max: Likewise.
8444         * modules/socklen: Likewise.
8445         * modules/ssize_t: Likewise.
8446         * modules/stdarg: Likewise.
8447         * modules/stdbool: Likewise.
8448         * modules/stddef: Likewise.
8449         * modules/stdint: Likewise.
8450         * modules/stdio: Likewise.
8451         * modules/stdlib: Likewise.
8452         * modules/string: Likewise.
8453         * modules/strings: Likewise.
8454         * modules/sys_file: Likewise.
8455         * modules/sys_ioctl: Likewise.
8456         * modules/sys_select: Likewise.
8457         * modules/sys_socket: Likewise.
8458         * modules/sys_stat: Likewise.
8459         * modules/sys_time: Likewise.
8460         * modules/sys_times: Likewise.
8461         * modules/sys_utsname: Likewise.
8462         * modules/sys_wait: Likewise.
8463         * modules/sysexits: Likewise.
8464         * modules/time: Likewise.
8465         * modules/times: Likewise.
8466         * modules/tmpfile: Likewise.
8467         * modules/trim: Likewise.
8468         * modules/unistd: Likewise.
8469         * modules/wchar: Likewise.
8470         * modules/wctype: Likewise.
8471
8472 2009-09-17  Bruno Haible  <bruno@clisp.org>
8473
8474         Make getdate.y compile on QNX and NetBSD 5 / i386.
8475         * m4/getdate.m4 (gl_GETDATE): Conditionally define
8476         TIME_T_FITS_IN_LONG_INT.
8477         * lib/getdate.y (long_time_t): New type.
8478         (relative_time): Change type of 'seconds' field to long_time_t.
8479         (get_date): Update types of local variables. Check against overflow
8480         during conversion from long_time_t to time_t.
8481         Reported by Matt Kraai <kraai@ftbfs.org>
8482         and Hasso Tepper <hasso@netbsd.org>.
8483
8484 2009-09-17  Bruno Haible  <bruno@clisp.org>
8485
8486         * modules/COPYING: Update copyright years.
8487         * modules/README: Likeiwse.
8488         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
8489         Reported by Ian Beckwith <ianb@erislabs.net>.
8490
8491 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8492
8493         * users.txt: Update references for gnuit package.
8494
8495 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8496
8497         * m4/getdelim.m4: Fix typo in copyright line.
8498
8499 2009-09-17  Bruno Haible  <bruno@clisp.org>
8500
8501         * lib/atoll.c: Use the standard header with GPL copyright.
8502         * lib/argz.in.h: Likewise.
8503         * lib/glob.c: Likewise.
8504         * lib/glob-libc.h: Likewise.
8505         * lib/random_r.c: Likewise.
8506         * lib/siglist.h: Likewise.
8507         * lib/strsignal.c: Likewise.
8508         Reported by Ian Beckwith <ianb@erislabs.net>.
8509
8510 2009-09-17  Eric Blake  <ebb9@byu.net>
8511
8512         rmdir: ensure correct dependency order
8513         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
8514
8515 2009-09-17  Bruno Haible  <bruno@clisp.org>
8516
8517         Disable assertion that fails on NetBSD 5 / i386.
8518         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
8519         Reported by Sam Steingold <sds@gnu.org>
8520         and Hasso Tepper <hasso@netbsd.org>.
8521
8522 2009-09-16  Eric Blake  <ebb9@byu.net>
8523
8524         unlinkdir: port to mingw
8525         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
8526         on which no one can unlink a directory.
8527
8528         stdlib: sort witness names
8529         * modules/stdlib (Makefile.am): Sort replacements.
8530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
8531         * lib/stdlib.in.h: Likewise.
8532
8533         parse-duration-tests: avoid link failure
8534         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
8535         LIBINTL.
8536         Reported by Tom G. Christensen.
8537
8538         openat-tests: ensure unlinkat behaves like rmdir
8539         * tests/test-rmdir.c (main): Factor guts...
8540         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
8541         * modules/rmdir-tests (Files): Ship new file.
8542         * modules/openat-tests: New test.
8543         * tests/test-unlinkat.c: Likewise.
8544
8545         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
8546         * modules/rmdir-errno (Status, Notice): Now obsolete.
8547
8548         rmdir: work around cygwin 1.5.x and mingw bugs
8549         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
8550         * lib/rmdir.c (rmdir): Work around it.
8551         * modules/rmdir (Status, Notice): No longer obsolete.
8552         (Files): Add dos.m4.
8553         (Depends-on): Add unistd.
8554         (configure.ac): Set witnesses.
8555         (License): Relax to LGPLv2+.
8556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
8557         * modules/unistd (Makefile.am): Substitute witnesses.
8558         * lib/unistd.in.h (rmdir): Declare replacement.
8559         * doc/posix-functions/rmdir.texi (rmdir): Document this.
8560         * modules/rmdir-tests: New tests.
8561         * tests/test-rmdir.c: Likewise.
8562
8563 2009-09-15  Eric Blake  <ebb9@byu.net>
8564
8565         fchdir: improve use of replacement functions
8566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
8567         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
8568         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
8569         REPLACE_CLOSEDIR.
8570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
8571         * modules/sys_stat (Makefile.am): Substitute correct witness.
8572         * modules/dirent (Makefile.am): Likewise.
8573         * modules/unistd (Makefile.am): Likewise.
8574         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
8575         * lib/unistd.in.h (dup): Likewise.
8576         * lib/sys_stat.in.h (fstat): Likewise.
8577
8578         maint: ignore gnulib-tool temp files
8579         * .gitignore: Ignore files created during gnulib-tool --test.
8580
8581 2009-09-13  Jim Meyering  <meyering@redhat.com>
8582
8583         posixtm: don't reject a time that specify "60" as the number of seconds
8584         * lib/posixtm.c (posixtime): The code to reject invalid dates
8585         would also reject a time specified with the .60 suffix.
8586         But POSIX allows that, in order to accommodate leap seconds.
8587         So don't reject it.
8588         (main): Adjust tests accordingly.
8589         * modules/posixtm (Depends-on): Add stpcpy.
8590
8591 2009-09-11  Jim Meyering  <meyering@redhat.com>
8592
8593         announce-gen: include [$release_type] in emitted Subject:
8594         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
8595         e.g., [stable] in the emitted Subject: line.
8596
8597 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8598
8599         Remove obsolete macros from several modules.
8600         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
8601         obsolete Autoconf macros with their modern counterparts.
8602         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
8603         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
8604         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8605         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
8606         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
8607         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8609         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8610         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8611         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
8612         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8613         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8614         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
8615         * m4/sockets.m4 (gl_SOCKETS): Likewise.
8616         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
8617         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
8618         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
8619         * m4/time_r.m4 (gl_TIME_R): Likewise.
8620         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8621         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
8622         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8623
8624         Fix copyright header in build-aux scripts.
8625         * build-aux/git-version-gen: Fix copyright header to match GPLv3
8626         recommendation.
8627         * build-aux/ncftpput-ftp: Likewise.
8628         * build-aux/update-copyright: Likewise.
8629
8630 2009-09-09  Eric Blake  <ebb9@byu.net>
8631
8632         test-link: allow Linux choice of errno
8633         * tests/test-link.c (main): Relax test for alternate error.
8634
8635         strndup: fix improper m4 caching
8636         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
8637         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
8638         (gl_PREREQ_STRNDUP): Delete.
8639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
8640         * modules/string (Makefile.am): Substitute it.
8641         * lib/string.in.h (strndup): Modernize prototype.
8642
8643         getcwd: port to mingw
8644         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
8645         different from the POSIX assumptions made throughout the getcwd
8646         module; fortunately, the mingw getcwd does not need replacement.
8647         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
8648         * modules/getcwd-tests: New test.
8649         * tests/test-getcwd.c: Likewise.
8650
8651         link: fix platform bugs
8652         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
8653         * lib/link.c (link): Work around them.  Fix related mingw bug.
8654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
8655         * modules/unistd (Makefile.am): Substitute it.
8656         * lib/unistd.in.h (link): Declare replacement.
8657         * doc/posix-functions/link.texi (link): Document this.
8658         * modules/link (Depends-on): Add strdup-posix, sys_stat.
8659
8660         test-link: consolidate into single C program, test more cases
8661         * tests/test-link.sh: Delete.
8662         * tests/test-link.c: Test more error conditions.  Exposes bugs on
8663         at least Cygwin and Solaris.
8664         * modules/link-tests (Files): Remove unused file.
8665         (Depends-on): Add errno, sys_stat.
8666         (Makefile.am): Simplify.
8667
8668 2009-09-08  Bruno Haible  <bruno@clisp.org>
8669
8670         Work around towlower, towupper bug on mingw.
8671         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
8672         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
8673         * doc/posix-functions/towlower.texi: Mention the mingw bug.
8674         * doc/posix-functions/towupper.texi: Likewise.
8675         Reported by Eric Blake.
8676
8677 2009-09-08  Jim Meyering  <meyering@redhat.com>
8678
8679         build: don't try to run autoheader if we don't use it
8680         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
8681         is not used in configure.ac.
8682
8683 2009-09-08  Eric Blake  <ebb9@byu.net>
8684
8685         euidaccess: fix compilation error
8686         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
8687
8688         rawmemchr: relax license
8689         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
8690         okay.
8691         Reported by Jim Meyering.
8692
8693         mkfifoat: new module
8694         * modules/mkfifoat: New file.
8695         * lib/mkfifoat.c: Likewise.
8696         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
8697         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8698         * modules/sys_stat (Makefile.am): Use them.
8699         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
8700         * MODULES.html.sh (File system functions): Mention module.
8701         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8702         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8703         * modules/mkfifoat-tests: New test.
8704         * tests/test-mkfifoat.c: Likewise.
8705
8706         strchrnul: relax license
8707         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
8708         okay.
8709         Reported by Jim Meyering.
8710
8711 2009-09-08  Eric Blake  <ebb9@byu.net>
8712
8713         fstatat: fix compilation on Solaris
8714         * lib/fstatat.c (includes): Add fcntl.h.
8715         Reported by Pádraig Brady.
8716
8717 2009-09-07  Eric Blake  <ebb9@byu.net>
8718
8719         rename: modernize replacement
8720         * modules/rename (Depends-on): Add stdio.
8721         (configure.ac): Declare witness.
8722         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
8723         stdio take care of replacement.
8724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8725         * modules/stdio (Makefile.am): Substitute them.
8726         * lib/stdio.in.h (rename): Declare replacement.
8727         * lib/rename.c (includes): Allow cross-compilation to non-windows
8728         machines.
8729         * doc/posix-functions/rename.texi (rename): Improve
8730         documentation.
8731
8732         stdio: sort witness names
8733         * modules/stdio (Makefile.am): Sort replacements.
8734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8735         * lib/stdio.in.h: Likewise.
8736
8737         getcwd: minor cleanups
8738         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
8739         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
8740
8741         openat: provide more convenience names
8742         * modules/faccessat (configure.ac): Add C witness.
8743         * lib/unistd.in.h (readlinkat): Fix typo.
8744         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
8745         convenience wrappers.
8746         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
8747         wrappers in syntax checks.
8748
8749 2009-09-06  Eric Blake  <ebb9@byu.net>
8750
8751         doc: fix comments in recent patches
8752         * lib/faccessat.c: Mention correct function.
8753         * lib/fchmodat.c: Likewise.
8754         * lib/fchownat.c: Likewise.
8755         * lib/symlinkat.c: Likewise.
8756         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
8757         constants.
8758
8759         faccessat, symlinkat: continue cleanup of previous patch
8760         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
8761         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8762         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
8763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
8764         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
8765         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
8766         set.
8767
8768 2009-09-06  Bruno Haible  <bruno@clisp.org>
8769
8770         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
8771         (fstatat): Declare if GNULIB_FSTATAT is set.
8772         (mkdirat): Declare if GNULIB_MKDIRAT is set.
8773         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
8774         (unlinkat): Declare if GNULIB_UNLINKAT is set.
8775         * modules/fcntl-h (Files): Remove m4/openat.m4.
8776         * modules/sys_stat (Files): Remove m4/openat.m4.
8777         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
8778         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
8779         * modules/unistd (Files): Remove m4/openat.m4.
8780         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
8781         GNULIB_OPENAT.
8782         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
8783         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
8784         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
8785         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
8786         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
8787         gl_OPENAT_DEFAULTS.
8788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
8789         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
8790         Don't require gl_OPENAT_DEFAULTS.
8791         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
8792         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
8793         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
8794         (gl_OPENAT_DEFAULTS): Remove macro.
8795
8796 2009-09-06  Bruno Haible  <bruno@clisp.org>
8797
8798         * modules/openat (configure.ac): Remove unneeded witness.
8799
8800 2009-09-06  Bruno Haible  <bruno@clisp.org>
8801
8802         Set errno to ENOSYS when a function is entirely unsupported.
8803         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
8804         EOPNOTSUPP.
8805         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
8806         * modules/chown (Depends-on): Remove errno.
8807
8808 2009-09-06  Bruno Haible  <bruno@clisp.org>
8809
8810         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
8811
8812 2009-09-06  Bruno Haible  <bruno@clisp.org>
8813
8814         * lib/sys_stat.in.h: Fix preprocessor command indentation.
8815
8816 2009-09-06  Ben Pfaff  <blp@gnu.org>
8817             Bruno Haible  <bruno@clisp.org>
8818
8819         Work around a glibc bug in strtok_r.
8820         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
8821         Undefine if UNDEFINE_STRTOK_R is set.
8822         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
8823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8824         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
8825         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
8826         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
8827         UNDEFINE_STRTOK_R.
8828         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
8829
8830 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8831
8832         exclude: minor fix
8833         * lib/exclude.c: Include wctype.h
8834
8835 2009-09-06  Akim Demaille  <demaille@gostai.com>
8836
8837         bootstrap: improve error message
8838         * build-aux/bootstrap (find_tool): Upon failure, report the list
8839         of candidates.
8840         Honor the initial value of the envvar.
8841
8842 2009-09-05  Eric Blake  <ebb9@byu.net>
8843
8844         symlinkat: new module
8845         * modules/symlinkat: New file.
8846         * lib/symlinkat.c: Likewise.
8847         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
8848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8849         * modules/unistd (Makefile.am): Use them.
8850         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
8851         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
8852         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
8853         * MODULES.html.sh (File system functions): Mention module.
8854         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8855         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8856         * modules/symlinkat-tests: New test.
8857         * tests/test-symlinkat.c: Likewise.
8858
8859         test-openat-safer: add more checks
8860         * tests/test-openat-safer.c (main): Check more code paths.
8861
8862 2009-09-05  Jim Meyering  <meyering@redhat.com>
8863
8864         syntax-check: detect unnecessary inclusion of openat.h
8865         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
8866
8867 2009-09-05  Bruno Haible  <bruno@clisp.org>
8868
8869         Support towlower, towupper.
8870         * doc/posix-functions/towlower.texi: Mention module wctype.
8871         * doc/posix-functions/towupper.texi: Likewise.
8872         * lib/wctype.in.h (towlower, towupper): New functions.
8873         * tests/test-wctype.c: Include stdio.h, stdlib.h.
8874         (ASSERT): New macro.
8875         (e): New variable.
8876         (main): Test also towlower, towupper. Test WEOF argument.
8877         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
8878
8879 2009-09-05  Bruno Haible  <bruno@clisp.org>
8880
8881         Fix conversion behaviour when the input is invalid.
8882         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
8883         mark occurring in first pass of indirect conversion.
8884         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
8885         input.
8886         Found by clang's static analyzer.
8887
8888 2009-09-05  Bruno Haible  <bruno@clisp.org>
8889
8890         * tests/test-striconveh.c (main): Test indirect conversion on platforms
8891         where direct conversion is possible.
8892
8893 2009-09-04  Eric Blake  <ebb9@byu.net>
8894
8895         openat: fail with ENOENT on empty name
8896         * lib/openat-proc.c (openat_proc_name): Special-case the empty
8897         buffer.
8898
8899         link-follow: fix logic bug in prior patch
8900         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
8901         reversed sense of yes and no in prior patch.  Avoid confusing
8902         compilation failure with desired semantics.
8903
8904         link-follow: accomodate mingw and cross-compilation
8905         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
8906         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
8907         cross-compilation results to -1, to make linkat easier to
8908         implement when cross-compiling.  Trivially support mingw.
8909         * modules/link-follow (configure.ac): Call new name.
8910         * NEWS: Mention this.
8911
8912 2009-09-03  Eric Blake  <ebb9@byu.net>
8913
8914         faccessat: compile replacement
8915         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
8916         needed.
8917
8918         fts: fix compilation error
8919         * lib/fts.c (includes): Re-add "openat.h", for
8920         openat_needs_fchdir.
8921
8922         faccessat: new module
8923         * modules/faccessat: New file.
8924         * lib/faccessat.c: Likewise.
8925         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8927         * modules/unistd (Makefile.am): Use it.
8928         * lib/unistd.in.h (faccessat): Declare it.
8929         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
8930         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
8931         * MODULES.html.sh (File system functions): Mention it.
8932         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
8933         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
8934
8935         euidaccess: prefer POSIX over non-standard implementation
8936         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
8937         * lib/euidaccess.c (euidaccess): Use it if available.
8938
8939         openat: make template easier to use
8940         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
8941         AT_FUNC_F2 to be undefined.
8942         (VALIDATE_FLAG): New macro; use it to reject bad flags.
8943         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
8944         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
8945         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
8946         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
8947         Likewise.
8948         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
8949         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
8950         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
8951         Likewise.
8952
8953         openat: declare in POSIX headers
8954         * NEWS: Mention this.
8955         * modules/openat (configure.ac): Declare witnesses.
8956         (Depends-on): Add fcntl-h, sys_stat, unistd.
8957         (Include): Mention correct headers.
8958         * modules/fcntl-h (Depends-on): Add link-warning.
8959         (Files): Add openat.m4.
8960         (Makefile.am): Substitute witnesses.
8961         * modules/sys_stat (Files, Makefile.am): Likewise.
8962         * modules/unistd (Files, Makefile.am): Likewise.
8963         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
8964         (gl_OPENAT_DEFAULTS): New macro.
8965         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
8966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
8967         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
8968         (SYS_STAT_H): Remove unused variable.
8969         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
8970         * lib/fcntl--.h (includes): Remove unneeded header.
8971         * lib/openat-safer.c (includes): Likewise.
8972         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
8973         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
8974         appropriate headers.
8975         (__OPENAT_PREFIX): Delete.
8976         * lib/fcntl.in.h (openat): Provide declaration.
8977         (AT_FDCWD): Fix Solaris bug.
8978         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
8979         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
8980         * lib/fchmodat.c (includes):  Adjust to find declaration.
8981         * lib/fchownat.c (includes): Likewise.
8982         * lib/mkdirat.c (includes): Likewise.
8983         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
8984         still visible.
8985
8986 2009-09-02  Eric Blake  <ebb9@byu.net>
8987
8988         errno: use consistently
8989         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
8990         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
8991         * lib/canonicalize.c (ELOOP): Likewise.
8992         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
8993         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
8994         * lib/lchown.c (EOPNOTSUPP): Likewise.
8995         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
8996         * lib/savewd.c (ESTALE): Likewise.
8997         * lib/settime.c (ENOSYS): Likewise.
8998         * lib/utimens.c (ENOSYS): Likewise.
8999         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9000         * lib/chdir-safer.c (ELOOP): Likewise.
9001         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9002         * modules/c-stack (Depends-on): Add errno.
9003         * modules/canonicalize (Depends-on): Likewise.
9004         * modules/chdir-safer (Depends-on): Likewise.
9005         * modules/fdopendir (Depends-on): Likewise.
9006         * modules/inet_ntop (Depends-on): Likewise.
9007         * modules/inet_pton (Depends-on): Likewise.
9008         * modules/lchown (Depends-on): Likewise.
9009         * modules/openat (Depends-on): Likewise.
9010         * modules/savewd (Depends-on): Likewise.
9011         * modules/settime (Depends-on): Likewise.
9012         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9013
9014         fts: avoid leaking fds
9015         * modules/fts (Depends-on): Add cloexec.
9016         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9017         flag.
9018
9019         fts: make directory fds more robust
9020         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9021         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9022
9023         backupfile, chdir-long, fts, savedir: make safer
9024         * lib/backupfile.c (includes): Use "dirent--.h", since
9025         numbered_backup can write to stderr during readdir.
9026         * lib/savedir.c (includes): Likewise.
9027         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9028         emulation can write to stderr on failure.
9029         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9030         * lib/getcwd.c: Document why opendir_safer is unused.
9031         * lib/glob.c: Likewise.
9032         * lib/scandir.c: Likewise.
9033         * lib/openat-proc.c: Likewise, for open_safer.
9034         * modules/backupfile (Depends-on): Add dirent-safer.
9035         * modules/savedir (Depends-on): Likewise.
9036         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9037         * modules/chdir-long (Depends-on): Add openat-safer.
9038
9039         openat-safer: new module
9040         * modules/openat-safer: New file.
9041         * lib/openat-safer.c: Likewise.
9042         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9043         * lib/fcntl-safer.h (openat_safer): Declare.
9044         * lib/fcntl--.h (openat): Override.
9045         * MODULES.html.sh (File descriptor based I/O): Mention it.
9046         * lib/openat.h: Add double-inclusion guards.
9047         * lib/openat.c (includes): Only include "fcntl-safer.h", not
9048         "fcntl--.h", so we can implement openat.
9049         * modules/openat-safer-tests: New test.
9050         * tests/test-openat-safer.c: New file.
9051
9052         dirent-safer: new module
9053         * modules/dirent-safer: New file.
9054         * lib/dirent--.h: Likewise.
9055         * lib/dirent-safer.h: Likewise.
9056         * lib/opendir-safer.c: Likewise.
9057         * m4/dirent-safer.m4: Likewise.
9058         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9059         * modules/dirent-safer-tests: New test.
9060         * tests/test-dirent-safer.c: New file.
9061         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9062
9063         fdopendir: optimize on mingw
9064         * lib/unistd.in.h (_gl_directory_name): New prototype.
9065         * lib/fchdir.c (_gl_directory_name): Implement it.
9066         (fchdir): Use it to simplify implementation.
9067         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9068         fchdir, when available, to avoid calling [f]chdir().
9069
9070         fdopendir: split into its own module
9071         * lib/openat.c (fdopendir): Move...
9072         * lib/fdopendir.c: ...into new file.
9073         * modules/fdopendir: New module.
9074         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9075         * modules/openat (Depends-on): Add fdopendir.
9076         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9077         fdopendir here.
9078         * modules/savedir (Depends-on): Only need fdopendir, not full
9079         openat.
9080         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9081         * lib/openat.h (fdopendir): Drop prototype.
9082         * lib/dirent.in.h (fdopendir): Provide prototype.
9083         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9084         * modules/dirent (Makefile.am): Substitute them.
9085         * MODULES.html.sh (File system functions): Mention it.
9086         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9087         * modules/fdopendir-tests: New file.
9088         * tests/test-fdopendir.c: Likewise.
9089
9090         fchdir: use more consistent macro convention
9091         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9092         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9093         REPLACE_FCHDIR, rather than relying on config.h macros.
9094         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9095         inside a single make-time REPLACE_FCHDIR block, rather than using
9096         the config.h FCHDIR_REPLACEMENT.
9097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9098         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
9099         Manage fstat replacement.
9100         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9101         REPLACE_FCHDIR.
9102         * modules/sys_stat (Files): Add m4/unistd_h.m4.
9103         (Makefile.am): Substitute REPLACE_FCHDIR.
9104         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9105         FCHDIR_REPLACEMENT.
9106         * lib/dup-safer.c (dup_safer): Likewise.
9107         * lib/dup2.c (rpl_dup2): Likewise.
9108         * lib/dup3.c (rpl_dup3): Likewise.
9109         * lib/open.c (rpl_open): Likewise.
9110
9111         fchdir: simplify error handling, and support dup3
9112         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
9113         stdbool, malloc-posix, realloc-posix.
9114         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9115         (ensure_dirs_slot): Return false on allocation failure.
9116         (rpl_dup2): Delete.
9117         (_gl_register_dup): New function.
9118         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9119         (_gl_register_fd): Close fd on allocation failure.
9120         * lib/fcntl.in.h (_gl_register_fd): Update signature.
9121         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9122         prototype.
9123         (rpl_dup2_fchdir): Delete prototype.
9124         * lib/open.c (open): Update caller.
9125         * lib/dup2.c (dup2): Track fchdir metadata.
9126         * lib/dup3.c (dup3): Likewise.
9127         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9129
9130 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9131
9132         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9133         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9134         don't pass arguments to AC_OUTPUT.
9135
9136 2009-09-02  Bruno Haible  <bruno@clisp.org>
9137
9138         * modules/mkdtemp (License): Relicense under LGPLv2+.
9139         Reported by Paolo Bonzini.
9140
9141 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9142
9143         Replace uses of obsolete autoconf macros in Jim's modules.
9144         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9145         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9146         can evoke a warning from autoconf when run with -Wobsolete
9147         enabled.  They were declared obsolete for good reasons (see
9148         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9149         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9150         should not continue using the deprecated macros.
9151         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9152         obsolete Autoconf macros with modern counterparts.
9153         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9154         * m4/dos.m4 (gl_AC_DOS): Likewise.
9155         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9156         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9157         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9158         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9159         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9160         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9161         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9162         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9163         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9164         Likewise.
9165         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9166         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9167         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9168         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9169         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9170         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9171
9172 2009-09-01  Eric Blake  <ebb9@byu.net>
9173
9174         fchdir: fix off-by-one bug in previous patch
9175         * lib/fchdir.c (rpl_fstat): Use correct bounds.
9176         (_gl_unregister_fd): Delete useless if.
9177
9178 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
9179
9180         maint.mk: sort the list of syntax-check rules
9181         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9182         easier to get a sense of progress when the rules are run sequentially
9183         and take a long time.
9184
9185 2009-09-01  Simon Josefsson  <simon@josefsson.org>
9186
9187         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9188         * modules/netinet_in: Likewise.
9189         * modules/sys_file: Likewise.
9190         * modules/sys_ioctl: Likewise.
9191         * modules/sys_select: Likewise.
9192         * modules/sys_socket: Likewise.
9193         * modules/sys_stat: Likewise.
9194         * modules/sys_time: Likewise.
9195         * modules/sys_times: Likewise.
9196         * modules/sys_utsname: Likewise.
9197         * modules/sys_wait: Likewise.
9198
9199 2009-09-01  Jim Meyering  <meyering@redhat.com>
9200
9201         fts: help ensure that return values are not ignored
9202         * lib/fts_.h (__GNUC_PREREQ): Define.
9203         (__attribute_warn_unused_result__): Define.
9204         (fts_children, fts_close, fts_open, fts_read): Declare with
9205         __attribute_warn_unused_result__.
9206
9207         fts: fts_close now fails also when closing a dir file descriptor fails
9208         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9209         and propagate to caller, along with errno.
9210
9211         announce-gen: correct formatting in --help output
9212         * build-aux/announce-gen (usage): Move the one-line description in
9213         --help output "up", to where it belongs, just after Usage:.
9214
9215 2009-08-31  Eric Blake  <ebb9@byu.net>
9216
9217         fchdir: port to mingw
9218         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9219         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9220         opened, then use a substitute.
9221         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9222         replacement.
9223         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9224         (_gl_register_fd): No need to check stat if open already filters
9225         all directories.
9226         (fchdir): Fix error condition to match POSIX.
9227         * modules/fchdir (Depends-on): Add sys_stat.
9228         * doc/posix-functions/open.texi (open): Document the limitation.
9229         * modules/fchdir-tests: New file.
9230         * tests/test-fchdir.c: Likewise.
9231
9232         canonicalize: allow cross-testing from cygwin to mingw
9233         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9234         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9235         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9236         Likewise.
9237         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9238         target does not support symlinks.
9239         * tests/test-canonicalize-lgpl.sh: Likewise.
9240
9241         chown: avoid compilation warning on mingw
9242         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9243         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9244         mingw.
9245         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9246         * modules/chown (Depends-on): Add errno.
9247
9248 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9249
9250         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9251         command.
9252
9253 2009-08-31  Jim Meyering  <meyering@redhat.com>
9254
9255         canonicalize: remove useless initialization
9256         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9257         initialization of local, "end".
9258
9259 2009-08-30  Bruno Haible  <bruno@clisp.org>
9260
9261         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9262         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9263         ENOSYS.
9264
9265 2009-08-30  Bruno Haible  <bruno@clisp.org>
9266
9267         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9268         /usr/xpg4/bin/tr when it exists.
9269         * tests/test-pipe-filter-gi1.sh: Likewise.
9270
9271 2009-08-30  Bruno Haible  <bruno@clisp.org>
9272
9273         Work around deficient /usr/bin/id program on Solaris.
9274         * tests/test-file-has-acl.sh (ID): New variable.
9275         * tests/test-set-mode-acl.sh (ID): Likewise.
9276         * tests/test-copy-acl.sh (ID): Likewise.
9277         * tests/test-copy-file.sh (ID): Likewise.
9278
9279 2009-08-30  Bruno Haible  <bruno@clisp.org>
9280
9281         New module 'xstriconveh'.
9282         * lib/xstriconveh.h: New file.
9283         * lib/xstriconveh.c: New file.
9284         * modules/xstriconveh: New file.
9285
9286 2009-08-30  Bruno Haible  <bruno@clisp.org>
9287
9288         Make it easier to use mem_cd_iconveh.
9289         * lib/striconveh.h (iconveh_t): New type.
9290         (iconveh_open, iconveh_close): New declarations.
9291         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9292         with a single 'const iconveh_t *' argument.
9293         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
9294         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9295         with a single 'const iconveh_t *' argument.
9296         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
9297         * tests/test-striconveh.c (main): Update.
9298         * NEWS: Mention the change.
9299
9300 2009-08-30  Bruno Haible  <bruno@clisp.org>
9301
9302         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
9303         problem.
9304
9305 2009-08-30  Bruno Haible  <bruno@clisp.org>
9306
9307         Work around iconv_open problem on Solaris.
9308         * lib/iconv_open-solaris.gperf: New file.
9309         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
9310         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
9311         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
9312         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
9313         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
9314         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
9315
9316 2009-08-29  Jim Meyering  <meyering@redhat.com>
9317
9318         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
9319         * top/maint.mk (cvs-check): Remove target; it was just an alias
9320         to the better-named vc-diff-check.
9321         (maintainer-distcheck): Remove rule.  It was used only from
9322         the (alpha/beta/major) target, and all of its commands but one
9323         were coreutils-specific.
9324         (vc-dist): Remove rule.
9325         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
9326         Run vc-diff-check, not vc-dist.
9327         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
9328
9329 2009-08-27  Bruno Haible  <bruno@clisp.org>
9330
9331         * tests/test-bitrotate.c (main): Remove test that uses a shift count
9332         of 0.
9333
9334 2009-08-27  Bruno Haible  <bruno@clisp.org>
9335
9336         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
9337         compilers.
9338         * doc/func.texi: Document the SunPRO C bug.
9339
9340 2009-08-27  Bruno Haible  <bruno@clisp.org>
9341
9342         Fix link error on Solaris.
9343         * tests/test-parse-duration.c (xstrdup): Remove function.
9344
9345 2009-08-26  Pádraig Brady  <P@draigbrady.com>
9346
9347         ignore-value: handle pointer types, too
9348         * lib/ignore-value.h (__attribute__): Remove definition.
9349         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
9350         of a more concise and more-often effective "(void) i" statement.
9351         (ignore_ptr): New function to suppress warnings from functions that
9352         return pointers, and to make it explicit that one function doesn't
9353         handle all cases.
9354
9355 2009-08-25  Bruno Haible  <bruno@clisp.org>
9356
9357         dup2: work around a Linux bug.
9358         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
9359         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
9360         * doc/posix-functions/dup2.texi: Mention the Linux bug.
9361         Reported by Simon Josefsson.
9362
9363 2009-08-25  Jim Meyering  <meyering@redhat.com>
9364
9365         libguestfs uses gnulib
9366         * users.txt: Add libguestfs.
9367
9368 2009-08-24  Eric Blake  <ebb9@byu.net>
9369
9370         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
9371         * lib/pipe2.c (includes): Add binary-io.h.
9372         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
9373
9374 2009-08-24  Bruno Haible  <bruno@clisp.org>
9375
9376         Tolerate declared but missing accept4 syscall.
9377         * lib/accept4.c (accept4): Invoke original accept4 function first, if
9378         available.
9379         * lib/sys_socket.in.h (accept4): If the function is already present,
9380         override it.
9381         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
9382         * modules/accept4 (Makefile.am): Compile accept4.c always.
9383         Reported by Paolo Bonzini and Eric Blake.
9384
9385 2009-08-23  Bruno Haible  <bruno@clisp.org>
9386
9387         New module 'accept4'.
9388         * lib/sys_socket.in.h (accept4): New declaration.
9389         * lib/accept4.c: New file.
9390         * m4/accept4.m4: New file.
9391         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9392         GNULIB_ACCEPT4, HAVE_ACCEPT4.
9393         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
9394         HAVE_ACCEPT4.
9395         * modules/accept4: New file.
9396         * doc/glibc-functions/accept4.texi: Mention the new module.
9397
9398 2009-08-24  Jim Meyering  <meyering@redhat.com>
9399
9400         progname: also set global program_invocation_name, when possible
9401         Before this change, a libtool-enabled program that calls glibc's
9402         error function would report the program name as
9403         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
9404         * modules/progname (configure.ac): Check for a declaration of
9405         program_invocation_name.
9406         * lib/progname.c:  Include <errno.h>.
9407         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
9408         Set program_invocation_name.
9409
9410 2009-08-23  Bruno Haible  <bruno@clisp.org>
9411
9412         * lib/dup3.c: Include <string.h>.
9413
9414 2009-08-23  Bruno Haible  <bruno@clisp.org>
9415
9416         * lib/dup3.c (dup3): Test only once whether the system actually exists.
9417         * lib/pipe2.c (pipe2): Likewise.
9418         Suggested by Eric Blake.
9419
9420 2009-08-23  Bruno Haible  <bruno@clisp.org>
9421
9422         Tolerate declared but missing dup3 syscall.
9423         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
9424         * lib/unistd.in.h (dup3): If the function is already present,
9425         override it.
9426         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
9427         * modules/dup3 (Makefile.am): Compile dup3.c always.
9428         Reported by Paolo Bonzini.
9429
9430 2009-08-23  Bruno Haible  <bruno@clisp.org>
9431
9432         Tolerate declared but missing pipe2 syscall.
9433         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
9434         available.
9435         * lib/unistd.in.h (pipe2): If the function is already present,
9436         override it.
9437         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
9438         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
9439         Reported by Paolo Bonzini.
9440
9441 2009-08-23  Bruno Haible  <bruno@clisp.org>
9442
9443         * lib/pipe2.c (pipe2): Move #ifs inside function.
9444
9445 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9446
9447         quotearg: document limitations of quote_these_too
9448         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
9449         those limitations are created.
9450         * lib/quotearg.h (set_char_quoting): Document that digits and
9451         letters that are special after backslash are not permitted.
9452         (quotearg_char): Cross-reference set_char_quoting documentation.
9453
9454 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
9455
9456         quotearg: implement custom_quoting_style
9457         * lib/quotearg.c: (struct quoting_options): Add left_quote and
9458         right_quote fields.
9459         (set_custom_quoting): New public function.
9460         (quotearg_buffer_restyled): Add left_quote and right_quote
9461         arguments, handle them very much like locale quoting, and update
9462         all uses.
9463         (quotearg_n_custom): New public function.
9464         (quotearg_n_custom_mem): New public function.
9465         (quotearg_custom): New public function.
9466         (quotearg_custom_mem): New public function.
9467         * lib/quotearg.h: Prototype and document new public functions.
9468         (enum quoting_style): For escape_quoting_style and
9469         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
9470         ignored even though they're otherwise like c_quoting_style.
9471         Add custom_quoting_style member and document with comparison to
9472         clocale_quoting_style.
9473         * tests/test-quotearg.c (custom_quotes): New array.
9474         (custom_results): New array.
9475         (main): Extend to test custom quoting.
9476
9477 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9478
9479         quotearg: fix right quote escaping when it's in quote_these_too
9480         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
9481         quote, be sure to prepend only one backslash.
9482         * tests/test-quotearg.c (use_quote_double_quotes): New function.
9483         (main): Test it.
9484
9485 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9486
9487         quotearg-tests: test escaping of embedded locale quotes
9488         * tests/test-quotearg.c (struct result_strings): Add member for
9489         new input.
9490         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
9491         (inputs): Add new input.
9492         (results_g): Add expected results.
9493         (flag_results): Likewise.
9494         (locale_results): Likewise.
9495         (compare_strings): Check those.
9496
9497 2009-08-23  Bruno Haible  <bruno@clisp.org>
9498
9499         Tests for module 'dup3'.
9500         * modules/dup3-tests: New file.
9501         * tests/test-dup3.c: New file.
9502
9503         New module 'dup3'.
9504         * lib/unistd.in.h (dup3): New declaration.
9505         * lib/dup3.c: New file.
9506         * m4/dup3.m4: New file.
9507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
9508         HAVE_DUP3.
9509         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
9510         * modules/dup3: New file.
9511         * doc/glibc-functions/dup3.texi: Mention the new module.
9512
9513 2009-08-23  Bruno Haible  <bruno@clisp.org>
9514
9515         Tweak the dup2 test.
9516         * tests/test-dup2.c (main): Create the test file empty. Verify that an
9517         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
9518         the test file is still empty. Fix argument order of lseek.
9519
9520 2009-08-23  Bruno Haible  <bruno@clisp.org>
9521
9522         Avoid test link errors when the modules getopt-gnu, gettext are used.
9523         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
9524         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9525
9526 2009-08-23  Bruno Haible  <bruno@clisp.org>
9527
9528         Fix getdtablesize() on mingw.
9529         * lib/getdtablesize.c (getdtablesize): Implement differently.
9530         * lib/unistd.in.h (getdtablesize): Improve comment.
9531
9532 2009-08-23  Bruno Haible  <bruno@clisp.org>
9533
9534         New module 'mkostemp'.
9535         Based on Ulrich Drepper's 2007-08-10 change in glibc.
9536         * lib/stdlib.in.h (mksotemp): New declaration.
9537         * lib/mkostemp.c: New file, from glibc with modifications.
9538         * lib/tempname.h (GT_FILE): Remove outdated comment.
9539         (gen_tempname): Add flags argument.
9540         * lib/tempname.c (__GT_BIGFILE): Remove macro.
9541         (__GT_FILE): Map to 1.
9542         (small_open, large_open): Remove macros.
9543         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
9544         * lib/mkstemp.c (mkstemp): Update.
9545         * lib/mkdtemp.c (mkdtemp): Likewise.
9546         * m4/mkostemp.m4: New file.
9547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
9548         HAVE_MKOSTEMP.
9549         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
9550         HAVE_MKOSTEMP.
9551         * modules/mkostemp: New file, based on modules/mkstemp.
9552         * doc/glibc-functions/mkostemp.texi: Mention the new module.
9553         * NEWS: Mention the change.
9554
9555 2009-08-23  Bruno Haible  <bruno@clisp.org>
9556
9557         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
9558         Reported by Eric Blake.
9559
9560 2009-08-23  Bruno Haible  <bruno@clisp.org>
9561
9562         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
9563         Reported by Eric Blake.
9564
9565 2009-08-23  Bruno Haible  <bruno@clisp.org>
9566
9567         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
9568         * modules/pipe2 (Depends-on): Likewise.
9569
9570 2009-08-23  Eric Blake  <ebb9@byu.net>
9571
9572         fcntl-h: add O_TTY_INIT support
9573         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
9574         * tests/test-fcntl-h.c (o): Test it.
9575         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9576
9577         fcntl-h: rename from fcntl, in preparation for fcntl(2)
9578         * modules/fcntl: Move <fcntl.h> header replacement...
9579         * modules/fcntl-h: ...to new name, so as not to collide with
9580         like-named function.
9581         * tests/test-fcntl.c: Rename...
9582         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
9583         * modules/fcntl-tests: Rename...
9584         * modules/fcntl-h-tests: ...to this.  Update test file name.
9585         * modules/chdir-long (Depends-on): Update clients.
9586         * modules/chdir-safer (Depends-on): Likewise.
9587         * modules/fcntl-safer (Depends-on): Likewise.
9588         * modules/fts (Depends-on): Likewise.
9589         * modules/mkancesdirs (Depends-on): Likewise.
9590         * modules/mkdir-p (Depends-on): Likewise.
9591         * modules/open (Depends-on): Likewise.
9592         * modules/savewd (Depends-on): Likewise.
9593         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
9594         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9595
9596 2009-08-22  Bruno Haible  <bruno@clisp.org>
9597
9598         * modules/binary-io (License): Relicense under LGPL.
9599         * modules/pipe2 (License): Likewise.
9600
9601 2009-08-22  Bruno Haible  <bruno@clisp.org>
9602
9603         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
9604         return value.
9605         * lib/pipe-filter-gi.c (filter_init): Likewise.
9606         Reported by Eric Blake.
9607
9608 2009-08-22  Bruno Haible  <bruno@clisp.org>
9609
9610         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
9611         * modules/pipe (Depends-on): Add pipe2.
9612
9613 2009-08-22  Bruno Haible  <bruno@clisp.org>
9614
9615         Tests for module 'pipe2'.
9616         * modules/pipe2-tests: New file.
9617         * tests/test-pipe2.c: New file.
9618
9619         New module 'pipe2'.
9620         * lib/unistd.in.h (pipe2): New declaration.
9621         * lib/pipe2.c: New file.
9622         * m4/pipe2.m4: New file.
9623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
9624         HAVE_PIPE2.
9625         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
9626         * modules/pipe2: New file.
9627         * doc/glibc-functions/pipe2.texi: Mention the new module.
9628
9629 2009-08-22  Bruno Haible  <bruno@clisp.org>
9630
9631         Reference some new glibc functions.
9632         * doc/glibc-functions/accept4.texi: New file.
9633         * doc/glibc-functions/dup3.texi: New file.
9634         * doc/glibc-functions/mkostemp.texi: New file.
9635         * doc/glibc-functions/pipe2.texi: New file.
9636         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
9637         (Glibc sys/socket.h): Refer to accept4.
9638         (Glibc unistd.h): Refer to dup3, pipe2.
9639         Reported by Eric Blake.
9640
9641 2009-08-22  Jim Meyering  <meyering@redhat.com>
9642             Bruno Haible  <bruno@clisp.org>
9643
9644         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
9645         This makes it so packages using automake-1.11's silent-rules option
9646         can print e.g., a single "GEN    configmake.h" line, rather than
9647         the 30+ statements that perform the job.  If you want to see the
9648         actual commands, you can still run "make V=1".
9649         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
9650         so that make output is abbreviated when those variables are defined
9651         appropriately.
9652         * modules/argz: Likewise.
9653         * modules/arpa_inet: Likewise.
9654         * modules/byteswap: Likewise.
9655         * modules/configmake: Likewise.
9656         * modules/dirent: Likewise.
9657         * modules/errno: Likewise.
9658         * modules/fcntl: Likewise.
9659         * modules/float: Likewise.
9660         * modules/fnmatch: Likewise.
9661         * modules/getopt-posix: Likewise.
9662         * modules/glob: Likewise.
9663         * modules/iconv_open: Likewise.
9664         * modules/inttypes: Likewise.
9665         * modules/localcharset: Likewise.
9666         * modules/locale: Likewise.
9667         * modules/math: Likewise.
9668         * modules/netdb: Likewise.
9669         * modules/netinet_in: Likewise.
9670         * modules/poll: Likewise.
9671         * modules/posix_spawnp-tests: Likewise.
9672         * modules/sched: Likewise.
9673         * modules/search: Likewise.
9674         * modules/selinux-h: Likewise.
9675         * modules/signal: Likewise.
9676         * modules/spawn: Likewise.
9677         * modules/stdarg: Likewise.
9678         * modules/stdbool: Likewise.
9679         * modules/stddef: Likewise.
9680         * modules/stdint: Likewise.
9681         * modules/stdio: Likewise.
9682         * modules/stdlib: Likewise.
9683         * modules/string: Likewise.
9684         * modules/strings: Likewise.
9685         * modules/sys_file: Likewise.
9686         * modules/sys_ioctl: Likewise.
9687         * modules/sys_select: Likewise.
9688         * modules/sys_socket: Likewise.
9689         * modules/sys_stat: Likewise.
9690         * modules/sys_time: Likewise.
9691         * modules/sys_times: Likewise.
9692         * modules/sys_utsname: Likewise.
9693         * modules/sys_wait: Likewise.
9694         * modules/sysexits: Likewise.
9695         * modules/time: Likewise.
9696         * modules/unistd: Likewise.
9697         * modules/wchar: Likewise.
9698         * modules/wctype: Likewise.
9699
9700 2009-08-22  Jim Meyering  <meyering@redhat.com>
9701
9702         announce-gen: detect write failure
9703         * build-aux/announce-gen: Add Coda at end.
9704         Remove equivalent-but-more-verbose block at top.
9705
9706 2009-08-19  Akim Demaille  <demaille@gostai.com>
9707
9708         bootstrap: --help to stdout.
9709         * bootstrap (usage): Don't send --help to stderr.
9710         Use a here doc instead of a long string.
9711
9712 2009-08-21  Eric Blake  <ebb9@byu.net>
9713
9714         test-popen-safer: split from test-popen
9715         * tests/test-popen.c (main): Move...
9716         * tests/test-popen.h: ...into new file.
9717         * tests/test-popen-safer2.c: New file.
9718         * modules/popen-tests (Files): Add test-popen.h.
9719         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
9720         Suggested by Bruno Haible.
9721
9722         test-fcntl-safer: split from test-open
9723         * tests/test-open.c (main): Move...
9724         * tests/test-open.h: ...into new file.
9725         * tests/test-fcntl-safer.c: New file.
9726         * modules/open-tests (Files): Add test-open.h.
9727         * modules/fcntl-safer-tests: New file.
9728         Suggested by Bruno Haible.
9729
9730         test-fopen-safer: split from test-fopen
9731         * tests/test-fopen.c (main): Move...
9732         * tests/test-fopen.h: ...into new file.
9733         * tests/test-fopen-safer.c: New file.
9734         * modules/fopen-tests (Files): Add test-fopen.h.
9735         * modules/fopen-safer-tests: New file.
9736         Suggested by Bruno Haible.
9737
9738 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9739
9740         popen-safer: test O_CLOEXEC at run-time.
9741         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
9742
9743 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9744
9745         fcntl: move more flags to the header
9746         * lib/cloexec.c: Do not define FD_CLOEXEC here.
9747         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
9748         * lib/fcntl.in.h: Do both things here.
9749
9750 2009-08-21  Jim Meyering  <meyering@redhat.com>
9751
9752         consistently remove $@-t before redirecting to it
9753         * modules/argz: Remove $@-t and $@ before redirecting to the former.
9754         * modules/alloca-opt: Likewise.
9755         * modules/byteswap: Likewise.
9756         * modules/fnmatch: Likewise.
9757         * modules/getopt-posix: Likewise.
9758         * modules/glob: Likewise.
9759         * modules/poll: Likewise.
9760         * modules/posix_spawnp-tests: Likewise.
9761         * modules/sys_socket: Likewise.
9762         * modules/sysexits: Likewise.
9763
9764 2009-08-21  Eric Blake  <ebb9@byu.net>
9765
9766         popen: simplify access to original popen
9767         * lib/popen.c (rpl_popen): No need to worry about popen being a
9768         macro.
9769         Reported by Bruno Haible.
9770
9771 2009-08-20  Eric Blake  <ebb9@byu.net>
9772
9773         build: avoid some compiler warnings
9774         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
9775         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
9776         type.
9777         (new_exclude_segment, excluded_file_pattern_p)
9778         (excluded_file_name_p): Reduce scope.
9779         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
9780         old-style declaration.
9781
9782 2009-08-20  Simon Josefsson  <simon@josefsson.org>
9783
9784         * tests/test-exclude1.sh: Handle Windows EOL.
9785         * tests/test-exclude2.sh: Likewise.
9786         * tests/test-exclude3.sh: Likewise.
9787         * tests/test-exclude4.sh: Likewise.
9788         * tests/test-exclude5.sh: Likewise.
9789         * tests/test-exclude6.sh: Likewise.
9790         * tests/test-exclude7.sh: Likewise.
9791
9792 2009-08-19  Akim Demaille  <demaille@gostai.com>
9793
9794         bootstrap: find sha1sum when named gsha1sum.
9795         * bootstrap (find_tool): New.
9796         ($SHA1SUM): New.
9797         Use it.
9798
9799 2009-08-20  Jim Meyering  <meyering@redhat.com>
9800
9801         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
9802         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
9803         expression that converts "." in a file name to "\." in the resulting
9804         regexp.  Start with a dummy statement, so that prior shell variable
9805         definitions are expanded portably.  Reported by Simon Josefsson.
9806
9807 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
9808
9809         Fix polling for writeability of a screen buffer.
9810         * lib/poll.c: Distinguish input and screen buffers for the
9811         Win32 implementation.
9812         * lib/select.c: Likewise.
9813
9814 2009-08-19  Eric Blake  <ebb9@byu.net>
9815
9816         popen-safer: prevent popen from clobbering std descriptors
9817         * modules/popen-safer: New file.
9818         * lib/popen-safer.c: Likewise.
9819         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
9820         * lib/stdio--.h (popen): Provide override.
9821         * lib/stdio-safer.h (popen_safer): Provide declaration.
9822         * tests/test-popen.c (includes): Partially test this.
9823         * modules/popen-safer-tests: New file, for more tests.
9824         * tests/test-popen-safer.c: Likewise.
9825         * MODULES.html.sh (file stream based Input/Output): Mention it.
9826
9827         tests: test some of the *-safer modules
9828         * modules/fopen-safer (Depends-on): Add fopen.
9829         * modules/fcntl-safer (Depends-on): Add fcntl.
9830         * modules/stdlib-safer (Depends-on): Add stdlib.
9831         (configure.ac): Set indicator.
9832         * modules/unistd-safer (configure.ac): Likewise.
9833         * modules/tmpfile-safer (configure.ac): Likewise.
9834         (Depends-on): Add tmpfile.
9835         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
9836         active.
9837         * tests/test-fopen.c (includes): Test safer versions when they are
9838         in use.
9839         * tests/test-open.c (includes): Likewise.
9840
9841         popen: fix cygwin 1.5 bug when stdin closed
9842         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
9843         * modules/popen: New file.
9844         * modules/popen-tests: Likewise.
9845         * tests/test-popen.c: Likewise.
9846         * m4/popen.m4: Likewise.
9847         * lib/popen.c: Likewise.
9848         * lib/stdio.in.h (popen): New declaration.
9849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
9850         * modules/stdio (Makefile.am): Likewise.
9851         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
9852
9853 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
9854
9855         maint.mk: give full control over update-copyright exclusions
9856         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
9857         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
9858         (update-copyright): Don't force inclusion of top-level
9859         ChangeLog.  Don't force exclusion of all COPYING files, but make
9860         them the default exclusion instead.
9861
9862 2009-08-16  Bruno Haible  <bruno@clisp.org>
9863
9864         Fix test failures on Solaris 10.
9865         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
9866         tests when Solaris iconv() is used.
9867         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9868         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9869         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9870         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9871         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9872
9873 2009-08-16  Bruno Haible  <bruno@clisp.org>
9874
9875         Fix test failures on Solaris 10.
9876         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
9877         'tr' program and pass it as first argument.
9878         * tests/test-pipe-filter-gi1.sh: Likewise.
9879         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
9880         program as first argument.
9881         * tests/test-pipe-filter-gi1.c (main): Likewise.
9882
9883 2009-08-16  Eric Blake  <ebb9@byu.net>
9884
9885         fpurge: fix previous commits
9886         * modules/fpurge (Makefile.am): Make replacement conditional,
9887         partially reverting 2007-04-29 change; missed in previous
9888         attempt.
9889         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
9890         is missing.
9891
9892 2009-08-16  Bruno Haible  <bruno@clisp.org>
9893
9894         Clarify fpurge's effect on the file position.
9895         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
9896         * tests/test-fpurge.c (main): Make a second pass for checking the file
9897         position.
9898
9899 2009-08-16  Bruno Haible  <bruno@clisp.org>
9900
9901         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
9902         declaration of fpurge is missing.
9903         * tests/test-fpurge.c (main): Check that the file has not more contents
9904         than expected. Close the file before removing it.
9905
9906 2009-08-15  Eric Blake  <ebb9@byu.net>
9907
9908         fpurge: don't wrap working cygwin implementation
9909         * lib/fpurge.c (fpurge): Fix comment typo.
9910         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
9911         1.7 to avoid replacement.
9912         * tests/test-fpurge.c (main): Enhance test.
9913
9914 2009-08-15  Eric Blake  <ebb9@byu.net>
9915         and Jim Meyering  <meyering@redhat.com>
9916
9917         test-update-copyright: skip if perl is insufficient
9918         * tests/test-update-copyright.sh: Failure to run maintainer tool
9919         should not cause testsuite failure on cygwin 1.5.
9920
9921 2009-08-14  Eric Blake  <ebb9@byu.net>
9922
9923         doc: mention more functions added in cygwin 1.7.0
9924         * doc/posix-headers/limits.texi (limits.h): Update for recent
9925         cygwin additions.
9926         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
9927         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9928         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
9929         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
9930         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
9931
9932 2009-08-14  Eric Blake  <ebb9@byu.net>
9933
9934         maint.mk: simplify update-copyright rule
9935         * top/maint.mk (update-copyright-local): Delete, and document how
9936         to do it in cfg.mk instead.
9937         (update-copyright-exclude-regexp): Delete, and document how to do
9938         it in .x-update-copyright instead.
9939         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
9940         exclude ChangeLog.
9941
9942 2009-08-14  Bruno Haible  <bruno@clisp.org>
9943
9944         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
9945
9946 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9947
9948         maint.mk: support update-copyright-env
9949         * top/maint.mk (update-copyright-env): Define place-holder.
9950         (update-copyright): Expand $(update-copyright-env) before
9951         invoking update-copyright.
9952
9953 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9954
9955         update-copyright: implement forced reformatting
9956         * build-aux/update-copyright: Implement and document
9957         UPDATE_COPYRIGHT_FORCE.
9958         * tests/test-update-copyright.sh: Test it.
9959
9960 2009-08-14  Eric Blake  <ebb9@byu.net>
9961         and Bruno Haible  <bruno@clisp.org>
9962
9963         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
9964         * tests/test-locale.c: Revert previous patch related to NULL.
9965         * tests/test-stdio.c: Likewise.
9966         * tests/test-stdlib.c: Likewise.
9967         * tests/test-string.c: Likewise.
9968         * tests/test-unistd.c: Likewise.
9969         * modules/time-tests (Depends-on): Add verify.
9970         * modules/wchar-tests (Depends-on): Likewise.
9971         * tests/test-time.c: Test for NULL compliance.
9972         * tests/test-wchar.c: Likewise.
9973         * modules/locale (Depends-on): Add stddef.
9974         * modules/stdio (Depends-on): Likewise.
9975         * modules/stdlib (Depends-on): Likewise.
9976         * modules/string (Depends-on): Likewise.
9977         * modules/time (Depends-on): Likewise.
9978         * modules/unistd (Depends-on): Likewise.
9979         * modules/wchar (Depends-on): Likewise.
9980         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
9981         * lib/stdlib.in.h (includes): Likewise.
9982         * lib/string.in.h (includes): Likewise.
9983         * lib/time.in.h (includes): Likewise.
9984         * lib/unistd.in.h (includes): Likewise.
9985         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
9986         replaced.
9987         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9988         * m4/stddef_h.m4: New file.
9989         * modules/stddef: Likewise.
9990         * lib/stddef.in.h: Likewise.
9991         * modules/stddef-tests: Likewise.
9992         * tests/test-stddef.c: Likewise.
9993         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
9994         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
9995         * doc/posix-headers/locale.texi (locale.h): Likewise.
9996         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
9997         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9998         * doc/posix-headers/string.texi (string.h): Likewise.
9999         * doc/posix-headers/time.texi (time.h): Likewise.
10000         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10001         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10002
10003 2009-08-14  Eric Blake  <ebb9@byu.net>
10004
10005         doc: improve git diff of texinfo files
10006         * .gitattributes: Add rule for *.texi files, with hint on how to
10007         use it.
10008         Copied from m4, and based on a report by Bruno Haible.
10009
10010 2009-08-14  Bruno Haible  <bruno@clisp.org>
10011
10012         Disable multithread support by default on Cygwin 1.5.x for real.
10013         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10014
10015 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10016
10017         update-copyright: much ado about intervals
10018         * build-aux/update-copyright: Implement and document
10019         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10020         of copyright year intervals.
10021         Also, document UPDATE_COPYRIGHT_YEAR.
10022         * tests/test-update-copyright.sh: Test it.
10023
10024         update-copyright: convert 2-digit to 4-digit years
10025         * build-aux/update-copyright: Implement and document.
10026         * tests/test-update-copyright.sh: Update.
10027
10028 2009-08-14  Jim Meyering  <meyering@redhat.com>
10029
10030         test-exclude: avoid coreutils "make check" failure
10031         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10032         just as in test-argmatch.c.
10033
10034 2009-08-13  Eric Blake  <ebb9@byu.net>
10035
10036         test-dup2: fix bad assumption
10037         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10038         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10039
10040         test-version-etc: fix CRLF portability issue
10041         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10042         recognize \r.
10043         * tests/test-argp-version-etc-1.sh: Likewise.
10044
10045         getopt: update client modules
10046         * modules/argp (Depends-on): Use getopt-gnu.
10047         * modules/git-merge-changelog (Depends-on): Likewise.
10048         * modules/long-options (Depends-on): Likewise.
10049         * modules/xstrtol (Depends-on): Likewise.
10050
10051 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10052
10053         * tests/test-version-etc.sh: Don't fail on different
10054         project/version.  Don't fail on CRLF differences.  Rewrite to use
10055         multiple -e instead of multiple sed forks, suggested by Eric Blake
10056         <ebb9@byu.net>.
10057         * tests/test-argp-version-etc-1.sh: Likewise.
10058
10059 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10060
10061         * tests/test-version-etc.sh: Don't fail on different
10062         project/version.
10063
10064 2009-08-12  Bruno Haible  <bruno@clisp.org>
10065
10066         Tests for modules 'getopt-posix', 'getopt-gnu'.
10067         * modules/getopt-posix-tests: New file.
10068         * tests/test-getopt.c: New file.
10069         * tests/test-getopt.h: New file.
10070         * tests/test-getopt_long.h: New file.
10071
10072         New modules 'getopt-posix', 'getopt-gnu'.
10073         * modules/getopt-gnu: New file, renamed from modules/getopt.
10074         * modules/getopt-posix: New file.
10075         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10076         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10077         (gl_GETOPT): Remove macro.
10078         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10079         Disable the test against BSD systems that declare optreset. Test
10080         against mingw bug. Test against lack of support of optional arguments
10081         on many platforms.
10082         * doc/glibc-headers/getopt.texi: Update module name and list of
10083         relevant platforms.
10084         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10085         'getopt-gnu' and more portability problems.
10086         * NEWS: Mention the changes.
10087
10088 2009-08-12  Bruno Haible  <bruno@clisp.org>
10089
10090         Ensure that optarg etc. get declared by <unistd.h>.
10091         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10092         AC_USE_SYSTEM_EXTENSIONS.
10093         * modules/getopt (Depends-on): Add 'extensions'.
10094
10095 2009-08-12  Bruno Haible  <bruno@clisp.org>
10096
10097         Avoid test link errors.
10098         * modules/pipe-filter-ii-tests (Makefile.am): Define
10099         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10100         * modules/pipe-filter-gi-tests (Makefile.am): Define
10101         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10102         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10103
10104 2009-08-12  Bruno Haible  <bruno@clisp.org>
10105
10106         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10107         gl_GETOPT_SUBSTITUTE before.
10108         (gl_GETOPT): Use it.
10109         * m4/argp.m4 (gl_ARGP): Update.
10110         Reported by Sergey Poznyakoff.
10111
10112         * m4/getopt.m4: Reorder macros.
10113         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10114         (gl_GETOPT_SUBSTITUTE): Remove macro.
10115
10116 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10117
10118         Minor improvement in gitlog-to-changelog
10119
10120         * build-aux/gitlog-to-changelog: New option `--format' makes
10121         output format string configurable.
10122
10123 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10124
10125         Optimize exclude: use hash tables for non-wildcard patterns.
10126
10127         * lib/exclude.c: Include hash.h and mbuiter.h
10128         (struct exclude_pattern, exclude_segment): New data types.
10129         (struct exclude): Rewrite.
10130         (fnmatch_pattern_has_wildcards): New function.
10131         (new_exclude_segment, free_exclude_segment): New functions.
10132         (excluded_file_pattern_p, excluded_file_name_p): New functions.
10133         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10134         * lib/exclude.h (is_fnmatch_pattern): New prototype.
10135         * modules/exclude: Depend on hash and mbuiter.
10136
10137         * modules/exclude-tests: New file.
10138         * tests/test-exclude.c: New file.
10139         * tests/test-exclude1.sh: New file.
10140         * tests/test-exclude2.sh: New file.
10141         * tests/test-exclude3.sh: New file.
10142         * tests/test-exclude4.sh: New file.
10143         * tests/test-exclude5.sh: New file.
10144         * tests/test-exclude6.sh: New file.
10145         * tests/test-exclude7.sh: New file.
10146
10147 2009-08-12  Bruno Haible  <bruno@clisp.org>
10148
10149         Ensure that getopt() gets declared by <unistd.h>.
10150         * lib/unistd.in.h: Conditionally include getopt.h.
10151         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10152         Set GNULIB_UNISTD_H_GETOPT.
10153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10154         GNULIB_UNISTD_H_GETOPT.
10155         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10156
10157 2009-08-12  Bruno Haible  <bruno@clisp.org>
10158
10159         Clarify logic.
10160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10161         gl_replace_getopt instead of GETOPT_H.
10162
10163 2009-08-12  Bruno Haible  <bruno@clisp.org>
10164
10165         * m4/getopt.m4: Add comments.
10166
10167 2009-08-12  Bruno Haible  <bruno@clisp.org>
10168
10169         Disable multithread support by default on Cygwin 1.5.x.
10170         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10171         set gl_use_threads=no if not specified otherwise.
10172
10173 2009-08-11  Bruno Haible  <bruno@clisp.org>
10174
10175         Avoid compilation error on NetBSD 5.0.
10176         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10177         * tests/test-stdio.c: Likewise.
10178         * tests/test-stdlib.c: Likewise.
10179         * tests/test-string.c: Likewise.
10180         * tests/test-unistd.c: Likewise.
10181         Reported by Greg Troxel <gdt@ir.bbn.com>
10182         at <https://savannah.gnu.org/support/?106973>.
10183
10184 2009-08-11  Bruno Haible  <bruno@clisp.org>
10185
10186         * modules/dup2-tests (Depends-on): Remove close.
10187
10188         Undo 2009-07-19 commit.
10189         * modules/acl-tests (Depends-on): Remove close.
10190         * modules/binary-io-tests (Depends-on): Likewise.
10191         * modules/closein-tests (Depends-on): Likewise.
10192         * modules/flock-tests (Depends-on): Likewise.
10193         * modules/fsync-tests (Depends-on): Likewise.
10194         * modules/lseek-tests (Depends-on): Likewise.
10195         * modules/pipe-tests (Depends-on): Likewise.
10196         * modules/posix_spawn-tests (Depends-on): Likewise.
10197         * modules/posix_spawnp-tests (Depends-on): Likewise.
10198         * modules/stat-time-tests (Depends-on): Likewise.
10199         * modules/yesno-tests (Depends-on): Likewise.
10200
10201 2009-08-10  Bruno Haible  <bruno@clisp.org>
10202
10203         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10204
10205 2009-08-10  Bruno Haible  <bruno@clisp.org>
10206
10207         Fix a gcc warning.
10208         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10209
10210 2009-08-10  Bruno Haible  <bruno@clisp.org>
10211
10212         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10213         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10214         not only the first time.
10215         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10216         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10217         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10218         is 1, not only the the first time.
10219
10220 2009-08-10  Bruno Haible  <bruno@clisp.org>
10221
10222         Make it possible to use module 'gethostname' without module 'close'.
10223         * lib/unistd.in.h (close): Evoke a link error only if
10224         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10226         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10227         * modules/unistd (Makefile.am): Substitute
10228         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10229         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10230         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10231         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10232         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10233         * modules/sys_ioctl (Makefile.am): Substitute
10234         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10235         * modules/socket (configure.ac): On native Windows, set
10236         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10237         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10238         Reported by Sam Steingold <sds@gnu.org>.
10239
10240 2009-08-10  Bruno Haible  <bruno@clisp.org>
10241
10242         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10243         * modules/ioctl (configure.ac): Likewise.
10244
10245 2009-08-10  Bruno Haible  <bruno@clisp.org>
10246
10247         Avoid collision between gnulib wrapper and libintl wrapper.
10248         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10249         already defined in intl/printf.c.
10250         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10251         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10252
10253 2009-08-09  Bruno Haible  <bruno@clisp.org>
10254
10255         Make <sys/select.h> really self-contained, also on Solaris 10.
10256         * lib/sys_select.in.h: Include <string.h>.
10257         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10258         Solaris 10 problem.
10259         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10260         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10261         Reported by Jim Meyering.
10262
10263 2009-08-09  Bruno Haible  <bruno@clisp.org>
10264
10265         Avoid warnings from 'aclocal' that are due to a use of macro name
10266         AM_XGETTEXT_OPTION that is not defined in automake.
10267         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10268         automake.
10269         * modules/error (configure.ac): Likewise.
10270         * modules/propername (configure.ac): Likewise.
10271         * modules/vasprintf (configure.ac): Likewise.
10272         * modules/verror (configure.ac): Likewise.
10273         * modules/xprintf (configure.ac): Likewise.
10274         * modules/xvasprintf (configure.ac): Likewise.
10275
10276 2009-08-08  Bruno Haible  <bruno@clisp.org>
10277
10278         Avoid compilation error in C++ mode.
10279         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10280         Reported by Sam Steingold <sds@gnu.org>.
10281
10282 2009-08-08  Bruno Haible  <bruno@clisp.org>
10283
10284         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10285         for the various Unix platforms.
10286         * doc/posix-headers/limits.texi: Update platforms list regarding
10287         HOST_NAME_MAX.
10288         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10289
10290 2009-08-07  Jim Meyering  <meyering@redhat.com>
10291
10292         selinux-at: fix typo in a comment
10293         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
10294         Spotted by Paolo Bonzini.
10295
10296         selinux-at: remove redundant m4 code, add documentation
10297         * modules/selinux-at (configure.ac): Remove redundant code.
10298         LIB_SELINUX is already set via the dependent module, selinux-h.
10299         (Include): Add quotes around selinux-at.h.
10300         * lib/selinux-at.h: Add documentation.
10301         Reported by Bruno Haible in
10302         http://marc.info/?l=gnulib-bug&m=124958988300749
10303
10304 2009-08-07  Bruno Haible  <bruno@clisp.org>
10305
10306         Avoid link error on MacOS X 10.3 and 10.4.
10307         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
10308         on non-ELF systems.
10309         * lib/argp-pv.c (argp_program_version): Likewise.
10310         Reported by Simon Josefsson.
10311
10312 2009-08-07  Simon Josefsson  <simon@josefsson.org>
10313
10314         * tests/test-version-etc.sh: Use $EXEEXT.
10315
10316 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
10317
10318         update-copyright: update documentation to point to maint.mk
10319         * build-aux/update-copyright: Here.
10320
10321 2009-08-06  Jim Meyering  <meyering@redhat.com>
10322
10323         maint.mk: support update-copyright-local
10324         * top/maint.mk (update-copyright-local): Define place-holder.
10325         (update-copyright): Depend on $(update-copyright-local).
10326
10327 2009-08-06  Jim Meyering  <meyering@redhat.com>
10328
10329         selinux-at: new module
10330         Initially written for coreutils, this module will soon be
10331         used by findutils, too.
10332         * MODULES.html.sh [Misc]: Add selinux-at.
10333         * lib/selinux-at.h: New file, from coreutils.
10334         * lib/selinux-at.c: Likewise.
10335         * modules/selinux-at: Likewise.
10336         (License): Change from LGPL to GPL, since it depends
10337         on the GPL'd openat module.
10338
10339         doc: update README
10340         * README: Remove references to cogito.
10341         Remove cvs-repo-updating instructions from 2007.
10342         Don't imply that CVS is better if you have limited disk space.
10343
10344 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10345
10346         update-copyright: support C-style comments
10347         * build-aux/update-copyright: Implement and document.
10348         * tests/test-update-copyright.sh: Test.
10349
10350 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10351
10352         update-copyright: support omitted "(C)"
10353         * build-aux/update-copyright: Implement and document.  Also,
10354         allow variable whitespace before "(C)".
10355         * tests/test-update-copyright.sh: Test.
10356
10357 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10358
10359         update-copyright: don't trip on non-FSF copyright statements
10360         * build-aux/update-copyright: Fix so that the first correctly
10361         formatted FSF copyright statement is recognized no matter what
10362         appears before it.  Update documentation.
10363         * tests/test-update-copyright.sh: Test that.
10364
10365 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10366
10367         update-copyright: clean up code a little
10368         * build-aux/update-copyright: Append "_re" to the name of any
10369         variable holding a regular expression.
10370         Replace "old" and "new" with "stmt" in variable names.
10371         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
10372         handled correctly.
10373         Format code more consistently.
10374
10375 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10376
10377         update-copyright-tests: improve portability
10378         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
10379         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
10380
10381 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10382
10383         update-copyright: support @copyright{} and &copy;
10384         * build-aux/update-copyright: Implement and document.
10385         * tests/test-update-copyright.sh: Test.
10386
10387 2009-08-04  Jim Meyering  <meyering@redhat.com>
10388
10389         update-copyright-tests: correctly test EOL=\r\n handling
10390         * tests/test-update-copyright.sh: Put \r at the end of some lines
10391         for the dos-eol tests.  Based on a patch by Joel E. Denny.
10392
10393         maint.mk: make update-copyright exclusion list more configurable
10394         * top/maint.mk (update-copyright): Default to excluding COPYING,
10395         but allow an override, in case someone does want to update that file.
10396
10397         maint.mk: don't update copyright date in COPYING
10398         * top/maint.mk (update-copyright): Exclude COPYING.
10399
10400         maint.mk: add a copyright-updating rule
10401         * top/maint.mk (update-copyright): New rule.
10402         Derived from coreutils/Makefile.am.
10403
10404         update-copyright: rename some variables
10405         * build-aux/update-copyright: Rename a few variables for clarity.
10406         Tweak syntax.  List Joel E. Denny as coauthor.
10407
10408 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10409
10410         update-copyright: fix bug for 2-digit last year and add tests
10411         * build-aux/update-copyright: Fix bug.
10412         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
10413         specified.
10414         * modules/update-copyright-tests: New
10415         * tests/test-update-copyright.sh: New.
10416
10417 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10418
10419         update-copyright: handle leading tabs in line prefix
10420         * build-aux/update-copyright: Count leading tabs as 8 spaces
10421         when computing margin.  This helps with the formatting of
10422         ChangeLogs, for example.
10423         Fix documentation a little.
10424
10425 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10426
10427         update-copyright: support EOL=\r\n
10428         * build-aux/update-copyright: Implement that.
10429
10430 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10431
10432         update-copyright: automatically format copyright statements
10433         * build-aux/update-copyright: Implement that.
10434         Also, be a little more predictable and safer by always failing
10435         when the full copyright format is not perfectly recognized as an
10436         unbroken whole.  Discussed at
10437         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
10438         Rewrite documentation.
10439
10440 2009-08-03  Bruno Haible  <bruno@clisp.org>
10441
10442         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
10443
10444 2009-08-02  Bruno Haible  <bruno@clisp.org>
10445
10446         Tests for module 'uname'.
10447         * modules/uname-tests: New file.
10448         * tests/test-uname.c: New file.
10449
10450         New module 'uname'.
10451         * lib/uname.c: New file.
10452         * m4/uname.m4: New file.
10453         * modules/uname: New file.
10454         * doc/posix-functions/uname.texi: Mention the new module.
10455
10456 2009-08-02  Bruno Haible  <bruno@clisp.org>
10457
10458         Tests for module 'sys_utsname'.
10459         * modules/sys_utsname-tests: New file.
10460         * tests/test-sys_utsname.c: New file.
10461
10462         New module 'sys_utsname'.
10463         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
10464         * m4/sys_utsname_h.m4: New file.
10465         * modules/sys_utsname: New file.
10466         * doc/posix-headers/sys_utsname.texi: Mention the new module.
10467
10468 2009-08-02  Bruno Haible  <bruno@clisp.org>
10469
10470         Implicitly initialize the sockets library.
10471         * lib/gethostname.c: Include sockets.h.
10472         (rpl_gethostname): Invoke gl_sockets_startup.
10473         * lib/socket.c: Include sockets.h.
10474         (rpl_socket): Invoke gl_sockets_startup.
10475         * modules/gethostname (Depends-on): Add sockets.
10476         * modules/socket (Depends-on): Likewise.
10477         * tests/test-poll.c: Don't include sockets.h.
10478         (main): Don't invoke gl_sockets_startup.
10479         * tests/test-select.c: Don't include sockets.h.
10480         (main): Don't invoke gl_sockets_startup.
10481
10482 2009-08-02  Bruno Haible  <bruno@clisp.org>
10483
10484         Allow multiple calls to gl_sockets_startup.
10485         * lib/sockets.c (initialized_sockets_version): New variable.
10486         (gl_sockets_startup): Do nothing if already called for this or a higher
10487         version.
10488         (gl_sockets_cleanup): Reset initialized_sockets_version.
10489
10490 2009-08-03  Simon Josefsson  <simon@josefsson.org>
10491
10492         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
10493         different project/version.
10494
10495 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
10496             Bruno Haible  <bruno@clisp.org>
10497
10498         Tests for module 'pipe-filter-gi'.
10499         * modules/pipe-filter-gi-tests: New file.
10500         * tests/test-pipe-filter-gi1.sh: New file.
10501         * tests/test-pipe-filter-gi1.c: New file.
10502         * tests/test-pipe-filter-gi2.sh: New file.
10503         * tests/test-pipe-filter-gi2-main.c: New file.
10504         * tests/test-pipe-filter-gi2-child.c: New file.
10505
10506         New module 'pipe-filter-gi'.
10507         * lib/pipe-filter-gi.c: New file.
10508         * modules/pipe-filter-gi: New file.
10509
10510 2009-08-02  Bruno Haible  <bruno@clisp.org>
10511             Paolo Bonzini  <bonzini@gnu.org>
10512
10513         Tests for module 'pipe-filter-ii'.
10514         * modules/pipe-filter-ii-tests: New file.
10515         * tests/test-pipe-filter-ii1.sh: New file.
10516         * tests/test-pipe-filter-ii1.c: New file.
10517         * tests/test-pipe-filter-ii2.sh: New file.
10518         * tests/test-pipe-filter-ii2-main.c: New file.
10519         * tests/test-pipe-filter-ii2-child.c: New file.
10520
10521         New module 'pipe-filter-ii'.
10522         * lib/pipe-filter.h: New file.
10523         * lib/pipe-filter-ii.c: New file.
10524         * lib/pipe-filter-aux.h: New file.
10525         * modules/pipe-filter-ii: New file.
10526
10527 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10528
10529         * lib/gc-libgcrypt.c: Change copyright to FSF.
10530         * lib/gc-gnulib.c: Likewise.
10531
10532 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
10533
10534         * lib/gethostname.c: Include limits.h.
10535
10536 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10537             Bruno Haible  <bruno@clisp.org>
10538
10539         Ensure HOST_NAME_MAX as part of the gethostname module.
10540         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
10541         define also HOST_NAME_MAX.
10542         * tests/test-gethostname.c: Include <limits.h>.
10543         (main): Check also HOST_NAME_MAX.
10544         * doc/posix-headers/limits.texi: Document the mingw problem.
10545
10546 2009-08-02  Bruno Haible  <bruno@clisp.org>
10547
10548         * lib/gethostname.c (gethostname): Fix handling of large len argument.
10549         Add comments.
10550
10551 2009-03-31  Simon Josefsson  <simon@josefsson.org>
10552
10553         * lib/gethostname.c: Add Windows wrapper.
10554         * m4/gethostname.m4: Look for gethostname in -lws2_32.
10555         * modules/gethostname: Depend on sys_socket & errno, for also
10556         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
10557         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
10558
10559 2009-07-31  Jim Meyering  <meyering@redhat.com>
10560
10561         getloadavg: fix symbol name in comment
10562         * lib/getloadavg.c: Correct a typo I introduced when adding
10563         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
10564         Matt Kraai spotted the problem.
10565
10566 2009-07-29  Matt Kraai  <mkraai@beckman.com>
10567
10568         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
10569         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
10570         code also if ! defined N_NAME_POINTER.
10571         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
10572         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
10573         but the n_name member is a 12-byte array.
10574
10575 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
10576
10577         update-copyright: generalize comment handling
10578         * build-aux/update-copyright: Handle copyright statements
10579         within more comment styles.
10580         Document usage.
10581         Report any file with an external copyright holder or parse failure.
10582
10583 2009-07-29  Jim Meyering  <meyering@redhat.com>
10584
10585         mktime: correct setting of REPLACE_MKTIME
10586         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
10587
10588         update-copyright: new module
10589         * modules/update-copyright: New file.
10590         * build-aux/update-copyright: New file.
10591         * MODULES.html.sh (maint+release support): Add update-copyright.
10592
10593 2009-07-27  Bruno Haible  <bruno@clisp.org>
10594
10595         Fix compilation error when <ctime> is used and mktime is replaced.
10596         * lib/time.in.h (mktime): New declaration.
10597         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
10598         REPLACE_MKTIME instead of defining mktime in config.h.
10599         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
10600         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
10601         Reported by Ross McFarland <rwmcfa1@neces.com>.
10602
10603 2009-07-27  Bruno Haible  <bruno@clisp.org>
10604
10605         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
10606         Reported by Matt Kraai <mkraai@beckman.com>.
10607
10608 2009-07-25  Jim Meyering  <meyering@redhat.com>
10609
10610         maint.mk: avoid warnings about missing files
10611         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
10612         diagnostic when .prev-version does not exist.
10613         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
10614         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
10615         nonexistent cfg.mk.
10616         Suggestions from Simon Josefsson.
10617
10618 2009-07-25  Bruno Haible  <bruno@clisp.org>
10619
10620         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
10621         defined as macros. Needed on QNX 6.4.1.
10622         Reported by Matt Kraai <mkraai@beckman.com>.
10623
10624 2009-07-23  Jim Meyering  <meyering@redhat.com>
10625
10626         maint.mk: invoke "make dist" with a working value of XZ_OPT
10627         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
10628
10629 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
10630
10631         Make fseeko.c compile on QNX.
10632         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
10633
10634 2009-07-22  Peter Simons  <simons@cryp.to>
10635
10636         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
10637         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
10638         * lib/md4.h: Likewise.
10639         * lib/md5.h: Likewise.
10640         * lib/sha1.h: Likewise.
10641         * lib/sha256.h: Likewise.
10642         * lib/sha512.h: Likewise.
10643
10644         tests-sha1: don't assign literal string to 'char *' variable
10645         * tests/test-sha1.c (main): Declare locals with "const" to match
10646         attributes of the right hand side.
10647
10648 2009-07-21  Eric Blake  <ebb9@byu.net>
10649
10650         dup2: fix more mingw problems
10651         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
10652         fd to itself.
10653         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10654         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
10655         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
10656         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
10657         care of mingw bugs.
10658
10659 2009-07-21  Jim Meyering  <meyering@redhat.com>
10660
10661         vc-list-files: avoid failure when /bin/sh is dash
10662         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
10663         On some Debian based systems, /bin/sh is a symlink to dash, and running
10664         this command would omit the "/" following each 'tests' prefix:
10665           dash -x build-aux/vc-list-files -C . tests
10666         That is because bash and dash work differently:
10667           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
10668           bash ok
10669           dash odd
10670
10671 2009-07-21  Eric Blake  <ebb9@byu.net>
10672
10673         dup2-tests: test previous patch
10674         * modules/dup2-tests: New file.
10675         * tests/test-dup2.c: Likewise.
10676         * tests/test-open.c (main): Avoid unspecified behavior.
10677         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
10678         test.
10679
10680         dup2: work around mingw and cygwin 1.5 bug
10681         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
10682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10683         * modules/unistd (Makefile.am): Substitute it.
10684         * lib/unistd.in.h (dup2): Declare the replacement.
10685         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
10686         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
10687         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
10688         * modules/execute (Depends-on): Add dup2.
10689         * modules/fseterr (Depends-on): Likewise.
10690         * modules/pipe (Depends-on): Likewise.
10691         * modules/posix_spawn-internal (Depends-on): Likewise.
10692
10693 2009-07-21  Bruno Haible  <bruno@clisp.org>
10694
10695         * modules/.gitattributes: New file.
10696
10697 2009-07-20  Bruno Haible  <bruno@clisp.org>
10698
10699         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
10700         (main): Use it.
10701
10702 2009-07-20  Eric Blake  <ebb9@byu.net>
10703
10704         test-pipe: make a bit more robust.
10705         * tests/test-pipe.c (myerr): Allow error messages regardless of
10706         what we do to stderr.
10707         (test_pipe): Rearrange to avoid deadlock.
10708         (child_main): Try a larger read, to ensure we avoided deadlock.
10709         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
10710         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
10711         if misused.
10712
10713 2009-07-19  Jim Meyering  <meyering@redhat.com>
10714
10715         fts: avoid false-positive cycle-detection
10716         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
10717         for each new command line argument.
10718
10719 2009-07-19  Bruno Haible  <bruno@clisp.org>
10720
10721         Fix build error on mingw with the modules sys_select and unistd.
10722         * modules/acl-tests (Depends-on): Add close.
10723         * modules/binary-io-tests (Depends-on): Likewise.
10724         * modules/closein-tests (Depends-on): Likewise.
10725         * modules/flock-tests (Depends-on): Likewise.
10726         * modules/fsync-tests (Depends-on): Likewise.
10727         * modules/lseek-tests (Depends-on): Likewise.
10728         * modules/pipe-tests (Depends-on): Likewise.
10729         * modules/posix_spawn-tests (Depends-on): Likewise.
10730         * modules/posix_spawnp-tests (Depends-on): Likewise.
10731         * modules/stat-time-tests (Depends-on): Likewise.
10732         * modules/yesno-tests (Depends-on): Likewise.
10733
10734 2009-07-19  Bruno Haible  <bruno@clisp.org>
10735
10736         Unify conditionals.
10737         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
10738         macros, not at the compiler macros.
10739         * lib/pipe.c: Likewise.
10740         * lib/execute.c: Likewise.
10741         * lib/spawni.c: Likewise.
10742
10743 2009-07-19  Bruno Haible  <bruno@clisp.org>
10744
10745         Fix handling of closed stdin/stdout/stderr on mingw.
10746         * lib/w32spawn.h: Include unistd.h.
10747         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
10748         file descriptor with O_NOINHERIT flag.
10749         (fd_safer_noinherit): New function, based on fd-safer.c.
10750         (dup_safer_noinherit): New function, based on dup-safer.c.
10751         (undup_safer_noinherit): New function.
10752         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
10753         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
10754         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
10755         instead of fd_safer.
10756         * tests/test-pipe.c: Include <windows.h>.
10757         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
10758
10759         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
10760         from main.
10761         (test_pipe): Pass an extra argument for disambiguation.
10762         (main): Invoke parent_main or child_main.
10763
10764         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
10765         consistently.
10766
10767 2009-07-18  Eric Blake  <ebb9@byu.net>
10768
10769         test-pipe: fix mingw build
10770         * tests/test-pipe.c (main): Avoid fcntl on mingw.
10771
10772 2009-07-18  Bruno Haible  <bruno@clisp.org>
10773
10774         * modules/pipe-tests (Makefile.am): Fix typo.
10775
10776 2009-07-18  Eric Blake  <ebb9@byu.net>
10777
10778         error: fix mingw build
10779         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
10780         Reported by Bruno Haible.
10781
10782         error: avoid undefined use of stdout
10783         * lib/error.c (error, error_at_line): Check that fd 1 is open
10784         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
10785         is handling faults and the close_stdout module wants to report the
10786         detection of closed stdout as an error.
10787
10788 2009-07-17  Eric Blake  <ebb9@byu.net>
10789
10790         pipe: be robust in face of closed fds
10791         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
10792         should cause child to misbehave.
10793         * modules/pipe-tests: New module.
10794         * tests/test-pipe.c: New file.
10795         * tests/test-pipe.sh: New file.
10796         Reported by Akim Demaille.
10797
10798 2009-07-14  Bruno Haible  <bruno@clisp.org>
10799
10800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
10801         Reported by anonymous kc.
10802
10803 2009-07-07  Jim Meyering  <meyering@redhat.com>
10804
10805         maint.mk: don't look for translatable strings in *.m4 or *.mk
10806         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
10807         when searching for translatable strings.
10808
10809 2009-07-05  Jim Meyering  <meyering@redhat.com>
10810
10811         remove superfluous parentheses in STREQ definition
10812         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
10813         * lib/getugroups.c (STREQ): Likewise.
10814         * lib/fnmatch.c (STREQ): Likewise.
10815         Spotted by Bruno Haible.
10816
10817 2009-07-04  Jim Meyering  <meyering@redhat.com>
10818
10819         argv-iter: new module
10820         * MODULES.html.sh: Add argv-iter.
10821         * lib/argv-iter.c, lib/argv-iter.h: New files.
10822         * modules/argv-iter: New file.
10823         * modules/argv-iter-tests: New file.
10824         * tests/test-argv-iter.c: Test it.
10825
10826 2009-07-04  Bruno Haible  <bruno@clisp.org>
10827
10828         Fix assertion.
10829         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
10830         contains more exact copies of a given entry than file2, leave the extra
10831         copies unpaired rather than aborting.
10832         Reported by Eric Blake.
10833
10834 2009-07-02  Bruno Haible  <bruno@clisp.org>
10835
10836         Speedup git-merge-changelog for git cherry-pick.
10837         * lib/git-merge-changelog.c (struct entries_mapping): New type.
10838         (entries_mapping_get): New function, extracted from compute_mapping.
10839         (entries_mapping_reverse_get): New function.
10840         (compute_mapping): Add a 'full' argument. Return the result in a
10841         'struct entries_mapping'.
10842         (main): Update. Access the mappings through entries_mapping_get.
10843         Reported by Eric Blake.
10844
10845 2009-07-02  Bruno Haible  <bruno@clisp.org>
10846
10847         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
10848         best_i.
10849
10850 2009-07-02  Bruno Haible  <bruno@clisp.org>
10851
10852         Speed up approximate search for matching ChangeLog entries.
10853         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
10854         argument. Call fstrcmp_bounded instead of fstrcmp.
10855         (compute_mapping, try_split_merged_entry, main): Update callers.
10856
10857 2009-07-02  Bruno Haible  <bruno@clisp.org>
10858
10859         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
10860
10861 2009-06-30  Bruno Haible  <bruno@clisp.org>
10862
10863         Reduce the number of uc_is_cased calls.
10864         * lib/unicase.h (casing_suffix_context_t): Add
10865         'first_char_except_ignorable' field.
10866         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
10867         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
10868         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
10869         Update initializer.
10870         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
10871         case-ignorable characters.
10872         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
10873         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
10874         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
10875         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
10876         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
10877
10878 2009-06-30  Bruno Haible  <bruno@clisp.org>
10879
10880         Tests for module 'unicase/ignorable'.
10881         * modules/unicase/ignorable-tests: New file.
10882         * tests/unicase/test-ignorable.c: New file, generated by
10883         gen-uni-tables.
10884
10885         Tests for module 'unicase/cased'.
10886         * modules/unicase/cased-tests: New file.
10887         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
10888         * tests/unicase/test-predicate-part1.h: New file, derived from
10889         tests/unictype/test-predicate-part1.h.
10890         * tests/unicase/test-predicate-part2.h: New file, same as
10891         tests/unictype/test-predicate-part2.h.
10892
10893         Fix evaluation of "Before C" condition of FINAL_SIGMA.
10894         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
10895         (output_casing_properties): New function.
10896         (main): Call it.
10897         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
10898         * lib/unicase/cased.c: Include unictype/bitmap.h.
10899         (uc_is_cased): Define through a bitmap lookup.
10900         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
10901         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
10902         (uc_is_case_ignorable): Define through a bitmap lookup.
10903         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
10904         lib/unictype/bitmap.h.
10905         (Depends-on): Add inline. Clean up.
10906         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
10907         lib/unictype/bitmap.h.
10908         (Depends-on): Add inline. Clean up.
10909         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
10910         recognition.
10911         * tests/unicase/test-u16-tolower.c (main): Likewise.
10912         * tests/unicase/test-u32-tolower.c (main): Likewise.
10913
10914 2009-06-30  Bruno Haible  <bruno@clisp.org>
10915
10916         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
10917         * lib/unicase/u16-casemap.c: Likewise.
10918         * lib/unicase/u32-casemap.c: Likewise.
10919
10920 2009-06-29  Bruno Haible  <bruno@clisp.org>
10921
10922         Define u32_casefold as a wrapper around u32_ct_casefold.
10923         * lib/unicase/u32-casefold.c: Update.
10924         * modules/unicase/u32-casefold (Depends-on): Add
10925         unicase/u32-ct-casefold, unicase/empty-prefix-context,
10926         unicase/empty-suffix-context. Clean up.
10927
10928         Define u16_casefold as a wrapper around u16_ct_casefold.
10929         * lib/unicase/u16-casefold.c: Update.
10930         * modules/unicase/u16-casefold (Depends-on): Add
10931         unicase/u16-ct-casefold, unicase/empty-prefix-context,
10932         unicase/empty-suffix-context. Clean up.
10933
10934         Define u8_casefold as a wrapper around u8_ct_casefold.
10935         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
10936         * lib/unicase/u8-casefold.c: Update.
10937         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
10938         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10939
10940         Define u32_totitle as a wrapper around u32_ct_totitle.
10941         * lib/unicase/u32-totitle.c: Update.
10942         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
10943         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10944
10945         Define u16_totitle as a wrapper around u16_ct_totitle.
10946         * lib/unicase/u16-totitle.c: Update.
10947         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
10948         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10949
10950         Define u8_totitle as a wrapper around u8_ct_totitle.
10951         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
10952         functions.
10953         (FUNC): Delegate to U_CT_TOTITLE.
10954         * lib/unicase/u8-totitle.c: Update.
10955         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
10956         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10957
10958         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
10959         invocation.
10960         * modules/unicase/u32-tolower (Depends-on): Add
10961         unicase/empty-prefix-context, unicase/empty-suffix-context.
10962
10963         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
10964         invocation.
10965         * modules/unicase/u16-tolower (Depends-on): Add
10966         unicase/empty-prefix-context, unicase/empty-suffix-context.
10967
10968         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
10969         * modules/unicase/u8-tolower (Depends-on): Add
10970         unicase/empty-prefix-context, unicase/empty-suffix-context.
10971
10972         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
10973         invocation.
10974         * modules/unicase/u32-toupper (Depends-on): Add
10975         unicase/empty-prefix-context, unicase/empty-suffix-context.
10976
10977         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
10978         invocation.
10979         * modules/unicase/u16-toupper (Depends-on): Add
10980         unicase/empty-prefix-context, unicase/empty-suffix-context.
10981
10982         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
10983         * modules/unicase/u8-toupper (Depends-on): Add
10984         unicase/empty-prefix-context, unicase/empty-suffix-context.
10985
10986         New module 'unicase/u32-ct-casefold'.
10987         * lib/unicase/u32-ct-casefold.c: New file.
10988         * modules/unicase/u32-ct-casefold: New file.
10989
10990         New module 'unicase/u16-ct-casefold'.
10991         * lib/unicase/u16-ct-casefold.c: New file.
10992         * modules/unicase/u16-ct-casefold: New file.
10993
10994         New module 'unicase/u8-ct-casefold'.
10995         * lib/unicase/u8-ct-casefold.c: New file.
10996         * lib/unicase/u-ct-casefold.h: New file, derived from
10997         lib/unicase/u-casefold.h.
10998         * modules/unicase/u8-ct-casefold: New file.
10999
11000         New module 'unicase/u32-ct-totitle'.
11001         * lib/unicase/u32-ct-totitle.c: New file.
11002         * modules/unicase/u32-ct-totitle: New file.
11003
11004         New module 'unicase/u16-ct-totitle'.
11005         * lib/unicase/u16-ct-totitle.c: New file.
11006         * modules/unicase/u16-ct-totitle: New file.
11007
11008         New module 'unicase/u8-ct-totitle'.
11009         * lib/unicase/u8-ct-totitle.c: New file.
11010         * lib/unicase/u-ct-totitle.h: New file, derived from
11011         lib/unicase/u-totitle.h.
11012         * modules/unicase/u8-ct-totitle: New file.
11013
11014         New module 'unicase/u32-ct-tolower'.
11015         * lib/unicase/u32-ct-tolower.c: New file.
11016         * modules/unicase/u32-ct-tolower: New file.
11017
11018         New module 'unicase/u16-ct-tolower'.
11019         * lib/unicase/u16-ct-tolower.c: New file.
11020         * modules/unicase/u16-ct-tolower: New file.
11021
11022         New module 'unicase/u8-ct-tolower'.
11023         * lib/unicase/u8-ct-tolower.c: New file.
11024         * modules/unicase/u8-ct-tolower: New file.
11025
11026         New module 'unicase/u32-ct-toupper'.
11027         * lib/unicase/u32-ct-toupper.c: New file.
11028         * modules/unicase/u32-ct-toupper: New file.
11029
11030         New module 'unicase/u16-ct-toupper'.
11031         * lib/unicase/u16-ct-toupper.c: New file.
11032         * modules/unicase/u16-ct-toupper: New file.
11033
11034         New module 'unicase/u8-ct-toupper'.
11035         * lib/unicase/u8-ct-toupper.c: New file.
11036         * modules/unicase/u8-ct-toupper: New file.
11037
11038         Add context arguments to u*_casemap functions.
11039         * lib/unicase/unicasemap.h: Include unicase.h.
11040         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11041         suffix_context arguments.
11042         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11043         functions.
11044         (FUNC): Add prefix_context and suffix_context arguments. Use
11045         uc_is_cased and uc_is_case_ignorable.
11046         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11047         * lib/unicase/u16-casemap.c: Likewise.
11048         * lib/unicase/u32-casemap.c: Likewise.
11049         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11050         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11051         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11052         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11053         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11054         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11055
11056         New module 'unicase/u32-suffix-context'.
11057         * lib/unicase/u32-suffix-context.c: New file.
11058         * modules/unicase/u32-suffix-context: New file.
11059
11060         New module 'unicase/u16-suffix-context'.
11061         * lib/unicase/u16-suffix-context.c: New file.
11062         * modules/unicase/u16-suffix-context: New file.
11063
11064         New module 'unicase/u8-suffix-context'.
11065         * lib/unicase/u8-suffix-context.c: New file.
11066         * lib/unicase/u-suffix-context.h: New file.
11067         * modules/unicase/u8-suffix-context: New file.
11068
11069         New module 'unicase/empty-suffix-context'.
11070         * lib/unicase/empty-suffix-context.c: New file.
11071         * modules/unicase/empty-suffix-context: New file.
11072
11073         New module 'unicase/u32-prefix-context'.
11074         * lib/unicase/u32-prefix-context.c: New file.
11075         * modules/unicase/u32-prefix-context: New file.
11076
11077         New module 'unicase/u16-prefix-context'.
11078         * lib/unicase/u16-prefix-context.c: New file.
11079         * modules/unicase/u16-prefix-context: New file.
11080
11081         New module 'unicase/u8-prefix-context'.
11082         * lib/unicase/u8-prefix-context.c: New file.
11083         * lib/unicase/u-prefix-context.h: New file.
11084         * lib/unicase/context.h: New file.
11085         * modules/unicase/u8-prefix-context: New file.
11086
11087         New module 'unicase/empty-prefix-context'.
11088         * lib/unicase/empty-prefix-context.c: New file.
11089         * modules/unicase/empty-prefix-context: New file.
11090
11091         New module 'unicase/ignorable'.
11092         * lib/unicase/ignorable.c: New file.
11093         * modules/unicase/ignorable: New file.
11094
11095         New module 'unicase/cased'.
11096         * lib/unicase/caseprop.h: New file.
11097         * lib/unicase/cased.c: New file.
11098         * modules/unicase/cased: New file.
11099
11100         New functions for case mapping of substrings.
11101         * lib/unicase.h (casing_prefix_context_t): New type.
11102         (unicase_empty_prefix_context): New variable.
11103         (u8_casing_prefix_context, u16_casing_prefix_context,
11104         u32_casing_prefix_context, u8_casing_prefixes_context,
11105         u16_casing_prefixes_context, u32_casing_prefixes_context): New
11106         declarations.
11107         (casing_suffix_context_t): New type.
11108         (unicase_empty_suffix_context): New variable.
11109         (u8_casing_suffix_context, u16_casing_suffix_context,
11110         u32_casing_suffix_context, u8_casing_suffixes_context,
11111         u16_casing_suffixes_context, u32_casing_suffixes_context,
11112         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11113         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11114         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11115         declarations.
11116
11117 2009-06-28  Jim Meyering  <meyering@redhat.com>
11118
11119         boostrap: indent only with spaces
11120         * build-aux/bootstrap: Indent only with spaces, never TABs.
11121
11122         bootstrap: split long lines
11123         * build-aux/bootstrap: Keep line length < 80.
11124
11125         bootstrap: sync from coreutils
11126         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11127         just as autoreconf does.  Verify a list of prerequisite
11128         package-name,version-number pairs if defined in bootstrap.conf.
11129         Refer to README-prereq, if prerequisites are not satisfied.
11130
11131 2009-06-27  Eric Blake  <ebb9@byu.net>
11132
11133         tests: add test for bogus NULL definition
11134         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11135         * tests/test-stdlib.c: Likewise.
11136         * tests/test-string.c: Likewise.
11137         * tests/test-locale.c: Likewise.
11138         * tests/test-unistd.c: Likewise.
11139         * modules/stdio-tests (Depends-on): Add verify.
11140         * modules/stdlib-tests (Depends-on): Likewise.
11141         * modules/string-tests (Depends-on): Likewise.
11142         * modules/locale-tests (Depends-on): Likewise.
11143         * modules/unistd-tests (Depends-on): Likewise.
11144
11145 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11146
11147         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11148         self-explaining comment.
11149         * m4/selinux-selinux-h: Update serial.
11150         (gl_LIBSELINUX): New macro, adding a warning for missing development
11151         packages to code extracted from...
11152         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
11153         Add warning for missing development packages here, too.
11154
11155 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
11156
11157         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11158
11159 2009-06-25  Eric Blake  <ebb9@byu.net>
11160
11161         version-etc: fix regression
11162         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11163         gcc.
11164         (version_etc): Use it, to catch bugs with trailing NULL.
11165         * lib/version-etc.c (version_etc_arn): Delete unused argument.
11166         (version_etc_va): Fix logic bug.
11167         * modules/version-etc-tests: Add test.
11168         * tests/test-version-etc.c: New file.
11169         * tests/test-version-etc.sh: Likewise.
11170
11171 2009-06-25  Sam Steingold  <sds@gnu.org>
11172
11173         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11174         mbtowc declaration.
11175
11176 2009-06-25  Eric Blake  <ebb9@byu.net>
11177
11178         fpurge: migrate into <stdio.h>
11179         * lib/fpurge.h: Delete...
11180         * lib/stdio.in.h (fpurge): ...and declare here, instead.
11181         * lib/fpurge.c (fpurge): Change declaring header.
11182         * modules/fpurge (Files): Drop deleted file.
11183         (Depends-on): Add stdio.
11184         (configure.ac): Set witness.
11185         * modules/stdio (Makefile.am): Support fpurge macros.
11186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11187         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11188         * lib/fflush.c: Update client.
11189         * tests/test-fpurge.c: Likewise.
11190         * NEWS: Mention the change.
11191
11192 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11193
11194         * lib/argp-version-etc.c (program_authors): Add const
11195         qualifier.
11196         * lib/version-etc.c: Fix typos in the comments.
11197         * modules/argp-version-etc: Depends on version-etc.
11198
11199 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11200
11201         argp-version-etc: new module.
11202
11203         * lib/argp-version-etc.c: New file.
11204         * lib/argp-version-etc.h: New file.
11205         * modules/argp-version-etc: New file.
11206         * modules/argp-version-etc-tests: New file.
11207         * tests/test-argp-version-etc.c: New test.
11208         * tests/test-argp-version-etc-1.sh: New test.
11209
11210 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11211
11212         Provide additional interfaces and documentation for version-etc
11213         module.
11214
11215         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11216         interfaces.
11217         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11218         prototypes.
11219
11220 2009-06-24  Bruno Haible  <bruno@clisp.org>
11221
11222         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11223         HAVE_LIB${NAME} macro.
11224         Reported by Sam Steingold <sds@gnu.org>.
11225
11226 2009-06-23  Simon Josefsson  <simon@josefsson.org>
11227
11228         * modules/hash-tests (test_hash_LDADD): Link to libintl when
11229         needed.
11230
11231 2009-06-21  Bruno Haible  <bruno@clisp.org>
11232
11233         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11234         work.
11235         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11236         together with LIB${NAME}, LTLIB${NAME}.
11237         Reported by Sam Steingold <sds@gnu.org>.
11238
11239 2009-06-20  Jim Meyering  <meyering@redhat.com>
11240
11241         tests: make sc_require_test_exit_idiom more generic
11242         * top/maint.mk (Exit_witness_file): New overridable variable.
11243         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11244         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11245
11246 2009-06-19  Jim Meyering  <meyering@redhat.com>
11247
11248         hash: reverse order of src/dst parameters in an internal interface
11249         * lib/hash.c (transfer_entries): Reverse order of parameters to
11250         put DST before SRC.  Adjust callers.
11251
11252         tests: test-hash: avoid wholesale duplication
11253         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11254         Instead, use a loop and add a single conditional.
11255
11256         tests: test-hash: allow seed selection via a command line argument
11257         * tests/test-hash.c (get_seed): New function.
11258         (main): Use it.
11259
11260 2009-06-19  Eric Blake  <ebb9@byu.net>
11261
11262         hash: avoid memory leak on allocation failure
11263         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11264         failure.  Factor repeated algorithm...
11265         (transfer_entries): ...into new helper routine.
11266         (hash_delete): React to hash_rehash return value.
11267
11268         hash: reduce memory pressure in hash_rehash no-op case
11269         * lib/hash.c (next_prime): Avoid overflow.
11270         (hash_initialize): Factor bucket size computation...
11271         (compute_bucket_size): ...into new helper function.
11272         (hash_rehash): Use new function and open coding to reduce memory
11273         pressure, and avoid a memory leak in USE_OBSTACK code.
11274         Reported by Jim Meyering.
11275
11276 2009-06-18  Eric Blake  <ebb9@byu.net>
11277
11278         hash: make rotation more obvious
11279         * modules/hash (Depends-on): Add bitrotate and stdint.
11280         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11281         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
11282         (SIZE_MAX): Rely on headers for definition.
11283         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11284         (raw_hasher): Use rotr_sz.
11285         Suggested by Jim Meyering.
11286
11287         hash: fix memory leak in last patch
11288         * lib/hash.c (hash_rehash): Avoid memory leak.
11289
11290         hash: avoid no-op rehashing
11291         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
11292
11293         hash: provide default callback functions
11294         * lib/hash.c (raw_hasher, raw_comparator): New functions.
11295         (hash_initialize): Use them as defaults.
11296         * tests/test-hash.c (main): Test this.
11297
11298         hash: minor optimization
11299         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
11300         when possible.
11301         (hash_initialize): Document this promise.
11302         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
11303         * tests/test-hash.c (hash_compare_strings): Test this.
11304
11305 2009-06-18  Bruno Haible  <bruno@clisp.org>
11306
11307         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
11308         going to be replaced anyway.
11309
11310 2009-06-18  Bruno Haible  <bruno@clisp.org>
11311
11312         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
11313         in one place.
11314         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
11315         be replaced anyway.
11316
11317 2009-06-18  Eric Blake  <ebb9@byu.net>
11318
11319         hash: check for resize before insertion
11320         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
11321         threshold before insertion, so that a pathological hash_rehash
11322         that fills every bucket can still trigger another rehash.
11323
11324 2009-06-18  Jim Meyering  <meyering@redhat.com>
11325
11326         hash-tests: add a loop around the small tests
11327         * tests/test-hash.c (main): Repeat small tests with selected
11328         small initial table sizes.
11329
11330 2009-06-17  Eric Blake  <ebb9@byu.net>
11331
11332         hash: minor cleanups
11333         * lib/hash.h (hash_entry): Make opaque, by moving...
11334         * lib/hash.c (hash_entry): ...here.
11335         (hash_insert): Clarify restrictions on what can be inserted.
11336         (hash_get_next): Clarify when it is safe to remove an element
11337         during traversal.
11338         (check_tuning): Skip verification when tuning is known safe.
11339         (hash_initialize): Clarify restrictions on tuning.
11340
11341 2009-06-17  Jim Meyering  <jim@meyering.net>
11342         and Eric Blake  <ebb9@byu.net>
11343
11344         hash-tests: new module
11345         * modules/hash-tests: New file.
11346         * tests/test-hash.c: New file.
11347
11348 2009-06-17  Eric Blake  <ebb9@byu.net>
11349
11350         strstr-simple: document new module
11351         * MODULES.html.sh: Document new module.
11352
11353         strstr, strcasestr: replace on platforms with broken memchr
11354         * modules/strstr: Split into...
11355         * modules/strstr-simple: ...new module that does not care about
11356         performance, but does care about glibc bug.
11357         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
11358         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
11359         if platform memchr is broken, per Debian bug 521737.
11360         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
11361         memchr.
11362         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
11363         * doc/posix-functions/strstr.texi (strstr): Document the fix.
11364         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11365         * modules/mountlist (Depends-on): Add strstr-simple.
11366         * modules/gen-uni-tables (Depends-on): Likewise.
11367         * modules/argz (Depends-on): Add strstr.
11368
11369 2009-06-17  Bruno Haible  <bruno@clisp.org>
11370
11371         * modules/posix_spawn-internal (Depends-on): Add errno.
11372
11373 2009-06-17  Bruno Haible  <bruno@clisp.org>
11374
11375         Define missing ESTALE on Interix 3.5.
11376         * lib/errno.in.h (ESTALE): Assign a value if missing.
11377         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
11378         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
11379         missing.
11380         * doc/posix-headers/errno.texi: Mention the Interix bug.
11381         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
11382
11383 2009-06-15  Eric Blake  <ebb9@byu.net>
11384
11385         memchr, memchr2: add valgrind exception
11386         * lib/memchr.valgrind: New file.
11387         * lib/memchr2.valgrind: New file.
11388         * modules/memchr (Files): Distribute valgrind file.
11389         * modules/memchr2 (Files): Likewise.
11390
11391         docs: memchr is no longer obsolete
11392         * MODULES.html.sh: Move memchr from obsolete to string.h section.
11393         * lib/string.in.h (memchr): Simplify logic.
11394
11395 2009-06-14  Jim Meyering  <meyering@redhat.com>
11396
11397         link-follow: fix the "checking..." message to not mention trailing slash
11398         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
11399         never considered trailing slashes.
11400
11401 2009-06-14  Bruno Haible  <bruno@clisp.org>
11402
11403         * m4/memchr.m4: Mention also the bug on IA-64.
11404         * doc/posix-functions/memchr.texi: Likewise.
11405
11406 2009-06-12  Eric Blake  <ebb9@byu.net>
11407
11408         memchr: detect broken x86_64 and alpha implementations
11409         * modules/memchr-tests (Depends-on): Move mmap detection...
11410         * modules/memchr (Depends-on): ...here.
11411         (configure.ac): Set indicator.
11412         * lib/string.in.h (memchr): Declare replacement.
11413         * modules/string (Makefile.am): Trigger replacement.
11414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
11415         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
11416         bugs.
11417         * doc/posix-functions/memchr.texi (memchr): Document the bug.
11418         * modules/getpagesize (License): Relax license.
11419
11420 2009-06-11  Bruno Haible  <bruno@clisp.org>
11421
11422         * lib/idpriv.h: Add more references.
11423
11424 2009-06-08  Bruno Haible  <bruno@clisp.org>
11425
11426         Tests for module 'idpriv-droptemp'.
11427         * modules/idpriv-droptemp-tests: New file.
11428         * tests/test-idpriv-droptemp.sh: New file.
11429         * tests/test-idpriv-droptemp.su.sh: New file.
11430         * tests/test-idpriv-droptemp.c: New file.
11431
11432         New module 'idpriv-droptemp'.
11433         * lib/idpriv-droptemp.c: New file.
11434         * modules/idpriv-droptemp: New file.
11435
11436 2009-06-08  Bruno Haible  <bruno@clisp.org>
11437
11438         Tests for module 'idpriv-drop'.
11439         * modules/idpriv-drop-tests: New file.
11440         * tests/test-idpriv-drop.sh: New file.
11441         * tests/test-idpriv-drop.su.sh: New file.
11442         * tests/test-idpriv-drop.c: New file.
11443
11444         New module 'idpriv-drop'.
11445         * lib/idpriv.h: New file.
11446         * lib-idpriv-drop.c: New file.
11447         * m4/idpriv.m4: New file.
11448         * modules/idpriv-drop: New file.
11449
11450 2009-06-08  Bruno Haible  <bruno@clisp.org>
11451
11452         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
11453         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11454         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11455         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11456         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11457         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11458         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11459
11460 2009-06-08  Eric Blake  <ebb9@byu.net>
11461
11462         test-strstr: use memory fence, when possible
11463         * tests/test-strstr.c (main): Use memory fence, in order to be
11464         more likely to trigger Debian bug 521737.
11465         * modules/strstr-tests (Files): Pull in additional files.
11466
11467         memchr: no longer obsolete, for wider field testing
11468         * modules/memchr (Status, Notice): Delete, this module is no
11469         longer obsolete.
11470         * modules/vasnprintf (Depends-on): Add memchr.
11471
11472 2009-06-07  Jim Meyering  <meyering@redhat.com>
11473
11474         hash: declare some functions with the warn_unused_result attribute
11475         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
11476
11477 2009-06-07  Bruno Haible  <bruno@clisp.org>
11478
11479         * tests/test-alignof.c: Don't test int64_t if it does not exist.
11480         Reported by Eric Blake.
11481
11482 2009-06-06  Eric Blake  <ebb9@byu.net>
11483
11484         test-alignof: fix typo with long double
11485         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
11486         compiler error.
11487
11488 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
11489
11490         Escape non-texinfo { and }s.
11491         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
11492         markup error.
11493
11494 2009-06-04  Jim Meyering  <meyering@redhat.com>
11495
11496         gitlog-to-changelog: don't infloop on an empty commit log
11497         * build-aux/gitlog-to-changelog: Warn about an empty log message.
11498         Reported by Boris Petersen <transacid@centerim.org>.
11499
11500 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
11501
11502         version-etc: extend for packagers
11503         Add three new configure options, intended for packagers:
11504           --with-packager="packager name"
11505           --with-packager-version="packager-specific version"
11506           --with-packager-bug-reports="packager bug reporting"
11507         An example with coreutils:
11508           $ ./configure \
11509             --with-packager=Gentoo \
11510             --with-packager-bug-report=http://bugs.gentoo.org/ \
11511             --with-packager-version="patchset 1.6"
11512           $ ./src/ls --version | head -n2
11513           ls (GNU coreutils) 7.1-dirty
11514           Packaged by Gentoo (patchset 1.6)
11515         Note that the bug reporting info via --help doesn't show up because
11516         coreutils uses its own custom emit_bug_reporting_address() implementation
11517         in src/system.h.  If it didn't, it'd look like:
11518           $ ./src/ls --help | tail -n4
11519           Report bugs to <bug-coreutils@gnu.org>.
11520           Report Gentoo bugs to <http://bugs.gentoo.org/>.
11521           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
11522           General help using GNU software: <http://www.gnu.org/gethelp/>.
11523         * lib/version-etc.c: Print new information, if provided.
11524         * m4/version-etc.m4: New file.
11525         * modules/version-etc (Files): Add m4/version-etc.m4.
11526         (configure.ac): Add gl_VERSION_ETC.
11527
11528 2009-05-31  Bruno Haible  <bruno@clisp.org>
11529
11530         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
11531         and 'int64_t'.
11532         * modules/alignof-tests (Dependencies): Add stdint.
11533         Reported by Eric Blake.
11534
11535 2009-05-31  Bruno Haible  <bruno@clisp.org>
11536
11537         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
11538         restriction due to compiler bugs.
11539         Reported by Eric Blake.
11540
11541 2009-05-31  Simon Josefsson  <simon@josefsson.org>
11542             Bruno Haible  <bruno@clisp.org>
11543
11544         Fix test-alignof failure.
11545         * lib/alignof.h (alignof_slot): New macro.
11546         (alignof_type): New macro, with the same semantics as the previous
11547         'alignof'.
11548         (alignof): Alias to alignof_slot.
11549         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
11550         check that the results are usable as constant expressions.
11551
11552 2009-05-31  Bruno Haible  <bruno@clisp.org>
11553
11554         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
11555         * tests/test-memchr.c (main): Check that memchr does not read past the
11556         first occurrence of the byte.
11557         * tests/test-strstr.c (main): Update comment.
11558         Suggested by Eric Blake.
11559
11560 2009-05-30  Bruno Haible  <bruno@clisp.org>
11561
11562         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
11563         detail how to use dumpbin.
11564         Reported by David Byron <dbyron@dbyron.com>.
11565
11566 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11567
11568         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
11569
11570 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11571
11572         * m4/manywarnings.m4: Add GCC 4.4 warnings.
11573
11574 2009-05-28  Bruno Haible  <bruno@clisp.org>
11575
11576         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
11577         build-aux/ files.
11578
11579 2009-05-28  Simon Josefsson  <simon@josefsson.org>
11580
11581         * gnulib-tool (func_import): Transform license on build-aux/ files too.
11582
11583 2009-05-27  Simon Josefsson  <simon@josefsson.org>
11584
11585         * gnulib-tool (sed_transform_main_lib_file)
11586         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
11587         regexps.
11588
11589 2009-05-26  Simon Josefsson  <simon@josefsson.org>
11590
11591         * tests/test-strstr.c: Add another self-test.
11592         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
11593         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
11594
11595 2009-05-23  Bruno Haible  <bruno@clisp.org>
11596
11597         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
11598         change.
11599
11600 2009-05-21  Bruno Haible  <bruno@clisp.org>
11601
11602         Simplify use of mode_t varargs.
11603         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
11604         uses 'mode_t' or 'int'.
11605         * lib/openat.c (openat): Likewise.
11606         * lib/open-safer.c (open_safer): Likewise.
11607         * m4/mode_t.m4: New file.
11608         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
11609         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
11610         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
11611         * modules/open (Files): Add m4/mode_t.m4.
11612         * modules/openat (Files): Likewise.
11613         * modules/fcntl-safer (Files): Likewise.
11614         Suggested by Eric Blake.
11615
11616 2009-05-21  Pádraig Brady  <P@draigbrady.com>
11617
11618         * doc/glibc-functions/fallocate.texi: New file.
11619         * doc/gnulib.texi: Include it.
11620
11621 2009-05-21  Eric Blake  <ebb9@byu.net>
11622             Bruno Haible  <bruno@clisp.org>
11623
11624         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
11625         invocations.
11626         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11627
11628 2009-05-21  Eric Blake  <ebb9@byu.net>
11629             Bruno Haible  <bruno@clisp.org>
11630
11631         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
11632         include_next. Fix of 2008-11-20 commit.
11633         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
11634         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
11635         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
11636         NEXT_MATH_H.
11637         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
11638         instead of NEXT_MATH_H.
11639
11640 2009-05-21  Bruno Haible  <bruno@clisp.org>
11641
11642         Avoid redefinition warnings for SIZE_MAX.
11643         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
11644         Reported by Simon Josefsson.
11645
11646 2009-05-21  Bruno Haible  <bruno@clisp.org>
11647
11648         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
11649         AC_CACHE_VAL.
11650
11651 2009-05-20  Bruno Haible  <bruno@clisp.org>
11652
11653         Make zeroptr.h work on mingw.
11654         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
11655         mprotect.
11656         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
11657         * modules/memchr2-tests (configure.ac): Likewise.
11658         * modules/memcmp-tests (configure.ac): Likewise.
11659         * modules/memmem-tests (configure.ac): Likewise.
11660         * modules/memrchr-tests (configure.ac): Likewise.
11661         Reported by Simon Josefsson.
11662
11663 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11664
11665         * tests/test-glob.c: Include string.h for strcmp prototype.
11666
11667 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11668
11669         * modules/getdelim (Depends-on): Add explicit stdint, although it
11670         was implicitly already pulled in via realloc-posix.
11671         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
11672
11673 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11674
11675         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
11676         G. Christensen" <tgc@jupiterrise.com>.
11677         * m4/sys_socket_h.m4: Check for sa_family_t.
11678         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
11679         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
11680         * tests/test-sys_socket.c: Check that sa_family_t works.
11681
11682 2009-05-18  Eric Blake  <ebb9@byu.net>
11683
11684         maint.mk: allow gnulib_dir in VPATH build
11685         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
11686
11687 2009-05-15  Jim Meyering  <meyering@redhat.com>
11688
11689         maint.mk: Give gnulib_dir a default definition.
11690         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
11691         Thus, most packages no longer need to specify this variable in cfg.mk
11692
11693 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
11694
11695         rename.m4: fix typos that would make non-mingw cross-configure fail
11696         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
11697
11698 2009-05-13  Eric Blake  <ebb9@byu.net>
11699
11700         mmap-anon: avoid out-of-order autoconf expansion
11701         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
11702         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
11703         * modules/memchr-tests (Depends-on): Add extensions.
11704         * modules/memchr2-tests (Depends-on): Add extensions.
11705         * modules/memcmp-tests (Depends-on): Add extensions.
11706         * modules/memmem-tests (Depends-on): Add extensions.
11707         * modules/memrchr-tests (Depends-on): Add extensions.
11708
11709 2009-05-13  Bruno Haible  <bruno@clisp.org>
11710
11711         Make some tests ISO C 99 compliant.
11712         * tests/zerosize-ptr.h: New file.
11713         * tests/test-memchr.c: Include zerosize-ptr.h.
11714         (main): Use a zero-size object pointer instead of NULL.
11715         * tests/test-memchr2.c: Include zerosize-ptr.h.
11716         (main): Use a zero-size object pointer instead of NULL.
11717         * tests/test-memcmp.c: Include zerosize-ptr.h.
11718         (main): Use a zero-size object pointer instead of NULL.
11719         * tests/test-memmem.c: Include zerosize-ptr.h.
11720         (main): Use a zero-size object pointer instead of NULL.
11721         * tests/test-memrchr.c: Include zerosize-ptr.h.
11722         (main): Use a zero-size object pointer instead of NULL.
11723         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
11724         m4/mmap-anon.m4.
11725         (Depends-on): Add getpagesize.
11726         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11727         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
11728         m4/mmap-anon.m4.
11729         (Depends-on): Add getpagesize.
11730         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11731         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
11732         m4/mmap-anon.m4.
11733         (Depends-on): Add getpagesize.
11734         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11735         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
11736         m4/mmap-anon.m4.
11737         (Depends-on): Add getpagesize.
11738         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11739         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
11740         m4/mmap-anon.m4.
11741         (Depends-on): Add getpagesize.
11742         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11743
11744 2009-05-12  Bruno Haible  <bruno@clisp.org>
11745
11746         Tests for module 'alignof'.
11747         * modules/alignof-tests: New file.
11748         * tests/test-alignof.c: New file.
11749
11750 2009-05-12  Bruno Haible  <bruno@clisp.org>
11751
11752         Fix alignof macro.
11753         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
11754         vendor compilers that are always correct.
11755
11756 2009-05-12  Bruno Haible  <bruno@clisp.org>
11757
11758         Make the MAP_ANONYMOUS detection work on HP-UX 11.
11759         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
11760         not whether its fully works.
11761
11762 2009-05-12  Bruno Haible  <bruno@clisp.org>
11763
11764         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
11765
11766 2009-05-12  Jim Meyering  <meyering@redhat.com>
11767
11768         * top/maint.mk: Adjust backslash alignment.
11769
11770 2009-05-11  Simon Josefsson  <simon@josefsson.org>
11771
11772         * top/maint.mk: Make $(srcdir)/build-aux configurable.
11773
11774 2009-05-11  Eric Blake  <ebb9@byu.net>
11775
11776         argp: avoid undefined behavior
11777         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
11778         macros.
11779
11780 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11781
11782         * tests/test-vc-list-files-git.sh: Do git config of user.email and
11783         user.name to prevent git commit from complaining.
11784
11785 2009-05-10  Bruno Haible  <bruno@clisp.org>
11786
11787         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
11788         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
11789         it rewrites every file name only once.
11790         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
11791
11792 2009-05-08  Bruno Haible  <bruno@clisp.org>
11793
11794         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
11795         instead of 'max'.
11796
11797 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11798
11799         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
11800         sockaddr_storage test.
11801
11802 2009-05-07  Simon Josefsson  <simon@josefsson.org>
11803
11804         * modules/sys_socket (Makefile.am): Substitute
11805         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
11806         * m4/sys_socket_h.m4: Check for sockaddr_storage.
11807         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
11808         * tests/test-sys_socket.c: Check sockaddr_storage.
11809
11810 2009-05-08  Bruno Haible  <bruno@clisp.org>
11811
11812         New module 'alignof'.
11813         * lib/alignof.h: New file.
11814         * modules/alignof: New file.
11815
11816 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11817             Bruno Haible  <bruno@clisp.org>
11818
11819         Fix test-file-has-acl on FreeBSD.
11820         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
11821         mask is implicitly added.
11822         * tests/test-file-has-acl.c: Include <signal.h>.
11823         (main): Terminate the test after 5 seconds.
11824         * modules/acl-tests (configure.ac): Check for alarm function.
11825
11826 2009-05-04  Bruno Haible  <bruno@clisp.org>
11827
11828         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
11829         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
11830         * modules/errno (configure.ac): Drop AC_REQUIRE.
11831         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
11832         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
11833
11834 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11835
11836         * modules/glob-tests: New module.
11837         * tests/test-glob.c: Add.
11838
11839 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11840
11841         * modules/fnmatch-tests: New module.
11842         * tests/test-fnmatch.c: Add.
11843
11844 2009-05-04  Eric Blake  <ebb9@byu.net>
11845
11846         maint: make the new no-submodule-changes rule VPATH-safe
11847         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
11848
11849 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11850             Bruno Haible  <bruno@clisp.org>
11851
11852         acl: Fix infinite loop on FreeBSD.
11853         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
11854         of return value from acl_get_entry.
11855         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
11856         Likewise.
11857
11858 2009-05-03  Bruno Haible  <bruno@clisp.org>
11859
11860         * lib/acl-internal.h (acl_entries): Clarify return value.
11861         * lib/acl_entries.c (acl_entries): Likewise.
11862
11863 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11864
11865         Bug fix in acl module.
11866         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
11867
11868 2009-05-03  Bruno Haible  <bruno@clisp.org>
11869
11870         Create gperf-generated file in the source dir, not in the build dir.
11871         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
11872         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
11873         * modules/unicase/locale-language (unicase/locale-languages.h):
11874         Likewise.
11875         * modules/unicase/special-casing (unicase/special-casing-table.h):
11876         Likewise.
11877         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
11878         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
11879         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
11880         Reported by Ralf Wildenhues.
11881
11882 2009-05-03  Bruno Haible  <bruno@clisp.org>
11883
11884         * modules/fnmatch (Description, configure.ac): Taken from
11885         fnmatch-posix.
11886         * modules/fnmatch-posix: Turn into a symbolic reference to the
11887         'fnmatch' module, and deprecate.
11888         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
11889
11890 2009-05-03  Bruno Haible  <bruno@clisp.org>
11891
11892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
11893         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
11894         Reported by Ralf Wildenhues.
11895
11896 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11897
11898         * m4/fnmatch.m4: Fix fnmatch re-define.
11899
11900 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11901
11902         priv-set: new module and tests; adapt write-any-file
11903         * lib/priv-set.c: New file.
11904         * lib/priv-set.h: New file.
11905         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
11906         * lib/write-any-file.c: Simplify by using priv-set module.
11907         * m4/priv-set.m4: New file.
11908         * modules/priv-set: New file.
11909         * modules/unlinkdir: Add dependency on priv-set module.
11910         * modules/write-any-file: Likewise.
11911
11912         Tests for module 'priv-set'.
11913         * modules/priv-set-tests: New file.
11914         * tests/test-priv-set.c: New file.
11915
11916 2009-05-03  Jim Meyering  <meyering@redhat.com>
11917             Bruno Haible  <bruno@clisp.org>
11918
11919         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
11920         use the converted UTF-8 variant of the name instead.
11921
11922 2009-05-03  Jim Meyering  <meyering@redhat.com>
11923
11924         tests: tighten some getdate tests
11925         * tests/test-getdate.c (main): Tighten tests: require equality,
11926         not just greater than.  Set TZ envvar to UTC0.
11927
11928 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11929
11930         getdate: correctly interpret "next monday" when run on a Monday
11931         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
11932         that e.g., "next tues" (when run on a tuesday) results in a date
11933         that is one week in the future, and not today's date.
11934         I.e., add a week when the wday is the same as the current one.
11935         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
11936         and earlier by Martin Bernreuther and Jan Minář.
11937         * tests/test-getdate.c (main): Check that "next DAY" is always in
11938         the future and that "last DAY" is always in the past.
11939
11940 2009-05-02  Jim Meyering  <meyering@redhat.com>
11941
11942         build: ensure that a release build fails when a submodule is unclean
11943         * top/maint.mk (no-submodule-changes): New rule.
11944         (alpha beta major): Depend on it.
11945
11946 2009-05-02  Bruno Haible  <bruno@clisp.org>
11947
11948         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
11949         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
11950         shell variable gl_fnmatch_required to detect which variant is
11951         requested.
11952         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
11953         gl_FUNC_FNMATCH_POSIX.
11954         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
11955         exclude fnmatch-posix.
11956
11957 2009-05-02  Bruno Haible  <bruno@clisp.org>
11958
11959         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
11960         * modules/mbsrtowcs (License): Change to LGPLv2+.
11961         * modules/strnlen1 (License): Likewise.
11962         Reported by Simon Josefsson.
11963
11964 2009-05-02  Bruno Haible  <bruno@clisp.org>
11965
11966         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
11967         "cross".
11968         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
11969         gnulib-tool was called with option --source-base=lib.
11970
11971 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11972
11973         Use automake *-local hooks without commands, for extensibility.
11974         * modules/localcharset (Makefile.am): Rename install-exec-local
11975         rule to install-exec-localcharset, and make it a prerequisite of
11976         install-exec-local.  Likewise, rename the uninstall-local rule to
11977         uninstall-localcharset, and make it a prerequisite of the former.
11978
11979 2009-05-01  Bruno Haible  <bruno@clisp.org>
11980
11981         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
11982         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
11983         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
11984         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
11985         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
11986         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
11987         m4/locale-zh.m4, m4/codeset.m4.
11988
11989         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
11990         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
11991         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
11992         m4/locale-zh.m4.
11993
11994         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
11995         REPLACE_WCRTOMB if mbstate_t must be replaced.
11996         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
11997         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
11998
11999 2009-05-01  Bruno Haible  <bruno@clisp.org>
12000
12001         Avoid compiler warnings when redefining macros defined by <libintl.h>.
12002         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12003         dngettext, dcngettext, textdomain, bindtextdomain,
12004         bind_textdomain_codeset): Undefine before redefining.
12005
12006 2009-04-30  Bruno Haible  <bruno@clisp.org>
12007
12008         Fix bug introduced on 2009-04-25.
12009         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12010         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12011         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12012         is defined.
12013         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12014         is defined.
12015         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12016         is defined.
12017         Reported by Elbert_Pol <elbert.pol@gmail.com>.
12018
12019 2009-04-28  Bruno Haible  <bruno@clisp.org>
12020
12021         Comment tweaks.
12022         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12023         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12024         * lib/unicase.h (u*_casexfrm): Likewise.
12025         Reported by Paolo Bonzini.
12026
12027 2009-04-28  Bruno Haible  <bruno@clisp.org>
12028
12029         Fix a compilation error.
12030         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12031         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12032         Reported by Jim Meyering.
12033
12034 2009-04-27  Bruno Haible  <bruno@clisp.org>
12035
12036         New module 'libunistring'.
12037         * modules/libunistring: New file.
12038         * m4/libunistring.m4: New file.
12039         * MODULES.html.sh (Unicode string functions): Add it.
12040
12041 2009-04-27  Eric Blake  <ebb9@byu.net>
12042
12043         maint.mk: allow package-specific header to provide <config.h>
12044         * top/maint.mk (sc_require_config_h): New variable.
12045         (sc_require_config_h, sc_require_config_h_first): Use it.
12046
12047 2009-04-27  Simon Josefsson  <simon@josefsson.org>
12048
12049         * top/maint.mk (sc_avoid_if_before_free): Except
12050         useless-if-before-free script.
12051
12052 2009-04-27  Eric Blake  <ebb9@byu.net>
12053
12054         maintainer-makefile: depend on all required helper scripts
12055         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12056         useless-if-before-free.
12057         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12058         version, rather than assuming gnulib checkout is available.
12059         Reported by Simen Josefsson.
12060
12061 2009-04-26  Bruno Haible  <bruno@clisp.org>
12062
12063         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12064         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12065         "../" or "..".
12066
12067 2009-04-26  Bruno Haible  <bruno@clisp.org>
12068
12069         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12070         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12071         AC_LIB_HAVE_LINKFLAGS.
12072
12073 2009-04-26  Bruno Haible  <bruno@clisp.org>
12074
12075         Simplify calling convention of u*_conv_from_encoding.
12076         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12077         u32_conv_from_encoding): Expect a resultbuf argument and return the
12078         result directly as a pointer.
12079         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12080         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12081         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12082         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12083         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12084         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12085         Update.
12086         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12087         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12088         * lib/vasnprintf.c (VASNPRINTF): Update.
12089         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12090         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12091         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12092         * NEWS: Mention the change.
12093
12094 2009-04-26  Bruno Haible  <bruno@clisp.org>
12095
12096         Simplify calling convention of u*_conv_to_encoding.
12097         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12098         u32_conv_to_encoding): Expect a resultbuf argument and return the
12099         result directly as a pointer.
12100         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12101         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12102         freeing scaled_offsets if mem_iconveha failed.
12103         * lib/unicase/u-casexfrm.h (FUNC): Update.
12104         * lib/uninorm/u-normxfrm.h (FUNC): Update.
12105         * lib/vasnprintf.c (VASNPRINTF): Update.
12106         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12107         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12108         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12109         * NEWS: Mention the change.
12110
12111 2009-04-26  Bruno Haible  <bruno@clisp.org>
12112
12113         Avoid test failures on AIX and OSF/1.
12114         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12115         malloc(0).
12116         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12117         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12118         Likewise.
12119         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12120         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12121         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12122         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12123         * doc/posix-functions/malloc.texi: Document the portability problem
12124         related to malloc(0).
12125
12126 2009-04-26  Bruno Haible  <bruno@clisp.org>
12127
12128         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12129         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12130         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12131
12132 2009-04-25  Bruno Haible  <bruno@clisp.org>
12133
12134         Avoid link error when creating a namespace clean library.
12135         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12136         as macro with arguments if already defined as an alias.
12137         * lib/signbitf.c (gl_signbitf): Don't undefine.
12138         * lib/signbitd.c (gl_signbitd): Don't undefine.
12139         * lib/signbitl.c (gl_signbitl): Don't undefine.
12140
12141 2009-04-25  Jim Meyering  <meyering@redhat.com>
12142
12143         vc-list-files: fix another quoting bug
12144         * build-aux/vc-list-files: Avoid sed backslash expansion
12145         of pathological directory names.
12146
12147 2009-04-25  Eric Blake  <ebb9@byu.net>
12148
12149         vc-list-files: fix shell quoting error
12150         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
12151         timestamp.
12152
12153 2009-04-25  Jim Meyering  <meyering@redhat.com>
12154
12155         vc-list-files: restore lost functionality with subdir argument
12156         * build-aux/vc-list-files: When given a non-"." sub-directory
12157         argument, substitute the $dir/ prefix back onto each resulting name.
12158         Otherwise, coreutils' root_tests check would fail.
12159
12160 2009-04-24  Eric Blake  <ebb9@byu.net>
12161
12162         vc-list-files: ignore git symlinks
12163         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12164         than ls-files, to ignore git symlinks.
12165
12166         maint.mk: import improvements from m4
12167         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12168         (move_if_change): Delete unused macro.
12169         (news-date-check, vc-diff-check): Support VPATH builds.
12170         (announcement): Likewise.  Split --bootstrap-tools list...
12171         (boostrap-tools): ...into separate list, which can be overridden
12172         in cfg.mk.
12173         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12174         requiring dependency on useless-if-before-free module.
12175         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12176         Support VPATH builds.
12177
12178 2009-04-24  Jim Meyering  <meyering@redhat.com>
12179
12180         maint.mk: remove coreutils-specific rules and variables
12181         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12182         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12183         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12184
12185         maint.mk: remove obsolete rule
12186         * top/maint.mk (rel-check): Remove rule.
12187         (WGET, WGETFLAGS): Remove now-unused variables.
12188
12189 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12190
12191         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12192         consistency.
12193
12194         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12195         '$(PATH_SEPARATOR)' instead of ':'.
12196
12197 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12198
12199         * lib/getopt1.c (main): Use 'const' for static array.
12200
12201 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12202
12203         * top/maint.mk: Sync with coreutils.
12204         * NEWS: Explain incompatibilities.
12205
12206 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12207             Bruno Haible  <bruno@clisp.org>
12208
12209         Fix cross-compilation results.
12210         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12211         statement, as third argument of AC_TRY_RUN.
12212         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12213         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12214         Likewise.
12215         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12216         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12217         Likewise.
12218         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12219         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12220         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12221
12222 2009-04-20  Bruno Haible  <bruno@clisp.org>
12223
12224         Avoid test failure on mingw.
12225         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12226
12227 2009-04-20  Bruno Haible  <bruno@clisp.org>
12228
12229         Avoid compilation error on mingw.
12230         * modules/localename-tests (Depends-on): Add locale.
12231
12232 2009-04-19  Bruno Haible  <bruno@clisp.org>
12233
12234         Support for building a shared library on Windows platforms.
12235         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12236         (main): Test the presence of UNINORM_NFC here.
12237         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12238         (main): Test the presence of UNINORM_NFD here.
12239         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12240         (main): Test the presence of UNINORM_NFKC here.
12241         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12242         (main): Test the presence of UNINORM_NFKD here.
12243
12244 2009-04-19  Bruno Haible  <bruno@clisp.org>
12245
12246         Avoid a compiler warning.
12247         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12248         Change type of variable 'sequence'.
12249
12250 2009-04-19  Bruno Haible  <bruno@clisp.org>
12251
12252         * modules/configmake (Makefile.am): When the contents of configmake.h
12253         does not change, arrange to preserve its modification time.
12254
12255 2009-04-17  Simon Josefsson  <simon@josefsson.org>
12256
12257         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12258         gettext domain.
12259
12260 2009-04-16  Jim Meyering  <meyering@redhat.com>
12261
12262         useless-if-before-free: improve conversion code
12263         * build-aux/useless-if-before-free: Adjust code-in-comment to match
12264         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
12265
12266 2009-04-14  Bruno Haible  <bruno@clisp.org>
12267
12268         * modules/fcntl (Depends-on): Add extensions.
12269         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12270
12271 2009-04-12  Ben Pfaff  <blp@gnu.org>
12272
12273         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12274         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12275
12276 2009-03-20  Ben Pfaff  <blp@gnu.org>
12277
12278         Make rename replace existing destinations on Windows.
12279         * m4/rename.m4: Add test for Mingw.
12280         * lib/rename.c: Add rename replacement that uses MoveFileEx with
12281         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12282         * doc/posix-functions/rename.texi: Document.
12283
12284 2009-04-10  Bruno Haible  <bruno@clisp.org>
12285
12286         New include file "iconveh.h".
12287         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
12288         * lib/striconveh.h: Include it.
12289         (enum iconv_ilseq_handler): Remove definition.
12290         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
12291         striconveh.h.
12292         * lib/striconveha.c: Include striconveh.h.
12293         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
12294         * modules/striconveh (Files): Add lib/iconveh.h.
12295         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
12296         lib/striconveh.h.
12297
12298 2009-04-10  Bruno Haible  <bruno@clisp.org>
12299
12300         * lib/uniconv.h: Update comment.
12301
12302 2009-04-10  Bruno Haible  <bruno@clisp.org>
12303
12304         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
12305         always.
12306         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12307         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12308         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12309         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
12310         "unistring-notinline.h", so that the function gets defined always.
12311         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12312         * lib/unistr/u8-uctomb.c: Likewise.
12313         * lib/unistr/u16-mbtouc.c: Likewise.
12314         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12315         * lib/unistr/u16-uctomb.c: Likewise.
12316         * lib/unistr/u32-mbtouc.c: Likewise.
12317         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12318         * lib/unistr/u32-uctomb.c: Likewise.
12319
12320 2009-04-10  Bruno Haible  <bruno@clisp.org>
12321
12322         Mark 'utime' obsolete.
12323         * modules/utime (Status, Notice): New sections.
12324         Suggested by Jim Meyering.
12325
12326         Fix cross-compile guess for utime test.
12327         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
12328         autoconf.
12329         * doc/posix-functions/utime.texi: Give more precisions.
12330         Reported by Jan <ipif@ymail.com>.
12331
12332 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
12333
12334         filevercmp: correct today's change
12335         * lib/filevercmp.c: Also handle coreutils' test inputs.
12336         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
12337
12338         Fix regression in 'filevercmp' module. Thanks Sven Joachim
12339         for reporting it.
12340         * lib/filevercmp.c: Special handle for "", "." and "..".
12341         * tests/test-filevercmp.c: Enlarge the set suite.
12342
12343 2009-04-07  Jim Meyering  <meyering@redhat.com>
12344
12345         useless-if-before-free: show how to remove braced useless free, too
12346         * build-aux/useless-if-before-free: still only in a comment, though.
12347
12348 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
12349
12350         maint.mk: import changes to syntax-check macros from coreutils
12351         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
12352         Use them in the relevant macros.
12353
12354 2009-04-06  Bruno Haible  <bruno@clisp.org>
12355
12356         Fix unportable use of bit-fields.
12357         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
12358         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
12359         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
12360
12361 2009-04-06  Bruno Haible  <bruno@clisp.org>
12362
12363         Avoid test failures on AIX and OSF/1.
12364         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
12365         that malloc(0) = NULL.
12366         * tests/unicase/test-u8-tolower.c (check): Likewise.
12367         * tests/unicase/test-u8-totitle.c (check): Likewise.
12368         * tests/unicase/test-u8-toupper.c (check): Likewise.
12369         * tests/unicase/test-u16-casefold.c (check): Likewise.
12370         * tests/unicase/test-u16-tolower.c (check): Likewise.
12371         * tests/unicase/test-u16-totitle.c (check): Likewise.
12372         * tests/unicase/test-u16-toupper.c (check): Likewise.
12373         * tests/unicase/test-u32-casefold.c (check): Likewise.
12374         * tests/unicase/test-u32-tolower.c (check): Likewise.
12375         * tests/unicase/test-u32-totitle.c (check): Likewise.
12376         * tests/unicase/test-u32-toupper.c (check): Likewise.
12377         * tests/uninorm/test-u8-nfc.c (check): Likewise.
12378         * tests/uninorm/test-u8-nfd.c (check): Likewise.
12379         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
12380         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
12381         * tests/uninorm/test-u16-nfc.c (check): Likewise.
12382         * tests/uninorm/test-u16-nfd.c (check): Likewise.
12383         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
12384         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
12385         * tests/uninorm/test-u32-nfc.c (check): Likewise.
12386         * tests/uninorm/test-u32-nfd.c (check): Likewise.
12387         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
12388         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
12389
12390 2009-04-05  Bruno Haible  <bruno@clisp.org>
12391
12392         Work around an autoconf limitation.
12393         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
12394         comment line if it would be longer than 3 KB.
12395
12396 2009-04-05  Bruno Haible  <bruno@clisp.org>
12397
12398         Avoid test failure with libiconv-1.13.
12399         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
12400         of the expected test results.
12401
12402 2009-04-05  Bruno Haible  <bruno@clisp.org>
12403
12404         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
12405         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
12406         that it should be installed.
12407
12408 2009-04-05  Bruno Haible  <bruno@clisp.org>
12409
12410         * gnulib-tool: New option --copy-file.
12411         (func_usage): Document it.
12412         (func_dest_tmpfilename): Moved out of func_import.
12413         (func_add_file, func_update_file): New functions, extracted from
12414         func_import.
12415         (func_import): Update.
12416
12417 2009-04-05  Karl Berry  <karl@gnu.org>
12418
12419         * README: prominently mention gnulib-tool.
12420         Rearrange sections so getting the code is near the top.
12421
12422 2009-04-05  Bruno Haible  <bruno@clisp.org>
12423
12424         * lib/unicase.h: Mention u*_cmp2.
12425         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12426         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
12427         * lib/unicase/ulc-casecmp.c: Likewise.
12428         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
12429         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
12430         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
12431         unistr/u8-cmp.
12432         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
12433         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
12434         unistr/u16-cmp.
12435         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
12436         unistr/u32-cmp.
12437
12438         * lib/uninorm.h: Mention u*_cmp2.
12439         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12440         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
12441         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
12442         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
12443         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
12444         unistr/u8-cmp.
12445         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
12446         unistr/u16-cmp.
12447         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
12448         unistr/u32-cmp.
12449
12450         New module 'unistr/u32-cmp2'.
12451         * lib/unistr/u32-cmp2.c: New file.
12452         * modules/unistr/u32-cmp2: New file.
12453
12454         New module 'unistr/u16-cmp2'.
12455         * lib/unistr/u16-cmp2.c: New file.
12456         * modules/unistr/u16-cmp2: New file.
12457
12458         New module 'unistr/u8-cmp2'.
12459         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
12460         * lib/unistr/u8-cmp2.c: New file.
12461         * lib/unistr/u-cmp2.h: New file.
12462         * modules/unistr/u8-cmp2: New file.
12463
12464 2009-04-05  Bruno Haible  <bruno@clisp.org>
12465
12466         * lib/unictype.h (uc_property_is_valid): New macro.
12467         * tests/unictype/test-pr_byname.c (main): Use it.
12468
12469         * lib/unistr.h: Doc fixes.
12470         * lib/uniconv.h: Doc fixes.
12471         * lib/unictype.h: Doc fixes.
12472
12473 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12474
12475         Port coreutils 7.2 to Solaris 8.
12476
12477         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
12478         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
12479         for Solaris 8.  This is a bit of a hack, as it means it's the
12480         caller's responsibility to add -lnsl if needed, but most likely it
12481         won't be needed since only getaddrinfo uses this and getaddrinfo
12482         isn't needed on Solaris 8.
12483
12484         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
12485         problem to Solaris 8 encountered with coreutils 7.2, which
12486         resulted in a message "fnmatch.c:292: warning: passing argument 4
12487         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
12488         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
12489
12490 2009-04-03  Simon Josefsson  <simon@josefsson.org>
12491
12492         * m4/ld-version-script.m4: Add FIXME comment.
12493
12494 2009-04-02  Simon Josefsson  <simon@josefsson.org>
12495
12496         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
12497         SOVERSION variable.
12498
12499 2009-04-02  Bruno Haible  <bruno@clisp.org>
12500
12501         * Makefile (info, html, dvi, pdf): Combine the rules.
12502         Suggested by Jim Meyering.
12503
12504 2009-04-01  Bruno Haible  <bruno@clisp.org>
12505
12506         * Makefile (info, html, dvi, pdf): New targets.
12507         Reported by Reuben Thomas <rrt@sc3d.org>.
12508
12509 2009-04-01  Bruno Haible  <bruno@clisp.org>
12510
12511         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
12512         can be put into PATH.
12513         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
12514
12515 2009-04-01  Bruno Haible  <bruno@clisp.org>
12516
12517         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
12518
12519 2009-04-01  Bruno Haible  <bruno@clisp.org>
12520
12521         Rename module 'visibility'.
12522         * modules/lib-symbol-visibility: Renamed from modules/visibility.
12523         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
12524         * doc/gnulib.texi: Update.
12525         * MODULES.html.sh (Misc): Update.
12526         * NEWS: Mention the change.
12527
12528 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12529
12530         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
12531         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
12532         Eric Blake <ebb9@byu.net> for review.
12533         * MODULES.html.sh: Add lib-msvc-compat.
12534         * doc/gnulib.texi: Link to new section.
12535         * m4/ld-output-def.m4: New file.
12536         * doc/ld-output-def.texi: New file.
12537
12538 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12539
12540         Rename ld-version-script to lib-symbol-versions.  Suggested by
12541         Bruno Haible <bruno@clisp.org>.
12542         * modules/ld-version-script: Renamed to lib-symbol-versions.
12543         * doc/ld-version-script.texi: Fix module name.
12544         * MODULES.html.sh: Add lib-symbol-versions.
12545
12546 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12547
12548         * modules/u64-tests: New file.
12549         * tests/test-u64.c: New file.
12550
12551 2009-03-04  Simon Josefsson  <simon@josefsson.org>
12552
12553         * MODULES.html.sh: Mention u64.
12554         * modules/u64: New module.
12555         * modules/crypto/sha512: Depend on u64 module instead of providing
12556         u64.h.
12557
12558 2009-03-27  Eric Blake  <ebb9@byu.net>
12559
12560         test-strerror: make debugging EAI_SYSTEM easier
12561         * modules/getaddrinfo-tests (Depends-on): Add strerror.
12562         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
12563         failure was EAI_SYSTEM.
12564
12565 2009-03-25  Bruno Haible  <bruno@clisp.org>
12566
12567         Fix a problem with --enable-relocatable on Solaris 7.
12568         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
12569         since 2008-02-24.
12570
12571 2009-03-25  Eric Blake  <ebb9@byu.net>
12572
12573         test-sockets: avoid gcc warning
12574         * tests/test-sockets.c (main): Silence compiler warning.
12575
12576 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12577
12578         New modules nproc, pthread, contributed by Glen Lenker.
12579
12580         * MODULES.html.sh: Add pthread, nproc.
12581         * lib/nproc.c: New file.
12582         * lib/nproc.h: New file.
12583         * lib/pthread.in.h: New file.
12584         * m4/pthread.m4: New file.
12585         * modules/nproc: New file.
12586         * modules/pthread: New file.
12587
12588 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12589
12590         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
12591         New variable.
12592
12593 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
12594
12595         filevercmp: handle simple~ and numbered.~3~ backup suffixes
12596         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
12597         * tests/test-filevercmp.c: Add tests for backup suffixes.
12598
12599 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12600
12601         * modules/stdlib (Depends-on): Add stdint, needed when defining
12602         struct random_data on, for example, HP-UX 10.20.  Reported by
12603         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12604
12605 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12606
12607         * lib/readline.c (readline): Call fflush on stdout after printing
12608         prompt.
12609
12610 2009-03-20  Bruno Haible  <bruno@clisp.org>
12611
12612         Remove dependency from 'close' module to -lws2_32 on native Windows.
12613         * lib/close-hook.h: New file.
12614         * lib/close-hook.c: New file.
12615         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
12616         w32sock.h.
12617         (_gl_close_fd_maybe_socket): Remove function.
12618         (rpl_close): Invoke execute_all_close_hooks instead of
12619         _gl_close_fd_maybe_socket.
12620         * lib/sockets.c: Include close-hook.h, w32sock.h.
12621         (close_fd_maybe_socket): New function, essentially from lib/close.c.
12622         (close_sockets_hook): New variable.
12623         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
12624         (gl_sockets_cleanup): Unregister it.
12625         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
12626         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
12627         * modules/close-hook: New file.
12628         * modules/close (Files): Remove lib/w32sock.h.
12629         (Depends-on): Add close-hook.
12630         (Link): Remove section.
12631         * modules/sockets (Files): Add lib/w32sock.h.
12632         (Depends-on): Add close-hook.
12633         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
12634         invocation.
12635         * NEWS: Mention that LIB_CLOSE is gone.
12636
12637 2009-03-23  Eric Blake  <ebb9@byu.net>
12638
12639         signal-tests: test previous patch
12640         * tests/test-signal.c: New file.
12641         * modules/signal-tests: Likewise.
12642
12643         signal.h: always support 'volatile sig_atomic_t'
12644         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
12645         (gl_SIGNAL_H_DEFAULTS): Add a default.
12646         * modules/signal (Makefile.am): Substitute if needed.
12647         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
12648         users can blindly add volatile.
12649         * doc/posix-headers/signal.texi (signal.h): Document it.
12650         Reported by Matthew Woehlke.
12651
12652 2009-03-23  Jim Meyering  <meyering@redhat.com>
12653
12654         pathmax: PATH_MAX: use pathconf only when available
12655         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
12656         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
12657         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
12658         This avoids a link failure in a PSP cross-compilation environment
12659         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
12660
12661         * lib/vasnprintf.c (divide): Fix typo in comment.
12662
12663 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12664
12665         * gnulib-tool (func_filter_filelist): Fix comment.
12666
12667 2009-03-20  Bruno Haible  <bruno@clisp.org>
12668
12669         Make sockets.h self-contained.
12670         * lib/sockets.c: Include sockets.h first.
12671         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
12672
12673 2009-03-19  Eric Blake  <ebb9@byu.net>
12674
12675         doc: mention more functions added in cygwin 1.7.0
12676         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
12677         addition.
12678         * doc/posix-functions/log2f.texi: Likewise.
12679
12680 2009-03-19  Jim Meyering  <meyering@redhat.com>
12681
12682         fsusage: avoid syntax error due to statement-before-declaration
12683         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
12684         after all declarations.  Reported by Matthew Woehlke in
12685         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
12686
12687 2009-03-18  Eric Blake  <ebb9@byu.net>
12688
12689         build-aux/compile: sync from automake
12690         * build-aux/compile: New file, from automake.
12691         * config/srclist.txt: Mention build-aux/compile.
12692
12693 2009-03-17  Bruno Haible  <bruno@clisp.org>
12694
12695         * lib/git-merge-changelog.c: Fix typo in comment.
12696         Reported by Reuben Thomas <rrt@sc3d.org>.
12697
12698 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
12699
12700         * m4/regex.m4: update and improve help for
12701         --without-included-regex.
12702
12703 2009-03-17  Simon Josefsson  <simon@josefsson.org>
12704
12705         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
12706         failure on missing include files.
12707
12708 2009-03-17  Eric Blake  <ebb9@byu.net>
12709
12710         doc: mention more functions added in cygwin 1.7.0
12711         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
12712         addition.
12713         * doc/posix-functions/fwscanf.texi: Likewise.
12714         * doc/posix-functions/swprintf.texi: Likewise.
12715         * doc/posix-functions/swscanf.texi: Likewise.
12716         * doc/posix-functions/vfwprintf.texi: Likewise.
12717         * doc/posix-functions/vfwscanf.texi: Likewise.
12718         * doc/posix-functions/vswprintf.texi: Likewise.
12719         * doc/posix-functions/vswscanf.texi: Likewise.
12720         * doc/posix-functions/vwprintf.texi: Likewise.
12721         * doc/posix-functions/vwscanf.texi: Likewise.
12722         * doc/posix-functions/wcscasecmp.texi: Likewise.
12723         * doc/posix-functions/wcsdup.texi: Likewise.
12724         * doc/posix-functions/wcsftime.texi: Likewise.
12725         * doc/posix-functions/wcsncasecmp.texi: Likewise.
12726         * doc/posix-functions/wprintf.texi: Likewise.
12727         * doc/posix-functions/wscanf.texi: Likewise.
12728         * doc/glibc-functions/gethostbyname2.texi: Likewise.
12729
12730 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12731
12732         maint.mk: really add $(AM_MAKEFLAGS)
12733         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
12734         was inadvertently omitted in the last commit.
12735         Spotted by Bruno Haible.
12736
12737         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
12738         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
12739         $(AM_MAKEFLAGS)' rather than plain `make'.
12740
12741         gnulib-tool: execute $MAKE not make
12742         * gnulib-tool: Default $MAKE to 'make'.
12743         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
12744         than make.  Initialize $MAKE in the do-autobuild script.
12745
12746         gnulib-tool: use $MAKE not make in generated files
12747         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
12748         make, in generated files.  Initialize $MAKE in the do-autobuild
12749         script.
12750
12751         * top/GNUmakefile (_have-git-version-gen): Fix typo.
12752
12753         GNUmakefile: disable parallelism only for multiple, recursive targets
12754         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
12755         additions in the Makefile.
12756         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
12757         by Automake.
12758         (.NOTPARALLEL): Only disable parallel builds if multiple targets
12759         are listed on the command line and at least one of them is
12760         listed in $(ALL_RECURSIVE_TARGETS).
12761
12762 2009-03-14  Bruno Haible  <bruno@clisp.org>
12763
12764         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
12765         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
12766         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
12767         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
12768         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
12769         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
12770         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
12771         unistr/u8-uctomb.
12772         * modules/unistr/u8-strchr (Depends-on): Likewise.
12773         * modules/unistr/u8-strrchr (Depends-on): Likewise.
12774         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
12775         unistr/u16-uctomb.
12776         * modules/unistr/u16-strchr (Depends-on): Likewise.
12777         * modules/unistr/u16-strrchr (Depends-on): Likewise.
12778
12779 2009-03-12  Bruno Haible  <bruno@clisp.org>
12780
12781         Work around select() bug on Interix 3.5.
12782         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
12783         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
12784         * m4/select.m4: New file.
12785         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
12786         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
12787         * modules/select (Files): Add m4/select.m4.
12788         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
12789         * modules/nanosleep (Depends-on): Add select.
12790         * modules/poll (Depends-on): Likewise.
12791         * doc/posix-functions/select.texi: Mention the Interix bug.
12792         Reported by Markus Duft <mduft@gentoo.org>.
12793
12794         * lib/select.c: Renamed from lib/winsock-select.c.
12795         * modules/select (Files): Add lib/select.c, remove
12796         lib/winsock-select.c.
12797         (configure.ac): Update.
12798
12799 2009-03-12  Jim Meyering  <meyering@redhat.com>
12800
12801         avoid gcc warnings about unused macro definitions
12802         * lib/readtokens.c (STREQ): Remove unused definition.
12803         * lib/xmalloc.c (SIZE_MAX): Likewise.
12804         * lib/openat-die.c (N_): Likewise.
12805         * lib/mountlist.c (SIZE_MAX): Remove definition.
12806         Instead, include <stdint.h>.
12807         * lib/readutmp.c: Likewise.
12808         * modules/readutmp (Depends-on): Add stdint.
12809         * modules/mountlist (Depends-on): Add stdint.
12810         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
12811
12812 2009-03-10  Bruno Haible  <bruno@clisp.org>
12813
12814         Tests for module 'mbmemcasecoll'.
12815         * modules/mbmemcasecoll-tests: New file.
12816         * tests/test-mbmemcasecoll1.sh: New file.
12817         * tests/test-mbmemcasecoll2.sh: New file.
12818         * tests/test-mbmemcasecoll3.sh: New file.
12819         * tests/test-mbmemcasecoll.c: New file.
12820
12821         New module 'mbmemcasecoll'.
12822         * lib/mbmemcasecoll.h: New file.
12823         * lib/mbmemcasecoll.c: New file.
12824         * modules/mbmemcasecoll: New file.
12825
12826         * tests/test-mbmemcasecmp.h: New file, extracted from
12827         tests/test-mbmemcasecmp.c.
12828         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
12829         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
12830         (main): Update.
12831         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
12832
12833 2009-03-09  Bruno Haible  <bruno@clisp.org>
12834
12835         Tests for module 'mbmemcasecmp'.
12836         * modules/mbmemcasecmp-tests: New file.
12837         * tests/test-mbmemcasecmp1.sh: New file.
12838         * tests/test-mbmemcasecmp2.sh: New file.
12839         * tests/test-mbmemcasecmp3.sh: New file.
12840         * tests/test-mbmemcasecmp.c: New file.
12841
12842         New module 'mbmemcasecmp'.
12843         * lib/mbmemcasecmp.h: New file.
12844         * lib/mbmemcasecmp.c: New file.
12845         * modules/mbmemcasecmp: New file.
12846
12847 2009-03-09  Bruno Haible  <bruno@clisp.org>
12848
12849         Tests for module 'unicase/ulc-casecoll'.
12850         * modules/unicase/ulc-casecoll-tests: New file.
12851         * tests/unicase/test-ulc-casecoll1.sh: New file.
12852         * tests/unicase/test-ulc-casecoll2.sh: New file.
12853         * tests/unicase/test-ulc-casecoll.c: New file.
12854
12855         New module 'unicase/ulc-casecoll'.
12856         * lib/unicase.h (ulc_casecoll): New declaration.
12857         * lib/unicase/ulc-casecoll.c: New file.
12858         * modules/unicase/ulc-casecoll: New file.
12859
12860         New module 'unicase/ulc-casexfrm'.
12861         * lib/unicase.h (ulc_casexfrm): New declaration.
12862         * lib/unicase/ulc-casexfrm.c: New file.
12863         * modules/unicase/ulc-casexfrm: New file.
12864
12865 2009-03-09  Bruno Haible  <bruno@clisp.org>
12866
12867         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
12868         invocations.
12869
12870         * m4/mbscasecmp.m4: Remove file.
12871         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
12872         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
12873
12874         * m4/mbscasestr.m4: Remove file.
12875         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
12876         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
12877
12878         * m4/mbschr.m4: Remove file.
12879         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
12880         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
12881
12882         * m4/mbscspn.m4: Remove file.
12883         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
12884         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
12885
12886         * m4/mbslen.m4: Remove file.
12887         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
12888         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
12889
12890         * m4/mbsncasecmp.m4: Remove file.
12891         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
12892         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
12893
12894         * m4/mbsnlen.m4: Remove file.
12895         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
12896         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
12897
12898         * m4/mbspbrk.m4: Remove file.
12899         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
12900         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
12901
12902         * m4/mbspcasecmp.m4: Remove file.
12903         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
12904         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
12905
12906         * m4/mbsrchr.m4: Remove file.
12907         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
12908         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
12909
12910         * m4/mbssep.m4: Remove file.
12911         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
12912         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
12913
12914         * m4/mbsspn.m4: Remove file.
12915         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
12916         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
12917
12918         * m4/mbsstr.m4: Remove file.
12919         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
12920         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
12921
12922         * m4/mbstok_r.m4: Remove file.
12923         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
12924         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
12925
12926         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
12927
12928         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
12929         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
12930
12931         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
12932
12933 2009-03-08  Bruno Haible  <bruno@clisp.org>
12934
12935         Tests for module 'unicase/ulc-casecmp'.
12936         * modules/unicase/ulc-casecmp-tests: New file.
12937         * tests/unicase/test-ulc-casecmp1.sh: New file.
12938         * tests/unicase/test-ulc-casecmp2.sh: New file.
12939         * tests/unicase/test-ulc-casecmp.c: New file.
12940
12941         New module 'unicase/ulc-casecmp'.
12942         * lib/unicase.h (ulc_casecmp): New declaration.
12943         * lib/unicase/ulc-casecmp.c: New file.
12944         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
12945         'const SRC_UNIT *'.
12946         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
12947         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
12948         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
12949         * modules/unicase/ulc-casecmp: New file.
12950
12951         Tests for module 'unicase/u32-is-cased'.
12952         * modules/unicase/u32-is-cased-tests: New file.
12953         * tests/unicase/test-u32-is-cased.c: New file.
12954
12955         Tests for module 'unicase/u16-is-cased'.
12956         * modules/unicase/u16-is-cased-tests: New file.
12957         * tests/unicase/test-u16-is-cased.c: New file.
12958
12959         Tests for module 'unicase/u8-is-cased'.
12960         * modules/unicase/u8-is-cased-tests: New file.
12961         * tests/unicase/test-u8-is-cased.c: New file.
12962         * tests/unicase/test-is-cased.h: New file.
12963
12964         New module 'unicase/u32-is-cased'.
12965         * lib/unicase/u32-is-cased.c: New file.
12966         * modules/unicase/u32-is-cased: New file.
12967
12968         New module 'unicase/u16-is-cased'.
12969         * lib/unicase/u16-is-cased.c: New file.
12970         * modules/unicase/u16-is-cased: New file.
12971
12972         New module 'unicase/u8-is-cased'.
12973         * lib/unicase/u8-is-cased.c: New file.
12974         * lib/unicase/u-is-cased.h: New file.
12975         * modules/unicase/u8-is-cased: New file.
12976
12977         Tests for module 'unicase/u32-is-casefolded'.
12978         * modules/unicase/u32-is-casefolded-tests: New file.
12979         * tests/unicase/test-u32-is-casefolded.c: New file.
12980
12981         Tests for module 'unicase/u16-is-casefolded'.
12982         * modules/unicase/u16-is-casefolded-tests: New file.
12983         * tests/unicase/test-u16-is-casefolded.c: New file.
12984
12985         Tests for module 'unicase/u8-is-casefolded'.
12986         * modules/unicase/u8-is-casefolded-tests: New file.
12987         * tests/unicase/test-u8-is-casefolded.c: New file.
12988         * tests/unicase/test-is-casefolded.h: New file.
12989
12990         New module 'unicase/u32-is-casefolded'.
12991         * lib/unicase/u32-is-casefolded.c: New file.
12992         * modules/unicase/u32-is-casefolded: New file.
12993
12994         New module 'unicase/u16-is-casefolded'.
12995         * lib/unicase/u16-is-casefolded.c: New file.
12996         * modules/unicase/u16-is-casefolded: New file.
12997
12998         New module 'unicase/u8-is-casefolded'.
12999         * lib/unicase/u8-is-casefolded.c: New file.
13000         * modules/unicase/u8-is-casefolded: New file.
13001
13002         Tests for module 'unicase/u32-is-titlecase'.
13003         * modules/unicase/u32-is-titlecase-tests: New file.
13004         * tests/unicase/test-u32-is-titlecase.c: New file.
13005
13006         Tests for module 'unicase/u16-is-titlecase'.
13007         * modules/unicase/u16-is-titlecase-tests: New file.
13008         * tests/unicase/test-u16-is-titlecase.c: New file.
13009
13010         Tests for module 'unicase/u8-is-titlecase'.
13011         * modules/unicase/u8-is-titlecase-tests: New file.
13012         * tests/unicase/test-u8-is-titlecase.c: New file.
13013         * tests/unicase/test-is-titlecase.h: New file.
13014
13015         New module 'unicase/u32-is-titlecase'.
13016         * lib/unicase/u32-is-titlecase.c: New file.
13017         * modules/unicase/u32-is-titlecase: New file.
13018
13019         New module 'unicase/u16-is-titlecase'.
13020         * lib/unicase/u16-is-titlecase.c: New file.
13021         * modules/unicase/u16-is-titlecase: New file.
13022
13023         New module 'unicase/u8-is-titlecase'.
13024         * lib/unicase/u8-is-titlecase.c: New file.
13025         * modules/unicase/u8-is-titlecase: New file.
13026
13027         Tests for module 'unicase/u32-is-lowercase'.
13028         * modules/unicase/u32-is-lowercase-tests: New file.
13029         * tests/unicase/test-u32-is-lowercase.c: New file.
13030
13031         Tests for module 'unicase/u16-is-lowercase'.
13032         * modules/unicase/u16-is-lowercase-tests: New file.
13033         * tests/unicase/test-u16-is-lowercase.c: New file.
13034
13035         Tests for module 'unicase/u8-is-lowercase'.
13036         * modules/unicase/u8-is-lowercase-tests: New file.
13037         * tests/unicase/test-u8-is-lowercase.c: New file.
13038         * tests/unicase/test-is-lowercase.h: New file.
13039
13040         New module 'unicase/u32-is-lowercase'.
13041         * lib/unicase/u32-is-lowercase.c: New file.
13042         * modules/unicase/u32-is-lowercase: New file.
13043
13044         New module 'unicase/u16-is-lowercase'.
13045         * lib/unicase/u16-is-lowercase.c: New file.
13046         * modules/unicase/u16-is-lowercase: New file.
13047
13048         New module 'unicase/u8-is-lowercase'.
13049         * lib/unicase/u8-is-lowercase.c: New file.
13050         * modules/unicase/u8-is-lowercase: New file.
13051
13052         Tests for module 'unicase/u32-is-uppercase'.
13053         * modules/unicase/u32-is-uppercase-tests: New file.
13054         * tests/unicase/test-u32-is-uppercase.c: New file.
13055
13056         Tests for module 'unicase/u16-is-uppercase'.
13057         * modules/unicase/u16-is-uppercase-tests: New file.
13058         * tests/unicase/test-u16-is-uppercase.c: New file.
13059
13060         Tests for module 'unicase/u8-is-uppercase'.
13061         * modules/unicase/u8-is-uppercase-tests: New file.
13062         * tests/unicase/test-u8-is-uppercase.c: New file.
13063         * tests/unicase/test-is-uppercase.h: New file.
13064
13065         New module 'unicase/u32-is-uppercase'.
13066         * lib/unicase/u32-is-uppercase.c: New file.
13067         * modules/unicase/u32-is-uppercase: New file.
13068
13069         New module 'unicase/u16-is-uppercase'.
13070         * lib/unicase/u16-is-uppercase.c: New file.
13071         * modules/unicase/u16-is-uppercase: New file.
13072
13073         New module 'unicase/u8-is-uppercase'.
13074         * lib/unicase/u8-is-uppercase.c: New file.
13075         * modules/unicase/u8-is-uppercase: New file.
13076
13077         New module 'unicase/u32-is-invariant'.
13078         * lib/unicase/u32-is-invariant.c: New file.
13079         * modules/unicase/u32-is-invariant: New file.
13080
13081         New module 'unicase/u16-is-invariant'.
13082         * lib/unicase/u16-is-invariant.c: New file.
13083         * modules/unicase/u16-is-invariant: New file.
13084
13085         New module 'unicase/u8-is-invariant'.
13086         * lib/unicase/u8-is-invariant.c: New file.
13087         * lib/unicase/invariant.h: New file.
13088         * lib/unicase/u-is-invariant.h: New file.
13089         * modules/unicase/u8-is-invariant: New file.
13090
13091         Tests for module 'unicase/u32-casecoll'.
13092         * modules/unicase/u32-casecoll-tests: New file.
13093         * tests/unicase/test-u32-casecoll.c: New file.
13094
13095         Tests for module 'unicase/u16-casecoll'.
13096         * modules/unicase/u16-casecoll-tests: New file.
13097         * tests/unicase/test-u16-casecoll.c: New file.
13098
13099         Tests for module 'unicase/u8-casecoll'.
13100         * modules/unicase/u8-casecoll-tests: New file.
13101         * tests/unicase/test-u8-casecoll.c: New file.
13102
13103         New module 'unicase/u32-casecoll'.
13104         * lib/unicase/u32-casecoll.c: New file.
13105         * modules/unicase/u32-casecoll: New file.
13106
13107         New module 'unicase/u16-casecoll'.
13108         * lib/unicase/u16-casecoll.c: New file.
13109         * modules/unicase/u16-casecoll: New file.
13110
13111         New module 'unicase/u8-casecoll'.
13112         * lib/unicase/u8-casecoll.c: New file.
13113         * lib/unicase/u-casecoll.h: New file.
13114         * modules/unicase/u8-casecoll: New file.
13115
13116         New module 'unicase/u32-casexfrm'.
13117         * lib/unicase/u32-casexfrm.c: New file.
13118         * modules/unicase/u32-casexfrm: New file.
13119
13120         New module 'unicase/u16-casexfrm'.
13121         * lib/unicase/u16-casexfrm.c: New file.
13122         * modules/unicase/u16-casexfrm: New file.
13123
13124         New module 'unicase/u8-casexfrm'.
13125         * lib/unicase/u8-casexfrm.c: New file.
13126         * lib/unicase/u-casexfrm.h: New file.
13127         * modules/unicase/u8-casexfrm: New file.
13128
13129         Tests for module 'unicase/u32-casecmp'.
13130         * modules/unicase/u32-casecmp-tests: New file.
13131         * tests/unicase/test-u32-casecmp.c: New file.
13132
13133         Tests for module 'unicase/u16-casecmp'.
13134         * modules/unicase/u16-casecmp-tests: New file.
13135         * tests/unicase/test-u16-casecmp.c: New file.
13136
13137         Tests for module 'unicase/u8-casecmp'.
13138         * modules/unicase/u8-casecmp-tests: New file.
13139         * tests/unicase/test-u8-casecmp.c: New file.
13140         * tests/unicase/test-casecmp.h: New file.
13141
13142         New module 'unicase/u32-casecmp'.
13143         * lib/unicase/u32-casecmp.c: New file.
13144         * modules/unicase/u32-casecmp: New file.
13145
13146         New module 'unicase/u16-casecmp'.
13147         * lib/unicase/u16-casecmp.c: New file.
13148         * modules/unicase/u16-casecmp: New file.
13149
13150         New module 'unicase/u8-casecmp'.
13151         * lib/unicase/u8-casecmp.c: New file.
13152         * lib/unicase/u-casecmp.h: New file.
13153         * modules/unicase/u8-casecmp: New file.
13154
13155         Tests for module 'unicase/u32-casefold'.
13156         * modules/unicase/u32-casefold-tests: New file.
13157         * tests/unicase/test-u32-casefold.c: New file.
13158
13159         Tests for module 'unicase/u16-casefold'.
13160         * modules/unicase/u16-casefold-tests: New file.
13161         * tests/unicase/test-u16-casefold.c: New file.
13162
13163         Tests for module 'unicase/u8-casefold'.
13164         * modules/unicase/u8-casefold-tests: New file.
13165         * tests/unicase/test-u8-casefold.c: New file.
13166
13167         New module 'unicase/u32-casefold'.
13168         * lib/unicase/u32-casefold.c: New file.
13169         * modules/unicase/u32-casefold: New file.
13170
13171         New module 'unicase/u16-casefold'.
13172         * lib/unicase/u16-casefold.c: New file.
13173         * modules/unicase/u16-casefold: New file.
13174
13175         New module 'unicase/u8-casefold'.
13176         * lib/unicase/u8-casefold.c: New file.
13177         * lib/unicase/u-casefold.h: New file.
13178         * modules/unicase/u8-casefold: New file.
13179
13180         New module 'unicase/tocasefold'.
13181         * lib/unicase/casefold.h: New file.
13182         * lib/unicase/tocasefold.c: New file.
13183         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13184         * modules/unicase/tocasefold: New file.
13185
13186         Tests for module 'unicase/u32-totitle'.
13187         * modules/unicase/u32-totitle-tests: New file.
13188         * tests/unicase/test-u32-totitle.c: New file.
13189
13190         Tests for module 'unicase/u16-totitle'.
13191         * modules/unicase/u16-totitle-tests: New file.
13192         * tests/unicase/test-u16-totitle.c: New file.
13193
13194         Tests for module 'unicase/u8-totitle'.
13195         * modules/unicase/u8-totitle-tests: New file.
13196         * tests/unicase/test-u8-totitle.c: New file.
13197
13198         New module 'unicase/u32-totitle'.
13199         * lib/unicase/u32-totitle.c: New file.
13200         * modules/unicase/u32-totitle: New file.
13201
13202         New module 'unicase/u16-totitle'.
13203         * lib/unicase/u16-totitle.c: New file.
13204         * modules/unicase/u16-totitle: New file.
13205
13206         New module 'unicase/u8-totitle'.
13207         * lib/unicase/u8-totitle.c: New file.
13208         * lib/unicase/u-totitle.h: New file.
13209         * modules/unicase/u8-totitle: New file.
13210
13211         Tests for module 'unicase/u32-tolower'.
13212         * modules/unicase/u32-tolower-tests: New file.
13213         * tests/unicase/test-u32-tolower.c: New file.
13214
13215         Tests for module 'unicase/u16-tolower'.
13216         * modules/unicase/u16-tolower-tests: New file.
13217         * tests/unicase/test-u16-tolower.c: New file.
13218
13219         Tests for module 'unicase/u8-tolower'.
13220         * modules/unicase/u8-tolower-tests: New file.
13221         * tests/unicase/test-u8-tolower.c: New file.
13222
13223         New module 'unicase/u32-tolower'.
13224         * lib/unicase/u32-tolower.c: New file.
13225         * modules/unicase/u32-tolower: New file.
13226
13227         New module 'unicase/u16-tolower'.
13228         * lib/unicase/u16-tolower.c: New file.
13229         * modules/unicase/u16-tolower: New file.
13230
13231         New module 'unicase/u8-tolower'.
13232         * lib/unicase/u8-tolower.c: New file.
13233         * modules/unicase/u8-tolower: New file.
13234
13235         Tests for module 'unicase/u32-toupper'.
13236         * modules/unicase/u32-toupper-tests: New file.
13237         * tests/unicase/test-u32-toupper.c: New file.
13238
13239         Tests for module 'unicase/u16-toupper'.
13240         * modules/unicase/u16-toupper-tests: New file.
13241         * tests/unicase/test-u16-toupper.c: New file.
13242
13243         Tests for module 'unicase/u8-toupper'.
13244         * modules/unicase/u8-toupper-tests: New file.
13245         * tests/unicase/test-u8-toupper.c: New file.
13246
13247         New module 'unicase/u32-toupper'.
13248         * lib/unicase/u32-toupper.c: New file.
13249         * modules/unicase/u32-toupper: New file.
13250
13251         New module 'unicase/u16-toupper'.
13252         * lib/unicase/u16-toupper.c: New file.
13253         * modules/unicase/u16-toupper: New file.
13254
13255         New module 'unicase/u8-toupper'.
13256         * lib/unicase/u8-toupper.c: New file.
13257         * modules/unicase/u8-toupper: New file.
13258
13259         New module 'unicase/u32-casemap'.
13260         * lib/unicase/u32-casemap.c: New file.
13261         * modules/unicase/u32-casemap: New file.
13262
13263         New module 'unicase/u16-casemap'.
13264         * lib/unicase/u16-casemap.c: New file.
13265         * modules/unicase/u16-casemap: New file.
13266
13267         New module 'unicase/u8-casemap'.
13268         * lib/unicase/unicasemap.h: New file.
13269         * lib/unicase/u8-casemap.c: New file.
13270         * lib/unicase/u-casemap.h: New file.
13271         * modules/unicase/u8-casemap: New file.
13272
13273         New module 'unicase/special-casing'.
13274         * lib/unicase/special-casing.h: New file.
13275         * lib/unicase/special-casing.c: New file.
13276         * lib/unicase/special-casing-table.gperf: New file, generated by
13277         gen-uni-tables.c.
13278         * modules/unicase/special-casing: New file.
13279
13280         Tests for module 'unicase/locale-language'.
13281         * modules/unicase/locale-language-tests: New file.
13282         * tests/unicase/test-locale-language.sh: New file.
13283         * tests/unicase/test-locale-language.c: New file.
13284
13285         New module 'unicase/locale-language'.
13286         * lib/unicase/locale-language.c: New file.
13287         * lib/unicase/locale-languages.gperf: New file.
13288         * modules/unicase/locale-language: New file.
13289
13290         Generate more tables for case conversion and case folding.
13291         * lib/gen-uni-tables.c (SCC_*): New enum items.
13292         (struct special_casing_rule): New type.
13293         (casing_rules, num_casing_rules, allocated_casing_rules): New
13294         variables.
13295         (add_casing_rule, fill_casing_rules): New functions.
13296         (struct casefold_rule): New type.
13297         (casefolding_rules, num_casefolding_rules,
13298         allocated_casefolding_rules): New variables.
13299         (fill_casefolding_rules): New function.
13300         (unicode_casefold): New variable.
13301         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
13302         sort_casing_rules, output_casing_rules): New functions.
13303         (main): Accept to more arguments: SpecialCasing.txt and
13304         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
13305         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
13306         Output mapping for casefolding.
13307
13308         * lib/unicase.h: Include stdbool.h, uninorm.h.
13309         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
13310         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
13311         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
13312         arguments.
13313         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
13314         resultp arguments.
13315         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
13316         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
13317         resultp arguments.
13318         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
13319         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
13320         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
13321         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
13322         declarations.
13323         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
13324
13325 2009-03-08  Bruno Haible  <bruno@clisp.org>
13326
13327         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13328         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
13329         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
13330         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13331
13332 2009-03-07  Bruno Haible  <bruno@clisp.org>
13333
13334         Adjust u*_normcmp, u*_normcoll API.
13335         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13336         u16_normcoll, u32_normcoll): Change failure conventions.
13337         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
13338         errno and return -1.
13339         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13340
13341 2009-03-07  Bruno Haible  <bruno@clisp.org>
13342
13343         Tests for module 'uninorm/u32-normcoll'.
13344         * modules/uninorm/u32-normcoll-tests: New file.
13345         * tests/uninorm/test-u32-normcoll.c: New file.
13346
13347         Tests for module 'uninorm/u16-normcoll'.
13348         * modules/uninorm/u16-normcoll-tests: New file.
13349         * tests/uninorm/test-u16-normcoll.c: New file.
13350
13351         Tests for module 'uninorm/u8-normcoll'.
13352         * modules/uninorm/u8-normcoll-tests: New file.
13353         * tests/uninorm/test-u8-normcoll.c: New file.
13354
13355 2009-03-07  Bruno Haible  <bruno@clisp.org>
13356
13357         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
13358         tests/uninorm/test-u32-normcmp.c.
13359         * tests/uninorm/test-u32-normcmp.c: Include it.
13360         (test_nonascii): New function, extracted from main. Add some more
13361         tests.
13362         (main): Invoke test_ascii and test_nonascii.
13363         * modules/uninorm/u32-normcmp-tests (Files): Add
13364         tests/uninorm/test-u32-normcmp.h.
13365         (Depends-on): Remove uninorm/u32-normcmp.
13366
13367         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
13368         tests/uninorm/test-u16-normcmp.c.
13369         * tests/uninorm/test-u16-normcmp.c: Include it.
13370         (test_nonascii): New function, extracted from main. Add some more
13371         tests.
13372         (main): Invoke test_ascii and test_nonascii.
13373         * modules/uninorm/u16-normcmp-tests (Files): Add
13374         tests/uninorm/test-u16-normcmp.h.
13375         (Depends-on): Remove uninorm/u16-normcmp.
13376
13377         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
13378         tests/uninorm/test-u8-normcmp.c.
13379         * tests/uninorm/test-u8-normcmp.c: Include it.
13380         (test_nonascii): New function, extracted from main. Add some more
13381         tests.
13382         (main): Invoke test_ascii and test_nonascii.
13383         * modules/uninorm/u8-normcmp-tests (Files): Add
13384         tests/uninorm/test-u8-normcmp.h.
13385         (Depends-on): Remove uninorm/u8-normcmp.
13386
13387 2009-03-07  Bruno Haible  <bruno@clisp.org>
13388
13389         New module 'uninorm/u32-normcoll'.
13390         * lib/uninorm/u32-normcoll.c: New file.
13391         * modules/uninorm/u32-normcoll: New file.
13392
13393         New module 'uninorm/u16-normcoll'.
13394         * lib/uninorm/u16-normcoll.c: New file.
13395         * modules/uninorm/u16-normcoll: New file.
13396
13397         New module 'uninorm/u8-normcoll'.
13398         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
13399         declarations.
13400         * lib/uninorm/u8-normcoll.c: New file.
13401         * lib/uninorm/u-normcoll.h: New file.
13402         * modules/uninorm/u8-normcoll: New file.
13403
13404         New module 'uninorm/u32-normxfrm'.
13405         * lib/uninorm/u32-normxfrm.c: New file.
13406         * modules/uninorm/u32-normxfrm: New file.
13407
13408         New module 'uninorm/u16-normxfrm'.
13409         * lib/uninorm/u16-normxfrm.c: New file.
13410         * modules/uninorm/u16-normxfrm: New file.
13411
13412         New module 'uninorm/u8-normxfrm'.
13413         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
13414         declarations.
13415         * lib/uninorm/u8-normxfrm.c: New file.
13416         * lib/uninorm/u-normxfrm.h: New file.
13417         * modules/uninorm/u8-normxfrm: New file.
13418
13419 2009-03-07  Bruno Haible  <bruno@clisp.org>
13420
13421         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
13422         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
13423         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
13424
13425 2009-03-07  Bruno Haible  <bruno@clisp.org>
13426
13427         New module 'memxfrm'.
13428         * lib/memxfrm.h: New file.
13429         * lib/memxfrm.c: New file.
13430         * modules/memxfrm: New file.
13431
13432 2009-03-07  Bruno Haible  <bruno@clisp.org>
13433
13434         New module 'memcmp2'.
13435         * lib/memcmp2.h: New file.
13436         * lib/memcmp2.c: New file.
13437         * modules/memcmp2: New file.
13438
13439 2009-03-07  Bruno Haible  <bruno@clisp.org>
13440
13441         Tests for module 'uninorm/decomposing-form'.
13442         * modules/uninorm/decomposing-form-tests: New file.
13443         * tests/uninorm/test-decomposing-form.c: New file.
13444
13445         New module 'uninorm/decomposing-form'.
13446         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
13447         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
13448         Add 'decomposing_variant' field.
13449         * lib/uninorm/decomposing-form.c: New file.
13450         * lib/uninorm/nfc.c (uninorm_nfc): Update.
13451         * lib/uninorm/nfd.c (uninorm_nfd): Update.
13452         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
13453         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
13454         * modules/uninorm/decomposing-form: New file.
13455         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
13456         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
13457
13458 2009-03-07  Bruno Haible  <bruno@clisp.org>
13459
13460         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
13461         strings.
13462
13463 2009-03-06  Bruno Haible  <bruno@clisp.org>
13464
13465         Tests for module 'uninorm/u32-normcmp'.
13466         * tests/uninorm/test-u32-normcmp.c: New file.
13467         * modules/uninorm/u32-normcmp-tests: New file.
13468
13469         Tests for module 'uninorm/u16-normcmp'.
13470         * tests/uninorm/test-u16-normcmp.c: New file.
13471         * modules/uninorm/u16-normcmp-tests: New file.
13472
13473         Tests for module 'uninorm/u8-normcmp'.
13474         * tests/uninorm/test-u8-normcmp.c: New file.
13475         * modules/uninorm/u8-normcmp-tests: New file.
13476
13477         New module 'uninorm/u32-normcmp'.
13478         * lib/uninorm/u32-normcmp.c: New file.
13479         * modules/uninorm/u32-normcmp: New file.
13480
13481         New module 'uninorm/u16-normcmp'.
13482         * lib/uninorm/u16-normcmp.c: New file.
13483         * modules/uninorm/u16-normcmp: New file.
13484
13485         New module 'uninorm/u8-normcmp'.
13486         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
13487         declarations.
13488         * lib/uninorm/u8-normcmp.c: New file.
13489         * lib/uninorm/u-normcmp.h: New file.
13490         * modules/uninorm/u8-normcmp: New file.
13491
13492 2009-03-06  Bruno Haible  <bruno@clisp.org>
13493
13494         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
13495         Reported by Eric Blake.
13496
13497 2009-03-06  Eric Blake  <ebb9@byu.net>
13498             Bruno Haible  <bruno@clisp.org>
13499
13500         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
13501         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
13502         condition.
13503         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13504         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
13505         condition.
13506         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13507
13508 2009-03-06  Eric Blake  <ebb9@byu.net>
13509
13510         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
13511         to avoid compiler warnings.
13512         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
13513
13514 2009-03-05  Bruno Haible  <bruno@clisp.org>
13515
13516         * tests/test-ftell.c (main): Disable test beyond end of file on
13517         FreeMiNT.
13518         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13519
13520 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
13521
13522         * lib/filevercmp.c: Move hidden files up in ordering.
13523         * tests/test-filevercmp.c: Add tests for hidden files.
13524
13525 2009-03-04  Bruno Haible  <bruno@clisp.org>
13526
13527         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
13528         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
13529         AM_CFLAGS.
13530         Reported by Simon Josefsson.
13531
13532 2009-03-03  Bruno Haible  <bruno@clisp.org>
13533
13534         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
13535         Reported by Simon Josefsson.
13536
13537         * doc/ld-version-script.texi: Update node reference.
13538
13539 2009-03-03  Bruno Haible  <bruno@clisp.org>
13540
13541         * modules/visibility (License): Change to 'unlimited'.
13542         Suggested by Simon Josefsson.
13543
13544 2009-03-03  Jim Meyering  <meyering@redhat.com>
13545
13546         unlinkdir: cannot_unlink_dir may modify process state
13547         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
13548         it's neither thread-safe nor appropriate for use in a library.
13549
13550 2009-03-03  Eric Blake  <ebb9@byu.net>
13551
13552         test-closein: silence test under Darwin
13553         * tests/test-closein.sh: Ignore stderr from cat, since we don't
13554         care if it dies from EPIPE or EBADF.
13555
13556 2009-03-03  Bruno Haible  <bruno@clisp.org>
13557
13558         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
13559         earlier.
13560         * doc/visibility.texi: Fix @node and @section.
13561
13562 2009-03-03  Simon Josefsson  <simon@josefsson.org>
13563
13564         * doc/gnulib.texi: Link to sections for ld version script and
13565         visibility.
13566         * doc/visibility.texi: Add @node and @section.
13567         * modules/ld-version-script: New module.
13568         * m4/ld-version-script.m4: New file.
13569         * doc/ld-version-script.texi: New file.
13570
13571 2009-03-02  David Lutterkort  <lutter@redhat.com>
13572
13573         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
13574         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13575
13576 2009-03-02  Bruno Haible  <bruno@clisp.org>
13577
13578         * doc/visibility.texi: Mention libtool's -export-symbols option.
13579
13580 2009-03-02  Jim Meyering  <meyering@redhat.com>
13581
13582         announce-gen: new option: --no-print-checksums
13583         * build-aux/announce-gen (usage): Describe it.
13584         (print_checksums): Print a newline here, not in the [*] footnote.
13585         (main): Honor it.
13586
13587 2009-03-01  Bruno Haible  <bruno@clisp.org>
13588
13589         Use socklen_t in the native Windows replacements prototypes.
13590         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
13591         instead of 'int'.
13592         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13593         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13594         * modules/getsockopt (Depends-on): Add socklen.
13595         * modules/setsockopt (Depends-on): Add socklen.
13596
13597 2009-03-01  Bruno Haible  <bruno@clisp.org>
13598
13599         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
13600         least 4.2.
13601
13602 2009-03-01  Eric Blake  <ebb9@byu.net>
13603             Bruno Haible  <bruno@clisp.org>
13604
13605         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
13606         error messages.
13607         * lib/wait-process.c (wait_subprocess): Omit error message about
13608         deadly signal sent to the child of termsigp != NULL.
13609
13610 2009-03-01  Eric Blake  <ebb9@byu.net>
13611
13612         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
13613
13614 2009-03-01  Bruno Haible  <bruno@clisp.org>
13615
13616         Avoid a gcc warning.
13617         * tests/test-sched.c (b): Make global.
13618         Reported by Eric Blake.
13619
13620 2009-01-19  Martin Lambers  <marlam@marlam.de>
13621
13622         Provide POSIX semantics for socket timeout options on W32.
13623         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
13624         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
13625         * modules/setsockopt: Depend on sys_time module for struct timeval.
13626         * modules/getsockopt: Depend on sys_time module for struct timeval.
13627
13628 2009-03-01  Simon Josefsson  <simon@josefsson.org>
13629
13630         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
13631         __USE_GNU, for consistency with netdb.in.h.
13632         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13633
13634 2009-03-01  Bruno Haible  <bruno@clisp.org>
13635
13636         More support for FreeMiNT.
13637         * lib/fseeko.c (rpl_fseeko): Complete last commit.
13638         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13639
13640 2009-03-01  Bruno Haible  <bruno@clisp.org>
13641
13642         More support for FreeMiNT.
13643         * lib/fpurge.c (fpurge): Correct last commit.
13644         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13645
13646 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13647
13648         Fix unportable awk script in vc-list-files.
13649         * build-aux/vc-list-files: In the replacement awk script, use
13650         substr with a second argument of 1, not zero.
13651         Report by Simon Josefsson.
13652
13653 2009-02-28  Bruno Haible  <bruno@clisp.org>
13654
13655         More support for FreeMiNT.
13656         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
13657         to FreeMiNT today.
13658         * lib/fwriting.c (fwriting): Likewise.
13659         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
13660
13661 2009-02-28  Bruno Haible  <bruno@clisp.org>
13662
13663         * tests/test-freadseek.c (main): Disable test beyond end of file on
13664         FreeMiNT.
13665         * tests/test-ftello.c (main): Likewise.
13666         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13667
13668 2009-02-28  Bruno Haible  <bruno@clisp.org>
13669
13670         Add tentative support for FreeMiNT.
13671         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
13672         * lib/fpurge.c (fpurge): Likewise.
13673         * lib/freadable.c (freadable): Likewise.
13674         * lib/freading.c (freading): Likewise.
13675         * lib/freadptr.c (freadptr): Likewise.
13676         * lib/freadseek.c (freadptrinc): Likewise.
13677         * lib/fseeko.c (rpl_fseeko): Likewise.
13678         * lib/fseterr.c (fseterr): Likewise.
13679         * lib/fwritable.c (fwritable): Likewise.
13680         * lib/fwriting.c (fwriting): Likewise.
13681         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
13682         Hourihane.
13683         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13684
13685 2009-02-28  Bruno Haible  <bruno@clisp.org>
13686
13687         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
13688         SIGCHLD.
13689         Reported by Jim Meyering.
13690
13691 2009-02-28  Bruno Haible  <bruno@clisp.org>
13692
13693         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
13694         Mention the results of these tests on various platforms.
13695         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
13696         order.
13697         * doc/posix-functions/printf.texi: Likewise.
13698         * doc/posix-functions/snprintf.texi: Likewise.
13699         * doc/posix-functions/sprintf.texi: Likewise.
13700         * doc/posix-functions/vfprintf.texi: Likewise.
13701         * doc/posix-functions/vprintf.texi: Likewise.
13702         * doc/posix-functions/vsnprintf.texi: Likewise.
13703         * doc/posix-functions/vsprintf.texi: Likewise.
13704         * doc/glibc-functions/obstack_printf.texi: Likewise.
13705         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13706
13707 2009-02-28  Bruno Haible  <bruno@clisp.org>
13708
13709         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
13710         Reported by Loïc Minier <lool@dooz.org>.
13711
13712 2009-02-27  Bruno Haible  <bruno@clisp.org>
13713
13714         * gnulib-tool (func_import): Make the sed expression used to create the
13715         sed script for updating the .gitignore file POSIX compliant.
13716         Reported by Eric Blake.
13717
13718 2009-02-27  Bruno Haible  <bruno@clisp.org>
13719
13720         * gnulib-tool (sed): Don't alias as "sed --posix".
13721         Reported by Eric Blake.
13722
13723 2009-02-27  Bruno Haible  <bruno@clisp.org>
13724
13725         Avoid test link errors.
13726         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
13727         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
13728         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
13729         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
13730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13731
13732 2009-02-27  Bruno Haible  <bruno@clisp.org>
13733
13734         Avoid spurious "(cached)" in configure output.
13735         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
13736         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
13737         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13738         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13739         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13740         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13741         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13742         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13743         Reported by Eric Blake.
13744
13745 2009-02-27  Eric Blake  <ebb9@byu.net>
13746
13747         printf: fix regression in previous patch
13748         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
13749
13750 2009-02-27  Bruno Haible  <bruno@clisp.org>
13751
13752         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
13753         value.
13754         * lib/stdint.in.h: Likewise.
13755         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
13756
13757 2009-02-27  Eric Blake  <ebb9@byu.net>
13758
13759         doc: mention more functions added in cygwin 1.7.0
13760         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
13761         addition.
13762         * doc/posix-functions/open_wmemstream.texi: Likewise.
13763         * doc/posix-functions/wcsnlen.texi: Likewise.
13764         * doc/posix-functions/wcsnrtombs.texi: Likewise.
13765         * doc/posix-functions/wcstod.texi: Likewise.
13766         * doc/posix-functions/wcstof.texi: Likewise.
13767         * doc/posix-functions/wcstoimax.texi: Likewise.
13768         * doc/posix-functions/wcstok.texi: Likewise.
13769         * doc/posix-functions/wcstoumax.texi: Likewise.
13770
13771         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
13772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
13773         * doc/posix-functions/fprintf.texi: Update.
13774         * doc/posix-functions/printf.texi: Update.
13775         * doc/posix-functions/snprintf.texi: Update.
13776         * doc/posix-functions/sprintf.texi: Update.
13777         * doc/posix-functions/vfprintf.texi: Update.
13778         * doc/posix-functions/vprintf.texi: Update.
13779         * doc/posix-functions/vsnprintf.texi: Update.
13780         * doc/posix-functions/vsprintf.texi: Update.
13781         * doc/glibc-functions/obstack_printf.texi: Update.
13782         * doc/glibc-functions/obstack_vprintf.texi: Update.
13783
13784 2009-02-26  Eric Blake  <ebb9@byu.net>
13785
13786         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
13787         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
13788         compilation bug by using runtime conversion.
13789         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13790         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
13791         * modules/ceill-tests (Files): Use nan.h.
13792         * modules/floorl-tests (Files): Likewise.
13793         * modules/frexpl-tests (Files): Likewise.
13794         * modules/isnanl-tests (Files): Likewise.
13795         * modules/ldexpl-tests (Files): Likewise.
13796         * modules/roundl-tests (Files): Likewise.
13797         * modules/truncl-tests (Files): Likewise.
13798         * tests/test-ceill.c (main): Use a working NaN.
13799         * tests/test-floorl.c (main): Likewise.
13800         * tests/test-frexpl.c (main): Likewise.
13801         * tests/test-isnan.c (test_long_double): Likewise.
13802         * tests/test-isnanl.h (main): Likewise.
13803         * tests/test-ldexpl.h (main): Likewise.
13804         * tests/test-roundl.h (main): Likewise.
13805         * tests/test-truncl.h (main): Likewise.
13806         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
13807
13808 2009-02-26  Eric Blake  <ebb9@byu.net>
13809             Bruno Haible  <bruno@clisp.org>
13810
13811         Work around a *printf bug with %ls on Solaris.
13812         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
13813         precision is specified, sprintf stops converting the wide string
13814         argument when the number of bytes that have been produced by this
13815         conversion equals or exceeds the precision.
13816         * doc/posix-functions/fprintf.texi: Update.
13817         * doc/posix-functions/printf.texi: Update.
13818         * doc/posix-functions/snprintf.texi: Update.
13819         * doc/posix-functions/sprintf.texi: Update.
13820         * doc/posix-functions/vfprintf.texi: Update.
13821         * doc/posix-functions/vprintf.texi: Update.
13822         * doc/posix-functions/vsnprintf.texi: Update.
13823         * doc/posix-functions/vsprintf.texi: Update.
13824         * doc/glibc-functions/obstack_printf.texi: Update.
13825         * doc/glibc-functions/obstack_vprintf.texi: Update.
13826
13827 2009-02-26  Eric Blake  <ebb9@byu.net>
13828
13829         stdlib: favor compiler check of random.h
13830         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
13831         to avoid an ObjC random.h installed by Swarm.
13832
13833 2009-02-26  Bruno Haible  <bruno@clisp.org>
13834
13835         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
13836         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
13837         Reported by Gary V. Vaughan <gary@gnu.org>.
13838
13839 2009-02-26  Bruno Haible  <bruno@clisp.org>
13840
13841         Fix *printf behaviour regarding the %ls directive.
13842         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
13843         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
13844         NEED_PRINTF_DIRECTIVE_LS.
13845         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
13846         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
13847         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13848         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
13849         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
13850         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
13851         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
13852         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13853         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13854         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13855         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13856         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
13857         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13858         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13859         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13860         * doc/posix-functions/fprintf.texi: Update.
13861         * doc/posix-functions/printf.texi: Update.
13862         * doc/posix-functions/snprintf.texi: Update.
13863         * doc/posix-functions/sprintf.texi: Update.
13864         * doc/posix-functions/vfprintf.texi: Update.
13865         * doc/posix-functions/vprintf.texi: Update.
13866         * doc/posix-functions/vsnprintf.texi: Update.
13867         * doc/posix-functions/vsprintf.texi: Update.
13868         * doc/glibc-functions/obstack_printf.texi: Update.
13869         * doc/glibc-functions/obstack_vprintf.texi: Update.
13870         Reported by Eric Blake.
13871
13872 2009-02-25  Bruno Haible  <bruno@clisp.org>
13873
13874         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
13875         with known value.
13876         Reported by Gary V. Vaughan <gary@gnu.org>.
13877
13878 2009-02-25  Bruno Haible  <bruno@clisp.org>
13879
13880         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
13881         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
13882         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
13883         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
13884         Reported by Gary V. Vaughan <gary@gnu.org>.
13885
13886 2009-02-25  Bruno Haible  <bruno@clisp.org>
13887
13888         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
13889         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
13890         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
13891         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
13892         Reported by Gary V. Vaughan <gary@gnu.org>.
13893
13894 2009-02-25  Eric Blake  <ebb9@byu.net>
13895
13896         tests: skip fseek/ftell tests if ungetc is broken
13897         * m4/ungetc.m4: New file.
13898         * modules/fseek-tests: Split test, so ungetc dependency is
13899         separate from rest of test.
13900         * modules/fseeko-tests: Likewise.
13901         * modules/ftell-tests: Likewise.
13902         * modules/ftello-tests: Likewise.
13903         * tests/test-fseek.c (main): Isolate ungetc dependency.
13904         * tests/test-fseeko.c (main): Likewise.
13905         * tests/test-ftell.c (main): Likewise.
13906         * tests/test-ftello.c (main): Likewise.
13907         * tests/test-fseek2.sh: New file.
13908         * tests/test-fseeko2.sh: Likewise.
13909         * tests/test-ftell2.sh: Likewise.
13910         * tests/test-ftello2.sh: Likewise.
13911
13912 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
13913
13914         test-getaddrinfo: fix usage of skip return code 77
13915         * tests/test-gettaddrinfo.c: Return skip code 77 only
13916         for first occurance of skip (4x77 is not 77)
13917
13918 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
13919
13920         strtod: avoid C99 decl-after-statement
13921         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
13922
13923 2009-02-24  Eric Blake  <ebb9@byu.net>
13924
13925         strtod: detect HP-UX 11.31 bug
13926         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
13927         Reported by Gary V. Vaughan.
13928
13929 2009-02-23  Bruno Haible  <bruno@clisp.org>
13930
13931         Fix invalid read past end of memory block.
13932         * lib/vasnprintf.c (DCHAR_SET): Define.
13933         (local_wcslen): Define only when needed.
13934         (local_strnlen, local_wcsnlen): New functions.
13935         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
13936         directives that involve a conversion ourselves.
13937         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
13938         wcsnlen, mbrtowc, wcrtomb.
13939         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
13940         * tests/test-vasprintf-posix.c (test_function): Likewise.
13941         * tests/test-snprintf-posix.h (test_function): Likewise.
13942         * tests/test-sprintf-posix.h (test_function): Likewise.
13943         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13944
13945 2009-02-22  Bruno Haible  <bruno@clisp.org>
13946
13947         Implement new clarified decomposition of Hangul syllables.
13948         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
13949         of type LTV, return only a pairwise decomposition.
13950         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
13951         Likewise.
13952         * tests/uninorm/test-decomposition.c (main): Updated expected result.
13953         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
13954         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
13955
13956 2009-02-22  Bruno Haible  <bruno@clisp.org>
13957
13958         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
13959         zero-length results and shrink excess allocated memory.
13960         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
13961         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
13962         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
13963         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
13964         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
13965         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
13966         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
13967         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
13968         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
13969         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
13970         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
13971         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
13972
13973 2009-02-21  Bruno Haible  <bruno@clisp.org>
13974
13975         * doc/gnulib.texi: Include safe-alloc.texi earlier.
13976         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
13977         spaces after a period. Put a space between a macro name and its
13978         argument list. Trivial rewordings.
13979         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
13980         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
13981         (main): Return 0 explicitly.
13982
13983 2009-02-21  Bruno Haible  <bruno@clisp.org>
13984
13985         Tests for module 'uninorm/filter'.
13986         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
13987         * modules/uninorm/filter-tests: New file.
13988
13989         New module 'uninorm/filter'.
13990         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
13991         uninorm_filter_flush, uninorm_filter_free): New declarations.
13992         * lib/uninorm/uninorm-filter.c: New file.
13993         * modules/uninorm/filter: New file.
13994
13995 2009-02-21  Bruno Haible  <bruno@clisp.org>
13996
13997         Tests for module 'uninorm/nfkc'.
13998         * tests/uninorm/test-nfkc.c: New file.
13999         * tests/uninorm/test-u8-nfkc.c: New file.
14000         * tests/uninorm/test-u16-nfkc.c: New file.
14001         * tests/uninorm/test-u32-nfkc.c: New file.
14002         * tests/uninorm/test-u32-nfkc-big.sh: New file.
14003         * tests/uninorm/test-u32-nfkc-big.c: New file.
14004         * modules/uninorm/nfkc-tests: New file.
14005
14006         New module 'uninorm/nfkc'.
14007         * lib/uninorm/nfkc.c: New file.
14008         * modules/uninorm/nfkc: New file.
14009
14010         Tests for module 'uninorm/nfkd'.
14011         * tests/uninorm/test-nfkd.c: New file.
14012         * tests/uninorm/test-u8-nfkd.c: New file.
14013         * tests/uninorm/test-u16-nfkd.c: New file.
14014         * tests/uninorm/test-u32-nfkd.c: New file.
14015         * tests/uninorm/test-u32-nfkd-big.sh: New file.
14016         * tests/uninorm/test-u32-nfkd-big.c: New file.
14017         * modules/uninorm/nfkd-tests: New file.
14018
14019         New module 'uninorm/nfkd'.
14020         * lib/uninorm/nfkd.c: New file.
14021         * modules/uninorm/nfkd: New file.
14022
14023         Tests for module 'uninorm/nfc'.
14024         * tests/uninorm/test-nfc.c: New file.
14025         * tests/uninorm/test-u8-nfc.c: New file.
14026         * tests/uninorm/test-u16-nfc.c: New file.
14027         * tests/uninorm/test-u32-nfc.c: New file.
14028         * tests/uninorm/test-u32-nfc-big.sh: New file.
14029         * tests/uninorm/test-u32-nfc-big.c: New file.
14030         * modules/uninorm/nfc-tests: New file.
14031
14032         New module 'uninorm/nfc'.
14033         * lib/uninorm/nfc.c: New file.
14034         * modules/uninorm/nfc: New file.
14035
14036         Tests for module 'uninorm/nfd'.
14037         * tests/uninorm/test-nfd.c: New file.
14038         * tests/uninorm/test-u8-nfd.c: New file.
14039         * tests/uninorm/test-u16-nfd.c: New file.
14040         * tests/uninorm/test-u32-nfd.c: New file.
14041         * tests/uninorm/test-u32-nfd-big.sh: New file.
14042         * tests/uninorm/test-u32-nfd-big.c: New file.
14043         * tests/uninorm/test-u32-normalize-big.h: New file.
14044         * tests/uninorm/test-u32-normalize-big.c: New file.
14045         * tests/uninorm/NormalizationTest.txt: New file, created from
14046         Unicode 5.1.0 NormalizationTest.txt.
14047         * modules/uninorm/nfd-tests: New file.
14048
14049         New module 'uninorm/nfd'.
14050         * lib/uninorm/nfd.c: New file.
14051         * modules/uninorm/nfd: New file.
14052
14053         New module 'uninorm/u32-normalize'.
14054         * lib/uninorm/u32-normalize.c: New file.
14055         * modules/uninorm/u32-normalize: New file.
14056
14057         New module 'uninorm/u16-normalize'.
14058         * lib/uninorm/u16-normalize.c: New file.
14059         * modules/uninorm/u16-normalize: New file.
14060
14061         New module 'uninorm/u8-normalize'.
14062         * lib/uninorm/u8-normalize.c: New file.
14063         * lib/uninorm/normalize-internal.h: New file.
14064         * lib/uninorm/u-normalize-internal.h: New file.
14065         * modules/uninorm/u8-normalize: New file.
14066
14067         New module 'uninorm/decompose-internal'.
14068         * lib/uninorm/decompose-internal.c: New file.
14069         * modules/uninorm/decompose-internal: New file.
14070
14071         Tests for module 'uninorm/composition'.
14072         * tests/uninorm/test-composition.c: New file.
14073         * modules/uninorm/composition-tests: New file.
14074
14075         New module 'uninorm/composition'.
14076         * lib/uninorm/composition.c: New file.
14077         * lib/uninorm/composition-table.gperf: New file, generated by
14078         gen-uni-tables.
14079         * modules/uninorm/composition: New file.
14080
14081         Tests for module 'uninorm/compat-decomposition'.
14082         * tests/uninorm/test-compat-decomposition.c: New file.
14083         * modules/uninorm/compat-decomposition-tests: New file.
14084
14085         New module 'uninorm/compat-decomposition'.
14086         * lib/uninorm/decompose-internal.h: New file.
14087         * lib/uninorm/compat-decomposition.c: New file.
14088         * modules/uninorm/compat-decomposition: New file.
14089
14090         Tests for module 'uninorm/canonical-decomposition'.
14091         * tests/uninorm/test-canonical-decomposition.c: New file.
14092         * modules/uninorm/canonical-decomposition-tests: New file.
14093
14094         New module 'uninorm/canonical-decomposition'.
14095         * lib/uninorm/canonical-decomposition.c: New file.
14096         * modules/uninorm/canonical-decomposition: New file.
14097
14098         Tests for module 'uninorm/decomposition'.
14099         * tests/uninorm/test-decomposition.c: New file.
14100         * modules/uninorm/decomposition-tests: New file.
14101
14102         New module 'uninorm/decomposition'.
14103         * lib/uninorm/decomposition.c: New file.
14104         * modules/uninorm/decomposition: New file.
14105
14106         New module 'uninorm/decomposition-table'.
14107         * lib/uninorm/decomposition-table.h: New file.
14108         * lib/uninorm/decomposition-table.c: New file.
14109         * lib/uninorm/decomposition-table1.h: New file, generated by
14110         gen-uni-tables.
14111         * lib/uninorm/decomposition-table2.h: New file, generated by
14112         gen-uni-tables.
14113         * modules/uninorm/decomposition-table: New file.
14114
14115         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14116         (UC_DECOMP_*): New enumeration items.
14117         (get_decomposition): New function.
14118         (struct decomp_table): New type.
14119         (output_decomposition, output_decomposition_tables): New functions.
14120         (unicode_composition_exclusions): New variable.
14121         (fill_composition_exclusions, debug_output_composition_tables): New
14122         functions.
14123         (main): Accept one more argument. Invoke fill_composition_exclusions.
14124         Output decomposition and composition tables.
14125
14126         New module 'uninorm/base'.
14127         * lib/uninorm.h: New file.
14128         * lib/unictype.h: Update comment.
14129         * modules/uninorm/base: New file.
14130
14131 2009-02-21  David Lutterkort  <lutter@redhat.com>
14132
14133         Tests for module 'safe-alloc'.
14134         * tests/test-safe-alloc.c: New file.
14135         * modules/safe-alloc-tests: New file.
14136
14137         New module 'safe-alloc'.
14138         * lib/safe-alloc.h: New file.
14139         * lib/safe-alloc.c: New file.
14140         * m4/safe-alloc.m4: New file.
14141         * modules/safe-alloc: New file.
14142         * doc/safe-alloc.texi: New file.
14143         * doc/gnulib.texi: Include it.
14144         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14145         safe-alloc.
14146
14147 2009-02-18  Bruno Haible  <bruno@clisp.org>
14148
14149         Fix link error on non-glibc systems.
14150         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14151         variable.
14152         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14153
14154 2009-02-18  Jim Meyering  <meyering@redhat.com>
14155
14156         fts: avoid used-uninitialized error due to recent change
14157         * lib/fts.c (fts_read): Guard uses of the new member,
14158         parent->fts_n_dirs_remaining, since it's not relevant for
14159         the parent of a directory specified on the command-line.
14160
14161 2009-02-17  James Youngman  <jay@gnu.org>
14162             Bruno Haible  <bruno@clisp.org>
14163
14164         * m4/include_next.m4: Reformulate comment.
14165
14166 2009-02-16  Jim Meyering  <meyering@redhat.com>
14167
14168         fts: add #if guards so that the fts_lgpl module still builds
14169         * lib/fts.c: Guard just-added hash-table-using parts with
14170         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14171         Reported by Simon Josefsson.
14172
14173 2009-02-15  Bruno Haible  <bruno@clisp.org>
14174
14175         * modules/array-mergesort-tests: New file.
14176         * tests/test-array-mergesort.c: New file.
14177
14178         New module 'array-mergesort'.
14179         * modules/array-mergesort: New file.
14180         * lib/array-mergesort.h: New file.
14181
14182 2009-02-15  Bruno Haible  <bruno@clisp.org>
14183
14184         Fix 2009-02-07 commit.
14185         * lib/gen-uni-tables.c (output_predicate, output_category,
14186         output_combclass, output_bidi_category, output_decimal_digit,
14187         output_digit, output_numeric, output_mirror, output_scripts,
14188         output_ident_category, output_simple_mapping): Fix format directives.
14189         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14190
14191 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
14192
14193         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14194         fixes are available from IBM.
14195
14196 2009-02-13  Jim Meyering  <meyering@redhat.com>
14197
14198         fts: arrange not to stat non-directories in more cases
14199         This makes GNU find (when it doesn't need to stat each file)
14200         *much* more efficient at traversing reiserfs file systems.
14201         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14202         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14203         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14204         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14205         (leaf_optimization_applies): New function.
14206         (LCO_hash, LCO_compare): New helper functions.
14207         (link_count_optimize_ok): New function.
14208         (fts_stat): Initialize new member (if dir).
14209         (fts_read): Decrement parent's fts_n_dirs_remaining count if
14210         we've just stat'ed a directory.  Skip the stat call when possible.
14211         ---
14212         Note this AFS-related exchange:
14213         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14214         and note find's pioctl call in find/fstype.c.
14215         But that is necessary only if you want to enable the
14216         optimization for AFS, and for now, I don't.
14217
14218         fts: move a function definition "up" (no semantic change)
14219         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14220         "up" to precede upcoming use of a related function.
14221
14222 2009-02-11  Jim Meyering  <meyering@redhat.com>
14223
14224         fts: correct internal computation of nlinks (optimization-related)
14225         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14226         whether the current entry is a directory, so don't test it.
14227
14228 2009-02-10  Bruno Haible  <bruno@clisp.org>
14229
14230         Tests for module 'uniwbrk/ulc-wordbreaks'.
14231         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14232         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14233         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14234
14235         Tests for module 'uniwbrk/u32-wordbreaks'.
14236         * modules/uniwbrk/u32-wordbreaks-tests: New file.
14237         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14238
14239         Tests for module 'uniwbrk/u16-wordbreaks'.
14240         * modules/uniwbrk/u16-wordbreaks-tests: New file.
14241         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14242
14243         Tests for module 'uniwbrk/u8-wordbreaks'.
14244         * modules/uniwbrk/u8-wordbreaks-tests: New file.
14245         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14246
14247 2009-02-10  Bruno Haible  <bruno@clisp.org>
14248
14249         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14250         property.
14251         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14252         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14253         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14254
14255 2009-02-10  Simon Josefsson  <simon@josefsson.org>
14256
14257         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14258         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
14259
14260 2009-02-10  Bruno Haible  <bruno@clisp.org>
14261
14262         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14263         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14264         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14265         * lib/unilbrk/u8-possible-linebreaks.c: Update.
14266         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14267         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14268
14269 2009-02-09  Simon Josefsson  <simon@josefsson.org>
14270
14271         * lib/sockets.h (gl_fd_to_handle): New function.
14272
14273         * tests/test-sockets.c: Call gl_fd_to_handle.
14274
14275 2009-02-09  Bruno Haible  <bruno@clisp.org>
14276
14277         * doc/havelib.texi: Document the conventions on bi-arch systems.
14278
14279 2009-02-08  Bruno Haible  <bruno@clisp.org>
14280
14281         Document the AC_LIB_LINKFLAGS macro.
14282         * doc/havelib.texi: New file, mostly written on 2005-05-24.
14283         * doc/gnulib.texi: Include it.
14284
14285 2009-02-08  Bruno Haible  <bruno@clisp.org>
14286
14287         Fix wrong order of sections, compared to TOC.
14288         * doc/gnulib.texi: Include relocatable-maint.texi after the
14289         "Regular expressions" node, not before.
14290
14291 2009-02-08  Bruno Haible  <bruno@clisp.org>
14292
14293         Tests for module 'unicase/totitle'.
14294         * modules/unicase/totitle-tests: New file.
14295
14296         Tests for module 'unicase/tolower'.
14297         * modules/unicase/tolower-tests: New file.
14298
14299         Tests for module 'unicase/toupper'.
14300         * modules/unicase/toupper-tests: New file.
14301         * tests/unicase/test-mapping-part1.h: New file.
14302         * tests/unicase/test-mapping-part2.h: New file.
14303
14304         New module 'unicase/totitle'.
14305         * modules/unicase/totitle: New file.
14306         * lib/unicase/totitle.c: New file.
14307
14308         New module 'unicase/tolower'.
14309         * modules/unicase/tolower: New file.
14310         * lib/unicase/tolower.c: New file.
14311
14312         New module 'unicase/toupper'.
14313         * modules/unicase/toupper: New file.
14314         * lib/unicase/toupper.c: New file.
14315         * lib/unicase/simple-mapping.h: New file.
14316
14317         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
14318         (mapping_table): New structure.
14319         (output_simple_mapping): New function.
14320         (main): Invoke output_simple_mapping_test and output_simple_mapping.
14321         * modules/gen-uni-tables (Description): Update.
14322         * lib/unicase/toupper.h: New file, automatically generated by
14323         gen-uni-tables.
14324         * lib/unicase/tolower.h: New file, automatically generated by
14325         gen-uni-tables.
14326         * lib/unicase/totitle.h: New file, automatically generated by
14327         gen-uni-tables.
14328         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
14329         gen-uni-tables.
14330         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
14331         gen-uni-tables.
14332         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
14333         gen-uni-tables.
14334
14335         New module 'unicase/base'.
14336         * modules/unicase/base: New file.
14337         * lib/unicase.h: New file.
14338
14339 2009-02-08  Bruno Haible  <bruno@clisp.org>
14340
14341         New module 'uniwbrk/ulc-wordbreaks'.
14342         * modules/uniwbrk/ulc-wordbreaks: New file.
14343         * lib/uniwbrk/ulc-wordbreaks.c: New file.
14344
14345         New module 'uniwbrk/u32-wordbreaks'.
14346         * modules/uniwbrk/u32-wordbreaks: New file.
14347         * lib/uniwbrk/u32-wordbreaks.c: New file.
14348
14349         New module 'uniwbrk/u16-wordbreaks'.
14350         * modules/uniwbrk/u16-wordbreaks: New file.
14351         * lib/uniwbrk/u16-wordbreaks.c: New file.
14352
14353         New module 'uniwbrk/u8-wordbreaks'.
14354         * modules/uniwbrk/u8-wordbreaks: New file.
14355         * lib/uniwbrk/u8-wordbreaks.c: New file.
14356         * lib/uniwbrk/u-wordbreaks.h: New file.
14357
14358         New module 'uniwbrk/table'.
14359         * modules/uniwbrk/table: New file.
14360         * lib/uniwbrk/wbrktable.h: New file.
14361         * lib/uniwbrk/wbrktable.c: New file.
14362
14363         New module 'uniwbrk/wordbreak-property'.
14364         * modules/uniwbrk/wordbreak-property: New file.
14365         * lib/uniwbrk/wordbreak-property.c: New file.
14366
14367         * lib/gen-uni-tables.c (WBP_*): New enum items.
14368         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
14369         (unicode_org_wbp): New variable.
14370         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
14371         New functions.
14372         (wbp_table): New structure.
14373         (output_wbp, output_wbrk_tables): New functions.
14374         (main): Accept additional argument. Invoke fill_org_wbp,
14375         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
14376         output_wbrk_tables.
14377         * modules/gen-uni-tables (Description): Update.
14378         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
14379         gen-uni-tables.
14380
14381         New module 'uniwbrk/base'.
14382         * modules/uniwbrk/base: New file.
14383         * lib/uniwbrk.h: New file.
14384
14385 2009-02-08  Bruno Haible  <bruno@clisp.org>
14386
14387         Update to Unicode 5.1.0.
14388         * lib/gen-uni-tables.c (is_property_alphabetic): Include
14389         U+2185..U+2188.
14390         (is_property_default_ignorable_code_point): Don't include characters
14391         of category Cc or Cs and not-a-characters.
14392         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
14393         U+0D79, U+109E, U+109F, U+A60C.
14394         * lib/unictype/bidi_of.h: Regenerated.
14395         * lib/unictype/blocks.h: Regenerated.
14396         * lib/unictype/categ_C.h: Regenerated.
14397         * lib/unictype/categ_Cf.h: Regenerated.
14398         * lib/unictype/categ_Cn.h: Regenerated.
14399         * lib/unictype/categ_L.h: Regenerated.
14400         * lib/unictype/categ_Ll.h: Regenerated.
14401         * lib/unictype/categ_Lm.h: Regenerated.
14402         * lib/unictype/categ_Lo.h: Regenerated.
14403         * lib/unictype/categ_Lu.h: Regenerated.
14404         * lib/unictype/categ_M.h: Regenerated.
14405         * lib/unictype/categ_Mc.h: Regenerated.
14406         * lib/unictype/categ_Me.h: Regenerated.
14407         * lib/unictype/categ_Mn.h: Regenerated.
14408         * lib/unictype/categ_N.h: Regenerated.
14409         * lib/unictype/categ_Nd.h: Regenerated.
14410         * lib/unictype/categ_Nl.h: Regenerated.
14411         * lib/unictype/categ_No.h: Regenerated.
14412         * lib/unictype/categ_P.h: Regenerated.
14413         * lib/unictype/categ_Pd.h: Regenerated.
14414         * lib/unictype/categ_Pe.h: Regenerated.
14415         * lib/unictype/categ_Pf.h: Regenerated.
14416         * lib/unictype/categ_Pi.h: Regenerated.
14417         * lib/unictype/categ_Po.h: Regenerated.
14418         * lib/unictype/categ_Ps.h: Regenerated.
14419         * lib/unictype/categ_S.h: Regenerated.
14420         * lib/unictype/categ_Sk.h: Regenerated.
14421         * lib/unictype/categ_Sm.h: Regenerated.
14422         * lib/unictype/categ_So.h: Regenerated.
14423         * lib/unictype/categ_of.h: Regenerated.
14424         * lib/unictype/combining.h: Regenerated.
14425         * lib/unictype/ctype_alnum.h: Regenerated.
14426         * lib/unictype/ctype_alpha.h: Regenerated.
14427         * lib/unictype/ctype_graph.h: Regenerated.
14428         * lib/unictype/ctype_lower.h: Regenerated.
14429         * lib/unictype/ctype_print.h: Regenerated.
14430         * lib/unictype/ctype_punct.h: Regenerated.
14431         * lib/unictype/ctype_upper.h: Regenerated.
14432         * lib/unictype/decdigit.h: Regenerated.
14433         * lib/unictype/digit.h: Regenerated.
14434         * lib/unictype/mirror.h: Regenerated.
14435         * lib/unictype/numeric.h: Regenerated.
14436         * lib/unictype/pr_alphabetic.h: Regenerated.
14437         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
14438         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
14439         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
14440         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
14441         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
14442         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
14443         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
14444         * lib/unictype/pr_combining.h: Regenerated.
14445         * lib/unictype/pr_dash.h: Regenerated.
14446         * lib/unictype/pr_decimal_digit.h: Regenerated.
14447         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
14448         * lib/unictype/pr_deprecated.h: Regenerated.
14449         * lib/unictype/pr_diacritic.h: Regenerated.
14450         * lib/unictype/pr_extender.h: Regenerated.
14451         * lib/unictype/pr_format_control.h: Regenerated.
14452         * lib/unictype/pr_grapheme_base.h: Regenerated.
14453         * lib/unictype/pr_grapheme_extend.h: Regenerated.
14454         * lib/unictype/pr_grapheme_link.h: Regenerated.
14455         * lib/unictype/pr_id_continue.h: Regenerated.
14456         * lib/unictype/pr_id_start.h: Regenerated.
14457         * lib/unictype/pr_ideographic.h: Regenerated.
14458         * lib/unictype/pr_ignorable_control.h: Regenerated.
14459         * lib/unictype/pr_lowercase.h: Regenerated.
14460         * lib/unictype/pr_math.h: Regenerated.
14461         * lib/unictype/pr_numeric.h: Regenerated.
14462         * lib/unictype/pr_other_alphabetic.h: Regenerated.
14463         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
14464         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
14465         * lib/unictype/pr_other_id_continue.h: Regenerated.
14466         * lib/unictype/pr_other_lowercase.h: Regenerated.
14467         * lib/unictype/pr_other_math.h: Regenerated.
14468         * lib/unictype/pr_punctuation.h: Regenerated.
14469         * lib/unictype/pr_sentence_terminal.h: Regenerated.
14470         * lib/unictype/pr_soft_dotted.h: Regenerated.
14471         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
14472         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
14473         * lib/unictype/pr_unified_ideograph.h: Regenerated.
14474         * lib/unictype/pr_uppercase.h: Regenerated.
14475         * lib/unictype/pr_xid_continue.h: Regenerated.
14476         * lib/unictype/pr_xid_start.h: Regenerated.
14477         * lib/unictype/pr_zero_width.h: Regenerated.
14478         * lib/unictype/scripts.h: Regenerated.
14479         * lib/unictype/scripts_byname.gperf: Regenerated.
14480         * lib/unictype/sy_java_ident.h: Regenerated.
14481         * lib/unilbrk/lbrkprop1.h: Regenerated.
14482         * lib/unilbrk/lbrkprop2.h: Regenerated.
14483         * tests/unictype/test-categ_C.c: Regenerated.
14484         * tests/unictype/test-categ_Cf.c: Regenerated.
14485         * tests/unictype/test-categ_Cn.c: Regenerated.
14486         * tests/unictype/test-categ_L.c: Regenerated.
14487         * tests/unictype/test-categ_Ll.c: Regenerated.
14488         * tests/unictype/test-categ_Lm.c: Regenerated.
14489         * tests/unictype/test-categ_Lo.c: Regenerated.
14490         * tests/unictype/test-categ_Lu.c: Regenerated.
14491         * tests/unictype/test-categ_M.c: Regenerated.
14492         * tests/unictype/test-categ_Mc.c: Regenerated.
14493         * tests/unictype/test-categ_Me.c: Regenerated.
14494         * tests/unictype/test-categ_Mn.c: Regenerated.
14495         * tests/unictype/test-categ_N.c: Regenerated.
14496         * tests/unictype/test-categ_Nd.c: Regenerated.
14497         * tests/unictype/test-categ_Nl.c: Regenerated.
14498         * tests/unictype/test-categ_No.c: Regenerated.
14499         * tests/unictype/test-categ_P.c: Regenerated.
14500         * tests/unictype/test-categ_Pd.c: Regenerated.
14501         * tests/unictype/test-categ_Pe.c: Regenerated.
14502         * tests/unictype/test-categ_Pf.c: Regenerated.
14503         * tests/unictype/test-categ_Pi.c: Regenerated.
14504         * tests/unictype/test-categ_Po.c: Regenerated.
14505         * tests/unictype/test-categ_Ps.c: Regenerated.
14506         * tests/unictype/test-categ_S.c: Regenerated.
14507         * tests/unictype/test-categ_Sk.c: Regenerated.
14508         * tests/unictype/test-categ_Sm.c: Regenerated.
14509         * tests/unictype/test-categ_So.c: Regenerated.
14510         * tests/unictype/test-ctype_alnum.c: Regenerated.
14511         * tests/unictype/test-ctype_alpha.c: Regenerated.
14512         * tests/unictype/test-ctype_graph.c: Regenerated.
14513         * tests/unictype/test-ctype_lower.c: Regenerated.
14514         * tests/unictype/test-ctype_print.c: Regenerated.
14515         * tests/unictype/test-ctype_punct.c: Regenerated.
14516         * tests/unictype/test-ctype_upper.c: Regenerated.
14517         * tests/unictype/test-decdigit.h: Regenerated.
14518         * tests/unictype/test-digit.h: Regenerated.
14519         * tests/unictype/test-numeric.h: Regenerated.
14520         * tests/unictype/test-pr_alphabetic.c: Regenerated.
14521         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
14522         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
14523         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
14524         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
14525         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
14526         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
14527         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
14528         * tests/unictype/test-pr_combining.c: Regenerated.
14529         * tests/unictype/test-pr_dash.c: Regenerated.
14530         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
14531         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
14532         * tests/unictype/test-pr_deprecated.c: Regenerated.
14533         * tests/unictype/test-pr_diacritic.c: Regenerated.
14534         * tests/unictype/test-pr_extender.c: Regenerated.
14535         * tests/unictype/test-pr_format_control.c: Regenerated.
14536         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
14537         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
14538         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
14539         * tests/unictype/test-pr_id_continue.c: Regenerated.
14540         * tests/unictype/test-pr_id_start.c: Regenerated.
14541         * tests/unictype/test-pr_ideographic.c: Regenerated.
14542         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
14543         * tests/unictype/test-pr_lowercase.c: Regenerated.
14544         * tests/unictype/test-pr_math.c: Regenerated.
14545         * tests/unictype/test-pr_numeric.c: Regenerated.
14546         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
14547         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
14548         Regenerated.
14549         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
14550         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
14551         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
14552         * tests/unictype/test-pr_other_math.c: Regenerated.
14553         * tests/unictype/test-pr_punctuation.c: Regenerated.
14554         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
14555         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
14556         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
14557         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
14558         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
14559         * tests/unictype/test-pr_uppercase.c: Regenerated.
14560         * tests/unictype/test-pr_xid_continue.c: Regenerated.
14561         * tests/unictype/test-pr_xid_start.c: Regenerated.
14562         * tests/unictype/test-pr_zero_width.c: Regenerated.
14563
14564         Update to Unicode 5.1.0.
14565         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
14566         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
14567         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
14568         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
14569         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
14570         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
14571         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
14572         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
14573         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
14574         (nonspacing_table_ind): Update.
14575         * tests/uniwidth/test-uc_width2.sh: Update expected result.
14576
14577         Update to Unicode 5.1.0.
14578         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
14579         code transform.
14580         * lib/uniname/uniname.c (unicode_character_name,
14581         unicode_name_character): Add the range 0x1Fxxx to the code transform.
14582         * lib/uniname/uninames.h: Regenerated.
14583         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
14584
14585 2009-02-07  Bruno Haible  <bruno@clisp.org>
14586
14587         Merge gen-ctype and gen-lbrk into a single program.
14588         * lib/gen-uni-tables.c: New file, incorporating
14589         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
14590         Add directory prefixes to the names of the generated files.
14591         * lib/unictype/gen-ctype.c: Remove file.
14592         * lib/unilbrk/gen-lbrk.c: Remove file.
14593         * modules/gen-uni-tables: New file.
14594         * modules/unictype/gen-ctype: Remove file.
14595         * modules/unilbrk/gen-lbrk: Remove file.
14596
14597 2009-02-07  Bruno Haible  <bruno@clisp.org>
14598
14599         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
14600
14601         New module 'unistr/u32-strcoll'.
14602         * modules/unistr/u32-strcoll: New file.
14603         * lib/unistr/u32-strcoll.c: New file.
14604
14605         New module 'unistr/u16-strcoll'.
14606         * modules/unistr/u16-strcoll: New file.
14607         * lib/unistr/u16-strcoll.c: New file.
14608
14609         New module 'unistr/u8-strcoll'.
14610         * modules/unistr/u8-strcoll: New file.
14611         * lib/unistr/u8-strcoll.c: New file.
14612         * lib/unistr/u-strcoll.h: New file.
14613
14614 2009-02-07  Bruno Haible  <bruno@clisp.org>
14615
14616         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
14617         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14618         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14619         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
14620         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
14621         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
14622
14623 2009-02-07  Bruno Haible  <bruno@clisp.org>
14624
14625         Make 64-bit clean.
14626         * lib/unictype/gen-ctype.c (output_predicate, output_category,
14627         output_combclass, output_bidi_category, output_decimal_digit,
14628         output_digit, output_numeric, output_mirror, output_scripts,
14629         output_ident_category): Use proper width specifier in format strings.
14630
14631 2009-02-07  Bruno Haible  <bruno@clisp.org>
14632
14633         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
14634         failure behaviour.
14635
14636 2009-02-07  Jim Meyering  <meyering@redhat.com>
14637
14638         regex: avoid compilation failure with upcoming gcc-4.4
14639         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
14640         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
14641         "... error: integer overflow in preprocessor expression".
14642
14643 2009-02-05  Ben Pfaff  <blp@gnu.org>
14644
14645         Fix link errors on Windows when close module is used.
14646         * modules/close: Add $(LIB_CLOSE) to Link section.
14647         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
14648         $(LIB_CLOSE) on Windows.
14649
14650 2009-02-05  Jim Meyering  <meyering@redhat.com>
14651
14652         still avoid unused-parameter warnings, but do it cleanly
14653         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
14654         (get_fs_usage): Cast to void instead.
14655         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
14656         (dev_from_mount_options, read_file_system_list): Cast to void.
14657         Prompted by Bruno Haible.
14658
14659 2009-02-04  Jim Meyering  <meyering@redhat.com>
14660
14661         fsusage.c: correct copyright year
14662         * lib/fsusage.c: Reflect year in which the change is pushed into
14663
14664         avoid misc. warnings
14665         * lib/fsusage.c (UNUSED_PARAM): Define.
14666         (get_fs_usage): Mark parameter "disk" as unused.
14667         * lib/getugroups.c (getgrent): Use "void" in prototype.
14668         * lib/mountlist.c: Mark unused parameters.
14669         (read_file_system_list): Declare a local with "const".
14670         * lib/nanosleep.c (getnow): Declare static.
14671         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
14672
14673         dirfd: set errno upon failure
14674         * lib/dirfd.c: Include <errno.h>.
14675         Set errno to ENOTSUP when returning -1.
14676         * modules/dirfd (Depends-on): Add errno.
14677         Suggested by John Kodis <kodis@comcast.net>.
14678
14679 2009-02-01  Bruno Haible  <bruno@clisp.org>
14680
14681         Don't assume sizeof (long) >= sizeof (void *).
14682         * lib/memcmp.c: Include stdint.h.
14683         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
14684         srcp2 to 'const byte *'.
14685         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
14686         types to uintptr_t.
14687         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
14688         * modules/memcmp (Depends-on): Add stdint.
14689         Reported by Ozkan Sezer <sezeroz@gmail.com>.
14690
14691 2009-01-30  Eric Blake  <ebb9@byu.net>
14692
14693         fix more require-before-expand issues
14694         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
14695         expand, AC_PROG_AWK.
14696         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
14697
14698 2009-01-28  Eric Blake  <ebb9@byu.net>
14699
14700         version-etc: use consistent URL formatting
14701         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
14702         Improve formatting.  Use fputs for string without %.
14703
14704 2009-01-28  Jim Meyering  <meyering@redhat.com>
14705
14706         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
14707         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
14708         "underquoted definition of NAME" from autoconf-2.59.
14709
14710 2009-01-28  Bruno Haible  <bruno@clisp.org>
14711
14712         * doc/gnulib.texi: Add "Obsolete modules" to index.
14713
14714 2009-01-28  Jim Meyering  <meyering@redhat.com>
14715
14716         useless-if-before-free: recognize more variants
14717         * build-aux/useless-if-before-free: Also recognize e.g.,
14718         if (NULL != p) free (p);
14719
14720 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
14721
14722         test-getaddrinfo: skip (don't fail) this test when there's no network
14723         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
14724         on the presumption that it means you lack network access.
14725
14726 2009-01-26  Jim Meyering  <meyering@redhat.com>
14727
14728         fflush: avoid warnings on modern systems
14729         * lib/fflush.c (rpl_fflush): Move declarations of locals,
14730         pos and result, into scopes where they're used.
14731
14732 2009-01-26  Eric Blake  <ebb9@byu.net>
14733
14734         Silence warning reintroduced by recent extensions patch.
14735         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
14736         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
14737         autoconf.
14738
14739         Backport improved autoconf semantics of AC_DEFUN_ONCE.
14740         * m4/00gnulib.m4: New file.
14741         * gnulib-tool (func_get_filelist): Always use it.
14742         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
14743         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
14744
14745 2009-01-25  Bruno Haible  <bruno@clisp.org>
14746
14747         Make test-quotearg work on MacOS X and AIX.
14748         * tests/test-quotearg.sh: New file.
14749         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
14750         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
14751         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
14752         include <libintl.h>.
14753         (fake_locale): Remove variable.
14754         (gettext, dgettext, dcgettext): Remove functions.
14755         (main): Instead of setting a fake locale, set a real locale. Call
14756         textdomain and bindtextdomain.
14757         * modules/quotearg-tests (Files): Add the new files.
14758         (Depends-on): Add gettext, setenv, unsetenv.
14759         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14760         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
14761         Augment TESTS_ENVIRONMENT.
14762
14763 2009-01-25  Bruno Haible  <bruno@clisp.org>
14764
14765         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
14766         fr_FR.ISO8859-1 locale on MacOS X.
14767         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
14768         ja_JP.eucJP locale on MacOS X.
14769         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
14770         zh_CN.GB18030 locale on MacOS X.
14771
14772 2009-01-25  Bruno Haible  <bruno@clisp.org>
14773
14774         Avoid link errors on MacOS X 10.3.
14775         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
14776         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14777
14778 2009-01-25  Bruno Haible  <bruno@clisp.org>
14779
14780         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14781         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
14782         * modules/pipe (Files): Remove m4/posix_spawn.m4.
14783         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14784         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
14785         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14786         posix_spawnattr_init, posix_spawnattr_setsigmask,
14787         posix_spawnattr_setflags, posix_spawnattr_destroy.
14788
14789         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14790         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
14791         * modules/execute (Files): Remove m4/posix_spawn.m4.
14792         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14793         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14794         posix_spawnattr_init, posix_spawnattr_setsigmask,
14795         posix_spawnattr_setflags, posix_spawnattr_destroy.
14796
14797 2009-01-25  Bruno Haible  <bruno@clisp.org>
14798
14799         * lib/glthread/threadlib.c: Include <stdlib.h>.
14800
14801 2009-01-25  Bruno Haible  <bruno@clisp.org>
14802
14803         * lib/glthread/threadlib.c (dummy): New declaration.
14804
14805 2009-01-25  Bruno Haible  <bruno@clisp.org>
14806
14807         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
14808         multibyte characters also for the GB18030 encoding. Don't crash when
14809         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
14810
14811 2009-01-25  Bruno Haible  <bruno@clisp.org>
14812
14813         Avoid redefining 'struct random_data' on OSF/1 5.1.
14814         * lib/stdlib.in.h: Include <random.h> if it exists.
14815         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
14816         HAVE_RANDOM_H. Include <random.h> when testing whether
14817         'struct random_data' exists.
14818         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
14819
14820 2009-01-25  Bruno Haible  <bruno@clisp.org>
14821
14822         Don't install charset.alias on MacOS X >= 10.3.
14823         * lib/localcharset.c (DARWIN7): New macro.
14824         (get_charset_aliases): Hardcode the result for Darwin7.
14825         * modules/localcharset (install-exec-local): Don't install
14826         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
14827
14828 2009-01-25  Bruno Haible  <bruno@clisp.org>
14829
14830         Don't install charset.alias on mingw and Cygwin.
14831         * modules/localcharset (install-exec-local): Don't install
14832         charset.alias on mingw and Cygwin, if the file does not yet exist.
14833         The result for these platforms is hardcoded in localcharset.c.
14834
14835 2009-01-25  Bruno Haible  <bruno@clisp.org>
14836
14837         Make it possible again to use AC_GNU_SOURCE together with gnulib.
14838         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
14839         before requiring AC_USE_SYSTEM_EXTENSIONS.
14840
14841 2009-01-25  Jim Meyering  <meyering@redhat.com>
14842
14843         c-strtod: avoid warnings
14844         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
14845         "assignment discards qualifiers from pointer target type" warnings.
14846
14847 2009-01-24  Bruno Haible  <bruno@clisp.org>
14848
14849         Add support for non-UTF-8 locales on MacOS X.
14850         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
14851         canonical encodings. For Darwin 7 and newer, don't map traditional
14852         encodings to UTF-8.
14853         Reported by Vincent Lefevre <vincent@vinc17.org>
14854         at <http://savannah.gnu.org/bugs/?25235>.
14855
14856 2009-01-24  Bruno Haible  <bruno@clisp.org>
14857
14858         * doc/gnulib.texi (Obsolete modules): New section.
14859         Reported by Mike Frysinger <vapier@gentoo.org>.
14860
14861 2009-01-24  Bruno Haible  <bruno@clisp.org>
14862
14863         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
14864         (%.dvi): New rule.
14865
14866 2009-01-24  Bruno Haible  <bruno@clisp.org>
14867
14868         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
14869         Reported by Eric Blake.
14870
14871 2009-01-24  Bruno Haible  <bruno@clisp.org>
14872
14873         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
14874         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
14875         Reported by Gary V. Vaughan <gary@gnu.org>.
14876
14877 2009-01-24  Bruno Haible  <bruno@clisp.org>
14878
14879         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
14880
14881 2009-01-23  Bruno Haible  <bruno@clisp.org>
14882
14883         Make c-strtod, c-strtold usable in libraries.
14884         * lib/c-strtod.c: Include string.h instead of xalloc.h.
14885         (C_STRTOD): Call strdup instead of xstrdup.
14886         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
14887         * modules/c-strtold (Depends-on): Likewise.
14888         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
14889         * NEWS: Mention the change.
14890         Reported by Michael Gold <mgold@ncf.ca>.
14891
14892 2009-01-23  Jim Meyering  <meyering@redhat.com>
14893
14894         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
14895         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
14896         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
14897
14898 2009-01-23  Simon Josefsson  <simon@josefsson.org>
14899
14900         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
14901         GNU CoreUtils.
14902         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
14903         * modules/version-etc (Description): Update.
14904
14905 2009-01-22  Bruno Haible  <bruno@clisp.org>
14906
14907         Cache the C locale object.
14908         * lib/c-strtod.c (c_locale_cache): New variable.
14909         (c_locale): New function.
14910         (C_STRTOD): Use it, and don't call freelocale.
14911         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
14912         Suggested by Paolo Bonzini.
14913
14914 2009-01-21  Bruno Haible  <bruno@clisp.org>
14915
14916         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
14917         conditions other than overflow.
14918
14919 2009-01-21  Bruno Haible  <bruno@clisp.org>
14920
14921         * lib/c-strtod.c: Include errno.h.
14922         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
14923         value from STRTOD_L and STRTOD.
14924
14925 2009-01-21  Bruno Haible  <bruno@clisp.org>
14926         and Jim Meyering  <meyering@redhat.com>
14927
14928         nanosleep: skip configure test (fail it) for apple universal builds
14929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
14930         universal builds, assume that nanosleep does not work.
14931         * modules/nanosleep (Depends-on): Add multiarch.
14932
14933         mktime: skip configure test (fail it) for apple universal builds
14934         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
14935         universal builds, assume that mktime does not work.
14936         * modules/mktime (Depends-on): Add multiarch.
14937
14938 2009-01-21  Eric Blake  <ebb9@byu.net>
14939
14940         multiarch: avoid expand-before-require warning
14941         * modules/multiarch (configure.ac): Require, rather than expand,
14942         gl_MULTIARCH.
14943         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
14944         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
14945         enforce that all clients require it.  Partial reversion of
14946         2008-12-29 patch.
14947
14948         error: avoid expand-before-require warning
14949         * modules/errno (configure.ac): Require, rather than expand,
14950         gl_HEADER_ERRNO_H.
14951         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
14952         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
14953         enforce that all clients require it.
14954
14955         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
14956         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
14957         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
14958         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
14959
14960 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
14961
14962         Revert:
14963         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
14964
14965         regex: do not depend on obsolete modules.
14966         * modules/regex: Remove memcmp and memmove.
14967
14968 2009-01-20  Bruno Haible  <bruno@clisp.org>
14969
14970         Make the 'link' module link on Windows NT 4.
14971         * lib/link.c (_WIN32_WINNT): Don't define.
14972         (CreateHardLinkFuncType): New type.
14973         (CreateHardLinkFunc, initialized): New variables.
14974         (initialize): New function.
14975         (link): Invoke CreateHardLink indirectly through the function pointer.
14976
14977 2009-01-20  Bruno Haible  <bruno@clisp.org>
14978
14979         Fix compilation failure on mingw.
14980         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
14981
14982 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
14983
14984         * doc/c-strtod.texi: Mention a couple of restrictions.
14985
14986 2009-01-20  Jim Meyering  <meyering@redhat.com>
14987
14988         gettimeofday: move more declarations out of functions
14989         * lib/gettimeofday.c: Move extern declarations of tzset and
14990         gmtime out of containing functions.  Prompted by Bruno Haible.
14991
14992 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
14993
14994         regex: do not depend on obsolete modules.
14995         * modules/regex: Remove memcmp and memmove.
14996
14997 2009-01-19  Bruno Haible  <bruno@clisp.org>
14998
14999         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15000         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15001         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15002         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15003         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15004
15005 2009-01-19  Bruno Haible  <bruno@clisp.org>
15006
15007         * tests/test-link.c: Include <errno.h>.
15008         (main): Exit with code 77 when a hard link cannot be created due to
15009         the file system.
15010         * tests/test-link.sh: Skip test when a hard link cannot be created due
15011         to the file system.
15012         Suggested by Eric Blake.
15013
15014 2009-01-19  Martin Lambers  <marlam@marlam.de>
15015
15016         * modules/link-tests: New file.
15017         * tests/test-link.sh: New file.
15018         * tests/test-link.c: New file.
15019
15020 2009-01-19  Eric Blake  <ebb9@byu.net>
15021
15022         doc: mention another function added in cygwin 1.7.0
15023         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15024         Another new function in cygwin 1.7.
15025
15026 2009-01-19  Bruno Haible  <bruno@clisp.org>
15027
15028         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15029         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15030         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15031         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15032         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15033         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15034         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15035         * m4/md4.m4 (gl_MD4): Likewise.
15036         * m4/md5.m4 (gl_MD5): Likewise.
15037         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15038         * m4/sha1.m4 (gl_SHA1): Likewise.
15039         * m4/sha256.m4 (gl_SHA256): Likewise.
15040         * m4/sha512.m4 (gl_SHA512): Likewise.
15041
15042 2009-01-19  Bruno Haible  <bruno@clisp.org>
15043
15044         * modules/uniname/uniname-tests (Depends-on): Add progname.
15045         * tests/uniname/test-uninames.c: Include progname.h.
15046         (main): Call set_program_name.
15047
15048         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15049         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15050         (main): Call set_program_name.
15051
15052         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15053         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15054         (main): Call set_program_name.
15055
15056         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15057         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15058         (main): Call set_program_name.
15059
15060         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15061         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15062         (main): Call set_program_name.
15063
15064         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15065         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15066         (main): Call set_program_name.
15067
15068         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15069         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15070         (main): Call set_program_name.
15071
15072         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15073         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15074         (main): Call set_program_name.
15075
15076         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15077         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15078         (main): Call set_program_name.
15079
15080 2009-01-19  Eric Blake  <ebb9@byu.net>
15081
15082         test-unistd: test previous patch
15083         * tests/test-unistd.c: Test *_FILENO macros.
15084
15085         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15086         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15087         Guarantee a definition.
15088         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15089         * modules/unistd-safer (Depends-on): Add dependency on unistd.
15090         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15091         * lib/dup-safer.c (STDERR_FILENO): Likewise.
15092         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15093         Likewise.
15094         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15095         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15096         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15097         Likewise.
15098         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15099         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15100         (STDERR_FILENO): Likewise.
15101         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15102         (STDERR_FILENO): Likewise.
15103         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15104         (STDERR_FILENO): Likewise.
15105         Reported by Elbert Pol.
15106
15107 2009-01-19  Eric Blake  <ebb9@byu.net>
15108
15109         doc: mention more functions added in cygwin 1.7.0
15110         * doc/posix-functions/abort.texi (abort): Update wording related
15111         to cygwin.
15112         * doc/posix-functions/daylight.texi (daylight): Likewise.
15113         * doc/posix-functions/optarg.texi (optarg): Likewise.
15114         * doc/posix-functions/optarg.texi (opterr): Likewise.
15115         * doc/posix-functions/optarg.texi (optind): Likewise.
15116         * doc/posix-functions/optarg.texi (optopt): Likewise.
15117         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15118         worked in 1.5.x, and was withdrawn in 1.7.
15119         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15120         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15121         cygwin versions.
15122         * doc/posix-functions/perror.texi (perror): Likewise.
15123         * doc/posix-functions/printf.texi (printf): Likewise.
15124         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15125         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15126         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15127         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15128         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15129         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15130         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15131         Likewise.
15132         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15133         Likewise.
15134         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15135         this function.
15136         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15137         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15138         Likewise.
15139         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15140         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15141         * doc/posix-functions/confstr.texi (confstr): Likewise.
15142         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15143         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15144         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15145         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15146         * doc/posix-functions/fputws.texi (fputws): Likewise.
15147         * doc/posix-functions/fwide.texi (fwide): Likewise.
15148         * doc/posix-functions/getwc.texi (getwc): Likewise.
15149         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15150         * doc/posix-functions/putwc.texi (putwc): Likewise.
15151         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15152         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15153         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15154         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15155         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15156         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15157         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15158         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15159         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15160         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15161         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15162
15163 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15164
15165         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15166         * lib/ioctl.c: Include <sys/ioctl.h>.
15167
15168 2009-01-19  Simon Josefsson  <simon@josefsson.org>
15169
15170         * modules/getdate-tests (Depends-on): Add progname.
15171         * tests/test-getdate.c: Use progname module, to avoid link errors
15172         on non-glibc systems.
15173
15174 2009-01-18  Simon Josefsson  <simon@josefsson.org>
15175
15176         * modules/filenamecat-tests (Depends-on): Add progname.
15177         * modules/fstrcmp-tests (Depends-on): Likewise.
15178
15179         * tests/test-filenamecat.c: Use progname module, to avoid link
15180         errors on non-glibc systems.
15181         * tests/test-fstrcmp.c: Likewise.
15182
15183 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15184
15185         gettimeofday: avoid warning: nested extern declaration of 'localtime'
15186         * lib/gettimeofday.c: Move extern declaration out of function.
15187
15188 2009-01-18  Bruno Haible  <bruno@clisp.org>
15189
15190         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15191         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15192         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15193
15194 2009-01-18  Bruno Haible  <bruno@clisp.org>
15195
15196         * lib/strftime.c (MEMPCPY): Remove unused macro.
15197         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15198
15199 2009-01-18  Martin Lambers  <marlam@marlam.de>
15200
15201         New module 'link'.
15202         * lib/unistd.in.h (link): New declaration.
15203         * lib/link.c: New file.
15204         * m4/link.m4: New file.
15205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15206         HAVE_LINK.
15207         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15208         * modules/link: New file.
15209         * doc/posix-functions/link.texi: Mention the new module.
15210
15211 2009-01-18  Bruno Haible  <bruno@clisp.org>
15212
15213         * tests/test-avltree_list.c (main): Call set_program_name.
15214         * tests/test-avltree_oset.c (main): Likewise.
15215         * tests/test-obstack-printf.c: Include progname.h.
15216         (main): Call set_program_name.
15217         * tests/test-quotearg.c: Include progname.h.
15218         (main): Call set_program_name.
15219         * tests/test-xmemdup0.c: Include progname.h.
15220         (main): Call set_program_name.
15221
15222 2009-01-18  Bruno Haible  <bruno@clisp.org>
15223
15224         New module 'alphasort'.
15225         * lib/dirent.in.h (alphasort): New declaration.
15226         * lib/alphasort.c: New file, from glibc with modifications.
15227         * m4/alphasort.m4: New file.
15228         * modules/alphasort: New file.
15229         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15230         HAVE_ALPHASORT.
15231         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15232         HAVE_ALPHASORT.
15233         * doc/posix-functions/alphasort.texi: Mention the new module and the
15234         portability problems.
15235
15236 2009-01-18  Bruno Haible  <bruno@clisp.org>
15237
15238         New module 'scandir'.
15239         * lib/dirent.in.h (scandir): New declaration.
15240         * lib/scandir.c: New file, from glibc with modifications.
15241         * m4/scandir.m4: New file.
15242         * modules/scandir: New file.
15243         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15244         HAVE_SCANDIR.
15245         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15246         HAVE_SCANDIR.
15247         * doc/posix-functions/scandir.texi: Mention the new module and the
15248         portability problems.
15249
15250 2009-01-17  Bruno Haible  <bruno@clisp.org>
15251
15252         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15253         Update documentation.
15254         (func_remove_suffix): Escape all dots in the suffix. Update
15255         documentation.
15256         (func_filter_filelist): Update documentation.
15257         Reported by Ralf Wildenhues.
15258
15259 2009-01-17  Bruno Haible  <bruno@clisp.org>
15260
15261         * modules/dprintf-posix-tests: New file.
15262         * tests/test-dprintf-posix.sh: New file.
15263         * tests/test-dprintf-posix.c: New file.
15264
15265         New modules 'dprintf', 'dprintf-posix'.
15266         * lib/stdio.in.h (dprintf): New declaration.
15267         * lib/dprintf.c: New file.
15268         * m4/dprintf.m4: New file.
15269         * m4/dprintf-posix.m4: New file.
15270         * modules/dprintf: New file.
15271         * modules/dprintf-posix: New file.
15272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15273         HAVE_DPRINTF, REPLACE_DPRINTF.
15274         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15275         HAVE_DPRINTF, REPLACE_DPRINTF.
15276         * doc/posix-functions/dprintf.texi: Mention the new modules.
15277
15278 2009-01-17  Bruno Haible  <bruno@clisp.org>
15279
15280         * modules/vdprintf-posix-tests: New file.
15281         * tests/test-vdprintf-posix.sh: New file.
15282         * tests/test-vdprintf-posix.c: New file.
15283
15284         New modules 'vdprintf', 'vdprintf-posix'.
15285         * lib/stdio.in.h (vdprintf): New declaration.
15286         * lib/vdprintf.c: New file.
15287         * m4/vdprintf.m4: New file.
15288         * m4/vdprintf-posix.m4: New file.
15289         * modules/vdprintf: New file.
15290         * modules/vdprintf-posix: New file.
15291         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
15292         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15293         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
15294         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15295         * doc/posix-functions/vdprintf.texi: Mention the new modules.
15296
15297 2009-01-17  Bruno Haible  <bruno@clisp.org>
15298
15299         Fix replacement of fopen on mingw.
15300         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
15301         mingw.
15302
15303 2009-01-17  Bruno Haible  <bruno@clisp.org>
15304
15305         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
15306         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
15307
15308 2009-01-17  Bruno Haible  <bruno@clisp.org>
15309
15310         Avoid test-fflush2.sh failure on mingw.
15311         * tests/test-fflush2.c: Include binary-io.h.
15312         (main): Put standard input into binary mode.
15313         * modules/fflush-tests (Depends-on): Add binary-io.
15314
15315 2009-01-17  Bruno Haible  <bruno@clisp.org>
15316
15317         * lib/wchar.in.h: In another particular situation, include only the
15318         system's <wchar.h> file.
15319         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
15320         Reported by Albert Chin-A-Young <china@thewrittenword.com>
15321         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
15322
15323 2009-01-17  Bruno Haible  <bruno@clisp.org>
15324
15325         Support for stripping executables in --enable-relocatable.
15326         * build-aux/install-reloc: Expect one more argument, or an environment
15327         variable RELOC_STRIP_PROG. If set, strip the destination program and
15328         its wrapper.
15329         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
15330         RELOC_STRIP_PROG.
15331         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
15332         to set RELOCATABLE_STRIP.
15333         * NEWS: Mention the new Makefile requirement.
15334
15335 2009-01-17  Bruno Haible  <bruno@clisp.org>
15336
15337         * build-aux/install-reloc: Remove debugging information left over by
15338         C compiler on MacOS X.
15339
15340 2009-01-17  Bruno Haible  <bruno@clisp.org>
15341
15342         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
15343         * lib/progreloc.c (find_executable): Fix type of pointer passed to
15344         _NSGetExecutablePath.
15345
15346 2009-01-16  Jim Meyering  <meyering@redhat.com>
15347
15348         strerror: avoid warnings about discarding "const"
15349         * lib/strerror.c (rpl_strerror): Instead of returning a const
15350         string from each and every "case", use a variable, and add a single
15351         cast after the switch.
15352
15353 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
15354
15355         * lib/arpa_inet.in.h: Add extern "C" block for C++.
15356
15357 2009-01-16  Bruno Haible  <bruno@clisp.org>
15358
15359         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
15360         array initializer syntax that also works in C++ mode.
15361         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15362
15363 2009-01-16  Jim Meyering  <meyering@redhat.com>
15364
15365         poll: suppress a warning
15366         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
15367         to ignore "...unsigned expression < 0 is always false" warnings.
15368
15369 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
15370
15371         poll: remove declarations of unused variables
15372         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
15373         sockbuf and optlen.
15374
15375 2009-01-15  Bruno Haible  <bruno@clisp.org>
15376
15377         Make fflush-after-ungetc POSIX compliant on BSD systems.
15378         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
15379         (clear_ungetc_buffer): Implement also for other systems.
15380         (rpl_fflush): On glibc systems, invoke
15381         clear_ungetc_buffer_preserving_position. Otherwise, invoke
15382         clear_ungetc_buffer after fetching the stream's position, not before.
15383
15384 2009-01-15  Bruno Haible  <bruno@clisp.org>
15385
15386         Make fflush-after-ungetc POSIX compliant on glibc systems.
15387         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
15388         after ungetc.
15389         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
15390         (rpl_fflush): On glibc systems, simply call the system's fflush
15391         function after clearing the ungetc buffer.
15392         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
15393         Instead, lseek only to the end of file, then use the system's fseeko
15394         for the rest. On glibc systems, reset the EOF indicator bit.
15395
15396 2009-01-15  Jim Meyering  <meyering@redhat.com>
15397
15398         openmp.m4: revert quote-adding change, for portability to older autoconf
15399         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
15400         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
15401         Simon Josefsson noticed the problem when using autoconf-2.61.
15402
15403 2009-01-15  Bruno Haible  <bruno@clisp.org>
15404
15405         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
15406         * tests/test-fflush2.c (ASSERT): Always fail.
15407         (main): Add two tests for fflush() after ungetc(), taking into account
15408         the Austin Group's clarification.
15409         Suggested by Eric Blake.
15410
15411 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
15412
15413         mktime.m4: remove K&R-style function prototypes
15414         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
15415         for the Sun C++ compiler.
15416
15417 2009-01-14  Bruno Haible  <bruno@clisp.org>
15418
15419         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
15420         while including <wchar.h>.
15421         * lib/wchar.in.h: In two particular situations on HP-UX, include only
15422         the system's <wchar.h> file.
15423         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15424
15425 2009-01-14  Bruno Haible  <bruno@clisp.org>
15426
15427         * m4/csharp.m4: Don't mention gettext on the serial number line.
15428         * m4/csharpexec.m4: Likewise.
15429         * m4/eaccess.m4: Likewise.
15430         * m4/javaexec.m4: Likewise.
15431         * m4/sig_atomic_t.m4: Likewise.
15432         * m4/tmpdir.m4: Likewise.
15433         * m4/intldir.m4: Bump gettext version.
15434         * m4/lib-ld.m4: Likewise.
15435
15436 2009-01-14  Bruno Haible  <bruno@clisp.org>
15437
15438         * lib/progname.c (set_program_name): Add more comments.
15439         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15440
15441 2009-01-14  Simon Josefsson  <simon@josefsson.org>
15442
15443         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
15444         were sys/stat.h does not define it.
15445
15446 2009-01-14  Jim Meyering  <meyering@redhat.com>
15447
15448         many *.m4 files: improve m4 quoting
15449         99% of this change was performed by running the following commands:
15450         git ls-files | grep '\.m4$' | xargs perl -pi \
15451           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
15452           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15453           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15454           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
15455         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
15456         The remainder were to add Copyright dates, increment serial numbers,
15457         undo some changes in comments, exclude m4/intl.m4, and add quotes
15458         around the "1" in ",1" where the unusual spacing prohibited the
15459         above regexps from doing the job.  For more details, see
15460         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
15461         * m4/acl.m4: Modified.
15462         * m4/afs.m4: Likewise.
15463         * m4/alloca.m4: Likewise.
15464         * m4/argp.m4: Likewise.
15465         * m4/argz.m4: Likewise.
15466         * m4/atexit.m4: Likewise.
15467         * m4/bison-i18n.m4: Likewise.
15468         * m4/bison.m4: Likewise.
15469         * m4/byteswap.m4: Likewise.
15470         * m4/c-stack.m4: Likewise.
15471         * m4/c-strtod.m4: Likewise.
15472         * m4/calloc.m4: Likewise.
15473         * m4/canonicalize-lgpl.m4: Likewise.
15474         * m4/chown.m4: Likewise.
15475         * m4/clock_time.m4: Likewise.
15476         * m4/codeset.m4: Likewise.
15477         * m4/copy-file.m4: Likewise.
15478         * m4/csharp.m4: Likewise.
15479         * m4/csharpcomp.m4: Likewise.
15480         * m4/csharpexec.m4: Likewise.
15481         * m4/d-ino.m4: Likewise.
15482         * m4/d-type.m4: Likewise.
15483         * m4/dirfd.m4: Likewise.
15484         * m4/double-slash-root.m4: Likewise.
15485         * m4/eaccess.m4: Likewise.
15486         * m4/eealloc.m4: Likewise.
15487         * m4/environ.m4: Likewise.
15488         * m4/errno_h.m4: Likewise.
15489         * m4/euidaccess.m4: Likewise.
15490         * m4/execute.m4: Likewise.
15491         * m4/fatal-signal.m4: Likewise.
15492         * m4/fchdir.m4: Likewise.
15493         * m4/fcntl_h.m4: Likewise.
15494         * m4/fileblocks.m4: Likewise.
15495         * m4/filenamecat.m4: Likewise.
15496         * m4/findprog.m4: Likewise.
15497         * m4/flexmember.m4: Likewise.
15498         * m4/fnmatch.m4: Likewise.
15499         * m4/fopen.m4: Likewise.
15500         * m4/fpending.m4: Likewise.
15501         * m4/fprintf-posix.m4: Likewise.
15502         * m4/free.m4: Likewise.
15503         * m4/frexp.m4: Likewise.
15504         * m4/frexpl.m4: Likewise.
15505         * m4/fsusage.m4: Likewise.
15506         * m4/ftruncate.m4: Likewise.
15507         * m4/gc-camellia.m4: Likewise.
15508         * m4/gc-random.m4: Likewise.
15509         * m4/gc.m4: Likewise.
15510         * m4/getaddrinfo.m4: Likewise.
15511         * m4/getcwd-abort-bug.m4: Likewise.
15512         * m4/getcwd-path-max.m4: Likewise.
15513         * m4/getdate.m4: Likewise.
15514         * m4/getdomainname.m4: Likewise.
15515         * m4/getgroups.m4: Likewise.
15516         * m4/gethostname.m4: Likewise.
15517         * m4/gethrxtime.m4: Likewise.
15518         * m4/getline.m4: Likewise.
15519         * m4/getloadavg.m4: Likewise.
15520         * m4/getndelim2.m4: Likewise.
15521         * m4/getpass.m4: Likewise.
15522         * m4/gettext.m4: Likewise.
15523         * m4/gettime.m4: Likewise.
15524         * m4/gettimeofday.m4: Likewise.
15525         * m4/gnulib-common.m4: Likewise.
15526         * m4/group-member.m4: Likewise.
15527         * m4/host-os.m4: Likewise.
15528         * m4/iconv.m4: Likewise.
15529         * m4/iconv_open.m4: Likewise.
15530         * m4/inet_ntop.m4: Likewise.
15531         * m4/inet_pton.m4: Likewise.
15532         * m4/inline.m4: Likewise.
15533         * m4/intldir.m4: Likewise.
15534         * m4/intlmacosx.m4: Likewise.
15535         * m4/intmax.m4: Likewise.
15536         * m4/intmax_t.m4: Likewise.
15537         * m4/inttypes.m4: Likewise.
15538         * m4/inttypes_h.m4: Likewise.
15539         * m4/inttypes-pri.m4: Likewise.
15540         * m4/isapipe.m4: Likewise.
15541         * m4/isnand.m4: Likewise.
15542         * m4/isnanf.m4: Likewise.
15543         * m4/isnanl.m4: Likewise.
15544         * m4/javacomp.m4: Likewise.
15545         * m4/javaexec.m4: Likewise.
15546         * m4/jm-winsz1.m4: Likewise.
15547         * m4/jm-winsz2.m4: Likewise.
15548         * m4/lchown.m4: Likewise.
15549         * m4/lcmessage.m4: Likewise.
15550         * m4/ldexpl.m4: Likewise.
15551         * m4/lib-ld.m4: Likewise.
15552         * m4/lib-link.m4: Likewise.
15553         * m4/libsigsegv.m4: Likewise.
15554         * m4/link-follow.m4: Likewise.
15555         * m4/localcharset.m4: Likewise.
15556         * m4/locale-fr.m4: Likewise.
15557         * m4/locale-ja.m4: Likewise.
15558         * m4/locale-tr.m4: Likewise.
15559         * m4/locale-zh.m4: Likewise.
15560         * m4/lock.m4: Likewise.
15561         * m4/longlong.m4: Likewise.
15562         * m4/ls-mntd-fs.m4: Likewise.
15563         * m4/lstat.m4: Likewise.
15564         * m4/malloc.m4: Likewise.
15565         * m4/mathl.m4: Likewise.
15566         * m4/mbrtowc.m4: Likewise.
15567         * m4/mbstate_t.m4: Likewise.
15568         * m4/mbswidth.m4: Likewise.
15569         * m4/memchr.m4: Likewise.
15570         * m4/memcmp.m4: Likewise.
15571         * m4/memcpy.m4: Likewise.
15572         * m4/memmem.m4: Likewise.
15573         * m4/memmove.m4: Likewise.
15574         * m4/mempcpy.m4: Likewise.
15575         * m4/memrchr.m4: Likewise.
15576         * m4/memset.m4: Likewise.
15577         * m4/minmax.m4: Likewise.
15578         * m4/mkdir-slash.m4: Likewise.
15579         * m4/mkdtemp.m4: Likewise.
15580         * m4/mktime.m4: Likewise.
15581         * m4/mmap-anon.m4: Likewise.
15582         * m4/mountlist.m4: Likewise.
15583         * m4/nanosleep.m4: Likewise.
15584         * m4/nls.m4: Likewise.
15585         * m4/nocrash.m4: Likewise.
15586         * m4/open.m4: Likewise.
15587         * m4/openat.m4: Likewise.
15588         * m4/openmp.m4: Likewise.
15589         * m4/pathmax.m4: Likewise.
15590         * m4/perl.m4: Likewise.
15591         * m4/physmem.m4: Likewise.
15592         * m4/pipe.m4: Likewise.
15593         * m4/po.m4: Likewise.
15594         * m4/poll.m4: Likewise.
15595         * m4/posixtm.m4: Likewise.
15596         * m4/posixver.m4: Likewise.
15597         * m4/printf-frexp.m4: Likewise.
15598         * m4/printf-frexpl.m4: Likewise.
15599         * m4/printf-posix.m4: Likewise.
15600         * m4/printf-posix-rpl.m4: Likewise.
15601         * m4/printf.m4: Likewise.
15602         * m4/progtest.m4: Likewise.
15603         * m4/putenv.m4: Likewise.
15604         * m4/readline.m4: Likewise.
15605         * m4/readlink.m4: Likewise.
15606         * m4/readutmp.m4: Likewise.
15607         * m4/realloc.m4: Likewise.
15608         * m4/regex.m4: Likewise.
15609         * m4/relocatable.m4: Likewise.
15610         * m4/relocatable-lib.m4: Likewise.
15611         * m4/rename-dest-slash.m4: Likewise.
15612         * m4/rename.m4: Likewise.
15613         * m4/rmdir-errno.m4: Likewise.
15614         * m4/rmdir.m4: Likewise.
15615         * m4/roundf.m4: Likewise.
15616         * m4/roundl.m4: Likewise.
15617         * m4/rpmatch.m4: Likewise.
15618         * m4/save-cwd.m4: Likewise.
15619         * m4/selinux-selinux-h.m4: Likewise.
15620         * m4/setenv.m4: Likewise.
15621         * m4/settime.m4: Likewise.
15622         * m4/sig2str.m4: Likewise.
15623         * m4/sig_atomic_t.m4: Likewise.
15624         * m4/signalblocking.m4: Likewise.
15625         * m4/signbit.m4: Likewise.
15626         * m4/sigpipe.m4: Likewise.
15627         * m4/sockets.m4: Likewise.
15628         * m4/sockpfaf.m4: Likewise.
15629         * m4/st_dm_mode.m4: Likewise.
15630         * m4/stat-time.m4: Likewise.
15631         * m4/stdbool.m4: Likewise.
15632         * m4/stdint.m4: Likewise.
15633         * m4/stdint_h.m4: Likewise.
15634         * m4/stpcpy.m4: Likewise.
15635         * m4/stpncpy.m4: Likewise.
15636         * m4/strcase.m4: Likewise.
15637         * m4/strchrnul.m4: Likewise.
15638         * m4/strcspn.m4: Likewise.
15639         * m4/strdup.m4: Likewise.
15640         * m4/strftime.m4: Likewise.
15641         * m4/strndup.m4: Likewise.
15642         * m4/strnlen.m4: Likewise.
15643         * m4/strpbrk.m4: Likewise.
15644         * m4/strptime.m4: Likewise.
15645         * m4/strsep.m4: Likewise.
15646         * m4/strtod.m4: Likewise.
15647         * m4/strtoimax.m4: Likewise.
15648         * m4/strtok_r.m4: Likewise.
15649         * m4/strtol.m4: Likewise.
15650         * m4/strtoll.m4: Likewise.
15651         * m4/strtoul.m4: Likewise.
15652         * m4/strtoull.m4: Likewise.
15653         * m4/strtoumax.m4: Likewise.
15654         * m4/strverscmp.m4: Likewise.
15655         * m4/threadlib.m4: Likewise.
15656         * m4/timegm.m4: Likewise.
15657         * m4/tm_gmtoff.m4: Likewise.
15658         * m4/tmpdir.m4: Likewise.
15659         * m4/tmpfile.m4: Likewise.
15660         * m4/tzset.m4: Likewise.
15661         * m4/uintmax_t.m4: Likewise.
15662         * m4/unlinkdir.m4: Likewise.
15663         * m4/unlocked-io.m4: Likewise.
15664         * m4/uptime.m4: Likewise.
15665         * m4/userspec.m4: Likewise.
15666         * m4/utimbuf.m4: Likewise.
15667         * m4/utime.m4: Likewise.
15668         * m4/utimes-null.m4: Likewise.
15669         * m4/utimes.m4: Likewise.
15670         * m4/vararrays.m4: Likewise.
15671         * m4/vasnprintf.m4: Likewise.
15672         * m4/vfprintf-posix.m4: Likewise.
15673         * m4/vprintf-posix.m4: Likewise.
15674         * m4/wait-process.m4: Likewise.
15675         * m4/wchar_t.m4: Likewise.
15676         * m4/wint_t.m4: Likewise.
15677         * m4/write-any-file.m4: Likewise.
15678         * m4/yield.m4: Likewise.
15679
15680 2009-01-13  Bruno Haible  <bruno@clisp.org>
15681
15682         Avoid test-copy-file.sh failures when ACL support insufficient.
15683         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
15684         TESTS_ENVIRONMENT.
15685         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
15686         Reported by Jim Meyering.
15687
15688 2009-01-13  Bruno Haible  <bruno@clisp.org>
15689
15690         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
15691         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
15692         * modules/unistdio/u8-printf-parse (Files): Likewise.
15693         * modules/unistdio/u32-printf-parse (Files): Likewise.
15694         * modules/unistdio/ulc-printf-parse (Files): Likewise.
15695
15696 2009-01-13  Simon Josefsson  <simon@josefsson.org>
15697
15698         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
15699         and m4/inttypes_h.m4 too.
15700
15701 2009-01-12  Eric Blake  <ebb9@byu.net>
15702
15703         tests: IRIX 6.2 cc can't compile -0.0 into .data
15704         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
15705         rather than at compile-time.
15706         * tests/test-floorl.c (minus_zero): Likewise.
15707         * tests/test-frexpl.c (minus_zero): Likewise.
15708         * tests/test-isnan.c (minus_zerol): Likewise.
15709         * tests/test-isnanl.h (minus_zero): Likewise.
15710         * tests/test-ldexpl.c (minus_zero): Likewise.
15711         * tests/test-roundl.c (minus_zero): Likewise.
15712         * tests/test-signbit.c (minus_zerol): Likewise.
15713         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
15714         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
15715         * tests/test-truncl.c (minus_zero): Likewise.
15716         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
15717         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
15718         Reported by Tom G. Christensen and Nelson H. F. Beebe.
15719
15720 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15721
15722         regex: fix glibc bug 9697
15723         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
15724         handling.
15725
15726 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15727
15728         regex: fix glibc bug 697
15729         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
15730         being NULL also if there are no backreferences.
15731
15732 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15733
15734         regex: merge glibc changes
15735         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
15736         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
15737         re_string_skip_chars, re_string_reconstruct): Likewise.
15738         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
15739
15740 2009-01-07  Jim Meyering  <meyering@redhat.com>
15741
15742         poll: filter through cppi
15743         * lib/poll.c: Indent cpp directives to reflect nesting.
15744
15745 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
15746
15747         poll: don't return uninitialized
15748         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
15749
15750 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
15751
15752         avoid compile failure on AIX 6.1
15753         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
15754         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
15755
15756 2009-01-04  Jim Meyering  <meyering@redhat.com>
15757
15758         remove duplicate inclusion of <stdio.h>
15759         * tests/test-fprintf-posix.c: Likewise.
15760         * tests/test-printf-posix.c: Likewise.
15761         * tests/test-snprintf-posix.c: Likewise.
15762         * tests/test-sprintf-posix.c: Likewise.
15763         * tests/test-vasprintf-posix.c: Likewise.
15764         * tests/test-vfprintf-posix.c: Likewise.
15765         * tests/test-vprintf-posix.c: Likewise.
15766         * tests/test-vsnprintf-posix.c: Likewise.
15767         * tests/test-vsprintf-posix.c: Likewise.
15768
15769 2009-01-03  Jim Meyering  <meyering@redhat.com>
15770
15771         gnulib-tool: fix sed-based filtering
15772         * gnulib-tool (func_filter_filelist): Remove extra backslash
15773         in sed_fff_filter definition.
15774
15775 2009-01-02  Jim Meyering  <meyering@redhat.com>
15776
15777         strftime: avoid compilation failure on Solaris 2.6
15778         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
15779         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
15780         Don't #define mbrlen or mbsinit, since now they're guaranteed to
15781         be available.  Reported by Tom G. Christensen.  Details in
15782         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
15783
15784 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15785             Bruno Haible  <bruno@clisp.org>
15786
15787         Speed up gnulib-tool by doing more string processing through shell
15788         built-ins.
15789         * gnulib-tool (fast_func_append): New variable.
15790         (func_remove_prefix, func_remove_suffix): New functions.
15791         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
15792         (func_filter_filelist): New function.
15793         (func_get_dependencies): Use func_remove_suffix instead of sed.
15794         (func_get_automake_snippet): Use func_filter_filelist instead of a
15795         subshell and sed invocation.
15796
15797 2009-01-01  Bruno Haible  <bruno@clisp.org>
15798
15799         Fix a security bug.
15800         * gnulib-tool (func_import, import, update): Don't allow the characters
15801         '"', '$', '`', '\' in macro arguments that become part of commands that
15802         are evaluated.
15803
15804 2009-01-01  Bruno Haible  <bruno@clisp.org>
15805
15806         * gnulib-tool (func_reset_sigpipe): Add more comments.
15807
15808 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15809
15810         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
15811         func_emit_tests_Makefile_am, func_import): Abort loops early if we
15812         already know the answer.
15813
15814 2009-01-01  Jim Meyering  <meyering@redhat.com>
15815
15816         * lib/version-etc.c (version_etc_va): Update copyright year.
15817
15818 2008-12-30  Bruno Haible  <bruno@clisp.org>
15819
15820         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
15821         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
15822         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
15823
15824 2008-12-29  Eric Blake  <ebb9@byu.net>
15825
15826         multiarch: avoid autoconf AC_REQUIRE bug
15827         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
15828         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
15829         2.63 and older.
15830         Reported by Bruno Haible, and analyzed in
15831         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
15832
15833 2008-12-29  Bruno Haible  <bruno@clisp.org>
15834
15835         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
15836         files in subdirectories correctly.
15837         Reported by Ralf Wildenhues.
15838
15839 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15840
15841         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
15842         rather than 'join FILE -', for Solaris join.
15843
15844 2008-12-29  Bruno Haible  <bruno@clisp.org>
15845
15846         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
15847         quoting.
15848         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15849         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15850         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15851         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
15852         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15853         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15854         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15855         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15856         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15857         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15858         * m4/nls.m4 (AM_NLS): Likewise.
15859         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
15860         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15861         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15862         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15863         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15864         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15865         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
15866         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15867         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15868         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15869         * m4/xsize.m4 (gl_XSIZE): Likewise.
15870         Suggested by Jim Meyering.
15871
15872 2008-11-17  Bruce Korb  <bkorb@gnu.org>
15873
15874         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
15875         * lib/parse-duration.c: use a switch instead of cascading if's.
15876
15877 2008-12-29  Eric Blake  <ebb9@byu.net>
15878
15879         wchar.h: supply WEOF on Irix 5.3
15880         * lib/wchar.in.h (wint_t): Also supply WEOF.
15881         * lib/wctype.in.h (wint_t): Likewise.
15882         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
15883         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
15884         Reported by Tom G. Christensen.
15885
15886 2008-12-26  Bruno Haible  <bruno@clisp.org>
15887
15888         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
15889         i486, i586, i686.
15890
15891 2008-12-26  Bruno Haible  <bruno@clisp.org>
15892
15893         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
15894
15895 2008-12-26  Bruno Haible  <bruno@clisp.org>
15896
15897         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
15898         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
15899         not __STDC_CONSTANT_MACROS.
15900         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
15901
15902 2008-12-25  Bruno Haible  <bruno@clisp.org>
15903
15904         Add support for universal builds to vasnprintf.
15905         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
15906         universal builds, guess no.
15907         * modules/vasnprintf-posix (Depends-on): Add multiarch.
15908         * modules/vasprintf-posix (Depends-on): Likewise.
15909         * modules/fprintf-posix (Depends-on): Likewise.
15910         * modules/vfprintf-posix (Depends-on): Likewise.
15911         * modules/snprintf-posix (Depends-on): Likewise.
15912         * modules/vsnprintf-posix (Depends-on): Likewise.
15913         * modules/sprintf-posix (Depends-on): Likewise.
15914         * modules/vsprintf-posix (Depends-on): Likewise.
15915         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15916         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15917         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15918         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15919         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15920         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15921         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15922
15923         Add support for universal builds to <inttypes.h>.
15924         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
15925         _SCNu64_PREFIX): In Apple
15926         universal builds, define directly, using _LP64.
15927         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
15928         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
15929         * modules/inttypes (Depends-on): Add multiarch.
15930         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
15931
15932         Add support for universal builds to <stdint.h>.
15933         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
15934         universal builds, define directly, using _LP64.
15935         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
15936         Apple universal builds, don't test for the size and suffix of ptrdiff_t
15937         and size_t.
15938         * modules/stdint (Depends-on): Add multiarch.
15939         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
15940
15941         New module 'multiarch'.
15942         * modules/multiarch: New file.
15943         * m4/multiarch.m4: New file.
15944
15945 2008-12-25  Bruno Haible  <bruno@clisp.org>
15946
15947         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
15948
15949 2008-12-25  Bruno Haible  <bruno@clisp.org>
15950
15951         * modules/btowc (License): Relicense under LGPLv2+.
15952         * modules/mbsinit (License): Likewise.
15953         * modules/mbrtowc (License): Likewise.
15954         * modules/wcrtomb (License): Likewise.
15955         * modules/streq (License): Likewise.
15956         Reported by David Lutterkort <lutter@redhat.com>.
15957
15958 2008-12-23  Bruno Haible  <bruno@clisp.org>
15959
15960         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
15961
15962 2008-12-23  Bruno Haible  <bruno@clisp.org>
15963
15964         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
15965         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
15966         GETADDRINFO_LIB, not in LIBS.
15967         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
15968         * modules/canon-host (Link): Likewise.
15969         * NEWS: Mention the change.
15970         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
15971         GETADDRINFO_LIB.
15972
15973 2008-12-22  Bruno Haible  <bruno@clisp.org>
15974
15975         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
15976         * doc/posix-functions/iswalpha_l.texi: Likewise.
15977         * doc/posix-functions/iswblank_l.texi: Likewise.
15978         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15979         * doc/posix-functions/iswctype_l.texi: Likewise.
15980         * doc/posix-functions/iswdigit_l.texi: Likewise.
15981         * doc/posix-functions/iswgraph_l.texi: Likewise.
15982         * doc/posix-functions/iswlower_l.texi: Likewise.
15983         * doc/posix-functions/iswprint_l.texi: Likewise.
15984         * doc/posix-functions/iswpunct_l.texi: Likewise.
15985         * doc/posix-functions/iswspace_l.texi: Likewise.
15986         * doc/posix-functions/iswupper_l.texi: Likewise.
15987         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15988         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
15989         * doc/posix-functions/open_wmemstream.texi: Likewise.
15990         * doc/posix-functions/swscanf.texi: Likewise.
15991         * doc/posix-functions/towctrans_l.texi: Likewise.
15992         * doc/posix-functions/towlower.texi: Likewise.
15993         * doc/posix-functions/towlower_l.texi: Likewise.
15994         * doc/posix-functions/towupper.texi: Likewise.
15995         * doc/posix-functions/towupper_l.texi: Likewise.
15996         * doc/posix-functions/vfwprintf.texi: Likewise.
15997         * doc/posix-functions/vfwscanf.texi: Likewise.
15998         * doc/posix-functions/vswscanf.texi: Likewise.
15999         * doc/posix-functions/vwprintf.texi: Likewise.
16000         * doc/posix-functions/vwscanf.texi: Likewise.
16001         * doc/posix-functions/wcpcpy.texi: Likewise.
16002         * doc/posix-functions/wcpncpy.texi: Likewise.
16003         * doc/posix-functions/wcscasecmp.texi: Likewise.
16004         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16005         * doc/posix-functions/wcscoll_l.texi: Likewise.
16006         * doc/posix-functions/wcsdup.texi: Likewise.
16007         * doc/posix-functions/wcsncasecmp.texi: Likewise.
16008         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16009         * doc/posix-functions/wcsnlen.texi: Likewise.
16010         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16011         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16012         * doc/posix-functions/wctrans_l.texi: Likewise.
16013         * doc/posix-functions/wctype_l.texi: Likewise.
16014         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16015         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16016         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16017         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16018         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16019         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16020         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16021         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16022         * doc/glibc-functions/wcschrnul.texi: Likewise.
16023         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16024         * doc/glibc-functions/wcstod_l.texi: Likewise.
16025         * doc/glibc-functions/wcstof_l.texi: Likewise.
16026         * doc/glibc-functions/wcstol_l.texi: Likewise.
16027         * doc/glibc-functions/wcstold_l.texi: Likewise.
16028         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16029         * doc/glibc-functions/wcstoq.texi: Likewise.
16030         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16031         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16032         * doc/glibc-functions/wcstouq.texi: Likewise.
16033         * doc/glibc-functions/wmempcpy.texi: Likewise.
16034
16035 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
16036             Eric Blake  <ebb9@byu.net>
16037             Paolo Bonzini  <bonzini@gnu.org>
16038             Bruno Haible  <bruno@clisp.org>
16039
16040         Make c-stack work on Haiku.
16041         * lib/c-stack.c (SA_ONSTACK): Define fallback.
16042         (c_stack_action): Use SA_ONSTACK flag.
16043
16044 2008-12-22  Bruno Haible  <bruno@clisp.org>
16045
16046         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16047
16048 2008-12-22  Bruno Haible  <bruno@clisp.org>
16049
16050         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16051         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16052         being overridden.
16053         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16054         New macros.
16055         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16056         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16057         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16058         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16059
16060 2008-12-22  Bruno Haible  <bruno@clisp.org>
16061
16062         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16063         from test code.
16064
16065 2008-12-22  Eric Blake  <ebb9@byu.net>
16066
16067         Avoid gcc warnings on cygwin.
16068         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16069         Avoid unused variable.
16070         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16071         Likewise.
16072
16073 2008-12-22  Bruno Haible  <bruno@clisp.org>
16074
16075         Remove HAVE_MBRTOWC conditionals.
16076         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16077         (mbscasecmp): Assume mbrtowc function.
16078         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16079         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16080         * lib/mbschr.c: Include mbuiter.h unconditionally.
16081         (mbschr): Assume mbrtowc function.
16082         * lib/mbscspn.c: Include mbuiter.h unconditionally.
16083         (mbscspn): Assume mbrtowc function.
16084         * lib/mbslen.c: Include mbuiter.h unconditionally.
16085         (mbslen): Assume mbrtowc function.
16086         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16087         (mbsncasecmp): Assume mbrtowc function.
16088         * lib/mbsnlen.c: Include mbiter.h unconditionally.
16089         (mbsnlen): Assume mbrtowc function.
16090         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16091         (mbspbrk): Assume mbrtowc function.
16092         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16093         (mbspcasecmp): Assume mbrtowc function.
16094         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16095         (mbsrchr): Assume mbrtowc function.
16096         * lib/mbssep.c: Include mbuiter.h unconditionally.
16097         (mbssep): Assume mbrtowc function.
16098         * lib/mbsspn.c: Include mbuiter.h unconditionally.
16099         (mbsspn): Assume mbrtowc function.
16100         * lib/mbsstr.c: Include mbuiter.h unconditionally.
16101         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16102         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16103         (mbstok_r): Assume mbrtowc function.
16104         * lib/propername.c: Include mbuiter.h unconditionally.
16105         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16106         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16107         (trim2): Assume mbrtowc function.
16108         * lib/mbswidth.c (mbsinit): Remove fallback definition.
16109         (mbsnwidth): Assume mbrtowc function.
16110         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16111         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16112         fallback definitions.
16113         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16114
16115 2008-12-22  Bruno Haible  <bruno@clisp.org>
16116
16117         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16118
16119 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
16120
16121         * modules/regex: Request emulations for the mb*/wc* functions we need.
16122         * m4/regex.m4: Don't look for those functions here.
16123         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16124
16125 2008-12-22  Bruno Haible  <bruno@clisp.org>
16126
16127         * modules/fnmatch (Depends-on): Remove duplicated dependency.
16128
16129 2008-12-21  Bruno Haible  <bruno@clisp.org>
16130
16131         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16132         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16133         (Include): Remove conditionalization.
16134         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16135         (Include): Remove conditionalization.
16136         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16137         (Include): Remove conditionalization.
16138         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16139         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16140         * NEWS: Mention the change.
16141         Reported by Alan Hourihane <alanh@fairlite.co.uk>
16142         via Sergey Poznyakoff <gray@gnu.org.ua>.
16143
16144 2008-12-21  Bruno Haible  <bruno@clisp.org>
16145
16146         * MODULES.html.sh (Extended multibyte and wide character utilities
16147         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16148         wcrtomb, wcsrtombs.
16149         (Support for systems lacking POSIX:2008): Add accept, bind, close,
16150         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16151         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16152         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16153
16154 2008-12-21  Bruno Haible  <bruno@clisp.org>
16155
16156         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16157
16158 2008-12-21  Bruno Haible  <bruno@clisp.org>
16159
16160         * modules/wcsnrtombs-tests: New file.
16161         * tests/test-wcsnrtombs1.sh: New file.
16162         * tests/test-wcsnrtombs2.sh: New file.
16163         * tests/test-wcsnrtombs3.sh: New file.
16164         * tests/test-wcsnrtombs4.sh: New file.
16165         * tests/test-wcsnrtombs.c: New file.
16166
16167         New module 'wcsnrtombs'.
16168         * lib/wchar.in.h (wcsnrtombs): New declaration.
16169         * lib/wcsnrtombs.c: New file.
16170         * lib/wcsrtombs-state.c: New file.
16171         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16172         (internal_state): Remove variable.
16173         * m4/wcsnrtombs.m4: New file.
16174         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16175         compilation units.
16176         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16177         HAVE_WCSNRTOMBS.
16178         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16179         HAVE_WCSNRTOMBS.
16180         * modules/wcsnrtombs: New file.
16181         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16182         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16183
16184 2008-12-21  Bruno Haible  <bruno@clisp.org>
16185
16186         * modules/wcsrtombs-tests: New file.
16187         * tests/test-wcsrtombs1.sh: New file.
16188         * tests/test-wcsrtombs2.sh: New file.
16189         * tests/test-wcsrtombs3.sh: New file.
16190         * tests/test-wcsrtombs4.sh: New file.
16191         * tests/test-wcsrtombs.c: New file.
16192
16193         New module 'wcsrtombs'.
16194         * lib/wchar.in.h (wcsrtombs): New declaration.
16195         * lib/wcsrtombs.c: New file.
16196         * m4/wcsrtombs.m4: New file.
16197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16198         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16199         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16200         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16201         * modules/wcsrtombs: New file.
16202         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16203         bugs.
16204
16205 2008-12-21  Bruno Haible  <bruno@clisp.org>
16206
16207         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16208         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16209         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16210         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16211         if not correct.
16212         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16213         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16214         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16215         m4/locale-zh.m4, m4/codeset.m4.
16216         * doc/posix-functions/wcrtomb.texi: Document the bug.
16217
16218 2008-12-21  Bruno Haible  <bruno@clisp.org>
16219
16220         Work around a btowc() bug on IRIX 6.5.
16221         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16222         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16223         REPLACE_WTOBC if not.
16224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16225         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16226         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16227
16228 2008-12-21  Bruno Haible  <bruno@clisp.org>
16229
16230         * modules/wcrtomb-tests: New file.
16231         * tests/test-wcrtomb.sh: New file.
16232         * tests/test-wcrtomb.c: New file.
16233
16234         New module 'wcrtomb'.
16235         * lib/wchar.in.h (wcrtomb): New declaration.
16236         * lib/wcrtomb.c: New file.
16237         * m4/wcrtomb.m4: New file.
16238         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16239         HAVE_WCRTOMB.
16240         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16241         HAVE_WCRTOMB.
16242         * modules/wcrtomb: New file.
16243         * doc/posix-functions/wcrtomb.texi: Mention the new module.
16244
16245 2008-12-21  Bruno Haible  <bruno@clisp.org>
16246
16247         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16248         * modules/mbsrtowcs (Files): Likewise.
16249         * modules/wctob (Files): Likewise.
16250         * modules/c-strcase-tests (Files): Likewise.
16251         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16252         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16253         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16254         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16255         * modules/vasnprintf-posix-tests (Files): Likewise.
16256
16257 2008-12-21  William Pursell  <bill.pursell@gmail.com>
16258
16259         gitlog-to-changelog: pass all command-line arguments to git-log
16260         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16261         it is sometimes convenient to filter the commits in various ways.
16262         gitlog-to-changelog only allows --since to specify a start date,
16263         but git-log itself supports many other filtering mechanisms.
16264         At the moment, I want to filter by branch name.  Rather than
16265         adding a --branch option to gitlog-to-changelog, it seems more
16266         flexible to simply pass all options directly to git-log and let
16267         git do the work.  Notice that this effectively makes --since a
16268         redundant option for gitlog-to-changelog, but removing it would
16269         require current usage to change since calls would then require
16270         an additional '--'.
16271
16272 2008-12-21  Bruno Haible  <bruno@clisp.org>
16273
16274         * modules/mbsnrtowcs-tests: New file.
16275         * tests/test-mbsnrtowcs1.sh: New file.
16276         * tests/test-mbsnrtowcs2.sh: New file.
16277         * tests/test-mbsnrtowcs3.sh: New file.
16278         * tests/test-mbsnrtowcs4.sh: New file.
16279         * tests/test-mbsnrtowcs.c: New file.
16280
16281         New module 'mbsnrtowcs'.
16282         * lib/wchar.in.h (mbsnrtowcs): New declaration.
16283         * lib/mbsnrtowcs.c: New file.
16284         * lib/mbsrtowcs-state.c: New file.
16285         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16286         (internal_state): Remove variable.
16287         * m4/mbsnrtowcs.m4: New file.
16288         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
16289         compilation units.
16290         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
16291         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16292         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
16293         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16294         * modules/mbsnrtowcs: New file.
16295         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
16296         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
16297         portability problem.
16298
16299 2008-12-21  Bruno Haible  <bruno@clisp.org>
16300
16301         Work around mbsrtowcs bug.
16302         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
16303         (gl_FUNC_MBSRTOWCS): Invoke it.
16304         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16305         m4/locale-zh.m4.
16306         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
16307
16308 2008-12-21  Bruno Haible  <bruno@clisp.org>
16309
16310         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
16311
16312 2008-12-21  Bruno Haible  <bruno@clisp.org>
16313
16314         Update doc for AIX.
16315         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
16316         16-bit wchar_t type.
16317         * doc/posix-functions/btowc.texi: Likewise.
16318         * doc/posix-functions/fgetwc.texi: Likewise.
16319         * doc/posix-functions/fgetws.texi: Likewise.
16320         * doc/posix-functions/fputwc.texi: Likewise.
16321         * doc/posix-functions/fputws.texi: Likewise.
16322         * doc/posix-functions/fwide.texi: Likewise.
16323         * doc/posix-functions/fwprintf.texi: Likewise.
16324         * doc/posix-functions/fwscanf.texi: Likewise.
16325         * doc/posix-functions/getwchar.texi: Likewise.
16326         * doc/posix-functions/getwc.texi: Likewise.
16327         * doc/posix-functions/iswalnum.texi: Likewise.
16328         * doc/posix-functions/iswalpha.texi: Likewise.
16329         * doc/posix-functions/iswblank.texi: Likewise.
16330         * doc/posix-functions/iswcntrl.texi: Likewise.
16331         * doc/posix-functions/iswctype.texi: Likewise.
16332         * doc/posix-functions/iswdigit.texi: Likewise.
16333         * doc/posix-functions/iswgraph.texi: Likewise.
16334         * doc/posix-functions/iswlower.texi: Likewise.
16335         * doc/posix-functions/iswprint.texi: Likewise.
16336         * doc/posix-functions/iswpunct.texi: Likewise.
16337         * doc/posix-functions/iswspace.texi: Likewise.
16338         * doc/posix-functions/iswupper.texi: Likewise.
16339         * doc/posix-functions/iswxdigit.texi: Likewise.
16340         * doc/posix-functions/mbrtowc.texi: Likewise.
16341         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16342         * doc/posix-functions/mbstowcs.texi: Likewise.
16343         * doc/posix-functions/mbtowc.texi: Likewise.
16344         * doc/posix-functions/putwchar.texi: Likewise.
16345         * doc/posix-functions/putwc.texi: Likewise.
16346         * doc/posix-functions/swprintf.texi: Likewise.
16347         * doc/posix-functions/tolower.texi: Likewise.
16348         * doc/posix-functions/toupper.texi: Likewise.
16349         * doc/posix-functions/towctrans.texi: Likewise.
16350         * doc/posix-functions/ungetwc.texi: Likewise.
16351         * doc/posix-functions/vswprintf.texi: Likewise.
16352         * doc/posix-functions/wcrtomb.texi: Likewise.
16353         * doc/posix-functions/wcscat.texi: Likewise.
16354         * doc/posix-functions/wcschr.texi: Likewise.
16355         * doc/posix-functions/wcscmp.texi: Likewise.
16356         * doc/posix-functions/wcscoll.texi: Likewise.
16357         * doc/posix-functions/wcscpy.texi: Likewise.
16358         * doc/posix-functions/wcscspn.texi: Likewise.
16359         * doc/posix-functions/wcsftime.texi: Likewise.
16360         * doc/posix-functions/wcslen.texi: Likewise.
16361         * doc/posix-functions/wcsncat.texi: Likewise.
16362         * doc/posix-functions/wcsncmp.texi: Likewise.
16363         * doc/posix-functions/wcsncpy.texi: Likewise.
16364         * doc/posix-functions/wcspbrk.texi: Likewise.
16365         * doc/posix-functions/wcsrchr.texi: Likewise.
16366         * doc/posix-functions/wcsrtombs.texi: Likewise.
16367         * doc/posix-functions/wcsspn.texi: Likewise.
16368         * doc/posix-functions/wcsstr.texi: Likewise.
16369         * doc/posix-functions/wcstod.texi: Likewise.
16370         * doc/posix-functions/wcstof.texi: Likewise.
16371         * doc/posix-functions/wcstoimax.texi: Likewise.
16372         * doc/posix-functions/wcstok.texi: Likewise.
16373         * doc/posix-functions/wcstold.texi: Likewise.
16374         * doc/posix-functions/wcstoll.texi: Likewise.
16375         * doc/posix-functions/wcstol.texi: Likewise.
16376         * doc/posix-functions/wcstombs.texi: Likewise.
16377         * doc/posix-functions/wcstoull.texi: Likewise.
16378         * doc/posix-functions/wcstoul.texi: Likewise.
16379         * doc/posix-functions/wcstoumax.texi: Likewise.
16380         * doc/posix-functions/wcswidth.texi: Likewise.
16381         * doc/posix-functions/wcsxfrm.texi: Likewise.
16382         * doc/posix-functions/wctob.texi: Likewise.
16383         * doc/posix-functions/wctomb.texi: Likewise.
16384         * doc/posix-functions/wctrans.texi: Likewise.
16385         * doc/posix-functions/wctype.texi: Likewise.
16386         * doc/posix-functions/wcwidth.texi: Likewise.
16387         * doc/posix-functions/wmemchr.texi: Likewise.
16388         * doc/posix-functions/wmemcmp.texi: Likewise.
16389         * doc/posix-functions/wmemcpy.texi: Likewise.
16390         * doc/posix-functions/wmemmove.texi: Likewise.
16391         * doc/posix-functions/wmemset.texi: Likewise.
16392         * doc/posix-functions/wprintf.texi: Likewise.
16393         * doc/posix-functions/wscanf.texi: Likewise.
16394
16395 2008-12-21  Bruno Haible  <bruno@clisp.org>
16396
16397         Update doc for HP-UX 11.11.
16398         * doc/posix-functions/btowc.texi: Clarify that the function is missing
16399         in HP-UX version 11.00, not in all versions of HP-UX 11.
16400         * doc/posix-functions/fwide.texi: Likewise.
16401         * doc/posix-functions/fwprintf.texi: Likewise.
16402         * doc/posix-functions/fwscanf.texi: Likewise.
16403         * doc/posix-functions/inet_ntop.texi: Likewise.
16404         * doc/posix-functions/inet_pton.texi: Likewise.
16405         * doc/posix-functions/mbrlen.texi: Likewise.
16406         * doc/posix-functions/mbrtowc.texi: Likewise.
16407         * doc/posix-functions/mbsinit.texi: Likewise.
16408         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16409         * doc/posix-functions/swprintf.texi: Likewise.
16410         * doc/posix-functions/swscanf.texi: Likewise.
16411         * doc/posix-functions/towctrans.texi: Likewise.
16412         * doc/posix-functions/vfwprintf.texi: Likewise.
16413         * doc/posix-functions/vswprintf.texi: Likewise.
16414         * doc/posix-functions/vwprintf.texi: Likewise.
16415         * doc/posix-functions/wcrtomb.texi: Likewise.
16416         * doc/posix-functions/wcsrtombs.texi: Likewise.
16417         * doc/posix-functions/wcsstr.texi: Likewise.
16418         * doc/posix-functions/wctob.texi: Likewise.
16419         * doc/posix-functions/wctrans.texi: Likewise.
16420         * doc/posix-functions/wmemchr.texi: Likewise.
16421         * doc/posix-functions/wmemcmp.texi: Likewise.
16422         * doc/posix-functions/wmemcpy.texi: Likewise.
16423         * doc/posix-functions/wmemmove.texi: Likewise.
16424         * doc/posix-functions/wmemset.texi: Likewise.
16425         * doc/posix-functions/wprintf.texi: Likewise.
16426         * doc/posix-functions/wscanf.texi: Likewise.
16427
16428 2008-12-21  Bruno Haible  <bruno@clisp.org>
16429
16430         Work around a portability problem.
16431         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
16432         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
16433
16434 2008-12-20  Bruno Haible  <bruno@clisp.org>
16435
16436         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
16437         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
16438         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
16439         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
16440         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
16441
16442         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
16443         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
16444         set.
16445         (GNULIB_defined_mbstate_t): New macro.
16446         (mbsinit): Redefine if REPLACE_MBSINIT is set.
16447         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
16448         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
16449         reuses the system's mbrtowc function but works around the bugs.
16450         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
16451         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
16452         macros.
16453         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
16454         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
16455         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
16456         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
16457         REPLACE_MBSINIT if mbsinit needs to be overridden.
16458         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
16459         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16460         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
16461         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16462         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16463         m4/locale-zh.m4.
16464         (Depends): Add mbsinit.
16465         * modules/mbsinit (Depends): Add mbrtowc.
16466         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
16467
16468 2008-12-20  Bruno Haible  <bruno@clisp.org>
16469
16470         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
16471         so that there are no conversion errors on AIX.
16472         * tests/test-mbsrtowcs.c (main): LIkewise.
16473
16474 2008-12-20  Bruno Haible  <bruno@clisp.org>
16475
16476         Work around wctob bug on Solaris <= 9.
16477         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
16478         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
16479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
16480         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
16481         * modules/wctob (Files): Add m4/locale-fr.m4.
16482         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
16483
16484 2008-12-20  Bruno Haible  <bruno@clisp.org>
16485
16486         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
16487         /dev/null.
16488         * tests/test-select-in.sh: Likewise.
16489         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16490
16491 2008-12-20  Bruno Haible  <bruno@clisp.org>
16492
16493         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
16494         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
16495         Cygwin 1.5.x.
16496
16497 2008-12-20  Bruno Haible  <bruno@clisp.org>
16498
16499         Ensure mbstate_t is defined on HP-UX 11.11.
16500         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
16501         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
16502         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
16503         AC_USE_SYSTEM_EXTENSIONS.
16504         * modules/fnmatch (Depends-on): Add extensions.
16505         * modules/mbrlen (Depends-on): Likewise.
16506         * modules/mbrtowc (Depends-on): Likewise.
16507         * modules/mbsinit (Depends-on): Likewise.
16508         * modules/mbsrtowcs (Depends-on): Likewise.
16509         * modules/mbswidth (Depends-on): Likewise.
16510         * modules/quotearg (Depends-on): Likewise.
16511         * modules/strftime (Depends-on): Likewise.
16512
16513 2008-12-20  Bruno Haible  <bruno@clisp.org>
16514
16515         Ensure wctob is declared on IRIX 6.5.
16516         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
16517         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
16518         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
16519         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
16520         of HAVE_WCTOB.
16521         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
16522         HAVE_WCTOB.
16523         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
16524
16525 2008-12-19  Bruno Haible  <bruno@clisp.org>
16526
16527         * modules/mbsrtowcs-tests: New file.
16528         * tests/test-mbsrtowcs1.sh: New file.
16529         * tests/test-mbsrtowcs2.sh: New file.
16530         * tests/test-mbsrtowcs3.sh: New file.
16531         * tests/test-mbsrtowcs4.sh: New file.
16532         * tests/test-mbsrtowcs.c: New file.
16533
16534         New module 'mbsrtowcs'.
16535         * lib/wchar.in.h (mbsrtowcs): New declaration.
16536         * lib/mbsrtowcs.c: New file.
16537         * m4/mbsrtowcs.m4: New file.
16538         * modules/mbsrtowcs: New file.
16539         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
16540         HAVE_MBSRTOWCS.
16541         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
16542         HAVE_MBSRTOWCS.
16543         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
16544
16545 2008-12-19  Bruno Haible  <bruno@clisp.org>
16546
16547         New module 'mbrlen'.
16548         * lib/wchar.in.h (mbrlen): New declaration.
16549         * lib/mbrlen.c: New file.
16550         * m4/mbrlen.m4: New file.
16551         * modules/mbrlen: New file.
16552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
16553         HAVE_MBRLEN.
16554         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
16555         HAVE_MBRLEN.
16556         * doc/posix-functions/mbrlen.texi: Document the new module.
16557
16558 2008-12-19  Bruno Haible  <bruno@clisp.org>
16559
16560         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
16561         * modules/mbrtowc (Depends-on): Add verify.
16562         Suggested by Paul Eggert.
16563
16564 2008-12-18  Bruno Haible  <bruno@clisp.org>
16565
16566         * modules/mbsinit-tests: New file.
16567         * tests/test-mbsinit.sh: New file.
16568         * tests/test-mbsinit.c: New file.
16569
16570 2008-12-18  Bruno Haible  <bruno@clisp.org>
16571
16572         * modules/mbrtowc-tests: New file.
16573         * tests/test-mbrtowc1.sh: New file.
16574         * tests/test-mbrtowc2.sh: New file.
16575         * tests/test-mbrtowc3.sh: New file.
16576         * tests/test-mbrtowc4.sh: New file.
16577         * tests/test-mbrtowc.c: New file.
16578
16579         New module 'mbrtowc'.
16580         * lib/wchar.in.h (mbstate_t): Override when the system does not have
16581         mbsinit and mbrtowc.
16582         (mbrtowc): New declaration.
16583         * lib/mbrtowc.c: New file.
16584         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
16585         * modules/mbrtowc: New file.
16586         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
16587         HAVE_MBRTOWC.
16588         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
16589         HAVE_MBRTOWC.
16590         * doc/posix-functions/mbrtowc.texi: Document the new module.
16591
16592 2008-12-18  Bruno Haible  <bruno@clisp.org>
16593
16594         New module 'wctob'.
16595         * lib/wchar.in.h (wctob): New declaration.
16596         * lib/wctob.c: New file.
16597         * m4/wctob.m4: New file.
16598         * modules/wctob: New file.
16599         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
16600         HAVE_WCTOB.
16601         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
16602         * doc/posix-functions/wctob.texi: Document the new module.
16603
16604 2008-12-18  Bruno Haible  <bruno@clisp.org>
16605
16606         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
16607         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
16608
16609 2008-12-18  Simon Josefsson  <simon@josefsson.org>
16610
16611         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
16612         G. Christensen" <tgc@jupiterrise.com>.
16613
16614         * lib/flock.c: Need to include errno.h.  Reported by "Tom
16615         G. Christensen" <tgc@jupiterrise.com>.
16616
16617         * lib/flock.c: Need to include string.h.  Reported by "Tom
16618         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
16619         <ebb9@byu.net>.
16620
16621 2008-12-18  Bruno Haible  <bruno@clisp.org>
16622
16623         * m4/locale-ja.m4: New file, from GNU gettext.
16624
16625 2008-12-17  Bruno Haible  <bruno@clisp.org>
16626
16627         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
16628         Suggested by Eric Blake.
16629
16630 2008-12-17  Bruno Haible  <bruno@clisp.org>
16631
16632         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
16633
16634 2008-12-17  Bruno Haible  <bruno@clisp.org>
16635
16636         * lib/mbsinit.c: Include verify.h. Verify an assumption.
16637         * modules/mbsinit (Depends-on): Add verify.
16638         Suggested by Paul Eggert.
16639
16640 2008-12-17  Bruno Haible  <bruno@clisp.org>
16641
16642         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
16643         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
16644         gl_FUNC_MBRTOWC.
16645         * m4/mbiter.m4 (gl_MBITER): LIkewise.
16646         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
16647         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
16648         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
16649         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
16650         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
16651         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
16652         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
16653         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
16654         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
16655         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
16656         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
16657         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
16658         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
16659         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
16660         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16661         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
16662         * modules/trim (configure.ac): Likewise.
16663
16664 2008-12-17  Bruno Haible  <bruno@clisp.org>
16665
16666         * modules/btowc-tests: New file.
16667         * tests/test-btowc1.sh: New file.
16668         * tests/test-btowc2.sh: New file.
16669         * tests/test-btowc.c: New file.
16670
16671         New module 'btowc'.
16672         * lib/wchar.in.h (btowc): New declaration.
16673         * lib/btowc.c: New file.
16674         * m4/btowc.m4: New file.
16675         * modules/btowc: New file.
16676         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
16677         HAVE_BTOWC.
16678         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
16679         * doc/posix-functions/btowc.texi: Document the new module.
16680
16681 2008-12-17  Bruno Haible  <bruno@clisp.org>
16682
16683         New module 'mbsinit'.
16684         * lib/wchar.in.h (mbsinit): New declaration.
16685         * lib/mbsinit.c: New file.
16686         * m4/mbsinit.m4: New file.
16687         * modules/mbsinit: New file.
16688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
16689         HAVE_MBSINIT.
16690         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
16691         HAVE_MBSINIT.
16692         * doc/posix-functions/mbsinit.texi: Document the new module.
16693
16694 2008-12-16  Bruno Haible  <bruno@clisp.org>
16695
16696         * lib/unistd.in.h: Add comment.
16697         * tests/test-environ.c: Don't include <stdlib.h>.
16698
16699 2008-12-16  Bruno Haible  <bruno@clisp.org>
16700
16701         * lib/parse-duration.h (parse_duration): Document return value
16702         convention.
16703         * lib/parse-duration.c: Include specification header first. Add
16704         comments.
16705         (_): Remove macro.
16706         (parse_year_month_day, parse_hour_minute_second): Move side effects
16707         outside of strchr call.
16708         (parse_non_iso8601): Move side effects outside of isspace call.
16709         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
16710         call.
16711
16712 2008-12-16  Bruno Haible  <bruno@clisp.org>
16713
16714         * tests/test-parse-duration.sh: Produce no output when the test
16715         succeeds.
16716
16717 2008-12-16  Bruno Haible  <bruno@clisp.org>
16718
16719         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
16720         expressions.
16721
16722 2008-12-15  Bruno Haible  <bruno@clisp.org>
16723
16724         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
16725         * doc/glibc-functions/flistxattr.texi: Likewise.
16726         * doc/glibc-functions/fopencookie.texi: Likewise.
16727         * doc/glibc-functions/fremovexattr.texi: Likewise.
16728         * doc/glibc-functions/fsetxattr.texi: Likewise.
16729         * doc/glibc-functions/getxattr.texi: Likewise.
16730         * doc/glibc-functions/lgetxattr.texi: Likewise.
16731         * doc/glibc-functions/listxattr.texi: Likewise.
16732         * doc/glibc-functions/llistxattr.texi: Likewise.
16733         * doc/glibc-functions/lremovexattr.texi: Likewise.
16734         * doc/glibc-functions/lsetxattr.texi: Likewise.
16735         * doc/glibc-functions/removexattr.texi: Likewise.
16736         * doc/glibc-functions/setxattr.texi: Likewise.
16737         * doc/posix-functions/open_memstream.texi: Likewise.
16738
16739 2008-12-15  Eric Blake  <ebb9@byu.net>
16740
16741         Update doc for cygwin 1.7.
16742         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
16743         functions.
16744         * doc/posix-functions/fchmodat.texi: Likewise.
16745         * doc/posix-functions/fchownat.texi: Likewise.
16746         * doc/posix-functions/fdopendir.texi: Likewise.
16747         * doc/posix-functions/fmemopen.texi: Likewise.
16748         * doc/posix-functions/freeaddrinfo.texi: Likewise.
16749         * doc/posix-functions/fstatat.texi: Likewise.
16750         * doc/posix-functions/futimens.texi: Likewise.
16751         * doc/posix-functions/gai_strerror.texi: Likewise.
16752         * doc/posix-functions/getaddrinfo.texi: Likewise.
16753         * doc/posix-functions/getnameinfo.texi: Likewise.
16754         * doc/posix-functions/if_freenameindex.texi: Likewise.
16755         * doc/posix-functions/if_indextoname.texi: Likewise.
16756         * doc/posix-functions/if_nameindex.texi: Likewise.
16757         * doc/posix-functions/if_nametoindex.texi: Likewise.
16758         * doc/posix-functions/insque.texi: Likewise.
16759         * doc/posix-functions/linkat.texi: Likewise.
16760         * doc/posix-functions/llrint.texi: Likewise.
16761         * doc/posix-functions/llrintf.texi: Likewise.
16762         * doc/posix-functions/llrintl.texi: Likewise.
16763         * doc/posix-functions/lockf.texi: Likewise.
16764         * doc/posix-functions/lrintl.texi: Likewise.
16765         * doc/posix-functions/mkdirat.texi: Likewise.
16766         * doc/posix-functions/mkfifoat.texi: Likewise.
16767         * doc/posix-functions/mknodat.texi: Likewise.
16768         * doc/posix-functions/mq_close.texi: Likewise.
16769         * doc/posix-functions/mq_getattr.texi: Likewise.
16770         * doc/posix-functions/mq_notify.texi: Likewise.
16771         * doc/posix-functions/mq_open.texi: Likewise.
16772         * doc/posix-functions/mq_receive.texi: Likewise.
16773         * doc/posix-functions/mq_send.texi: Likewise.
16774         * doc/posix-functions/mq_setattr.texi: Likewise.
16775         * doc/posix-functions/mq_timedreceive.texi: Likewise.
16776         * doc/posix-functions/mq_timedsend.texi: Likewise.
16777         * doc/posix-functions/mq_unlink.texi: Likewise.
16778         * doc/posix-functions/open_memstream.texi: Likewise.
16779         * doc/posix-functions/openat.texi: Likewise.
16780         * doc/posix-functions/posix_fadvise.texi: Likewise.
16781         * doc/posix-functions/posix_fallocate.texi: Likewise.
16782         * doc/posix-functions/posix_madvise.texi: Likewise.
16783         * doc/posix-functions/posix_memalign.texi: Likewise.
16784         * doc/posix-functions/posix_openpt.texi: Likewise.
16785         * doc/posix-functions/readlinkat.texi: Likewise.
16786         * doc/posix-functions/remque.texi: Likewise.
16787         * doc/posix-functions/renameat.texi: Likewise.
16788         * doc/posix-functions/rintl.texi: Likewise.
16789         * doc/posix-functions/sem_unlink.texi: Likewise.
16790         * doc/posix-functions/shm_open.texi: Likewise.
16791         * doc/posix-functions/shm_unlink.texi: Likewise.
16792         * doc/posix-functions/signgam.texi: Likewise.
16793         * doc/posix-functions/sigset.texi: Likewise.
16794         * doc/posix-functions/stpcpy.texi: Likewise.
16795         * doc/posix-functions/stpncpy.texi: Likewise.
16796         * doc/posix-functions/strerror.texi: Likewise.
16797         * doc/posix-functions/strtod.texi: Likewise.
16798         * doc/posix-functions/symlinkat.texi: Likewise.
16799         * doc/posix-functions/unlinkat.texi: Likewise.
16800         * doc/posix-functions/utimensat.texi: Likewise.
16801         * doc/glibc-functions/bindresvport.texi: Likewise.
16802         * doc/glibc-functions/dn_expand.texi: Likewise.
16803         * doc/glibc-functions/exp10.texi: Likewise.
16804         * doc/glibc-functions/exp10f.texi: Likewise.
16805         * doc/glibc-functions/fgetxattr.texi: Likewise.
16806         * doc/glibc-functions/flistxattr.texi: Likewise.
16807         * doc/glibc-functions/fopencookie.texi: Likewise.
16808         * doc/glibc-functions/freeifaddrs.texi: Likewise.
16809         * doc/glibc-functions/fremovexattr.texi: Likewise.
16810         * doc/glibc-functions/fsetxattr.texi: Likewise.
16811         * doc/glibc-functions/getifaddrs.texi: Likewise.
16812         * doc/glibc-functions/getxattr.texi: Likewise.
16813         * doc/glibc-functions/lgetxattr.texi: Likewise.
16814         * doc/glibc-functions/listxattr.texi: Likewise.
16815         * doc/glibc-functions/llistxattr.texi: Likewise.
16816         * doc/glibc-functions/lremovexattr.texi: Likewise.
16817         * doc/glibc-functions/lsetxattr.texi: Likewise.
16818         * doc/glibc-functions/pow10.texi: Likewise.
16819         * doc/glibc-functions/pow10f.texi: Likewise.
16820         * doc/glibc-functions/rcmd_af.texi: Likewise.
16821         * doc/glibc-functions/removexattr.texi: Likewise.
16822         * doc/glibc-functions/res_init.texi: Likewise.
16823         * doc/glibc-functions/res_mkquery.texi: Likewise.
16824         * doc/glibc-functions/res_query.texi: Likewise.
16825         * doc/glibc-functions/res_querydomain.texi: Likewise.
16826         * doc/glibc-functions/res_send.texi: Likewise.
16827         * doc/glibc-functions/rresvport_af.texi: Likewise.
16828         * doc/glibc-functions/setxattr.texi: Likewise.
16829         * doc/glibc-functions/strcasestr.texi: Likewise.
16830
16831 2008-12-15  Bruno Haible  <bruno@clisp.org>
16832
16833         Fix compilation error on OSF/1 4.0.
16834         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
16835         <sys/time.h>, simply delegate to the system header.
16836         Reported by Daniel Richard G. <oss@teragram.com>.
16837
16838 2008-12-15  Bruno Haible  <bruno@clisp.org>
16839
16840         * doc/posix-functions/openat.texi: Mention the 'openat' module.
16841         * doc/posix-functions/fchmodat.texi: Likewise.
16842         * doc/posix-functions/fchownat.texi: Likewise.
16843         * doc/posix-functions/fdopendir.texi: Likewise.
16844         * doc/posix-functions/fstatat.texi: Likewise.
16845         * doc/posix-functions/mkdirat.texi: Likewise.
16846         * doc/posix-functions/unlinkat.texi: Likewise.
16847
16848 2008-12-14  Bruno Haible  <bruno@clisp.org>
16849
16850         Update doc for POSIX:2008.
16851         * doc/posix-functions/faccessat.texi: New file.
16852         * doc/posix-functions/fchmodat.texi: New file.
16853         * doc/posix-functions/fchownat.texi: New file.
16854         * doc/posix-functions/fdopendir.texi: New file.
16855         * doc/posix-functions/fstatat.texi: New file.
16856         * doc/posix-functions/futimens.texi: New file.
16857         * doc/posix-functions/linkat.texi: New file.
16858         * doc/posix-functions/mkdirat.texi: New file.
16859         * doc/posix-functions/mkfifoat.texi: New file.
16860         * doc/posix-functions/mknodat.texi: New file.
16861         * doc/posix-functions/open_wmemstream.texi: New file.
16862         * doc/posix-functions/openat.texi: New file.
16863         * doc/posix-functions/psiginfo.texi: New file.
16864         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
16865         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
16866         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
16867         * doc/posix-functions/readlinkat.texi: New file.
16868         * doc/posix-functions/renameat.texi: New file.
16869         * doc/posix-functions/strerror_l.texi: New file.
16870         * doc/posix-functions/symlinkat.texi: New file.
16871         * doc/posix-functions/unlinkat.texi: New file.
16872         * doc/posix-functions/utimensat.texi: New file.
16873         * doc/gnulib.texi (Function Substitutes): Add these subsections.
16874
16875 2008-12-14  Bruno Haible  <bruno@clisp.org>
16876
16877         Update doc for POSIX:2008.
16878         * doc/posix-functions/alphasort.texi: Renamed from
16879         doc/glibc-functions/alphasort.texi.
16880         * doc/posix-functions/dirfd.texi: Renamed from
16881         doc/glibc-functions/dirfd.texi.
16882         * doc/posix-functions/dprintf.texi: Renamed from
16883         doc/glibc-functions/dprintf.texi.
16884         * doc/posix-functions/duplocale.texi: Renamed from
16885         doc/glibc-functions/duplocale.texi.
16886         * doc/posix-functions/fexecve.texi: Renamed from
16887         doc/glibc-functions/fexecve.texi.
16888         * doc/posix-functions/fmemopen.texi: Renamed from
16889         doc/glibc-functions/fmemopen.texi.
16890         * doc/posix-functions/freelocale.texi: Renamed from
16891         doc/glibc-functions/freelocale.texi.
16892         * doc/posix-functions/getdate_err.texi: Renamed from
16893         doc/glibc-functions/getdate_err.texi.
16894         * doc/posix-functions/isalnum_l.texi: Renamed from
16895         doc/glibc-functions/isalnum_l.texi.
16896         * doc/posix-functions/isalpha_l.texi: Renamed from
16897         doc/glibc-functions/isalpha_l.texi.
16898         * doc/posix-functions/isblank_l.texi: Renamed from
16899         doc/glibc-functions/isblank_l.texi.
16900         * doc/posix-functions/iscntrl_l.texi: Renamed from
16901         doc/glibc-functions/iscntrl_l.texi.
16902         * doc/posix-functions/isdigit_l.texi: Renamed from
16903         doc/glibc-functions/isdigit_l.texi.
16904         * doc/posix-functions/isgraph_l.texi: Renamed from
16905         doc/glibc-functions/isgraph_l.texi.
16906         * doc/posix-functions/islower_l.texi: Renamed from
16907         doc/glibc-functions/islower_l.texi.
16908         * doc/posix-functions/isprint_l.texi: Renamed from
16909         doc/glibc-functions/isprint_l.texi.
16910         * doc/posix-functions/ispunct_l.texi: Renamed from
16911         doc/glibc-functions/ispunct_l.texi.
16912         * doc/posix-functions/isspace_l.texi: Renamed from
16913         doc/glibc-functions/isspace_l.texi.
16914         * doc/posix-functions/isupper_l.texi: Renamed from
16915         doc/glibc-functions/isupper_l.texi.
16916         * doc/posix-functions/iswalnum_l.texi: Renamed from
16917         doc/glibc-functions/iswalnum_l.texi.
16918         * doc/posix-functions/iswalpha_l.texi: Renamed from
16919         doc/glibc-functions/iswalpha_l.texi.
16920         * doc/posix-functions/iswblank_l.texi: Renamed from
16921         doc/glibc-functions/iswblank_l.texi.
16922         * doc/posix-functions/iswcntrl_l.texi: Renamed from
16923         doc/glibc-functions/iswcntrl_l.texi.
16924         * doc/posix-functions/iswctype_l.texi: Renamed from
16925         doc/glibc-functions/iswctype_l.texi.
16926         * doc/posix-functions/iswdigit_l.texi: Renamed from
16927         doc/glibc-functions/iswdigit_l.texi.
16928         * doc/posix-functions/iswgraph_l.texi: Renamed from
16929         doc/glibc-functions/iswgraph_l.texi.
16930         * doc/posix-functions/iswlower_l.texi: Renamed from
16931         doc/glibc-functions/iswlower_l.texi.
16932         * doc/posix-functions/iswprint_l.texi: Renamed from
16933         doc/glibc-functions/iswprint_l.texi.
16934         * doc/posix-functions/iswpunct_l.texi: Renamed from
16935         doc/glibc-functions/iswpunct_l.texi.
16936         * doc/posix-functions/iswspace_l.texi: Renamed from
16937         doc/glibc-functions/iswspace_l.texi.
16938         * doc/posix-functions/iswupper_l.texi: Renamed from
16939         doc/glibc-functions/iswupper_l.texi.
16940         * doc/posix-functions/iswxdigit_l.texi: Renamed from
16941         doc/glibc-functions/iswxdigit_l.texi.
16942         * doc/posix-functions/isxdigit_l.texi: Renamed from
16943         doc/glibc-functions/isxdigit_l.texi.
16944         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
16945         doc/glibc-functions/mbsnrtowcs.texi.
16946         * doc/posix-functions/mkdtemp.texi: Renamed from
16947         doc/glibc-functions/mkdtemp.texi.
16948         * doc/posix-functions/newlocale.texi: Renamed from
16949         doc/glibc-functions/newlocale.texi.
16950         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
16951         doc/glibc-functions/nl_langinfo_l.texi.
16952         * doc/posix-functions/open_memstream.texi: Renamed from
16953         doc/glibc-functions/open_memstream.texi.
16954         * doc/posix-functions/opterr.texi: Renamed from
16955         doc/glibc-functions/opterr.texi.
16956         * doc/posix-functions/optind.texi: Renamed from
16957         doc/glibc-functions/optind.texi.
16958         * doc/posix-functions/optopt.texi: Renamed from
16959         doc/glibc-functions/optopt.texi.
16960         * doc/posix-functions/psignal.texi: Renamed from
16961         doc/glibc-functions/psignal.texi.
16962         * doc/posix-functions/scandir.texi: Renamed from
16963         doc/glibc-functions/scandir.texi.
16964         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
16965         doc/glibc-functions/sched_get_priority_min.texi.
16966         * doc/posix-functions/signgam.texi: Renamed from
16967         doc/glibc-functions/signgam.texi.
16968         * doc/posix-functions/stpcpy.texi: Renamed from
16969         doc/glibc-functions/stpcpy.texi.
16970         * doc/posix-functions/stpncpy.texi: Renamed from
16971         doc/glibc-functions/stpncpy.texi.
16972         * doc/posix-functions/strcasecmp_l.texi: Renamed from
16973         doc/glibc-functions/strcasecmp_l.texi.
16974         * doc/posix-functions/strcoll_l.texi: Renamed from
16975         doc/glibc-functions/strcoll_l.texi.
16976         * doc/posix-functions/strfmon_l.texi: Renamed from
16977         doc/glibc-functions/strfmon_l.texi.
16978         * doc/posix-functions/strftime_l.texi: Renamed from
16979         doc/glibc-functions/strftime_l.texi.
16980         * doc/posix-functions/strncasecmp_l.texi: Renamed from
16981         doc/glibc-functions/strncasecmp_l.texi.
16982         * doc/posix-functions/strndup.texi: Renamed from
16983         doc/glibc-functions/strndup.texi.
16984         * doc/posix-functions/strnlen.texi: Renamed from
16985         doc/glibc-functions/strnlen.texi.
16986         * doc/posix-functions/strsignal.texi: Renamed from
16987         doc/glibc-functions/strsignal.texi.
16988         * doc/posix-functions/strxfrm_l.texi: Renamed from
16989         doc/glibc-functions/strxfrm_l.texi.
16990         * doc/posix-functions/timer_gettime.texi: Renamed from
16991         doc/glibc-functions/timer_gettime.texi.
16992         * doc/posix-functions/tolower_l.texi: Renamed from
16993         doc/glibc-functions/tolower_l.texi.
16994         * doc/posix-functions/toupper_l.texi: Renamed from
16995         doc/glibc-functions/toupper_l.texi.
16996         * doc/posix-functions/towctrans_l.texi: Renamed from
16997         doc/glibc-functions/towctrans_l.texi.
16998         * doc/posix-functions/towlower_l.texi: Renamed from
16999         doc/glibc-functions/towlower_l.texi.
17000         * doc/posix-functions/towupper_l.texi: Renamed from
17001         doc/glibc-functions/towupper_l.texi.
17002         * doc/posix-functions/uselocale.texi: Renamed from
17003         doc/glibc-functions/uselocale.texi.
17004         * doc/posix-functions/vdprintf.texi: Renamed from
17005         doc/glibc-functions/vdprintf.texi.
17006         * doc/posix-functions/wcpcpy.texi:
17007         Renamed from doc/glibc-functions/wcpcpy.texi.
17008         * doc/posix-functions/wcpncpy.texi: Renamed from
17009         doc/glibc-functions/wcpncpy.texi.
17010         * doc/posix-functions/wcscasecmp.texi: Renamed from
17011         doc/glibc-functions/wcscasecmp.texi.
17012         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17013         doc/glibc-functions/wcscasecmp_l.texi.
17014         * doc/posix-functions/wcscoll_l.texi: Renamed from
17015         doc/glibc-functions/wcscoll_l.texi.
17016         * doc/posix-functions/wcsdup.texi: Renamed from
17017         doc/glibc-functions/wcsdup.texi.
17018         * doc/posix-functions/wcsncasecmp.texi: Renamed from
17019         doc/glibc-functions/wcsncasecmp.texi.
17020         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17021         doc/glibc-functions/wcsncasecmp_l.texi.
17022         * doc/posix-functions/wcsnlen.texi: Renamed from
17023         doc/glibc-functions/wcsnlen.texi.
17024         * doc/posix-functions/wcsnrtombs.texi: Renamed from
17025         doc/glibc-functions/wcsnrtombs.texi.
17026         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17027         doc/glibc-functions/wcsxfrm_l.texi.
17028         * doc/posix-functions/wctrans_l.texi: Renamed from
17029         doc/glibc-functions/wctrans_l.texi.
17030         * doc/posix-functions/wctype_l.texi: Renamed from
17031         doc/glibc-functions/wctype_l.texi.
17032         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17033         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17034         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17035         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17036         these subsections.
17037         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17038         Remove sections.
17039
17040 2008-12-14  Bruno Haible  <bruno@clisp.org>
17041
17042         Update doc for POSIX:2008.
17043         * doc/posix-functions/*.texi: Update URL of POSIX specification.
17044
17045 2008-12-14  Bruno Haible  <bruno@clisp.org>
17046
17047         Update doc for POSIX:2008.
17048         * doc/pastposix-functions/bcmp.texi: Renamed from
17049         doc/posix-functions/bcmp.texi.
17050         * doc/pastposix-functions/bcopy.texi: Renamed from
17051         doc/posix-functions/bcopy.texi.
17052         * doc/pastposix-functions/bsd_signal.texi: Renamed from
17053         doc/posix-functions/bsd_signal.texi.
17054         * doc/pastposix-functions/bzero.texi: Renamed from
17055         doc/posix-functions/bzero.texi.
17056         * doc/pastposix-functions/ecvt.texi: Renamed from
17057         doc/posix-functions/ecvt.texi.
17058         * doc/pastposix-functions/fcvt.texi: Renamed from
17059         doc/posix-functions/fcvt.texi.
17060         * doc/pastposix-functions/ftime.texi: Renamed from
17061         doc/posix-functions/ftime.texi.
17062         * doc/pastposix-functions/gcvt.texi: Renamed from
17063         doc/posix-functions/gcvt.texi.
17064         * doc/pastposix-functions/getcontext.texi: Renamed from
17065         doc/posix-functions/getcontext.texi.
17066         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17067         doc/posix-functions/gethostbyaddr.texi.
17068         * doc/pastposix-functions/gethostbyname.texi: Renamed from
17069         doc/posix-functions/gethostbyname.texi.
17070         * doc/pastposix-functions/getwd.texi: Renamed from
17071         doc/posix-functions/getwd.texi.
17072         * doc/pastposix-functions/h_errno.texi: Renamed from
17073         doc/posix-functions/h_errno.texi.
17074         * doc/pastposix-functions/index.texi: Renamed from
17075         doc/posix-functions/index.texi.
17076         * doc/pastposix-functions/makecontext.texi: Renamed from
17077         doc/posix-functions/makecontext.texi.
17078         * doc/pastposix-functions/mktemp.texi: Renamed from
17079         doc/posix-functions/mktemp.texi.
17080         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17081         doc/posix-functions/pthread_attr_getstackaddr.texi.
17082         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17083         doc/posix-functions/pthread_attr_setstackaddr.texi.
17084         * doc/pastposix-functions/rindex.texi: Renamed from
17085         doc/posix-functions/rindex.texi.
17086         * doc/pastposix-functions/scalb.texi: Renamed from
17087         doc/posix-functions/scalb.texi.
17088         * doc/pastposix-functions/setcontext.texi: Renamed from
17089         doc/posix-functions/setcontext.texi.
17090         * doc/pastposix-functions/swapcontext.texi: Renamed from
17091         doc/posix-functions/swapcontext.texi.
17092         * doc/pastposix-functions/ualarm.texi: Renamed from
17093         doc/posix-functions/ualarm.texi.
17094         * doc/pastposix-functions/usleep.texi: Renamed from
17095         doc/posix-functions/usleep.texi.
17096         * doc/pastposix-functions/vfork.texi: Renamed from
17097         doc/posix-functions/vfork.texi.
17098         * doc/pastposix-functions/wcswcs.texi: Renamed from
17099         doc/posix-functions/wcswcs.texi.
17100         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17101         (Function Substitutes): Update.
17102
17103 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17104
17105         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17106         m4/strerror.m4.
17107
17108 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17109             Bruno Haible  <bruno@clisp.org>
17110
17111         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17112
17113 2008-12-13  Bruno Haible  <bruno@clisp.org>
17114
17115         * modules/strtoull (Depends-on): Remove unistd.
17116
17117 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17118
17119         * modules/strtoull (Depends-on): Add stdlib.
17120
17121 2008-12-11  Simon Josefsson  <simon@josefsson.org>
17122
17123         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17124
17125 2008-12-10  Jim Meyering  <meyering@redhat.com>
17126
17127         gl_ASSERT: don't say assertions are disabled when they're not
17128         * m4/assert.m4 (gl_ASSERT): Do not make configure report
17129         "checking whether to enable assertions... no", when they are in
17130         fact enabled.  This is solely a bug in the output of configure.
17131         In spite of saying "no", NDEBUG was not defined in that case.
17132         Also, as noted by Eric Blake, leave assertions enabled upon
17133         --enable-assert=INVALID.
17134
17135 2008-12-10  Bruno Haible  <bruno@clisp.org>
17136
17137         Change MODULES.html to refer to POSIX:2008 where possible.
17138         * MODULES.html.sh (POSIX2008_URL): New variable.
17139         (posix_headers): Remove sys/timeb, ucontext.
17140         (posix2001_headers): New variable.
17141         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17142         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17143         index, makecontext, mktemp, pthread_attr_getstackaddr,
17144         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17145         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17146         (posix2001_functions): New variable.
17147         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17148         otherwise.
17149
17150 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17151
17152         add missing include to parse-duration.c
17153         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17154         * modules/parse-duration (Depends-on): Add xalloc.
17155
17156         fix sed script reading maint.mk
17157         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17158         (syntax-check-rules): Use it.
17159
17160 2008-12-09  Bruno Haible  <bruno@clisp.org>
17161
17162         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17163         MacOS X 10.4/PowerPC.
17164         Reported by Simon Josefsson.
17165
17166 2008-12-08  Jim Meyering  <meyering@redhat.com>
17167
17168         work around mingw's lack of some S_IF definitions
17169         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17170         Reported by Simon Josefsson.
17171
17172 2008-12-08  Bruno Haible  <bruno@clisp.org>
17173
17174         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17175         applied to variables. Needed on MacOS X 10.4/PowerPC.
17176         Reported by Simon Josefsson.
17177
17178 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
17179         and Eric Blake  <ebb9@byu.net>
17180
17181         assert: honor --enable-assert
17182         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17183         order to honor --enable-assert, rather than treating it as a
17184         synonym for --disable-assert.
17185
17186 2008-12-08  Jim Meyering  <meyering@redhat.com>
17187
17188         * lib/posixtm.c: Remove now-useless declaration of mktime.
17189
17190         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17191
17192 2008-12-07  Bruno Haible  <bruno@clisp.org>
17193
17194         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17195         test_once): Mark functions as static.
17196         * tests/test-tls.c (test_tls): Likewise.
17197
17198 2008-12-07  Bruno Haible  <bruno@clisp.org>
17199
17200         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17201         iconv_register_autodetect.
17202
17203 2008-12-07  Jim Meyering  <meyering@redhat.com>
17204
17205         posixtm.c: avoid a warning
17206         * lib/posixtm.c (posixtime): Don't initialize tm0.
17207         It's no longer needed to placate gcc4's -Wuninitialized,
17208         and the attempt to placate would elicit a new warning.
17209
17210         unicodeio.c: mark unused parameters
17211         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17212         (fallback_failure_callback): Likewise.
17213
17214 2008-12-07  Bruno Haible  <bruno@clisp.org>
17215
17216         * gnulib-tool (func_create_testdir): When building the tests
17217         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17218         Reported by Simon Josefsson.
17219
17220 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17221
17222         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17223
17224 2008-12-06  Bruno Haible  <bruno@clisp.org>
17225
17226         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17227         Suggested by Eric Blake.
17228
17229 2008-12-06  Bruno Haible  <bruno@clisp.org>
17230
17231         Fix a c-stack test failure on MacOS X.
17232         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17233         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17234         handler for SIGBUS as well.
17235         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17236         install a signal handler for SIGBUS as well.
17237         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17238
17239 2008-12-06  Bruno Haible  <bruno@clisp.org>
17240
17241         Advocacy documentation.
17242         * doc/gnulib-intro.texi (Benefits): New section.
17243         * doc/gnulib.texi: Update.
17244
17245 2008-12-06  Bruno Haible  <bruno@clisp.org>
17246
17247         Document the 'manywarnings' module.
17248         * doc/manywarnings.texi: New file.
17249         * doc/gnulib.texi: Include it.
17250
17251 2008-12-05  Eric Blake  <ebb9@byu.net>
17252
17253         tests: silence some gcc warnings
17254         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17255         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17256         type mismatches.
17257
17258 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17259             Bruno Haible  <bruno@clisp.org>
17260
17261         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17262
17263 2008-11-29  Jim Meyering  <meyering@redhat.com>
17264
17265         unicodeio.c: mark unused parameters
17266         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17267         (fallback_failure_callback): Likewise.
17268
17269         fts: fix a thinko
17270         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
17271         (set_stat_type): Return S_IF*-valued "type" directly.
17272         Prompted by James Youngman's spotting a related bug.
17273         Confirmed by further testing through find.
17274
17275         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17276         * lib/fts.c (D_TYPE): Define.
17277         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17278         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17279         (s_ifmt_shift_bits): New function.
17280         (set_stat_type): New function.
17281         (fts_build): When not calling fts_stat, call set_stat_type
17282         to propagate dirent.d_type info to fts_read caller.
17283         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17284         fts_statp->st_mode type information may be valid.
17285
17286 2008-11-28  Simon Josefsson  <simon@josefsson.org>
17287
17288         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
17289         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
17290         <sds@gnu.org>.
17291
17292 2008-11-20  Bruno Haible  <bruno@clisp.org>
17293
17294         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
17295         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
17296         INCLUDE_NEXT.
17297         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
17298         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
17299         * modules/math (Makefile.am): Substitute
17300         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
17301         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17302
17303 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17304             Bruno Haible  <bruno@clisp.org>
17305
17306         * lib/stdint.in.h: Define all type macros so that their expansion is
17307         a single typedef'ed token. Fixes a compilation failure in Boost which
17308         does "using ::int8_t;".
17309
17310 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17311
17312         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
17313         gl_MANYWARN_ALL_GCC.
17314         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
17315         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
17316         * modules/manywarnings: New file.
17317         * MODULES.html.sh: Mention manywarnings module.
17318
17319 2008-11-18  Bruno Haible  <bruno@clisp.org>
17320
17321         * doc/gnulib-tool.texi (Unit tests): New section.
17322
17323 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17324
17325         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
17326         paths like 'lib/po/foo.po'.
17327
17328 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17329
17330         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
17331         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
17332
17333 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17334
17335         * m4/warnings.m4: Use CPPFLAGS to really check whether the
17336         parameter works.
17337
17338 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17339
17340         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
17341
17342 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17343
17344         * modules/parse-duration-tests: New file.
17345         * tests/test-parse-duration.sh: New file.
17346         * tests/test-parse-duration.c: New file.
17347
17348         New module 'parse-duration'.
17349         * lib/parse-duration.h: New file.
17350         * lib/parse-duration.c: New file.
17351         * modules/parse-duration: New file.
17352
17353 2008-11-17  Bruno Haible  <bruno@clisp.org>
17354
17355         * tests/test-select-out.sh: Comment out the first pipe test.
17356         Reported by Simon Josefsson.
17357
17358 2008-11-17  Bruno Haible  <bruno@clisp.org>
17359
17360         * modules/getaddrinfo (Depends-on): Add servent, hostent.
17361         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
17362         gl_HOSTENT.
17363
17364 2008-11-17  Bruno Haible  <bruno@clisp.org>
17365
17366         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
17367         -lnetwork and -lnet. Needed for Haiku and BeOS.
17368
17369 2008-11-16  Bruno Haible  <bruno@clisp.org>
17370
17371         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
17372
17373 2008-11-16  Bruno Haible  <bruno@clisp.org>
17374
17375         Avoid test failure on Haiku.
17376         * tests/test-fsync.c: Include <errno.h>.
17377         (main): Don't require that fsync (0) fails.
17378
17379 2008-11-15  Bruno Haible  <bruno@clisp.org>
17380
17381         New module 'hostent'.
17382         * modules/hostent: New file.
17383         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
17384
17385 2008-11-15  Bruno Haible  <bruno@clisp.org>
17386
17387         New module 'servent'.
17388         * modules/servent: New file.
17389         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
17390
17391 2008-11-15  Bruno Haible  <bruno@clisp.org>
17392
17393         Avoid generating same test program with two different rules.
17394         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
17395         test-frexp to test-frexp-nolibm.
17396         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
17397         test-frexpl to test-frexpl-nolibm.
17398
17399 2008-11-15  Bruno Haible  <bruno@clisp.org>
17400
17401         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
17402         $(FREXPL_LIBM).
17403
17404 2008-11-15  Bruno Haible  <bruno@clisp.org>
17405
17406         * lib/netdb.in.h: Activate the definitions also when the system's
17407         <netdb.h> has 'struct addrinfo'.
17408         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
17409         EAI_OVERFLOW or AI_NUMERICSERV.
17410         * doc/posix-headers/netdb.texi: Document the problem.
17411
17412 2008-11-15  Bruno Haible  <bruno@clisp.org>
17413
17414         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
17415
17416         Make the 'sched' module work on platforms where <sched.h> exists but
17417         is incomplete (such as Haiku).
17418         * lib/sched.in.h; Include the system's <sched.h> if it exists.
17419         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
17420         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
17421         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
17422         HAVE_STRUCT_SCHED_PARAM.
17423         * modules/sched (Depends-on): Add include_next.
17424         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
17425         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
17426         * doc/posix-headers/sched.texi: Document the issue.
17427
17428 2008-11-13  Jim Meyering  <meyering@redhat.com>
17429
17430         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
17431         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
17432         test would fail due to the difference in the Report bugs to ...
17433         line.  The expected address is empty, "<>", while the actual
17434         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
17435
17436 2008-11-12  Bruno Haible  <bruno@clisp.org>
17437
17438         lstat: don't compile lstat.c on systems lacking lstat
17439         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
17440         which don't have lstat; this is handled by lib/sys_stat.in.h already.
17441         Reported by Daniel P. Berrange via Jim Meyering.
17442
17443 2008-11-12  Jim Meyering  <meyering@redhat.com>
17444
17445         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
17446
17447 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17448
17449         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
17450         instead.
17451
17452 2008-11-12  Bruno Haible  <bruno@clisp.org>
17453
17454         * lib/unicodeio.c: Include unistr.h.
17455         (utf8_wctomb): Remove function.
17456         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
17457
17458 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17459
17460         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
17461         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
17462         <bruno@clisp.org>.
17463         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
17464
17465 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17466
17467         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
17468         * doc/gnulib.texi: Add section for warnings.
17469
17470 2008-11-11  Bruno Haible  <bruno@clisp.org>
17471
17472         * lib/sockets.h: Add a comment.
17473
17474 2008-11-11  Karl Berry  <karl@gnu.org>
17475
17476         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
17477
17478 2008-11-11  Eric Blake  <ebb9@byu.net>
17479
17480         fdl.texi: avoid git symlinks
17481         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
17482
17483 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17484
17485         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
17486
17487 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17488
17489         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
17490         (gl_WARN_ADD): Substitute $2 if literal.
17491
17492 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17493
17494         * m4/warning.m4: Remove.
17495
17496 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17497
17498         * m4/warnings.m4: Almost complete rewrite. :-)
17499
17500 2008-11-10  Simon Josefsson  <simon@josefsson.org>
17501
17502         * modules/warnings: New module.
17503         * m4/warnings.m4: New file.
17504         * MODULES.html.sh: Mention warnings module.
17505         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
17506         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17507
17508 2008-11-10  Eric Blake  <ebb9@byu.net>
17509
17510         fdl.texi: make a symlink to the latest version
17511         * doc/standards.texi: Revert today's earlier change.
17512         * doc/fdl-1.2.texi: Rename from old fdl.texi...
17513         * doc/fdl.texi: ...and replace this with a symlink to the newer
17514         fdl-1.3.texi.
17515
17516 2008-11-10  Bruno Haible  <bruno@clisp.org>
17517
17518         * tests/test-select-fd.c (main): Accept the result file name as fourth
17519         argument.
17520         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
17521         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
17522
17523 2008-11-10  Bruno Haible  <bruno@clisp.org>
17524
17525         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
17526         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
17527         as autoconf-substituted macros.
17528         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
17529         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
17530         gl_NETDB_H_DEFAULTS. Set these variables.
17531         * modules/netdb (Makefile.am): Substitute these variables.
17532
17533 2008-11-10  Eric Blake  <ebb9@byu.net>
17534
17535         standards.texi: include correct file for FDL 1.3
17536         * doc/standards.texi (GNU Free Documentation License): Change
17537         include file to pull in FDL 1.3, not 1.2.
17538
17539         fdl.texi: revert accidental change to license
17540         * doc/fdl.texi: This is FDL 1.2, not 1.3.
17541
17542 2008-11-10  Bruno Haible  <bruno@clisp.org>
17543
17544         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
17545         cross-compiling guesses also when the native compile gives no result.
17546
17547 2008-11-10  Bruno Haible  <bruno@clisp.org>
17548
17549         * lib/spawni.c (__spawni): Force variable into the stack.
17550
17551 2008-11-10  Bruno Haible  <bruno@clisp.org>
17552
17553         Add support for Haiku.
17554         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
17555         glibc and BeOS, but also on Haiku.
17556         * lib/fpurge.c (fpurge): Likewise.
17557         * lib/freadable.c (freadable): Likewise.
17558         * lib/freadahead.c (freadahead): Likewise.
17559         * lib/freading.c (freading): Likewise.
17560         * lib/freadptr.c (freadptr): Likewise.
17561         * lib/freadseek.c (freadptrinc): Likewise.
17562         * lib/fseeko.c (rpl_fseeko): Likewise.
17563         * lib/fseterr.c (fseterr): Likewise.
17564         * lib/fwritable.c (fwritable): Likewise.
17565         * lib/fwriting.c (fwriting): Likewise.
17566         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
17567
17568 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17569
17570         * lib/config.charset: Treat Haiku like BeOS.
17571
17572 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17573
17574         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
17575         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
17576
17577 2008-11-08  Bruno Haible  <bruno@clisp.org>
17578
17579         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
17580         AC_CACHE_CHECK.
17581
17582 2008-11-08  Bruno Haible  <bruno@clisp.org>
17583
17584         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
17585
17586 2008-11-08  Bruno Haible  <bruno@clisp.org>
17587
17588         * tests/test-select-fd.c: New file.
17589         * tests/test-select-in.sh: New file.
17590         * tests/test-select-out.sh: New file.
17591         * tests/test-select-stdin.c: New file.
17592         * modules/select-tests (Files): Add the new files.
17593         (Depends-on): Add gettimeofday.
17594         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
17595         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
17596         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
17597
17598 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
17599             Bruno Haible  <bruno@clisp.org>
17600
17601         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
17602
17603 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
17604
17605         * build-aux/pmccabe2html: Added support for C++ source files.
17606
17607 2008-11-05  Ben Pfaff  <blp@gnu.org>
17608
17609         Fix lib/close.c build on Windows.
17610         * modules/close (Files): Add lib/w32sock.h.
17611
17612 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
17613
17614         Accept Bison's NEWS format.
17615         * build-aux/announce-gen (print_news_deltas): Tweak
17616         $re_prefix.
17617
17618 2008-11-04  Bruno Haible  <bruno@clisp.org>
17619
17620         * modules/random_r (Maintainer): Add glibc.
17621
17622 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17623
17624         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
17625         by karl@freefriends.org (Karl Berry).
17626         * doc/alloca.texi: Likewise.
17627         * doc/c-ctype.texi: Likewise.
17628         * doc/c-strcase.texi: Likewise.
17629         * doc/c-strcaseeq.texi: Likewise.
17630         * doc/c-strcasestr.texi: Likewise.
17631         * doc/c-strstr.texi: Likewise.
17632         * doc/c-strtod.texi: Likewise.
17633         * doc/c-strtold.texi: Likewise.
17634         * doc/ctime.texi: Likewise.
17635         * doc/error.texi: Likewise.
17636         * doc/fdl.texi: Likewise.
17637         * doc/gcd.texi: Likewise.
17638         * doc/getdate.texi: Likewise.
17639         * doc/gnulib-intro.texi: Likewise.
17640         * doc/gnulib-tool.texi: Likewise.
17641         * doc/gnulib.texi: Likewise.
17642         * doc/inet_ntoa.texi: Likewise.
17643         * doc/maintain.texi: Likewise.
17644         * doc/make-stds.texi: Likewise.
17645         * doc/quote.texi: Likewise.
17646         * doc/regexprops-generic.texi: Likewise.
17647         * doc/standards.texi: Likewise.
17648         * doc/verify.texi: Likewise.
17649         * doc/visibility.texi: Likewise.
17650         * doc/gnulib.texi (GNU Free Documentation License): Include
17651         fdl-1.3.texi instead of fdl.texi.
17652
17653 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17654
17655         * doc/fdl-1.3.texi: New file, from
17656         <http://www.gnu.org/licenses/fdl-1.3.texi>.
17657         * modules/fdl-1.3: Add.
17658         * MODULES.html.sh: Add fdl-1.3.
17659
17660 2008-11-03  Bruno Haible  <bruno@clisp.org>
17661
17662         Make determination of absolute name of header file work with AIX xlc.
17663         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
17664         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
17665         preprocessing.
17666         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17667         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
17668
17669 2008-11-03  Simon Josefsson  <simon@josefsson.org>
17670
17671         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
17672         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
17673         <ludo@gnu.org>.
17674
17675 2008-11-02  Bruno Haible  <bruno@clisp.org>
17676
17677         Mark 'strpbrk' obsolete.
17678         * modules/strpbrk (Status, Notice): New sections.
17679         * modules/strtok_r (Depends-on): Add strpbrk.
17680
17681 2008-11-02  Bruno Haible  <bruno@clisp.org>
17682
17683         Mark 'strdup' obsolete.
17684         * modules/strdup (Status, Notice): New sections.
17685         * modules/findprog (Depends-on): Add strdup.
17686         * modules/getaddrinfo (Depends-on): Likewise.
17687         * modules/localename (Depends-on): Likewise.
17688         * modules/relocatable-lib (Depends-on): Likewise.
17689         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
17690         * modules/relocatable-prog (Depends-on): Likewise.
17691         * modules/trim (Depends-on): Likewise.
17692         * modules/unictype/gen-ctype (Depends-on): Likewise.
17693         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17694
17695 2008-11-02  Bruno Haible  <bruno@clisp.org>
17696
17697         Mark 'strcspn' obsolete.
17698         * modules/strcspn (Status, Notice): New sections.
17699
17700 2008-11-02  Bruno Haible  <bruno@clisp.org>
17701
17702         Mark 'rmdir' obsolete.
17703         * modules/rmdir (Status, Notice): New sections.
17704         * modules/clean-temp (Depends-on): Add rmdir.
17705         * modules/openat (Depends-on): Likewise.
17706
17707 2008-11-02  Bruno Haible  <bruno@clisp.org>
17708
17709         Mark 'raise' obsolete.
17710         * modules/raise (Status, Notice): New sections.
17711         (Include): Specify <signal.h>.
17712         * modules/stdio (Depends-on): Add raise.
17713         * modules/write (Depends-on): Likewise.
17714
17715 2008-11-02  Bruno Haible  <bruno@clisp.org>
17716
17717         Mark 'memset' obsolete.
17718         * modules/memset (Status, Notice): New sections.
17719
17720 2008-11-02  Bruno Haible  <bruno@clisp.org>
17721
17722         Mark 'memmove' obsolete.
17723         * modules/memmove (Status, Notice): New sections.
17724         * modules/argp (Depends-on): Add memmove.
17725         * modules/argz (Depends-on): Likewise.
17726         * modules/canonicalize (Depends-on): Likewise.
17727         * modules/canonicalize-lgpl (Depends-on): Likewise.
17728         * modules/fts (Depends-on): Likewise.
17729         * modules/getcwd (Depends-on): Likewise.
17730         * modules/human (Depends-on): Likewise.
17731         * modules/regex (Depends-on): Likewise.
17732         * modules/striconveh (Depends-on): Likewise.
17733         * modules/trim (Depends-on): Likewise.
17734         * modules/unistr/u8-move (Depends-on): Likewise.
17735         * modules/unistr/u16-move (Depends-on): Likewise.
17736         * modules/unistr/u32-move (Depends-on): Likewise.
17737
17738 2008-11-02  Bruno Haible  <bruno@clisp.org>
17739
17740         Mark 'memcpy' obsolete.
17741         * modules/memcpy (Status, Notice): New sections.
17742
17743 2008-11-02  Bruno Haible  <bruno@clisp.org>
17744
17745         Mark 'memcmp' obsolete.
17746         * modules/memcmp (Status, Notice): New sections.
17747         * modules/argmatch (Depends-on): Add memchr.
17748         * modules/backupfile (Depends-on): Likewise.
17749         * modules/c-strcasestr (Depends-on): Likewise.
17750         * modules/crypto/des (Depends-on): Likewise.
17751         * modules/csharpcomp (Depends-on): Likewise.
17752         * modules/fnmatch (Depends-on): Likewise.
17753         * modules/git-merge-changelog (Depends-on): Likewise.
17754         * modules/isnand (Depends-on): Likewise.
17755         * modules/isnand-nolibm (Depends-on): Likewise.
17756         * modules/isnanf (Depends-on): Likewise.
17757         * modules/isnanf-nolibm (Depends-on): Likewise.
17758         * modules/isnanl (Depends-on): Likewise.
17759         * modules/isnanl-nolibm (Depends-on): Likewise.
17760         * modules/mbchar (Depends-on): Likewise.
17761         * modules/memcoll (Depends-on): Likewise.
17762         * modules/quotearg (Depends-on): Likewise.
17763         * modules/regex (Depends-on): Likewise.
17764         * modules/relocatable-prog (Depends-on): Likewise.
17765         * modules/same (Depends-on): Likewise.
17766         * modules/signbit (Depends-on): Likewise.
17767         * modules/strcasestr-simple (Depends-on): Likewise.
17768         * modules/unictype/gen-ctype (Depends-on): Likewise.
17769         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17770         * modules/uniname/uniname (Depends-on): Likewise.
17771         * modules/unistr/u8-cmp (Depends-on): Likewise.
17772
17773 2008-11-02  Bruno Haible  <bruno@clisp.org>
17774
17775         Mark 'memchr' obsolete.
17776         * modules/memchr (Status, Notice): New sections.
17777         * modules/argp (Depends-on): Add memchr.
17778         * modules/base64 (Depends-on): Likewise.
17779         * modules/c-strcasestr (Depends-on): Likewise.
17780         * modules/chdir-long (Depends-on): Likewise.
17781         * modules/fnmatch (Depends-on): Likewise.
17782         * modules/getsubopt (Depends-on): Likewise.
17783         * modules/git-merge-changelog (Depends-on): Likewise.
17784         * modules/glob (Depends-on): Likewise.
17785         * modules/strcasestr-simple (Depends-on): Likewise.
17786         * modules/strnlen (Depends-on): Likewise.
17787
17788 2008-11-02  Bruno Haible  <bruno@clisp.org>
17789
17790         Mark 'atexit' obsolete.
17791         * modules/atexit (Status, Notice): New sections.
17792         * modules/chdir-long (Depends-on): Add atexit.
17793         * modules/wait-process (Depends-on): Likewise.
17794
17795 2008-11-02  Bruno Haible  <bruno@clisp.org>
17796
17797         * gnulib-tool: New option --with-obsolete.
17798         (func_usage): Document it.
17799         (func_modules_transitive_closure): Drop obsolete dependencies if
17800         incobsolete is not true.
17801         (func_import): Read and save the incobsolete variable to the cache.
17802
17803 2008-11-02  Bruno Haible  <bruno@clisp.org>
17804
17805         * modules/TEMPLATE-EXTENDED: New field 'Status'.
17806         * gnulib-tool: New option --extract-status.
17807         (func_usage): Document it.
17808         (sed_extract_prog): Recognize it.
17809         (func_get_status): New function.
17810
17811 2008-10-30  Simon Josefsson  <simon@josefsson.org>
17812
17813         * modules/sockets (License): Change from LGPL to LGPLv2+.
17814
17815 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17816
17817         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
17818
17819 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17820
17821         * MODULES.html.sh (Support for systems lacking POSIX:2001):
17822         Mention times and sys_times.
17823         * modules/sys_times, modules/sys_times-tests: New modules.
17824         * modules/times, modules/times-tests: Likewise
17825         * m4/sys_times_h.m4: New file.
17826         * lib/sys_times.in.h: Likewise
17827         * lib/times.c: Likewise.
17828         * tests/test-sys_times.c: Likewise.
17829         * tests/test-times.c: Likewise.
17830         * doc/posix-headers/sys_times.texi: Update.
17831         * doc/posix-functions/times.texi: Update.
17832
17833 2008-10-28  Jim Meyering  <meyering@redhat.com>
17834
17835         * modules/tempname (Depends-on): Add lstat.
17836
17837         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
17838
17839 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17840
17841         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
17842         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
17843         using idiom used elsewhere in gnulib.
17844
17845 2008-10-27  Jim Meyering  <meyering@redhat.com>
17846
17847         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
17848
17849 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17850
17851         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
17852         TESTS_ENVIRONMENT, for shell scripts that needs to call built
17853         programs.
17854         * tests/test-argp-2.sh: Use $EXEEXT when needed.
17855
17856 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17857
17858         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
17859
17860 2008-10-27  Bruno Haible  <bruno@clisp.org>
17861
17862         * tests/test-lstat.c: Include <stdio.h>.
17863
17864 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17865
17866         * modules/lstat-tests: New module.
17867         * tests/test-lstat.c: New file.
17868
17869 2008-10-26  Jim Meyering  <meyering@redhat.com>
17870
17871         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
17872
17873 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17874             Bruno Haible  <bruno@clisp.org>
17875
17876         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
17877         * modules/configmake (Include): Add a note that the include must come
17878         after all system headers.
17879         * lib/javaversion.c: Include configmake.h after all other includes.
17880
17881 2008-10-26  Bruno Haible  <bruno@clisp.org>
17882
17883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
17884         HAVE_STRUCT_RANDOM_DATA to 1.
17885         (gl_STDLIB_H): Simplify.
17886
17887 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17888
17889         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
17890         substitute HAVE_STRUCT_RANDOM_DATA.
17891         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
17892         random_data.
17893         * modules/stdlib (Makefile.am): Substitute
17894         HAVE_STRUCT_RANDOM_DATA.
17895
17896 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17897
17898         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
17899         * doc/gnulib-intro.texi (Copyright): Likewise.
17900
17901 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17902
17903         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
17904         findings.
17905
17906 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
17907             Bruno Haible  <bruno@clisp.org>
17908
17909         * lib/unistd.in.h: Include <winsock2.h>.
17910         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
17911         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
17912         Provide dummy declarations.
17913         (gethostname): Override.
17914         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
17915         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
17916         gl_PREREQ_SYS_H_WINSOCK2.
17917         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
17918         * doc/posix-functions/gethostname.texi: More details.
17919
17920 2008-10-25  Bruno Haible  <bruno@clisp.org>
17921
17922         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17923         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
17924         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
17925
17926         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
17927         here ...
17928         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
17929         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
17930         gl_UNISTD_H_DEFAULTS.
17931
17932 2008-10-25  Eric Blake  <ebb9@byu.net>
17933
17934         signbit: avoid spurious compiler failure
17935         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
17936         declarations inside function.
17937
17938 2008-10-24  Simon Josefsson  <simon@josefsson.org>
17939             Bruno Haible  <bruno@clisp.org>
17940
17941         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
17942         * modules/random_r (Depends-on): Add stdint.
17943
17944 2008-10-24  Bruno Haible  <bruno@clisp.org>
17945
17946         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
17947         Eggert.
17948         * modules/strerror (License): Likewise.
17949
17950 2008-10-24  Jim Meyering  <meyering@redhat.com>
17951
17952         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
17953         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
17954
17955 2008-10-24  Eric Blake  <ebb9@byu.net>
17956
17957         getgroups: fix compilation when getgroups is available
17958         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
17959         but with <config.h> override of getgroups disabled.
17960
17961 2008-10-24  Simon Josefsson  <simon@josefsson.org>
17962
17963         * doc/gnulib.texi (Header files): Add note about C++ problems.
17964         Explained by Bruno Haible <bruno@clisp.org>.
17965
17966 2008-10-23  Bruno Haible  <bruno@clisp.org>
17967
17968         Define a dummy SA_NODEFER macro on Interix.
17969         * lib/signal.in.h (SA_NODEFER): Define fallback.
17970         Reported by Aleksey Cheusov <cheusov@tut.by> via
17971         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
17972
17973 2008-10-23  Bruno Haible  <bruno@clisp.org>
17974
17975         * modules/freadahead (License): Change to LGPLv2+.
17976         Suggested by Simon Josefsson.
17977
17978 2008-10-23  Jim Meyering  <meyering@redhat.com>
17979
17980         random_r: new module
17981         * modules/random_r: New file.
17982         * m4/random_r.m4: New file.
17983         * lib/random_r.c: New file, from glibc.
17984         * modules/random_r-tests: New file.
17985         * tests/test-random_r.c: New file.
17986         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
17987          Declare.
17988         (RAND_MAX): Define.
17989         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
17990         * modules/stdlib: Substitute them, too.
17991         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
17992         * doc/glibc-functions/initstate_r.texi: Mention the new module.
17993         * doc/glibc-functions/random_r.texi: Likewise.
17994         * doc/glibc-functions/setstate_r.texi: Likewise.
17995         * doc/glibc-functions/srandom_r.texi: Likewise.
17996         * config/srclist.txt: Mention it.
17997
17998 2008-10-23  David Lutterkort  <lutter@redhat.com>
17999
18000         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18001         link requirement
18002
18003 2008-10-23  Jim Meyering  <meyering@redhat.com>
18004
18005         selinux-h: mark parameters of stub functions as intentionally unused
18006         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18007         * lib/se-context.in.h: Likewise.
18008
18009 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18010
18011         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18012
18013 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18014
18015         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18016
18017 2008-10-22  Eric Blake  <ebb9@byu.net>
18018
18019         glthread/thread: avoid compiler warning
18020         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18021         Add unreachable abort to silence compiler.
18022
18023 2008-10-22  Eric Blake  <ebb9@byu.net>
18024
18025         netdb: also supply struct addrinfo for cygwin 1.5.x
18026         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18027         older cygwin.
18028         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18029         cygwin.
18030         * doc/posix-headers/netdb.texi (netdb.h): Document this.
18031
18032 2008-10-22  Bruno Haible  <bruno@clisp.org>
18033
18034         * users.txt: Update entry about pspp.
18035
18036 2008-10-21  Bruno Haible  <bruno@clisp.org>
18037
18038         Simplification.
18039         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18040         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18041
18042         Simplification.
18043         * lib/ioctl.c (ioctl): Don't undefine.
18044         * lib/socket.c (socket): Don't undefine.
18045
18046         Remove unused module indicator macros.
18047         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18048         GNULIB_$1 as a C macro.
18049
18050         * doc/posix-functions/close.texi: Undo last change.
18051         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18052         Windows platforms.
18053
18054 2008-10-21  Bruno Haible  <bruno@clisp.org>
18055
18056         Add gethostname() declaration to <unistd.h>.
18057         * lib/unistd.in.h (gethostname): New declaration.
18058         * lib/gethostname.c: Include <unistd.h>.
18059         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18060         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18062         and HAVE_GETHOSTNAME.
18063         * modules/gethostname (Depends-on): Add unistd.
18064         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18065         (Include): Specify <unistd.h>.
18066         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18067         HAVE_GETHOSTNAME.
18068         * tests/test-gethostname.c: Include <unistd.h> first.
18069
18070 2008-10-21  Bruno Haible  <bruno@clisp.org>
18071
18072         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18073         * modules/select-tests (Depends-on): Likewise.
18074         Reported by Simon Josefsson.
18075
18076 2008-10-21  Simon Josefsson  <simon@josefsson.org>
18077
18078         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18079         * lib/accept.c: New file, based on winsock.c.
18080         * lib/bind.c: New file, based on winsock.c.
18081         * lib/connect.c: New file, based on winsock.c.
18082         * lib/getpeername.c: New file, based on winsock.c.
18083         * lib/getsockname.c: New file, based on winsock.c.
18084         * lib/getsockopt.c: New file, based on winsock.c.
18085         * lib/ioctl.c: New file, based on winsock.c.
18086         * lib/listen.c: New file, based on winsock.c.
18087         * lib/recv.c: New file, based on winsock.c.
18088         * lib/recvfrom.c: New file, based on winsock.c.
18089         * lib/send.c: New file, based on winsock.c.
18090         * lib/sendto.c: New file, based on winsock.c.
18091         * lib/setsockopt.c: New file, based on winsock.c.
18092         * lib/shutdown.c: New file, based on winsock.c.
18093         * lib/socket.c: New file, based on winsock.c.
18094         * lib/w32sock.h: New file, based on winsock.c.
18095         * lib/winsock.c: Remove file.
18096         * modules/accept: Likewise.
18097         * modules/bind: Likewise.
18098         * modules/connect: Likewise.
18099         * modules/getpeername: Likewise.
18100         * modules/getsockname: Likewise.
18101         * modules/getsockopt: Likewise.
18102         * modules/ioctl: Likewise.
18103         * modules/listen: Likewise.
18104         * modules/recv: Likewise.
18105         * modules/recvfrom: Likewise.
18106         * modules/send: Likewise.
18107         * modules/sendto: Likewise.
18108         * modules/setsockopt: Likewise.
18109         * modules/shutdown: Likewise.
18110         * modules/socket: Use socket.c instead of winsock.c.
18111         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18112         * doc/posix-functions/accept.texi: Doc fix.
18113         * doc/posix-functions/bind.texi: Doc fix.
18114         * doc/posix-functions/close.texi: Doc fix.
18115         * doc/posix-functions/connect.texi: Doc fix.
18116         * doc/posix-functions/getpeername.texi: Doc fix.
18117         * doc/posix-functions/getsockname.texi: Doc fix.
18118         * doc/posix-functions/getsockopt.texi: Doc fix.
18119         * doc/posix-functions/ioctl.texi: Doc fix.
18120         * doc/posix-functions/listen.texi: Doc fix.
18121         * doc/posix-functions/recv.texi: Doc fix.
18122         * doc/posix-functions/recvfrom.texi: Doc fix.
18123         * doc/posix-functions/send.texi: Doc fix.
18124         * doc/posix-functions/sendto.texi: Doc fix.
18125         * doc/posix-functions/setsockopt.texi: Doc fix.
18126         * doc/posix-functions/shutdown.texi: Doc fix.
18127         * doc/posix-functions/socket.texi: Doc fix.
18128
18129 2008-10-20  Bruno Haible  <bruno@clisp.org>
18130
18131         Take into account the role of SIGABRT_COMPAT on Windows 2008.
18132         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18133         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18134         as an alias for SIGABRT.
18135         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18136         (sigaction): Map it to SIGABRT.
18137         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18138
18139 2008-10-20  Bruno Haible  <bruno@clisp.org>
18140
18141         * lib/fts.c: Don't include lstat.h.
18142         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18143
18144         Move the lstat() declaration to <sys/stat.h>.
18145         * lib/lstat.h: Remove file.
18146         * lib/sys_stat.in.h: Add special invocation convention.
18147         (lstat): New declaration.
18148         * lib/lstat.c (orig_lstat): New function.
18149         (rpl_lstat): Use orig_lstat instead of lstat.
18150         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18151         AC_C_INLINE. Set REPLACE_LSTAT.
18152         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18153         and REPLACE_LSTAT.
18154         * modules/lstat (Files): Remove lib/lstat.h.
18155         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18156         (Include): Specify <sys/stat.h> instead of lstat.h.
18157         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18158         REPLACE_LSTAT.
18159         * NEWS: Mention the change.
18160
18161 2008-10-20  Bruno Haible  <bruno@clisp.org>
18162
18163         * modules/posix_spawn-tests: New file.
18164         * tests/test-posix_spawn3.c: New file.
18165
18166 2008-10-20  Bruno Haible  <bruno@clisp.org>
18167
18168         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18169         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18170         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18171         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18172         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18173
18174 2008-10-20  Bruno Haible  <bruno@clisp.org>
18175
18176         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18177         of posix_spawn on AIX 5.3.
18178
18179 2008-10-20  Bruno Haible  <bruno@clisp.org>
18180
18181         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18182
18183 2008-10-20  Bruno Haible  <bruno@clisp.org>
18184
18185         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18186         of AC_LANG_PROGRAM.
18187
18188 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18189
18190         * lib/netdb.in.h: Don't define GNU specific constants until they
18191         are supported or needed.  Reported by Bruno Haible
18192         <bruno@clisp.org>.
18193
18194 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18195
18196         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18197
18198 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18199
18200         * lib/getaddrinfo.h: Remove file.
18201         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18202         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
18203         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18204         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18205         * modules/netdb: Substitute GNULIB_GETADDRINFO.
18206         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18207         * tests/test-getaddrinfo.c: Likewise.
18208         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
18209         * NEWS: Mention change.
18210
18211 2008-10-19  Bruno Haible  <bruno@clisp.org>
18212
18213         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18214
18215 2008-10-19  Bruno Haible  <bruno@clisp.org>
18216
18217         * lib/wait-process.c: Include simply <sys/wait.h>.
18218         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18219         WIFSTOPPED): Remove fallback definitions.
18220         * modules/wait-process (Depends-on): Add sys_wait.
18221
18222         New module 'sys_wait'.
18223         * modules/sys_wait: New file.
18224         * lib/sys_wait.in.h: New file, partially copied from
18225         lib/wait-process.c.
18226         * m4/sys_wait_h.m4: New file.
18227         * doc/posix-headers/sys_wait.texi: Mention the new module.
18228
18229 2008-10-19  Bruno Haible  <bruno@clisp.org>
18230
18231         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18232
18233 2008-10-19  Bruno Haible  <bruno@clisp.org>
18234
18235         Assume that waitpid() fills an 'int' status, not a 'union wait'.
18236         * lib/wait-process.c (WAIT_T): Remove type.
18237         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18238         (wait_subprocess): Update.
18239
18240 2008-10-19  Bruno Haible  <bruno@clisp.org>
18241
18242         New module 'atoll'.
18243         * modules/atoll: New file.
18244         * lib/stdlib.in.h (atoll): New declaration.
18245         * lib/atoll.c: New file, from glibc with modifications.
18246         * m4/atoll.m4: New file.
18247         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18248         HAVE_ATOLL.
18249         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18250         * doc/posix-functions/atoll.texi: Mention the new module.
18251
18252 2008-10-19  Bruno Haible  <bruno@clisp.org>
18253
18254         Add strtoull() declaration to <stdlib.h>.
18255         * lib/stdlib.in.h (strtoull): New declaration.
18256         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18257         Set HAVE_STRTOULL.
18258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18259         HAVE_STRTOULL.
18260         * modules/strtoull (Depends-on): Add stdlib.
18261         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18262         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18263         HAVE_STRTOULL.
18264
18265 2008-10-19  Bruno Haible  <bruno@clisp.org>
18266
18267         Add strtoll() declaration to <stdlib.h>.
18268         * lib/stdlib.in.h (strtoll): New declaration.
18269         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18270         Set HAVE_STRTOLL.
18271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18272         HAVE_STRTOLL.
18273         * modules/strtoll (Depends-on): Add stdlib.
18274         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18275         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18276
18277 2008-10-19  Bruno Haible  <bruno@clisp.org>
18278
18279         * modules/bcopy (Depends-on): Add strings.
18280         (Include): Specify <strings.h>.
18281
18282 2008-10-19  Bruno Haible  <bruno@clisp.org>
18283
18284         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18285
18286 2008-10-19  Bruno Haible  <bruno@clisp.org>
18287
18288         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
18289         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
18290         mingw.
18291
18292 2008-10-19  Bruno Haible  <bruno@clisp.org>
18293
18294         * lib/atanl.c: Don't include isnanl.h.
18295         * lib/cosl.c: Likewise.
18296         * lib/ldexpl.c: Likewise.
18297         * lib/logl.c: Likewise.
18298         * lib/sinl.c: Likewise.
18299         * lib/sqrtl.c: Likewise.
18300         * lib/tanl.c: Likewise.
18301
18302         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
18303         * lib/isnanf.h: Remove file.
18304         * lib/isnand.h: Remove file.
18305         * lib/isnanl.h: Remove file.
18306         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
18307         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
18308         macros.
18309         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
18310         HAVE_ISNANF, don't define it as a C macro.
18311         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
18312         HAVE_ISNAND, don't define it as a C macro.
18313         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
18314         HAVE_ISNANL, don't define it as a C macro.
18315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
18316         HAVE_ISNAN[FDL].
18317         * modules/isnanf (Files): Remove lib/isnanf.h.
18318         (Depends-on): Add math.
18319         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18320         (Include): Specify <math.h> instead of isnanf.h.
18321         * modules/isnand (Files): Remove lib/isnand.h.
18322         (Depends-on): Add math.
18323         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18324         (Include): Specify <math.h> instead of isnand.h.
18325         * modules/isnanl (Files): Remove lib/isnanl.h.
18326         (Depends-on): Add math.
18327         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18328         (Include): Specify <math.h> instead of isnanl.h.
18329         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
18330         HAVE_ISNAN[FDL].
18331         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
18332         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
18333         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
18334         * NEWS: Mention the change.
18335
18336 2008-10-18  Bruno Haible  <bruno@clisp.org>
18337
18338         Add getusershell(), setusershell(), endusershell() declarations to
18339         <unistd.h>.
18340         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
18341         declarations.
18342         * lib/getusershell.c: Include unistd.h.
18343         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
18344         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18345         HAVE_GETUSERSHELL.
18346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
18347         and HAVE_GETUSERSHELL.
18348         * modules/getusershell (Depends-on): Add unistd, extensions.
18349         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18350         (Include): Specify <unistd.h>.
18351         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
18352         HAVE_GETUSERSHELL.
18353
18354 2008-10-18  Bruno Haible  <bruno@clisp.org>
18355
18356         Add a getloadavg() declaration to <stdlib.h>.
18357         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
18358         getloadavg declaration.
18359         (getloadavg): New declaration.
18360         * lib/getloadavg.c: Include <stdlib.h> first.
18361         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
18362         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
18363         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
18364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
18365         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18366         * modules/getloadavg (Depends-on): Add stdlib, extensions.
18367         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18368         (Include): Specify <stdlib.h>.
18369         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
18370         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18371
18372 2008-10-18  Bruno Haible  <bruno@clisp.org>
18373
18374         * lib/dirchownmod.c: Don't include lchmod.h.
18375
18376         Move the lchmod() declaration to <sys/stat.h>.
18377         * lib/lchmod.h: Remove file.
18378         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
18379         (lchmod): New declaration, moved here from lib/lchown.h.
18380         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
18381         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
18382         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
18383         and HAVE_LCHMOD.
18384         * modules/lchmod (Files): Remove lib/lchmod.h.
18385         (Depends-on): Add sys_stat, extensions.
18386         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18387         (Include): Specify <sys/stat.h> instead of lchmod.h.
18388         * modules/sys_stat (Depends-on): Add link-warning.
18389         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
18390         definition of GL_LINK_WARNING.
18391         * NEWS: Mention the change.
18392
18393 2008-10-18  Bruno Haible  <bruno@clisp.org>
18394
18395         * lib/fchdir.c: Don't include dirfd.h.
18396         * lib/fts.c: Likewise.
18397         * lib/getcwd.c: Likewise.
18398         * lib/glob.c: Likewise.
18399
18400         Move the dirfd() declaration to <dirent.h>.
18401         * lib/dirfd.h: Remove file.
18402         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
18403         (dirfd): New declaration.
18404         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
18405         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
18406         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
18407         HAVE_DECL_DIRFD.
18408         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
18409         HAVE_DECL_DIRFD.
18410         * modules/dirfd (Files): Remove lib/dirfd.h.
18411         (Depends-on): Add dirent, extensions.
18412         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
18413         (Include): Specify <dirent.h> instead of dirfd.h.
18414         * modules/dirent (Depends-on): Add link-warning.
18415         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
18416         definition of GL_LINK_WARNING.
18417         * NEWS: Mention the change.
18418
18419 2008-10-18  Bruno Haible  <bruno@clisp.org>
18420
18421         Move the euidaccess() declaration to <unistd.h>.
18422         * lib/euidaccess.h: Remove file.
18423         * lib/unistd.in.h (euidaccess): New declaration.
18424         * lib/euidaccess.c: Don't include euidaccess.h.
18425         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
18426         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
18427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
18428         and HAVE_EUIDACCESS.
18429         * modules/euidaccess (Files): Remove lib/euidaccess.h.
18430         (Depends-on): Add unistd.
18431         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18432         (Include): Specify <unistd.h> instead of euidaccess.h.
18433         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
18434         HAVE_EUIDACCESS.
18435         * NEWS: Mention the change.
18436
18437 2008-10-18  Bruno Haible  <bruno@clisp.org>
18438
18439         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
18440
18441         Move the getdomainname() declaration to <unistd.h>.
18442         * lib/getdomainname.h: Remove file.
18443         * lib/unistd.in.h (getdomainname): New declaration.
18444         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
18445         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18446         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18447         HAVE_GETDOMAINNAME.
18448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18449         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
18450         * modules/getdomainname (Files): Remove lib/getdomainname.h.
18451         (Depends-on): Add unistd, extensions.
18452         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18453         (Includes): Specify <unistd.h> instead of getdomainname.h.
18454         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
18455         HAVE_GETDOMAINNAME.
18456         * NEWS: Mention the change.
18457
18458 2008-10-18  Bruno Haible  <bruno@clisp.org>
18459
18460         * modules/dirent: New file.
18461         * m4/dirent_h.m4: New file.
18462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
18463         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
18464         * modules/fchdir (Files): Remove lib/dirent.in.h.
18465         (Depends-on): Add dirent.
18466         (Makefile.am): Move rules to modules/dirent.
18467         * doc/posix-headers/dirent.texi: Mention the new module.
18468
18469 2008-10-18  Bruno Haible  <bruno@clisp.org>
18470
18471         Avoid -Wunused-parameter warnings in public gnulib header files.
18472         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
18473         macro.
18474         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
18475
18476 2008-10-18  Bruno Haible  <bruno@clisp.org>
18477
18478         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
18479         * doc/glibc-functions/error.texi: Mention the module 'error'.
18480         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
18481         * doc/glibc-functions/getdomainname.texi: Mention the module
18482         'getdomainname'.
18483         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
18484         * doc/glibc-functions/getpagesize.texi: Mention the module
18485         'getpagesize'.
18486         * doc/glibc-functions/getusershell.texi: Mention the module
18487         'getusershell'.
18488         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
18489         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
18490         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
18491         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
18492         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
18493         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
18494         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
18495         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
18496         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
18497         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
18498         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
18499         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
18500         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
18501         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
18502
18503 2008-10-17  Bruno Haible  <bruno@clisp.org>
18504
18505         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
18506         HP-UX and IRIX, use -0.0L.
18507         * tests/test-ceill.c (minus_zero): Likewise.
18508         * tests/test-floorl.c (minus_zero): Likewise.
18509         * tests/test-frexpl.c (minus_zero): Likewise.
18510         * tests/test-isnan.c (minus_zerol): Likewise.
18511         * tests/test-isnanl.h (minus_zero): Likewise.
18512         * tests/test-ldexpl.c (minus_zero): Likewise.
18513         * tests/test-roundl.c (minus_zero): Likewise.
18514         * tests/test-signbit.c (minus_zerol): Likewise.
18515         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18516         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18517         * tests/test-truncl.c (minus_zero): Likewise.
18518         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18519         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18520         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
18521         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18522
18523 2008-10-17  Bruno Haible  <bruno@clisp.org>
18524
18525         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
18526         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
18527         that it gets activated only for gcc >= 3.0.
18528         * lib/dirent.in.h: Likewise.
18529         * lib/errno.in.h: Likewise.
18530         * lib/fcntl.in.h: Likewise.
18531         * lib/float.in.h: Likewise.
18532         * lib/iconv.in.h: Likewise.
18533         * lib/inttypes.in.h: Likewise.
18534         * lib/locale.in.h: Likewise.
18535         * lib/math.in.h: Likewise.
18536         * lib/netdb.in.h: Likewise.
18537         * lib/netinet_in.in.h: Likewise.
18538         * lib/search.in.h: Likewise.
18539         * lib/signal.in.h: Likewise.
18540         * lib/spawn.in.h: Likewise.
18541         * lib/stdarg.in.h: Likewise.
18542         * lib/stdint.in.h: Likewise.
18543         * lib/stdio.in.h: Likewise.
18544         * lib/stdlib.in.h: Likewise.
18545         * lib/string.in.h: Likewise.
18546         * lib/strings.in.h: Likewise.
18547         * lib/sys_file.in.h: Likewise.
18548         * lib/sys_ioctl.in.h: Likewise.
18549         * lib/sys_select.in.h: Likewise.
18550         * lib/sys_socket.in.h: Likewise.
18551         * lib/sys_stat.in.h: Likewise.
18552         * lib/sys_time.in.h: Likewise.
18553         * lib/sysexits.in.h: Likewise.
18554         * lib/time.in.h: Likewise.
18555         * lib/unistd.in.h: Likewise.
18556         * lib/wchar.in.h: Likewise.
18557         * lib/wctype.in.h: Likewise.
18558         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18559
18560 2008-10-17  Jim Meyering  <meyering@redhat.com>
18561
18562         ignore-value: don't depend on inline module
18563         * modules/ignore-value (Depends-on): Remove 'inline'.
18564         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
18565         Suggestion from Bruno Haible.
18566
18567 2008-10-17  Bruno Haible  <bruno@clisp.org>
18568
18569         New implementation of condition variables for Win32.
18570         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
18571         (gl_linked_waitqueue_t): New type.
18572         (gl_cond_t): Use it.
18573         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
18574         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
18575         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
18576         (glthread_cond_init_func, glthread_cond_wait_func,
18577         glthread_cond_timedwait_func, glthread_cond_signal_func,
18578         glthread_cond_broadcast_func, glthread_cond_destroy_func):
18579         Reimplemented on the basis of gl_linked_waitqueue_t.
18580         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
18581         gl_waitqueue_t.
18582         (gl_rwlock_t): Update.
18583         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
18584
18585 2008-10-17  Simon Josefsson  <simon@josefsson.org>
18586
18587         * modules/recvfrom (Depends-on): Add dependency on getpeername.
18588         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18589
18590 2008-10-17  Jim Meyering  <meyering@redhat.com>
18591
18592         ignore-value: new module
18593         * modules/ignore-value: New file.
18594         * lib/ignore-value.h: New file.
18595         * MODULES.html.sh (Compiler warning management): New section,
18596         just for this module.  More to come.
18597
18598 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18599
18600         open-safer.c: avoid 'signed and unsigned in conditional...' warning
18601         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
18602         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
18603
18604 2008-10-16  Jim Meyering  <meyering@redhat.com>
18605
18606         openat-die.c: avoid 'no previous prototype' warning
18607         * lib/openat-die.c: Include "openat.h".
18608         Reported by Reuben Thomas <rrt@sc3d.org>.
18609
18610 2008-10-16  Simon Josefsson  <simon@josefsson.org>
18611
18612         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
18613         * lib/netdb.in.h: Fix typo.
18614         Reported by Bruno Haible  <bruno@clisp.org>
18615
18616         * lib/netdb.in.h: Include sys/socket.h for platforms without
18617         netdb.h, to get structures like hostent on MinGW.
18618         * modules/netdb (Depends-on): Add sys_socket.
18619
18620 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18621
18622         * modules/netdb, modules/netdb-tests: New file.
18623         * m4/netdb_h.m4: New file.
18624         * lib/netdb.in.h: Add, currently just an empty file pending
18625         definitions.
18626         * tests/test-netdb.c: New file.
18627         * doc/posix-headers/netdb.texi: Mention that we replace it if
18628         needed.
18629         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18630         netdb.
18631
18632 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18633
18634         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
18635         with code.
18636
18637 2008-10-13  Bruno Haible  <bruno@clisp.org>
18638
18639         * lib/glthread/cond.c (glthread_cond_wait_func,
18640         glthread_cond_timedwait_func): Add a comment.
18641
18642 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18643
18644         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
18645         * tests/test-select.c: Likewise,
18646
18647 2008-10-13  Bruno Haible  <bruno@clisp.org>
18648
18649         * lib/glthread/cond.c (glthread_cond_wait_func,
18650         glthread_cond_timedwait_func): Fix variable name.
18651         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18652
18653 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
18654
18655         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
18656         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
18657         struct sockaddr.sa_len.
18658         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
18659
18660 2008-10-13  Simon Josefsson  <simon@josefsson.org>
18661
18662         * build-aux/pmccabe2html: Add css and css_url parameters.
18663
18664 2008-10-12  Bruno Haible  <bruno@clisp.org>
18665
18666         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
18667         calling aclx_get.
18668         Reported by Rainer Tammer <tammer@tammer.net>.
18669
18670 2008-10-12  Bruno Haible  <bruno@clisp.org>
18671
18672         Use msvcrt aware primitives for creation/termination of Win32 threads.
18673         * lib/glthread/thread.c: Include <process.h>.
18674         (glthread_create_func): Use _beginthreadex instead of CreateThread.
18675         (wrapper_func): Update signature.
18676         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
18677
18678 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18679             Bruno Haible  <bruno@clisp.org>
18680
18681         Provide a Win32 implementation of the 'cond' module.
18682         * lib/glthread/cond.h [USE_WIN32]: New implementation.
18683         * lib/glthread/cond.c (glthread_cond_init_func,
18684         glthread_cond_wait_func, glthread_cond_timedwait_func,
18685         glthread_cond_signal_func, glthread_cond_broadcast_func,
18686         glthread_cond_destroy_func) [USE_WIN32]: New functions.
18687         * modules/cond (Dependencies): Add gettimeofday.
18688
18689 2008-10-11  Bruno Haible  <bruno@clisp.org>
18690
18691         Make sleep work on older versions of mingw.
18692         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
18693         only whether it exists.
18694         * doc/posix-functions/sleep.texi: Mention the problem with older
18695         versions of mingw.
18696
18697 2008-10-11  Bruno Haible  <bruno@clisp.org>
18698
18699         New module 'shutdown'.
18700         * modules/shutdown: New file.
18701         * lib/sys_socket.in.h (shutdown): New declaration.
18702         * lib/winsock.c (shutdown): New function.
18703         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18704         GNULIB_SHUTDOWN.
18705         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
18706         * doc/posix-functions/shutdown.texi: Document the new module.
18707
18708 2008-10-11  Jim Meyering  <meyering@redhat.com>
18709
18710         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
18711
18712 2008-10-11  Bruno Haible  <bruno@clisp.org>
18713
18714         New module 'fclose'.
18715         * modules/fclose: New file.
18716         * lib/stdio.in.h (fclose): New declaration.
18717         * lib/fclose.c: New file.
18718         * m4/fclose.m4: New file.
18719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
18720         REPLACE_FCLOSE.
18721         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
18722         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
18723         REPLACE_FCLOSE.
18724         * modules/close (Depends-on): fclose.
18725         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
18726
18727 2008-10-11  Bruno Haible  <bruno@clisp.org>
18728
18729         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
18730         set errno and don't call _close.
18731
18732 2008-10-10  Bruno Haible  <bruno@clisp.org>
18733
18734         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
18735         ACL, not afterwards. Fixes test failure on Cygwin.
18736
18737 2008-10-09  Ben Pfaff  <blp@gnu.org>
18738
18739         * build-aux/announce-gen: Fix gnulib version related part of usage
18740         message.  Die with a useful error message if no tarballs are
18741         found.
18742
18743 2008-10-10  Jim Meyering  <meyering@redhat.com>
18744
18745         bootstrap: use git's --depth=N option only if it's supported
18746         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
18747         recognize the --depth option.  Reported by Pádraig Brady.
18748
18749 2008-10-09  Bruno Haible  <bruno@clisp.org>
18750
18751         New module 'ioctl'.
18752         * modules/ioctl: New file.
18753         * lib/sys_socket.in.h (ioctl): Remove declaration.
18754         * lib/winsock.c: Include <sys/ioctl.h>.
18755         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
18756         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18757         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
18758         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
18759         * doc/posix-functions/ioctl.texi: Mention the new module.
18760
18761 2008-10-09  Bruno Haible  <bruno@clisp.org>
18762
18763         New module 'sys_ioctl'.
18764         * lib/sys_ioctl.in.h: New file.
18765         * m4/sys_ioctl_h.m4: New file.
18766         * modules/sys_ioctl: New file.
18767         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
18768
18769 2008-10-09  Bruno Haible  <bruno@clisp.org>
18770
18771         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
18772         * lib/winsock.c: Include <stdarg.h>.
18773         (rpl_ioctl): Change to second argument 'int' and then varargs.
18774
18775 2008-10-09  Bruno Haible  <bruno@clisp.org>
18776
18777         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
18778         when the sys_socket module is present and the system has <winsock2.h>.
18779
18780 2008-10-09  Bruno Haible  <bruno@clisp.org>
18781
18782         * doc/posix-functions/close.texi: Mention module 'close' instead of
18783         module 'sys_socket'.
18784
18785 2008-10-09  Bruno Haible  <bruno@clisp.org>
18786
18787         * doc/glibc-headers/sys_ioctl.texi: New file.
18788         * doc/gnulib.texi: Include it.
18789
18790 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18791             Bruno Haible  <bruno@clisp.org>
18792
18793         Combine the two replacements of 'close'.
18794         * lib/sys_socket.in.h (close): Define to a reminder to include
18795         <unistd.h>.
18796         (_gl_close_fd_maybe_socket): New declaration.
18797         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
18798         * lib/winsock.c (close): Remove undefinition.
18799         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
18800         needed for the gnulib module 'close'.
18801         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
18802         define to an error symbol or to a warning, if suitable.
18803         * lib/close.c: Include <sys/socket.h>.
18804         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
18805         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
18806         UNISTD_H_HAVE_WINSOCK2_H.
18807         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
18808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18809         UNISTD_H_HAVE_WINSOCK2_H.
18810         * modules/sys_socket (Files): Add m4/unistd_h.m4.
18811         (configure.ac): Set a module indicator.
18812         (Makefile.am): Substitute GNULIB_CLOSE.
18813         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
18814         * modules/poll-tests (Depends-on): Add close.
18815         * modules/select-tests (Depends-on): Likewise.
18816
18817 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18818             Bruno Haible  <bruno@clisp.org>
18819
18820         New module 'close'.
18821         * modules/close: New file.
18822         * lib/unistd.in.h (close): Move declaration out of the
18823         FCHDIR_REPLACEMENT scope.
18824         (_gl_unregister_fd): New declaration.
18825         * lib/close.c: New file.
18826         * lib/fchdir.c (rpl_close): Remove function.
18827         * m4/close.m4: New file.
18828         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18829         close.
18830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
18831         REPLACE_CLOSE.
18832         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
18833         REPLACE_CLOSE.
18834         * modules/fchdir (Depends-on): Add close.
18835
18836 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18837             Bruno Haible  <bruno@clisp.org>
18838
18839         * lib/fcntl.in.h (open): Simplify conditionals.
18840         (_gl_register_fd): New declaration.
18841         * lib/fchdir.c (rpl_open): Remove function.
18842         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
18843         also.
18844         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
18845         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18846         open.
18847
18848 2008-10-09  Jim Meyering  <meyering@redhat.com>
18849
18850         GNUmakefile: use the more name-space-friendly "_version"
18851         * top/GNUmakefile (_dummy): Update.
18852         (_version): Rename from "version".
18853
18854 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18855             Bruno Haible  <bruno@clisp.org>
18856
18857         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
18858         rpl_close.
18859         (_gl_register_fd): New function, extracted from rpl_open.
18860         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
18861         (rpl_open, rpl_opendir): Use _gl_register_fd.
18862
18863 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18864
18865         Fix organization of 'open' replacement.
18866         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
18867         (gl_FUNC_OPEN): Use it.
18868         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
18869
18870 2008-10-08  Bruno Haible  <bruno@clisp.org>
18871
18872         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
18873
18874 2008-10-08  Simon Josefsson  <simon@josefsson.org>
18875
18876         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
18877         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
18878         listen).
18879
18880 2008-10-08  Eric Blake  <ebb9@byu.net>
18881
18882         GNUmakefile: add 'make version' target
18883         * top/GNUmakefile (_curr-ver): Split version update rules...
18884         (version): ...into a target.
18885
18886 2008-10-07  Bruno Haible  <bruno@clisp.org>
18887
18888         Use a more portable replacement expression for -0.0L.
18889         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
18890         instead of -0.0L. Fix m4 quotation.
18891
18892         * tests/test-signbit.c: Include <float.h>.
18893         (minus_zero): New variable.
18894         (test_signbitl): Use minus_zero instead of -zero.
18895         * modules/signbit-tests (Depends-on): Add float.
18896
18897         * tests/test-ceill.c: Include <float.h>.
18898         (zero): Remove variable.
18899         (minus_zero): New variable.
18900         (main): Use minus_zero instead of -zero.
18901         * modules/ceill-tests (Depends-on): Add float.
18902
18903         * tests/test-floorl.c: Include <float.h>.
18904         (zero): Remove variable.
18905         (minus_zero): New variable.
18906         (main): Use minus_zero instead of -zero.
18907         * modules/floorl-tests (Depends-on): Add float.
18908
18909         * tests/test-roundl.c: Include <float.h>.
18910         (zero): Remove variable.
18911         (minus_zero): New variable.
18912         (main): Use minus_zero instead of -zero.
18913         * modules/roundl-tests (Depends-on): Add float.
18914
18915         * tests/test-truncl.c: Include <float.h>.
18916         (zero): Remove variable.
18917         (minus_zero): New variable.
18918         (main): Use minus_zero instead of -zero.
18919         * modules/truncl-tests (Depends-on): Add float.
18920
18921         * tests/test-frexpl.c (zero): Remove variable.
18922         (minus_zero): New variable.
18923         (main): Use minus_zero instead of -zero.
18924         * modules/frexpl-tests (Depends-on): Add float.
18925
18926         * tests/test-isnan.c (zerol): Remove variable.
18927         (minus_zerol): New variable.
18928         (test_long_double): Use minus_zerol instead of -zerol.
18929         * modules/isnan-tests (Depends-on): Add float.
18930
18931         * tests/test-isnanl.h (zero): Remove variable.
18932         (minus_zero): New variable.
18933         (main): Use minus_zero instead of -zero.
18934         * modules/isnanl-nolibm-tests (Depends-on): Add float.
18935         * modules/isnanl-tests (Depends-on): Add float.
18936
18937         * tests/test-ldexpl.c (zero): Remove variable.
18938         (minus_zero): New variable.
18939         (main): Use minus_zero instead of -zero.
18940         * modules/ldexpl-tests (Depends-on): Add float.
18941
18942         * tests/test-snprintf-posix.h (zerol): Remove variable.
18943         (minus_zerol): New variable.
18944         (test_function): Use minus_zerol instead of -zerol.
18945         * modules/snprintf-posix-tests (Depends-on): Add float.
18946         * modules/vsnprintf-posix-tests (Depends-on): Add float.
18947
18948         * tests/test-sprintf-posix.h (zerol): Remove variable.
18949         (minus_zerol): New variable.
18950         (test_function): Use minus_zerol instead of -zerol.
18951         * modules/sprintf-posix-tests (Depends-on): Add float.
18952         * modules/vsprintf-posix-tests (Depends-on): Add float.
18953
18954         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
18955         (minus_zerol): New variable.
18956         (test_function): Use minus_zerol instead of -zerol.
18957         * modules/vasnprintf-posix-tests (Depends-on): Add float.
18958
18959         * tests/test-vasprintf-posix.c (zerol): Remove variable.
18960         (minus_zerol): New variable.
18961         (test_function): Use minus_zerol instead of -zerol.
18962         * modules/vasprintf-posix-tests (Depends-on): Add float.
18963
18964 2008-10-07  Simon Josefsson  <simon@josefsson.org>
18965
18966         * MODULES.html.sh (Support for building documentation): Mention
18967         pmccabe2html.  Sort entries.
18968
18969         Add pmccabe2html module, from gnupdf.
18970         * build-aux/pmccabe.css: New file.
18971         * build-aux/pmccabe2html: New file.
18972         * m4/pmccabe2html.m4: New file.
18973         * modules/pmccabe2html: New file.
18974
18975 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
18976
18977         flock: new module
18978         * MODULES.html.sh: Add to list of modules.
18979         * lib/flock.c: flock implementation for Windows and Unix systems
18980         which have fcntl.
18981         * doc/glibc-functions/flock.texi: Update documentation.
18982         * lib/sys_file.in.h: <sys/file.h> header file.
18983         * m4/flock.m4: M4 macros.
18984         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
18985         * modules/flock: flock module.
18986         * modules/flock-tests: flock tests module.
18987         * modules/sys_file: sys/file.h module.
18988         * tests/test-flock.c: test suite for flock.
18989
18990 2008-10-06  Jim Meyering  <meyering@redhat.com>
18991
18992         bootstrap: check for LT_INIT more portably still ;-)
18993         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
18994         Spotted by Bruno Haible.
18995
18996 2008-10-06  Eric Blake  <ebb9@byu.net>
18997
18998         test-signbit: avoid tripping Irix cc bug on -0.0L
18999         * tests/test-signbit.c (minus_zerol): Delete, and replace with
19000         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
19001         entire testsuite consistent and avoids an Irix 6.2 bug.
19002
19003 2008-10-05  Bruno Haible  <bruno@clisp.org>
19004             Jim Meyering  <jim@meyering.net>
19005
19006         Add an option for ignoring EPIPE during close_stdout.
19007         * lib/closeout.h: Include <stdbool.h>.
19008         (close_stdout_set_ignore_EPIPE): New declaration.
19009         * lib/closeout.c: Include <stdbool.h>.
19010         (ignore_EPIPE): New variable.
19011         (close_stdout_set_ignore_EPIPE): New function.
19012         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19013         * lib/close-stream.c (close_stream): Mention the possible EPIPE
19014         failure.
19015         * modules/closeout (Depends-on): Add stdbool.
19016
19017 2008-10-05  Bruno Haible  <bruno@clisp.org>
19018
19019         * modules/accept: New file.
19020         * modules/bind: New file.
19021         * modules/connect: New file.
19022         * modules/getpeername: New file.
19023         * modules/getsockname: New file.
19024         * modules/getsockopt: New file.
19025         * modules/listen: New file.
19026         * modules/recv: New file.
19027         * modules/recvfrom: New file.
19028         * modules/send: New file.
19029         * modules/sendto: New file.
19030         * modules/setsockopt: New file.
19031         * modules/socket: New file.
19032         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19033         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19034         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19035         the particular module is requested. Add a link warning when the
19036         particular module is not requested.
19037         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19038         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19039         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19040         the particular module is requested.
19041         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19042         gl_SYS_SOCKET_H_DEFAULTS): New macros.
19043         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19044         * modules/sys_socket (Depends-on): Add link-warning.
19045         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19046         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19047         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19048         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19049         GL_LINK_WARNING.
19050         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19051         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19052         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19053         * doc/posix-functions/getpeername.texi: Mention the new module
19054         'getpeername'.
19055         * doc/posix-functions/getsockname.texi: Mention the new module
19056         'getsockname'.
19057         * doc/posix-functions/getsockopt.texi: Mention the new module
19058         'getsockopt'.
19059         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19060         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19061         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19062         * doc/posix-functions/send.texi: Mention the new module 'send'.
19063         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19064         * doc/posix-functions/setsockopt.texi: Mention the new module
19065         'setsockopt'.
19066         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19067         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19068         listen, connect, accept.
19069         * modules/select-tests (Depends-on): Likewise.
19070
19071 2008-10-05  Bruno Haible  <bruno@clisp.org>
19072
19073         * lib/winsock.c (strerror): Remove unused #undef.
19074         (rpl_close): Remove unused local variable.
19075
19076         * modules/sys_socket (Depends-on); Add errno.
19077
19078 2008-10-05  Bruno Haible  <bruno@clisp.org>
19079
19080         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19081         (select): Add a link warning when the 'select' module is not used.
19082         * modules/sys_select (Depends-on): Add link-warning.
19083         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19084         Suggested by Paolo Bonzini.
19085
19086 2008-10-05  Jim Meyering  <meyering@redhat.com>
19087
19088         bootstrap: check for LT_INIT more portably
19089         * build-aux/bootstrap: Avoid using grep -E, since it's not
19090         portable enough.  Suggestion from Bruno Haible.
19091
19092 2008-10-05  Bruno Haible  <bruno@clisp.org>
19093
19094         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19095         as being fixed by gnulib.
19096
19097 2008-10-05  Bruno Haible  <bruno@clisp.org>
19098
19099         * modules/select-tests: New file, mostly copied from
19100         modules/sys_select-tests.
19101         * tests/test-select.c: New file, mostly copied from
19102         tests/test-sys_select.c.
19103         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19104         * modules/sys_select-tests (Depends-on): Remove all dependencies.
19105         (Makefile.am): Remove test_sys_select_LDADD.
19106
19107         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19108         to an undefined symbol, for an error message.
19109         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19110         (gl_SYS_SELECT_H_DEFAULTS): New macro.
19111         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19112         winsock-select.c here.
19113         * modules/sys_select (Files): Remove lib/winsock-select.c.
19114         (Depends-on): Remove alloca.
19115         (Makefile.am): Substitute GNULIB_SELECT.
19116         * modules/select: New file.
19117         * doc/posix-functions/select.texi: Update.
19118
19119 2008-10-05  Bruno Haible  <bruno@clisp.org>
19120
19121         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19122         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19123         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19124         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19125         getdtablesize.
19126         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19127         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19128
19129 2008-10-05  Bruno Haible  <bruno@clisp.org>
19130
19131         * modules/getdtablesize-tests: New file.
19132         * tests/test-getdtablesize.c: New file.
19133
19134         New module 'getdtablesize'.
19135         * lib/unistd.in.h (getdtablesize): New declaration.
19136         * lib/getdtablesize.c: New file.
19137         * m4/getdtablesize.m4: New file.
19138         * modules/getdtablesize: New file.
19139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19140         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19141         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19142         HAVE_GETDTABLESIZE.
19143         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19144
19145 2008-10-05  Bruno Haible  <bruno@clisp.org>
19146
19147         * modules/sched (Makefile.am): Fix typo.
19148         Reported by Simon Josefsson.
19149
19150 2008-10-05  Jim Meyering  <meyering@redhat.com>
19151
19152         bootstrap: check for LT_INIT, too
19153         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19154         are deprecated.  Suggestion from Ralf Wildenhues.
19155
19156 2008-10-05  Bruno Haible  <bruno@clisp.org>
19157
19158         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19159         overriding them by ours.
19160         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19161
19162 2008-10-05  Jim Meyering  <meyering@redhat.com>
19163
19164         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19165         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19166         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
19167
19168 2008-10-04  Bruno Haible  <bruno@clisp.org>
19169
19170         * modules/dup2 (License): Change to LGPLv2+.
19171         * modules/sleep (License): Likewise.
19172         * modules/perror (License): Likewise.
19173         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19174         Blake.
19175         * modules/signal (License): Likewise.
19176         * modules/sigprocmask (License): Likewise.
19177         * modules/raise (License): Change to LGPLv2+, with approval by Jim
19178         Meyering.
19179
19180 2008-10-04  Bruno Haible  <bruno@clisp.org>
19181
19182         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19183         Reported by Rainer Tammer <tammer@tammer.net>.
19184
19185 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
19186             Bruno Haible  <bruno@clisp.org>
19187
19188         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19189         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19190         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19191
19192 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
19193
19194         filevercmp: new module
19195         * lib/filevercmp.h: New function filevercmp comparing version strings.
19196         * lib/filevercmp.c: Implementation of filevercmp function.
19197         * modules/filevercmp: Module metadata.
19198         * tests/test-filevercmp.c: Unit test for new module.
19199         * modules/filevercmp-tests: Unit test metadata.
19200         * MODULES.html.sh: Add filevercmp module.
19201
19202 2008-10-03  Bruno Haible  <bruno@clisp.org>
19203
19204         * lib/c-ctype.h: Add comment.
19205         Reported by Jim Meyering.
19206
19207 2008-10-02  Bruno Haible  <bruno@clisp.org>
19208
19209         * modules/posix_spawn-internal (Depends-on): Add 'open'.
19210
19211 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19212
19213         * build-aux/bootstrap: Allow renaming bootstrap, and change the
19214         name of bootstrap.conf accordingly.
19215
19216 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19217
19218         * build-aux/bootstrap: Install git-merge-changelog configuration
19219         items into .gitconfig if needed.
19220
19221 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19222
19223         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19224         git repository, and initialize/update it accordingly.
19225
19226 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
19227
19228         * modules/fsync-tests: New file.
19229         * tests/test-fsync.c: New file.
19230
19231         New module 'fsync'.
19232         * lib/fsync.c: New file.
19233         * m4/fsync.m4: New file.
19234         * modules/fsync: New file.
19235         * lib/unistd.in.h (fsync): New declaration.
19236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19237         GNULIB_FSYNC and HAVE_FSYNC.
19238         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19239         * MODULES.html.sh (posix_functions): Add fsync.
19240         * doc/posix-functions/fsync.texi: Mention the new module.
19241
19242 2008-10-02  Jim Meyering  <meyering@redhat.com>
19243
19244         fts.c: sync with similar code from coreutils' remove.c
19245         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19246         Guard also with "#if defined __linux__", since for now at least,
19247         this code is Linux-kernel-specific.
19248
19249 2008-10-02  Jim Meyering  <meyering@redhat.com>
19250
19251         fts: bug fixes
19252         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19253         Include <sys/vfs.h>, not <sys/statfs.h>.
19254
19255         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19256         Include <sys/vfs.h>, not <sys/statfs.h>.
19257
19258 2008-10-01  Bruno Haible  <bruno@clisp.org>
19259
19260         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19261         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19262         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19263         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19264         * doc/posix-functions/posix_spawnp.texi: Likewise.
19265         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19266         whether posix_spawn actually works.
19267         * m4/pipe.m4 (gl_PIPE): Likewise.
19268         * modules/execute (Files): Add m4/posix_spawn.m4.
19269         * modules/pipe (Files): Add m4/posix_spawn.m4.
19270         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19271
19272 2008-10-01  Jim Meyering  <meyering@redhat.com>
19273
19274         remove trailing spaces
19275         * NEWS: Likewise.
19276         * lib/poll.c (poll): Likewise.
19277         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19278         * lib/winsock.c (rpl_close): Likewise.
19279         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19280         * modules/yield: Likewise.
19281         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19282         * tests/test-sys_select.c (connect_to_socket): Likewise.
19283
19284         fts.c: adjust a new interface to be more generally useful
19285         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19286         (fts_build): Adjust caller.
19287
19288 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19289
19290         * modules/cond-tests: New file.
19291         * tests/test-cond.c: New file.
19292
19293 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19294             Bruno Haible  <bruno@clisp.org>
19295
19296         * modules/cond (Dependencies): Add errno, time.
19297         * lib/glthread/cond.h: Include <time.h>.
19298         (gl_cond_define, gl_cond_define_initialized): Use the same definition
19299         across platforms.
19300
19301 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19302             Bruno Haible  <bruno@clisp.org>
19303
19304         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
19305
19306 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19307             Bruno Haible  <bruno@clisp.org>
19308
19309         * modules/tls-tests (Depends-on): Add thread, yield.
19310         (configure.ac): Remove all checks.
19311         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
19312         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19313         gl_thread_self): Remove definitions. Include glthread/thread.h and
19314         glthread/yield.h instead.
19315         (test_tls): Pass an additional NULL argument to gl_thread_join.
19316
19317 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19318             Bruno Haible  <bruno@clisp.org>
19319
19320         * modules/lock-tests (Depends-on): Add thread, yield.
19321         (configure.ac): Remove all checks.
19322         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
19323         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19324         gl_thread_self): Remove definitions. Include glthread/thread.h and
19325         glthread/yield.h instead.
19326         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
19327         additional NULL argument to gl_thread_join.
19328
19329 2008-09-30  Bruno Haible  <bruno@clisp.org>
19330
19331         Fix the Win32 implementation of the 'thread' module.
19332         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
19333         pointer type.
19334         (gl_thread_self): Invoke gl_thread_self_func.
19335         (gl_thread_self_func): New declaration.
19336         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
19337         (do_init_self_key, init_self_key): New functions.
19338         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
19339         Remove some fields.
19340         (running_threads, running_lock): Remove variables.
19341         (get_current_thread_handle): New function.
19342         (gl_thread_self_func, wrapper_func, glthread_create_func,
19343         glthread_join_func, gl_thread_exit_func): Largely rewritten and
19344         simplified.
19345
19346 2008-09-30  Bruno Haible  <bruno@clisp.org>
19347
19348         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
19349         files.
19350
19351 2008-09-30  Jim Meyering  <meyering@redhat.com>
19352
19353         fts.m4: correct the test for statfs.f_type
19354         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
19355         when checking for statfs.f_type.
19356
19357 2008-09-15  Simon Josefsson  <simon@josefsson.org>
19358
19359         tests: avoid some compiler warnings
19360         * tests/test-memchr.c (main): Pass NULL indirectly.
19361         * tests/test-getdate.c (main): Remove unused variable 'ret'.
19362
19363 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
19364
19365         getdate.y: disallow countable dayshifts like "4 yesterday ago"
19366         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
19367         exactly specified dayshifts.
19368         (dayshift): New rule.
19369         (rel): Add dayshift.
19370         (relative_time_table) [tomorrow, yesterday, today, now]:
19371         Use tDAY_SHIFT in place of tDAY_UNIT.
19372         * tests/test-getdate.c: Add tests for now-disallowed countable
19373         dayshifts, e.g., "4 yesterday ago".
19374
19375 2008-09-29  Bruno Haible  <bruno@clisp.org>
19376
19377         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
19378         * tests/test-posix_spawn1.in.sh: Renamed from
19379         tests/test-posix_spawn.in.sh.
19380         * tests/test-posix_spawn2.c: New file.
19381         * tests/test-posix_spawn2.in.sh: New file.
19382         * modules/posix_spawnp-tests (Files): Update.
19383         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
19384
19385 2008-09-29  Bruno Haible  <bruno@clisp.org>
19386
19387         Propagate effects of putenv/setenv/unsetenv to child processes.
19388         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
19389         * lib/pipe.c (create_pipe): Likewise.
19390
19391 2008-09-29  Bruno Haible  <bruno@clisp.org>
19392
19393         Enable use of shell scripts as executables in mingw.
19394         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
19395         run the program as a shell script.
19396         * lib/pipe.c (create_pipe): Likewise.
19397         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
19398         resulting array.
19399
19400 2008-09-29  Eric Blake  <ebb9@byu.net>
19401
19402         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
19403
19404 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
19405
19406         * doc/posix-functions/accept.texi: Update mingw problems.
19407         * doc/posix-functions/bind.texi: Update mingw problems.
19408         * doc/posix-functions/close.texi: Update mingw problems.
19409         * doc/posix-functions/connect.texi: Update mingw problems.
19410         * doc/posix-functions/getpeername.texi: Update mingw problems.
19411         * doc/posix-functions/getsockname.texi: Update mingw problems.
19412         * doc/posix-functions/getsockopt.texi: Update mingw problems.
19413         * doc/posix-functions/ioctl.texi: Update mingw problems.
19414         * doc/posix-functions/listen.texi: Update mingw problems.
19415         * doc/posix-functions/recv.texi: Update mingw problems.
19416         * doc/posix-functions/recvfrom.texi: Update mingw problems.
19417         * doc/posix-functions/select.texi: Update mingw problems.
19418         * doc/posix-functions/send.texi: Update mingw problems.
19419         * doc/posix-functions/sendto.texi: Update mingw problems.
19420         * doc/posix-functions/setsockopt.texi: Update mingw problems.
19421         * doc/posix-functions/socket.texi: Update mingw problems.
19422
19423 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
19424             Bruno Haible  <bruno@clisp.org>
19425
19426         * lib/sys_select.in.h: Include sys/time.h.
19427         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
19428         * modules/sys_select: Depend on sys_time.
19429         * tests/test-sys_select.c: Test that sys/select.h defines struct
19430         timeval fully.
19431
19432 2008-09-29  Bruno Haible  <bruno@clisp.org>
19433
19434         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
19435         * lib/sys_select.in.h: Likewise.
19436
19437 2008-09-29  Bruno Haible  <bruno@clisp.org>
19438
19439         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
19440
19441 2008-09-29  Bruno Haible  <bruno@clisp.org>
19442
19443         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
19444         Set LIBSOCKET instead of augmenting LIBS.
19445         * modules/sockets (Link): New section.
19446         * modules/sockets-tests (test_sockets_LDADD): New variable.
19447         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
19448         * modules/poll-tests (test_poll_LDADD): New variable.
19449         * NEWS: Document the change.
19450
19451 2008-09-29  Bruno Haible  <bruno@clisp.org>
19452
19453         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
19454         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
19455         ARPA_INET_H directly.
19456         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19457
19458 2008-09-28  Bruno Haible  <bruno@clisp.org>
19459
19460         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
19461         from gl_HEADER_SYS_SOCKET.
19462         (gl_HEADER_SYS_SOCKET): Invoke it.
19463         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19464
19465 2008-09-28  Bruno Haible  <bruno@clisp.org>
19466
19467         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
19468         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
19469         Needed on OSF/1 4.0.
19470
19471 2008-09-28  Bruno Haible  <bruno@clisp.org>
19472
19473         Override open more carefully.
19474         * lib/open.c (orig_open): New function.
19475         (rpl_open): Use orig_open instead of open.
19476         * lib/fcntl.in.h: Add special invocation convention.
19477         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
19478         (gl_FUNC_OPEN): Invoke it.
19479
19480         Override freopen more carefully.
19481         * lib/freopen.c (orig_freopen): New function.
19482         (rpl_freopen): Use orig_freopen instead of freopen.
19483         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
19484         (gl_FUNC_FREOPEN): Invoke it.
19485
19486         Override fopen more carefully.
19487         * lib/fopen.c (orig_fopen): New function.
19488         (rpl_fopen): Use orig_fopen instead of fopen.
19489         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
19490         (gl_FUNC_FOPEN): Invoke it.
19491         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
19492
19493 2008-09-28  Bruno Haible  <bruno@clisp.org>
19494
19495         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
19496         SIGPIPE.
19497
19498 2008-09-28  Bruno Haible  <bruno@clisp.org>
19499
19500         * tests/test-sigaction.c (handler, main): Disable the check whether
19501         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
19502         glibc systems with LinuxThreads.
19503
19504 2008-09-28  Bruno Haible  <bruno@clisp.org>
19505
19506         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
19507
19508         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
19509         with AIX xlc.
19510         * lib/fcntl.in.h (open): Likewise.
19511         Reported by Rainer Tammer <tammer@tammer.net>.
19512
19513 2008-09-28  Bruno Haible  <bruno@clisp.org>
19514
19515         * modules/posix_spawnp-tests: New file.
19516         * tests/test-posix_spawn.c: New file.
19517         * tests/test-posix_spawn.in.sh: New file.
19518
19519         New module 'posix_spawnp'.
19520         * modules/posix_spawnp: New file.
19521         * lib/spawnp.c: New file, from GNU libc with modifications.
19522         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
19523
19524         New module 'posix_spawn'.
19525         * modules/posix_spawn: New file.
19526         * lib/spawn.c: New file, from GNU libc with modifications.
19527         * doc/posix-functions/posix_spawn.texi: Mention the new module.
19528
19529         New module 'posix_spawnattr_destroy'.
19530         * modules/posix_spawnattr_destroy: New file.
19531         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
19532         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
19533         module.
19534
19535         New module 'posix_spawnattr_setsigmask'.
19536         * modules/posix_spawnattr_setsigmask: New file.
19537         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
19538         modifications.
19539         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
19540         new module.
19541
19542         New module 'posix_spawnattr_getsigmask'.
19543         * modules/posix_spawnattr_getsigmask: New file.
19544         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
19545         modifications.
19546         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
19547         new module.
19548
19549         New module 'posix_spawnattr_setsigdefault'.
19550         * modules/posix_spawnattr_setsigdefault: New file.
19551         * lib/spawnattr_setdefault.c: New file, from GNU libc with
19552         modifications.
19553         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
19554         new module.
19555
19556         New module 'posix_spawnattr_getsigdefault'.
19557         * modules/posix_spawnattr_getsigdefault: New file.
19558         * lib/spawnattr_getdefault.c: New file, from GNU libc with
19559         modifications.
19560         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
19561         new module.
19562
19563         New module 'posix_spawnattr_setschedpolicy'.
19564         * modules/posix_spawnattr_setschedpolicy: New file.
19565         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
19566         modifications.
19567         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
19568         new module.
19569
19570         New module 'posix_spawnattr_getschedpolicy'.
19571         * modules/posix_spawnattr_getschedpolicy: New file.
19572         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
19573         modifications.
19574         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
19575         new module.
19576
19577         New module 'posix_spawnattr_setschedparam'.
19578         * modules/posix_spawnattr_setschedparam: New file.
19579         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
19580         modifications.
19581         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
19582         new module.
19583
19584         New module 'posix_spawnattr_getschedparam'.
19585         * modules/posix_spawnattr_getschedparam: New file.
19586         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
19587         modifications.
19588         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
19589         new module.
19590
19591         New module 'posix_spawnattr_setpgroup'.
19592         * modules/posix_spawnattr_setpgroup: New file.
19593         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
19594         modifications.
19595         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
19596         module.
19597
19598         New module 'posix_spawnattr_getpgroup'.
19599         * modules/posix_spawnattr_getpgroup: New file.
19600         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
19601         modifications.
19602         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
19603         module.
19604
19605         New module 'posix_spawnattr_setflags'.
19606         * modules/posix_spawnattr_setflags: New file.
19607         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
19608         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
19609         module.
19610
19611         New module 'posix_spawnattr_getflags'.
19612         * modules/posix_spawnattr_getflags: New file.
19613         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
19614         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
19615         module.
19616
19617         New module 'posix_spawnattr_init'.
19618         * modules/posix_spawnattr_init: New file.
19619         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
19620         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
19621         module.
19622
19623         New module 'posix_spawn_file_actions_destroy'.
19624         * modules/posix_spawn_file_actions_destroy: New file.
19625         * lib/spawn_faction_destroy.c: New file, from GNU libc with
19626         modifications.
19627         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
19628         the new module.
19629
19630         New module 'posix_spawn_file_actions_addopen'.
19631         * modules/posix_spawn_file_actions_addopen: New file.
19632         * lib/spawn_faction_addopen.c: New file, from GNU libc with
19633         modifications.
19634         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
19635         the new module.
19636
19637         New module 'posix_spawn_file_actions_adddup2'.
19638         * modules/posix_spawn_file_actions_adddup2: New file.
19639         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
19640         modifications.
19641         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
19642         the new module.
19643
19644         New module 'posix_spawn_file_actions_addclose'.
19645         * modules/posix_spawn_file_actions_addclose: New file.
19646         * lib/spawn_faction_addclose.c: New file, from GNU libc with
19647         modifications.
19648         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
19649         the new module.
19650
19651         New module 'posix_spawn_file_actions_init'.
19652         * modules/posix_spawn_file_actions_init: New file.
19653         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
19654         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
19655         new module.
19656
19657         New module 'posix_spawn-internal'.
19658         * modules/posix_spawn-internal: New file.
19659         * lib/spawn_int.h: New file, from GNU libc with modifications.
19660         * lib/spawni.c: New file, from GNU libc with modifications.
19661         * m4/posix_spawn.m4: New file.
19662
19663         New module 'spawn'.
19664         * modules/spawn: New file.
19665         * lib/spawn.in.h: New file, from GNU libc with modifications.
19666         * m4/spawn_h.m4: New file.
19667         * doc/posix-headers/spawn.texi: Mention the new module.
19668
19669 2008-09-28  Bruno Haible  <bruno@clisp.org>
19670
19671         * modules/sched-tests: New file.
19672         * tests/test-sched.c: New file.
19673
19674         New module 'sched'.
19675         * modules/sched: New file.
19676         * lib/sched.in.h: New file.
19677         * m4/sched_h.m4: New file.
19678         * doc/posix-headers/sched.texi: Mention the new module.
19679
19680 2008-09-27  Eric Blake  <ebb9@byu.net>
19681
19682         Fix previous patch, and tweak references to $0.
19683         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
19684         (func_version, func_gnulib_dir): Don't call this program
19685         gnulib-tool.
19686         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
19687         with using $0 in function.
19688         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
19689         (func_fatal_error): Reuse the name the user invoked us with.
19690
19691 2008-09-27  Bruno Haible  <bruno@clisp.org>
19692
19693         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
19694         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
19695         (gl_ICONV_H): Not here.
19696         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19697         instead of assigning ICONV_H directly.
19698
19699         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
19700         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
19701         WCHAR_H directly.
19702
19703 2008-09-27  Bruno Haible  <bruno@clisp.org>
19704
19705         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
19706         * modules/arpa_inet (Depends-on): Add link-warning.
19707         (Makefile.am): Insert the definition of GL_LINK-WARNING.
19708         * modules/unistd (Makefile.am): Likewise.
19709
19710 2008-09-26  Bruno Haible  <bruno@clisp.org>
19711
19712         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
19713         variables.
19714         (func_version): Essentially copied from gnulib-tool.
19715         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
19716         func_readlink): Copied from gnulib-tool.
19717
19718 2008-09-26  Bruno Haible  <bruno@clisp.org>
19719
19720         * gnulib-tool (func_version): Change directory to $gnulib_dir before
19721         invoking git-version-gen.
19722
19723 2008-09-26  Bruno Haible  <bruno@clisp.org>
19724
19725         * posix-modules: Update to directory names changed on 2008-01-19.
19726         Remove commas in output before splitting into words. No more need to
19727         avoid 'ftruncate' since 2007-02-19.
19728
19729 2008-09-26  Bruno Haible  <bruno@clisp.org>
19730
19731         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
19732
19733 2008-09-26  Bruno Haible  <bruno@clisp.org>
19734
19735         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
19736         * modules/fwriteerror (Depends-on): Add errno.
19737
19738 2008-09-26  Bruno Haible  <bruno@clisp.org>
19739
19740         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
19741         * tests/test-vc-list-files-cvs.sh: Likewise.
19742
19743 2008-09-26  Bruno Haible  <bruno@clisp.org>
19744
19745         * doc/posix-headers/sys_resource.texi: Reorder items.
19746
19747 2008-09-26  Jim Meyering  <meyering@redhat.com>
19748
19749         fts: tweak inode comparison function
19750         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
19751         inode numbers, as documented.
19752
19753         fts: sort dirent entries on inode number before traversing
19754         This avoids a quadratic, seek-related performance penalty when
19755         operating on a directory containing many entries (measurable at 10k;
19756         3.5 hours at 2 million entries with a cold cache) on certain types
19757         of file systems, including ext3 and ext4, but not tmpfs.
19758         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
19759         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
19760         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
19761         (fs_handles_readdir_ordered_dirents_efficiently): New function.
19762         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
19763         (fts_build): Set the stat.st_ino member from D_INO.
19764         If it is likely to be useful, sort dirent entries on inode number.
19765
19766         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
19767         and the struct statfs.f_type member.
19768         * modules/fts (Depends-on): Add d-ino.
19769
19770 2008-09-26  Bruno Haible  <bruno@clisp.org>
19771
19772         * modules/sigpipe-die (Depends-on): Add sigpipe.
19773
19774         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
19775         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
19776         and GNULIB_STDIO_H_SIGPIPE are set.
19777         * lib/stdio-write.c: New file.
19778         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
19779         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19780         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19781         REPLACE_STDIO_WRITE_FUNCS.
19782         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
19783         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19784         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19785         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19786         * modules/stdio (Files): Add lib/stdio-write.c.
19787         (Makefile.am): Substitute 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         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
19792         REPLACE_FPRINTF_POSIX.
19793         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
19794         REPLACE_PRINTF_POSIX.
19795         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
19796         REPLACE_VFPRINTF_POSIX.
19797         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
19798         REPLACE_VPRINTF_POSIX.
19799         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
19800         SIGPIPE issue.
19801         * doc/posix-functions/fputc.texi: Likewise.
19802         * doc/posix-functions/fputs.texi: Likewise.
19803         * doc/posix-functions/fwrite.texi: Likewise.
19804         * doc/posix-functions/printf.texi: Likewise.
19805         * doc/posix-functions/putc.texi: Likewise.
19806         * doc/posix-functions/putchar.texi: Likewise.
19807         * doc/posix-functions/puts.texi: Likewise.
19808         * doc/posix-functions/vfprintf.texi: Likewise.
19809         * doc/posix-functions/vprintf.texi: Likewise.
19810
19811         * modules/safe-write (Depends-on): Add write.
19812
19813         * modules/sigpipe-tests: New file.
19814         * tests/test-sigpipe.c: New file.
19815         * tests/test-sigpipe.sh: New file.
19816
19817         * modules/write: New file.
19818         * lib/unistd.in.h: Include <sys/types.h>.
19819         (write): New declaration.
19820         * lib/write.c: New file.
19821         * m4/write.m4: New file.
19822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19823         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
19824         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
19825         GNULIB_WRITE, REPLACE_WRITE.
19826         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
19827         and the SIGPIPE issue.
19828
19829         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
19830         (raise): New declaration.
19831         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
19832         (ext_signal): New function.
19833         (rpl_raise): New function.
19834         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
19835         GNULIB_SIGNAL_H_SIGPIPE.
19836         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
19837         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
19838
19839         * modules/sigpipe: New file.
19840         * m4/sigpipe.m4: New file.
19841
19842 2008-09-25  Derek Price  <derek@ximbiot.com>
19843             Bruno Haible  <bruno@clisp.org>
19844
19845         * gnulib-tool (func_import): Report all license incompatibilities, not
19846         just the first one.
19847
19848 2008-09-25  Bruno Haible  <bruno@clisp.org>
19849
19850         * gnulib-tool (func_import): When computing the edits, consider not
19851         only the Makefile.ams that exist but also those that will be generated.
19852
19853 2008-09-25  Simon Josefsson  <simon@josefsson.org>
19854
19855         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
19856         fixes gnulib-tool --test warning about duplicate dependency.
19857
19858 2008-09-25  Bruno Haible  <bruno@clisp.org>
19859
19860         * gnulib-tool: Don't ask the user to perform edits in the generated
19861         Makefile.ams.
19862         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
19863         apply to the Makefile.am being generated.
19864         (func_emit_tests_Makefile_am): Execute edits that apply to the
19865         Makefile.am being generated.
19866         (func_import): Setup list of Makefile.am edits before emitting the
19867         Makefile.ams, not at the end.
19868         (func_create_testdir): Update.
19869         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19870
19871 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19872
19873         * gnulib-tool (func_import): Store the --tests-base option in the
19874         comment in gnulib-cache.m4.
19875
19876 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
19877
19878         * NEWS: Document increased portability that sys_select now provides.
19879
19880         * lib/sys_select.in.h: Install select wrapper.
19881         * lib/sys_socket.in.h: Use more descriptive name when there is no
19882         select wrapper.
19883         * lib/winsock-select.c: New.
19884         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
19885         Require gl_HEADER_SYS_SOCKET.
19886         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
19887         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
19888         * tests/test-sys_select.c: Add functional tests.
19889
19890 2008-09-24  Eric Blake  <ebb9@byu.net>
19891
19892         open, fopen: close fd leak in last patch
19893         * lib/open.c (rpl_open): Close fd before returning error.
19894         * lib/fopen.c (rpl_fopen): Close fd before returning error.
19895         * doc/posix-functions/open.texi (open): Document that Irix also
19896         has the bug.
19897         * doc/posix-functions/fopen.texi (fopen): Likewise.
19898         Reported by Paolo Bonzini.
19899
19900 2008-09-24  Bruno Haible  <bruno@clisp.org>
19901
19902         Ensure that a filename ending in a slash cannot be used to access a
19903         non-directory.
19904         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
19905         to check whether it's really a directory.
19906         * lib/fopen.c: Include fcntl.h, unistd.h.
19907         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
19908         and fdopen().
19909         * modules/fopen (Depends-on): Add unistd.
19910         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
19911         * tests/test-fopen.c (main): Likewise.
19912         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
19913         * doc/posix-functions/fopen.texi: Likewise.
19914         Reported by Eric Blake.
19915
19916 2008-09-23  Eric Blake  <ebb9@byu.net>
19917
19918         c-stack: avoid compiler optimizations when provoking overflow
19919         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
19920         recursion harder to optimize, to ensure a stack overflow occurs.
19921         * tests/test-c-stack.c (recurse): Likewise.
19922         Borrowed from libsigsegv.
19923
19924         c-stack: work around Irix sigaltstack bug
19925         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
19926         whether sigaltstack uses wrong end of stack_t (copied in part from
19927         libsigsegv).
19928         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
19929         Irix bug, without requiring an over-allocation.
19930         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
19931         bug.
19932
19933         fopen: document mingw bug on directories
19934         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
19935         not allowing a stream visiting a directory, even though reading
19936         from such a stream is not portable.
19937
19938 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19939
19940         * lib/poll.c: Rewrite.
19941         * modules/poll: Depend on alloca.
19942
19943 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19944
19945         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
19946         instead define prototypes for a full set of wrappers.  Ensure
19947         that Cygwin does not use the compatibility code, which is only
19948         for MinGW.
19949         * lib/winsock.c: New.
19950         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
19951         * modules/sys_socket: Add lib/winsock.c.
19952
19953         * modules/poll-tests: Add errno and perror.
19954         * tests/test-poll.c: Use ioctl, not ioctlsocket.
19955
19956 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19957
19958         * tests/test-poll.c: Downgrade minimum needed Winsock version.
19959
19960 2008-09-23  Bruno Haible  <bruno@clisp.org>
19961
19962         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
19963         * doc/glibc-functions/*: Likewise.
19964
19965 2008-09-23  Simon Josefsson  <simon@josefsson.org>
19966
19967         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
19968         success.
19969
19970 2008-09-22  Eric Blake  <ebb9@byu.net>
19971             Bruno Haible  <bruno@clisp.org>
19972
19973         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
19974         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
19975         supply %A but mishandle pseudo-NaN.
19976         Reported by Simon Josefsson.
19977
19978 2008-09-21  Bruno Haible  <bruno@clisp.org>
19979
19980         * tests/test-lock.c (main): Tweak skip message.
19981         * tests/test-tls.c (main): Likewise.
19982
19983 2008-09-21  Bruno Haible  <bruno@clisp.org>
19984
19985         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
19986         whether 'struct sigaction' has sa_sigaction here...
19987         (gl_PREREQ_SIG_HANDLER_H): ... not here.
19988         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
19989
19990 2008-09-21  Bruno Haible  <bruno@clisp.org>
19991
19992         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
19993         section.
19994         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
19995         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
19996         the new section.
19997         (Support for obsolete systems lacking POSIX:2001): New section.
19998         (String handling <string.h>): Move strdup to the new section.
19999         Suggested by Simon Josefsson and Paolo Bonzini.
20000
20001 2008-09-21  Bruno Haible  <bruno@clisp.org>
20002
20003         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20004         exponents in %e and %g results on 'long double'. Needed for mingw's
20005         improved *printf functions.
20006         * tests/test-vasprintf-posix.c (test_function): Likewise.
20007         * tests/test-snprintf-posix.h (test_function): Likewise.
20008         * tests/test-sprintf-posix.h (test_function): Likewise.
20009         Reported by Eric Blake.
20010
20011 2008-09-21  Bruno Haible  <bruno@clisp.org>
20012
20013         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20014         * tests/test-sprintf-posix.h (test_function): Likewise.
20015
20016 2008-09-21  Bruno Haible  <bruno@clisp.org>
20017
20018         * modules/getpass (Depends-on): Add strdup-posix.
20019
20020         New module 'strdup-posix'.
20021         * modules/strdup-posix: New file.
20022         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20023         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20025         REPLACE_STRDUP.
20026         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20027         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20028         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20029         strdup-posix.
20030
20031         * modules/strdup (Depends-on): Remove malloc-posix.
20032
20033 2008-09-20  Bruno Haible  <bruno@clisp.org>
20034
20035         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20036         Wildenhues.
20037
20038 2008-09-20  Bruno Haible  <bruno@clisp.org>
20039
20040         Ensure that wint_t gets defined on IRIX 5.3.
20041         * lib/wchar.in.h (wint_t): Define if not defined by the system.
20042         * lib/wctype.in.h (wint_t): Likewise.
20043         (__wctype_wint_t): Remove type.
20044         (isw*): Use wint_t instead of __wctype_wint_t.
20045         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20046         * modules/wchar (Files): Add m4/wint_t.m4.
20047         (Makefile.am): Substitute HAVE_WINT_T.
20048         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20049         * tests/test-wctype.c: Check that wint_t is defined.
20050         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20051         * doc/posix-headers/wctype.texi: Likewise.
20052         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20053
20054 2008-09-18  Bruno Haible  <bruno@clisp.org>
20055
20056         * gnulib-tool (func_exit): Update comment.
20057
20058 2008-09-18  Simon Josefsson  <simon@josefsson.org>
20059
20060         * modules/getaddrinfo (Depends-on): Remove strdup, this module
20061         assumes strdup exists and does not depend on strdup to return
20062         ENOMEM on out of memory conditions.
20063
20064 2008-09-18  Bruno Haible  <bruno@clisp.org>
20065
20066         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
20067         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20068         digits for the exponent.
20069
20070 2008-09-18  Jim Meyering  <meyering@redhat.com>
20071             Bruno Haible  <bruno@clisp.org>
20072
20073         * lib/vasnprintf.c (decimal_point_char): Define also if
20074         NEED_PRINTF_INFINITE_LONG_DOUBLE.
20075
20076 2008-09-16  Bruno Haible  <bruno@clisp.org>
20077         and Eric Blake  <ebb9@byu.net>
20078
20079         vasnprintf: support Irix 5.3
20080         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20081         that mishandle long double infinity.
20082         Reported by Tom G. Christensen.
20083
20084 2008-09-16  Bruno Haible  <bruno@clisp.org>
20085
20086         * doc/glibc-functions/scandir.texi: Mention the function is missing on
20087         Solaris 9.
20088         * doc/glibc-functions/alphasort.texi: Likewise.
20089         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20090
20091 2008-09-16  Jim Meyering  <meyering@redhat.com>
20092
20093         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20094         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20095         a umask modification leak out of a subshell.  Otherwise, the
20096         opensolaris /bin/sh would be accepted and thus cause unwarranted
20097         failures in the coreutils test suite.
20098
20099 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
20100
20101         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20102         to succeed.
20103
20104 2008-09-16  Jim Meyering  <meyering@redhat.com>
20105
20106         avoid spurious test failure when library is built without ACL support
20107         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20108         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20109         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20110         * tests/test-copy-acl.sh: Likewise.
20111
20112 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20113
20114         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20115         based on character occurrence counts.
20116
20117 2008-09-15  Eric Blake  <ebb9@byu.net>
20118
20119         tests: avoid some compiler warnings
20120         * tests/test-memchr.c (main): Pass NULL indirectly.
20121         * tests/test-closein.c (main): Avoid unused variable.
20122
20123 2008-09-15  Bruno Haible  <bruno@clisp.org>
20124
20125         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20126         are missing on OpenBSD 4.0 individually.
20127         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20128
20129 2008-09-15  Bruno Haible  <bruno@clisp.org>
20130
20131         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20132         * doc/posix-functions/strerror.texi: Mention also Cygwin.
20133         * doc/posix-functions/perror.texi: Likewise.
20134         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20135         is missing.
20136         Reported by Eric Blake.
20137
20138         * lib/errno.in.h: Use replacement values >= 2000.
20139         Reported by Eric Blake.
20140
20141 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20142
20143         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20144         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20145         limit.
20146         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20147         compareseq was aborted.
20148
20149 2008-09-14  Bruno Haible  <bruno@clisp.org>
20150
20151         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20152         yvec_edit_count.
20153         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20154         (fstrcmp_bounded): Simplify result computation accordingly.
20155
20156 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20157
20158         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20159         (fstrcmp): Define in terms of fstrcmp_bounded.
20160         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20161         lower_bound argument.
20162         Return quickly if the result is certainly < lower_bound.
20163         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20164
20165 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20166
20167         * lib/diffseq.h (EARLY_ABORT): New macro.
20168         (compareseq): Change return type to bool. Return true when EARLY_ABORT
20169         evaluates to true.
20170
20171 2008-09-14  Bruno Haible  <bruno@clisp.org>
20172
20173         * modules/perror-tests: New file.
20174         * tests/test-perror.sh: New file.
20175         * tests/test-perror.c: New file.
20176
20177         New module 'perror'.
20178         * lib/stdio.in.h (perror): New declaration.
20179         * lib/perror.c: New file.
20180         * m4/perror.m4: New file.
20181         * modules/perror: New file.
20182         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20183         * doc/posix-functions/perror.texi: Mention the perror module.
20184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20185         REPLACE_PERROR.
20186         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20187         REPLACE_PERROR.
20188
20189 2008-09-14  Bruno Haible  <bruno@clisp.org>
20190
20191         * modules/stdio (Makefile.am): Reorder to match the order in
20192         lib/stdio.in.h.
20193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20194
20195 2008-09-13  Bruno Haible  <bruno@clisp.org>
20196
20197         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20198
20199 2008-09-13  Bruno Haible  <bruno@clisp.org>
20200
20201         Extend strerror to cover the added errno values.
20202         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20203         (rpl_strerror): Provide error messages for the added errno values and
20204         for the WSA* values.
20205         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20206         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20207         strerror.
20208         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20209         * modules/strerror (Depends-on): Add errno.
20210         * doc/posix-functions/strerror.texi: Document the change.
20211         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20212         and EOVERFLOW.
20213
20214 2008-09-13  Bruno Haible  <bruno@clisp.org>
20215
20216         * modules/EOVERFLOW: Remove file.
20217         * m4/eoverflow.m4: Remove file.
20218         * modules/EOVERFLOW-tests: Remove file.
20219         * tests/test-EOVERFLOW.c: Remove file.
20220         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20221         * modules/ftell (Depends-on): Likewise.
20222         * modules/getdelim (Depends-on): Likewise.
20223         * modules/getugroups (Depends-on): Likewise.
20224         * modules/poll (Depends-on): Likewise.
20225         * modules/snprintf (Depends-on): Likewise.
20226         * modules/sprintf-posix (Depends-on): Likewise.
20227         * modules/vasnprintf (Depends-on): Likewise.
20228         * modules/vasprintf (Depends-on): Likewise.
20229         * modules/vfprintf-posix (Depends-on): Likewise.
20230         * modules/vsnprintf (Depends-on): Likewise.
20231         * modules/vsprintf-posix (Depends-on): Likewise.
20232         * modules/xvasprintf (Depends-on): Likewise.
20233         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20234         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20235         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20236         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20237         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20238         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20239         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20240         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20241         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20242         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20243         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20244         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20245         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20246         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20247         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20248         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20249         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20250         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20251         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20252         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20253         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20254         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20255         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20256         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20257         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20258         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20259         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20260         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20261         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20262         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20263         * MODULES.html.sh: Remove EOVERFLOW.
20264         * NEWS: Mention the change.
20265
20266 2008-09-13  Bruno Haible  <bruno@clisp.org>
20267
20268         * modules/errno-tests: New file.
20269         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20270
20271         * lib/errno.in.h: New file.
20272         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20273         * modules/errno: New file.
20274         * doc/posix-headers/errno.texi: Update documentation.
20275         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20276
20277 2008-09-13  Bruno Haible  <bruno@clisp.org>
20278
20279         * tests/test-poll.c: Use #if for native Windows, rather than testing
20280         __MSVCRT__.
20281
20282 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20283             Bruno Haible  <bruno@clisp.org>
20284
20285         * lib/glob.c: Don't include <pwd.h> on native Windows.
20286         (WINDOWS32): New macro.
20287         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20288
20289 2008-09-13  Bruno Haible  <bruno@clisp.org>
20290
20291         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
20292         (ETIMEDOUT): Remove macro.
20293         (glthread_cond_timedwait_multithreaded): New declaration.
20294         (glthread_cond_timedwait): Use it.
20295         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
20296         (glthread_cond_timedwait_multithreaded): New function.
20297
20298 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20299
20300         * modules/poll-tests: Do not check for io.h.
20301         * tests/test-poll.c: Check for __MSVCRT__ instead.
20302
20303 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20304
20305         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
20306         * modules/poll-tests: Add inet_pton, stdbool, sockets.
20307         * tests/test-poll.c: Use them.  Use _pipe on Windows.
20308
20309 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20310
20311         * modules/poll-tests: New.
20312         * tests/test-poll.c: New.
20313
20314 2008-09-12  Eric Blake  <ebb9@byu.net>
20315
20316         frexp: test for NetBSD failure on -0.0
20317         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
20318         not all, bugs from NetBSD 3.0 have been fixed.
20319         * doc/posix-functions/frexp.texi (frexp): Document bug.
20320         Reported by Thomas Klausner.
20321
20322         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
20323         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
20324         literal -0.0.
20325         Reported by Jonathan C. Patschke <jp@centtech.com>.
20326
20327 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20328
20329         * lib/glthread/cond.h: Use dummy implementation also if
20330         USE_WIN32_THREADS.
20331
20332 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20333
20334         * modules/fnmatch-posix (License): Change to LGPLv2+.
20335         * modules/fnmatch-gnu (License): Likewise.
20336
20337 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20338
20339         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
20340
20341 2008-09-11  Jim Meyering  <meyering@redhat.com>
20342
20343         * users.txt: Add gtk-vnc.
20344
20345 2008-09-08  Simon Josefsson  <simon@josefsson.org>
20346
20347         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
20348         rotate amounts.
20349
20350         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
20351         required for 16-bit and 8-bit rotates.
20352         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
20353         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
20354         UINT8_MAX instead of hard-coded constants.
20355         Suggested by Paul Eggert.
20356
20357 2008-09-07  Bruno Haible  <bruno@clisp.org>
20358
20359         * tests/test-striconveh.c (main): Check behaviour when converting from
20360         UTF-7.
20361
20362         Make striconveh work better with stateful encodings.
20363         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
20364         that iconv does not increment the inptr when returning -1/EINVAL.
20365
20366 2008-09-07  Bruno Haible  <bruno@clisp.org>
20367
20368         * build-aux/config.rpath: Update according to libtool-2.2.6.
20369         * build-aux/config.libpath: Likewise.
20370
20371 2008-09-06  Bruno Haible  <bruno@clisp.org>
20372
20373         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
20374         * lib/freadptr.c (freadptr): Likewise.
20375         * lib/freadseek.c (freadptrinc): Likewise.
20376         Reported by Simon Josefsson.
20377
20378 2008-09-06  Bruno Haible  <bruno@clisp.org>
20379
20380         * modules/freadptr (License): Change to LGPLv2+.
20381         * modules/freadseek (License): Likewise.
20382         Suggested by Eric Blake.
20383
20384         * modules/memchr2 (License): Change to LGPLv2+.
20385         Approved by Eric Blake.
20386
20387 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20388             Bruno Haible  <bruno@clisp.org>
20389
20390         Make gnulib-tool work with native 'sed' on AIX.
20391         * gnulib-tool (sed_noop): New variable.
20392         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
20393         func_add_or_update, func_create_testdir): Use it to initialize sed
20394         script variables.
20395         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20396
20397 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
20398             Bruno Haible  <bruno@clisp.org>
20399
20400         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
20401         also works after #include directives.
20402
20403 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
20404
20405         getdate.y: reject an out-of-range timezone value
20406         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
20407         the range [-24...+24].  When specified with only one or two digits,
20408         * tests/test-getdate.c: Tests for the fix.
20409         * doc/getdate.texi: Document this change.
20410
20411 2008-09-03  Bruno Haible  <bruno@clisp.org>
20412
20413         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
20414
20415 2008-09-02  Simon Josefsson  <simon@josefsson.org>
20416
20417         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
20418         <bruce.korb@gmail.com> with ideas from Ben Pfaff
20419         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
20420         Blake <ebb9@byu.net>.
20421
20422         * tests/test-bitrotate.c: Add more test vectors.
20423
20424 2008-09-02  Eric Blake  <ebb9@byu.net>
20425
20426         vasnprintf-posix: handle large precision via %.*d
20427         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
20428         when handling it ourselves.
20429         * tests/test-vasnprintf-posix.c (test_function): Add test.
20430         * tests/test-snprintf-posix.h (test_function): Likewise.
20431         * tests/test-sprintf-posix.h (test_function): Likewise.
20432         * tests/test-vasprintf-posix.c (test_function): Likewise.
20433         Reported by Alain Guibert.
20434
20435 2008-09-01  Eric Blake  <ebb9@byu.net>
20436
20437         c-stack: make configure-time check more robust
20438         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
20439         successful sigaction call.
20440         Reported by Tom G. Christensen.
20441
20442 2008-09-01  Bruno Haible  <bruno@clisp.org>
20443
20444         New module 'findprog-lgpl'.
20445         * modules/findprog-lgpl: New file.
20446         * lib/findprog-lgpl.c: New file.
20447         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
20448         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
20449         to decide whether to use strdup or xstrdup, concatenated_filename or
20450         xconcatenated_filename.
20451
20452 2008-09-01  Bruno Haible  <bruno@clisp.org>
20453
20454         Split module 'concat-filename' into 'concat-filename' (LGPL) and
20455         'xconcat-filename' (GPL).
20456         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
20457         (License): Change to LGPLv2+.
20458         * modules/xconcat-filename: New file.
20459         * lib/concat-filename.h (concatenated_filename): Change specification.
20460         (xconcatenated_filename): New declaration.
20461         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
20462         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
20463         memory situations.
20464         * lib/xconcat-filename.c: New file.
20465         * NEWS: Mention the change.
20466         * lib/findprog.c: Include concat-filename.h, not filename.h.
20467         (find_in_path): Use xconcatenated_filename instead of
20468         concatenated_filename.
20469         * lib/javacomp.c: Include concat-filename.h, not filename.h.
20470         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
20471         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
20472         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
20473         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
20474         instead of concatenated_filename.
20475         * lib/javaexec.c: Include concat-filename.h, not filename.h.
20476         (execute_java_class): Use xconcatenated_filename instead of
20477         concatenated_filename.
20478         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
20479         * modules/javacomp (Depends-on): Likewise.
20480         * modules/javaexec (Depends-on): Likewise.
20481
20482 2008-09-01  Bruno Haible  <bruno@clisp.org>
20483
20484         Split module 'filename' into 'filename' and 'concat-filename'.
20485         * modules/filename: Keep only lib/filename.h.
20486         (License): Change to LGPLv2+.
20487         * modules/concat-filename: New file, extracted from modules/filename.
20488         * lib/filename.h (concatenated_filename): Remove declaration.
20489         * lib/concat-filename.h: New file, extracted from lib/filename.h.
20490         * lib/concat-filename.c: Include concat-filename.h.
20491         * NEWS: Mention the change.
20492
20493 2008-09-01  Simon Josefsson  <simon@josefsson.org>
20494
20495         * lib/bitrotate.h (rotl8, rotr8): Add.
20496
20497         * modules/bitrotate (configure.ac): Need
20498         AC_REQUIRE([AC_C_INLINE]).
20499         (Description): Mention stdint.h.  Reported by Bruno Haible
20500         <bruno@clisp.org>.
20501
20502         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
20503         Paolo Bonzini <bonzini@gnu.org>.
20504
20505 2008-08-31  Bruno Haible  <bruno@clisp.org>
20506
20507         Assume Solaris specific bi-arch conventions on Solaris systems.
20508         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
20509         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
20510         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
20511         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
20512         like acl_libdirstem.
20513         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
20514         acl_libdirstem.
20515         * NEWS: Mention the change.
20516         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
20517
20518 2008-08-31  Jim Meyering  <meyering@redhat.com>
20519
20520         * lib/strftime.h: Add comments describing the two added arguments.
20521
20522         remove duplicate #include directives
20523         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
20524         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
20525
20526 2008-08-31  Bruno Haible  <bruno@clisp.org>
20527
20528         New module 'sigpipe-die'.
20529         * modules/sigpipe-die: New file.
20530         * lib/sigpipe-die.h: New file.
20531         * lib/sigpipe-die.c: New file.
20532         * MODULES.html.sh (Signal handling): Add sigpipe-die.
20533
20534 2008-08-31  Bruno Haible  <bruno@clisp.org>
20535
20536         Don't override previously installed signal handlers.
20537         * lib/fatal-signal.c (saved_sigactions): New variable.
20538         (uninstall_handlers): Reset the signal to the saved handler, not
20539         to SIG_DFL (except when ignored).
20540         (install_handlers): Save the previous handlers.
20541
20542 2008-08-30  Bruno Haible  <bruno@clisp.org>
20543
20544         * gnulib-tool (func_reset_sigpipe): New function.
20545         (func_get_automake_snippet, func_modules_transitive_closure,
20546         func_import): Invoke it before a join command that reads from stdin,
20547         to avoid "echo: write error: Broken pipe" error messages on stderr.
20548         Reported by Sam Steingold <sds@gnu.org>.
20549
20550 2008-08-30  Bruno Haible  <bruno@clisp.org>
20551
20552         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
20553         Code copied from m4/open.m4.
20554         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
20555         access and the filename ends in a slash. Code copied from lib/open.c.
20556         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
20557         * tests/test-fopen.c (main): Check against bug with trailing slash.
20558
20559 2008-08-29  Bruno Haible  <bruno@clisp.org>
20560
20561         Avoid some "gcc -pedantic" warnings.
20562         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
20563         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
20564         * lib/dirent.in.h: Likewise.
20565         * lib/fcntl.in.h: Likewise.
20566         * lib/float.in.h: Likewise.
20567         * lib/iconv.in.h: Likewise.
20568         * lib/inttypes.in.h: Likewise.
20569         * lib/locale.in.h: Likewise.
20570         * lib/math.in.h: Likewise.
20571         * lib/netinet_in.in.h: Likewise.
20572         * lib/search.in.h: Likewise.
20573         * lib/signal.in.h: Likewise.
20574         * lib/stdarg.in.h: Likewise.
20575         * lib/stdint.in.h: Likewise.
20576         * lib/stdio.in.h: Likewise.
20577         * lib/stdlib.in.h: Likewise.
20578         * lib/string.in.h: Likewise.
20579         * lib/strings.in.h: Likewise.
20580         * lib/sys_select.in.h: Likewise.
20581         * lib/sys_socket.in.h: Likewise.
20582         * lib/sys_stat.in.h: Likewise.
20583         * lib/sys_time.in.h: Likewise.
20584         * lib/sysexits.in.h: Likewise.
20585         * lib/time.in.h: Likewise.
20586         * lib/unistd.in.h: Likewise.
20587         * lib/wchar.in.h: Likewise.
20588         * lib/wctype.in.h: Likewise.
20589         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
20590         * modules/fchdir (Makefile.am): Likewise.
20591         * modules/fcntl (Makefile.am): Likewise.
20592         * modules/float (Makefile.am): Likewise.
20593         * modules/iconv_open (Makefile.am): Likewise.
20594         * modules/inttypes (Makefile.am): Likewise.
20595         * modules/locale (Makefile.am): Likewise.
20596         * modules/math (Makefile.am): Likewise.
20597         * modules/netinet_in (Makefile.am): Likewise.
20598         * modules/search (Makefile.am): Likewise.
20599         * modules/signal (Makefile.am): Likewise.
20600         * modules/stdarg (Makefile.am): Likewise.
20601         * modules/stdint (Makefile.am): Likewise.
20602         * modules/stdio (Makefile.am): Likewise.
20603         * modules/stdlib (Makefile.am): Likewise.
20604         * modules/string (Makefile.am): Likewise.
20605         * modules/strings (Makefile.am): Likewise.
20606         * modules/sys_select (Makefile.am): Likewise.
20607         * modules/sys_socket (Makefile.am): Likewise.
20608         * modules/sys_stat (Makefile.am): Likewise.
20609         * modules/sys_time (Makefile.am): Likewise.
20610         * modules/sysexits (Makefile.am): Likewise.
20611         * modules/time (Makefile.am): Likewise.
20612         * modules/unistd (Makefile.am): Likewise.
20613         * modules/wchar (Makefile.am): Likewise.
20614         * modules/wctype (Makefile.am): Likewise.
20615         Reported by Reuben Thomas <rrt@sc3d.org>.
20616
20617 2008-08-29  Bruno Haible  <bruno@clisp.org>
20618
20619         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
20620         any more.
20621
20622 2008-08-29  Simon Josefsson  <simon@josefsson.org>
20623
20624         * MODULES.html.sh (Misc): Add bitrotate.
20625
20626         * modules/bitrotate: New file.
20627
20628         * lib/bitrotate.h: New file.
20629
20630         * modules/bitrotate-tests: New file.
20631
20632         * tests/test-bitrotate.c: New file.
20633
20634         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
20635         on the bitrotate module.
20636
20637         * lib/arctwo.c: Use new bitrotate module.
20638
20639 2008-08-29  Jim Meyering  <meyering@redhat.com>
20640
20641         bootstrap: merge changes from coreutils
20642         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
20643         of copied files.  Remove a kludge, now that this is fixed.
20644         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
20645         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
20646         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
20647
20648 2008-08-29  Bruno Haible  <bruno@clisp.org>
20649
20650         * MODULES.html.sh: Remove --cvs-urls option.
20651
20652 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
20653
20654         maint.mk: adjust to file name change
20655         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
20656
20657 2008-08-28  Jim Meyering  <meyering@redhat.com>
20658
20659         * modules/getndelim2 (License): Relicense to LGPLv2+.
20660         Approved by Richard Stallman for the version of 1995, and by
20661         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
20662
20663 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
20664
20665         * lib/getdelim.c (flockfile, funlockfile): Make all of them
20666         dummy if one is not available.  Do not touch them if
20667         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
20668         (getc_maybe_unlocked): New.
20669         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
20670
20671 2008-08-26  Eric Blake  <ebb9@byu.net>
20672
20673         doc/INSTALL: resync from autoconf
20674         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
20675         (INSTALL_PRELUDE): Delete; this is done more efficiently by
20676         moving...
20677         * install.texi [!autoconf]: ...here.  Resync from autoconf.
20678         * INSTALL: Regenerate.
20679         * INSTALL.ISO: New file.
20680         * INSTALL.UTF-8: Likewise.
20681
20682 2008-08-26  Jim Meyering  <meyering@redhat.com>
20683
20684         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
20685         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
20686         these definitions conditional, so that they may be overridden, too.
20687
20688 2008-08-26  Bruno Haible  <bruno@clisp.org>
20689
20690         Generate INSTALL file variants with prettier quotes.
20691         * doc/Makefile (INSTALL_PRELUDE): New macro.
20692         (INSTALL): Use it.
20693         (INSTALL.ISO, INSTALL.UTF-8): New rules.
20694
20695 2008-08-26  Bruno Haible  <bruno@clisp.org>
20696
20697         Run makeinfo in an English locale.
20698         * doc/Makefile (MAKEINFO): New variable.
20699
20700 2008-08-26  Bruno Haible  <bruno@clisp.org>
20701
20702         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
20703         Suggested by Eric Blake.
20704
20705 2008-08-25  Bruno Haible  <bruno@clisp.org>
20706
20707         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
20708
20709 2008-08-25  Eric Blake  <ebb9@byu.net>
20710
20711         c-stack: test that stack overflow can be caught
20712         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
20713         that platform allows handling stack overflow; at least OS/2 EMX
20714         has sigaltstack, but crashes before transferring control to
20715         handler on stack overflow.
20716         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
20717         check for HAVE_STACK_OVERFLOW_HANDLING.
20718         Reported by Elbert Pol.
20719
20720 2008-08-25  Bruno Haible  <bruno@clisp.org>
20721
20722         * doc/posix-functions/strftime.texi: Fix description of strftime
20723         module.
20724
20725 2008-08-24  Bruno Haible  <bruno@clisp.org>
20726
20727         * tests/uniwidth/test-uc_width2.c: New file.
20728         * tests/uniwidth/test-uc_width2.sh: New file.
20729         * modules/uniwidth/width-tests (Files): Add the new files.
20730         (TESTS): Add uniwidth/test-uc_width2.sh.
20731         (TESTS_ENVIRONMENT): New variable.
20732         (check_PROGRAMS): Add test-uc_width2.
20733         (test_uc_width2_SOURCES): New variable.
20734
20735         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
20736         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
20737         not 0x00AB.
20738         Reported by Alexander V. Lukyanov <lav@netis.ru>.
20739
20740 2008-08-22  Eric Blake  <ebb9@byu.net>
20741
20742         test-lock, test-tls: mention why a test is skipped
20743         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
20744         skipped.
20745         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
20746
20747         count-one-bits: relax license
20748         * modules/count-one-bits (License): Relicense to LGPLv2+.
20749         Suggested by Ludovic Courtès, approved by Ben Pfaff.
20750
20751 2008-08-22  Andreas Schwab  <schwab@suse.de>
20752
20753         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20754         Remove spurious space in assignment.
20755
20756 2008-08-21  Simon Josefsson  <simon@josefsson.org>
20757
20758         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
20759         Paul Eggert <eggert@CS.UCLA.EDU>.
20760
20761 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
20762
20763         * modules/gettext: Add m4/threadlib.m4.
20764
20765 2008-08-19  Eric Blake  <ebb9@byu.net>
20766
20767         test-c-stack: fix compilation failure on FreeBSD 5.0
20768         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
20769         headers before <sys/resource.h>.
20770         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
20771         the bug.
20772         Reported by Nelson H. F. Beebe.
20773
20774         strverscmp: migrate from "strverscmp.h" to <string.h>
20775         * modules/string (Makefile.am): Add new hooks.
20776         * modules/strverscmp (Files): Remove strverscmp.h.
20777         (Depends-on): Add string.
20778         (configure.ac): Add indicator.
20779         (Include): Mention new header.
20780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
20781         defaults.
20782         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
20783         results.
20784         * lib/strverscmp.h: Delete.
20785         * lib/string.in.h (strverscmp): Provide declaration, when needed.
20786         * tests/test-strverscmp.c (includes): Adjust client.
20787         * lib/check-version.c (includes): Likewise.
20788         * NEWS: Document the change.
20789
20790         strverscmp: add unit test
20791         * modules/strverscmp-tests: New file.
20792         * tests/test-strverscmp.c: Likewise.
20793
20794 2008-08-19  Simon Josefsson  <simon@josefsson.org>
20795
20796         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
20797         regarding Windows crypto stuff, from Mono.
20798
20799 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
20800
20801         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
20802         if present, for intel RND.  Return error on failures.
20803
20804 2008-08-18  Ben Pfaff  <blp@gnu.org>
20805
20806         gitlog-to-changelog: give better diagnostic for failed pipe-open
20807         * build-aux/gitlog-to-changelog: Improve error message: suggest
20808         that the version of Git may be too old.
20809
20810 2008-08-18  Simon Josefsson  <simon@josefsson.org>
20811
20812         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
20813         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
20814
20815 2008-08-18  Bruno Haible  <bruno@clisp.org>
20816
20817         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
20818         pthread_in_use().
20819
20820 2008-08-18  Bruno Haible  <bruno@clisp.org>
20821
20822         * lib/glthread/threadlib.c: Include <pthread.h>.
20823
20824 2008-08-18  Bruno Haible  <bruno@clisp.org>
20825
20826         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
20827         glthread_recursive_lock_* macros.
20828         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
20829         Fix syntax error.
20830
20831 2008-08-18  Bruno Haible  <bruno@clisp.org>
20832
20833         * lib/glthread/thread.c: Avoid forcing a context switch right after
20834         thread creation.
20835
20836 2008-08-17  Bruno Haible  <bruno@clisp.org>
20837
20838         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
20839         * lib/glthread/thread.h: Provide Win32 specific implementation.
20840         * modules/thread (Files): Add lib/glthread/thread.c.
20841         (Depends-on): Add lock.
20842         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
20843
20844 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20845
20846         New module 'yield'.
20847         * modules/yield: New file.
20848         * lib/glthread/yield.h: New file.
20849         * m4/yield.m4: New file.
20850         * MODULES.html.sh (Multithreading): Add yield.
20851
20852 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20853
20854         New module 'thread'.
20855         * modules/thread: New file.
20856         * lib/glthread/thread.h: New file.
20857         * m4/thread.m4: New file.
20858         * MODULES.html.sh (Multithreading): Add thread.
20859
20860 2008-08-17  Bruno Haible  <bruno@clisp.org>
20861
20862         * lib/glthread/lock.h: Include <stdlib.h> always.
20863         * lib/glthread/tls.h: Likewise.
20864         * lib/glthread/cond.h: Likewise.
20865
20866 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20867
20868         New module 'cond'.
20869         * modules/cond: New file.
20870         * lib/glthread/cond.h: New file.
20871         * lib/glthread/cond.c: New file.
20872         * m4/cond.m4: New file.
20873         * MODULES.html.sh (Multithreading): Add cond.
20874
20875 2008-08-16  Eric Blake  <ebb9@byu.net>
20876
20877         c-stack: fix regression on Irix 5.3 from 2008-06-21
20878         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
20879         sa_sigaction...
20880         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
20881         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
20882         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
20883         * modules/signal (Makefile.am): Use the value.
20884         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
20885         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
20886         * doc/posix-headers/signal.texi (signal.h): Document this
20887         portability issue.
20888         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
20889         Reported by Tom G. Christensen.
20890
20891 2008-08-17  Bruno Haible  <bruno@clisp.org>
20892
20893         New module 'threadlib'.
20894         * modules/threadlib: New file.
20895         * lib/glthread/threadlib.c: New file, extracted from
20896         lib/glthread/lock.c.
20897         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
20898         functions.
20899         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
20900         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
20901         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
20902         macros.
20903         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
20904         (gl_DISABLE_THREADS): Remove macro.
20905         * modules/lock (Files): Remove build-aux/config.rpath.
20906         (Depends-on): Remove havelib. Add threadlib.
20907         (configure.ac-early): Remove section.
20908         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
20909         * modules/tls (Depends-on): Remove lock. Add threadlib.
20910         (Link): New section, copied from threadlib.
20911         * MODULES.html.sh (Multithreading): Add threadlib.
20912
20913 2008-08-14  Bruno Haible  <bruno@clisp.org>
20914
20915         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
20916         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
20917         glthread_rwlock_unlock, glthread_rwlock_destroy,
20918         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
20919         glthread_recursive_lock_destroy): Define as macros always.
20920         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
20921         glthread_lock_lock.
20922         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
20923         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
20924         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
20925         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
20926         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
20927         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
20928         (glthread_recursive_lock_lock_func): Renamed from
20929         glthread_recursive_lock_lock.
20930         (glthread_recursive_lock_unlock_func): Renamed from
20931         glthread_recursive_lock_unlock.
20932         (glthread_recursive_lock_destroy_func): Renamed from
20933         glthread_recursive_lock_destroy.
20934
20935 2008-08-14  Bruno Haible  <bruno@clisp.org>
20936
20937         * lib/glthread/lock.h: Renamed from lib/lock.h.
20938         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
20939         * lib/glthread/tls.h: Renamed from lib/tls.h.
20940         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
20941         * lib/fstrcmp.c: Update includes.
20942         * lib/strsignal.c: Update includes.
20943         * modules/lock (Files, Makefile.am): Update.
20944         (Include): Change to "glthread/lock.h".
20945         * modules/tls (Files, Makefile.am): Update.
20946         (Include): Change to "glthread/tls.h".
20947         * tests/test-lock.c: Update includes.
20948         * tests/test-tls.c: Update includes.
20949         * NEWS: Mention the renamed header files.
20950
20951 2008-08-11  Jim Meyering  <meyering@redhat.com>
20952
20953         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
20954
20955 2008-08-11  Eric Blake  <ebb9@byu.net>
20956
20957         test-c-stack: avoid C99-ism
20958         * tests/test-c-stack.c (main): Fix whitespace, move declaration
20959         before statement.
20960         Reported by Alain Guibert.
20961
20962 2008-08-10  Jim Meyering  <meyering@redhat.com>
20963
20964         ensure that return value of uinttostr et al are not ignored
20965         * lib/inttostr.h (__GNUC_PREREQ): Define.
20966         (__attribute_warn_unused_result__): Define.
20967         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
20968
20969 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
20970
20971         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
20972         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
20973
20974 2008-08-07  Jim Meyering  <meyering@redhat.com>
20975
20976         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
20977
20978         * modules/mkstemp (License): Relicense under LGPLv2+.
20979         * modules/tempname (License): Likewise.
20980
20981 2008-08-06  Bruno Haible  <bruno@clisp.org>
20982
20983         * lib/poll.c (poll): Further micro-optimization.
20984
20985 2008-08-06  Jim Meyering  <meyering@redhat.com>
20986
20987         inet_pton.c: use locale-independent tolower
20988         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
20989         (inet_pton6): Use c_tolower rather than tolower.
20990         * modules/inet_pton (Depends-on): Add c-ctype.
20991
20992 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
20993
20994         * lib/poll.c (poll): Avoid division when timeout is 0, cache
20995         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
20996
20997 2008-08-06  Jim Meyering  <meyering@redhat.com>
20998
20999         * modules/inet_pton (License): Relicense under LGPLv2+.
21000
21001 2008-08-03  Bruno Haible  <bruno@clisp.org>
21002
21003         Additional non-aborting API for lock and tls.
21004         * lib/lock.h: Include <errno.h>.
21005         (glthread_lock_init): New macro/function.
21006         (gl_lock_init): Define as wrapper around glthread_lock_init.
21007         (glthread_lock_lock): New macro/function.
21008         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21009         (glthread_lock_unlock): New macro/function.
21010         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21011         (glthread_lock_destroy): New macro/function.
21012         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21013         (glthread_rwlock_init): New macro/function.
21014         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21015         (glthread_rwlock_rdlock): New macro/function.
21016         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21017         (glthread_rwlock_wrlock): New macro/function.
21018         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21019         (glthread_rwlock_unlock): New macro/function.
21020         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21021         (glthread_rwlock_destroy): New macro/function.
21022         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21023         (glthread_recursive_lock_init): New macro/function.
21024         (gl_recursive_lock_init): Define as wrapper around
21025         glthread_recursive_lock_init.
21026         (glthread_recursive_lock_lock): New macro/function.
21027         (gl_recursive_lock_lock): Define as wrapper around
21028         glthread_recursive_lock_lock.
21029         (glthread_recursive_lock_unlock): New macro/function.
21030         (gl_recursive_lock_unlock): Define as wrapper around
21031         glthread_recursive_lock_unlock.
21032         (glthread_recursive_lock_destroy): New macro/function.
21033         (gl_recursive_lock_destroy): Define as wrapper around
21034         glthread_recursive_lock_destroy.
21035         (glthread_once): New macro/function.
21036         (gl_once): Define as wrapper around glthread_once.
21037         Update function declarations.
21038         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21039         glthread_rwlock_init. Return error code.
21040         (glthread_rwlock_rdlock_multithreaded): Renamed from
21041         glthread_rwlock_rdlock. Return error code.
21042         (glthread_rwlock_wrlock_multithreaded): Renamed from
21043         glthread_rwlock_wrlock. Return error code.
21044         (glthread_rwlock_unlock_multithreaded): Renamed from
21045         glthread_rwlock_unlock. Return error code.
21046         (glthread_rwlock_destroy_multithreaded): Renamed from
21047         glthread_rwlock_destroy. Return error code.
21048         (glthread_recursive_lock_init_multithreaded): Renamed from
21049         glthread_recursive_lock_init. Return error code.
21050         (glthread_recursive_lock_lock_multithreaded): Renamed from
21051         glthread_recursive_lock_lock. Return error code.
21052         (glthread_recursive_lock_unlock_multithreaded): Renamed from
21053         glthread_recursive_lock_unlock. Return error code.
21054         (glthread_recursive_lock_destroy_multithreaded): Renamed from
21055         glthread_recursive_lock_destroy. Return error code.
21056         (glthread_once_call): Make static.
21057         (glthread_once_multithreaded): Renamed from glthread_once.
21058         * lib/tls.h: Include <errno.h>.
21059         (glthread_tls_key_init): New macro/function.
21060         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21061         (glthread_tls_set): New macro/function.
21062         (gl_tls_set): Define as wrapper around glthread_tls_set.
21063         (glthread_tls_key_destroy): New macro/function.
21064         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21065         Update function declarations.
21066         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21067         glthread_tls_get.
21068         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21069
21070 2008-08-04  Eric Blake  <ebb9@byu.net>
21071
21072         gnumakefile: use space, not TAB, outside of targets
21073         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21074
21075 2008-08-02  Jim Meyering  <meyering@redhat.com>
21076
21077         getdate.y: avoid locale-dependent date parsing failure
21078         In Turkish locales, getdate would fail to recognize keywords
21079         containing a lowercase "i".  The solution is not to rely on
21080         locale-sensitive case-conversion.
21081         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21082         (lookup_word): Use c_toupper in place of toupper.
21083         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21084         Reported by Vefa Bicakci <bicave@superonline.com> in
21085         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21086         * modules/getdate (Depends-on): Add c-ctype.
21087
21088 2008-08-02  Bruno Haible  <bruno@clisp.org>
21089
21090         * gnulib-tool (func_import): When updating or creating a .gitignore
21091         file, prepend each added line with a slash, and ignore leading slashes
21092         from the existing lines.
21093         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21094
21095 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21096
21097         Portability fix for GNU make 3.79.1.
21098         * top/GNUmakefile: Avoid 'else COND', which older GNU make
21099         versions do not understand.
21100
21101 2008-08-01  Bruno Haible  <bruno@clisp.org>
21102
21103         Work around bug of HP-UX 10.20 cc with -0.0 literal.
21104         * tests/test-isnanf.h (zero): New variable.
21105         (main): Avoid literal -0.0f.
21106         * tests/test-isnand.h (zero): New variable.
21107         (main): Avoid literal -0.0.
21108         * tests/test-isnanl.h (zero): New variable.
21109         (main): Avoid literal -0.0L.
21110         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21111         (test_float, test_double, test_long_double): Avoid literals -0.0f,
21112         -0.0, -0.0L.
21113         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21114         (test_signbitd): Avoid literal -0.0.
21115         (test_signbitl): Avoid literal -0.0L.
21116         * tests/test-ceilf1.c (zero): New variable.
21117         (main): Avoid literal -0.0f.
21118         * tests/test-ceill.c (zero): New variable.
21119         (main): Avoid literal -0.0L.
21120         * tests/test-floorf1.c (zero): New variable.
21121         (main): Avoid literal -0.0f.
21122         * tests/test-floorl.c (zero): New variable.
21123         (main): Avoid literal -0.0L.
21124         * tests/test-roundf1.c (zero): New variable.
21125         (main): Avoid literal -0.0f.
21126         * tests/test-round1.c (zero): New variable.
21127         (main): Avoid literal -0.0.
21128         * tests/test-roundl.c (zero): New variable.
21129         (main): Avoid literal -0.0L.
21130         * tests/test-truncf1.c (zero): New variable.
21131         (main): Avoid literal -0.0f.
21132         * tests/test-trunc1.c (zero): New variable.
21133         (main): Avoid literal -0.0.
21134         * tests/test-truncl.c (zero): New variable.
21135         (main): Avoid literal -0.0L.
21136         * tests/test-frexp.c (zero): New variable.
21137         (main): Avoid literal -0.0.
21138         * tests/test-frexpl.c (zero): New variable.
21139         (main): Avoid literal -0.0L.
21140         * tests/test-ldexpl.c (zero): New variable.
21141         (main): Avoid literal -0.0L.
21142         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21143         (zerod, zerol): New variables.
21144         (test_function): Avoid literals -0.0, -0.0L.
21145         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21146         (zerod, zerol): New variables.
21147         (test_function): Avoid literals -0.0, -0.0L.
21148         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21149         (zerod, zerol): New variables.
21150         (test_function): Avoid literals -0.0, -0.0L.
21151         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21152         (zerod, zerol): New variables.
21153         (test_function): Avoid literals -0.0, -0.0L.
21154         * tests/test-strtod.c (zero): New variable.
21155         (main): Avoid literal -0.0.
21156         Reported by Jonathan C. Patschke <jp@centtech.com>.
21157
21158 2008-07-31  Jim Meyering  <meyering@redhat.com>
21159
21160         sha256.h: correct definition of SHA224_DIGEST_SIZE
21161         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21162         Reported by Paulie Pena IV <paulie4@gmail.com>.
21163         Define as 224 / 8, rather than as a literal.
21164         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21165         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21166         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21167
21168 2008-07-31  Bruno Haible  <bruno@clisp.org>
21169
21170         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21171         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21172         Reported by Jonathan Patschke <jp@centtech.com>.
21173
21174 2008-07-31  Bruno Haible  <bruno@clisp.org>
21175
21176         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21177         Reported by Paolo Bonzini <bonzini@gnu.org>.
21178
21179 2008-07-30  Eric Blake  <ebb9@byu.net>
21180
21181         test-strtod: allow compilation without -lm
21182         * tests/test-strtod.c (main): Avoid link dependence on fabs.
21183         Reported by Dennis Clarke <blastwave@gmail.com>.
21184
21185 2008-07-28  Jim Meyering  <meyering@redhat.com>
21186
21187         bootstrap: work also when there are no .po files in po/
21188         * build-aux/bootstrap (update_po_files): Complete the change
21189         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21190
21191 2008-07-27  Jim Meyering  <meyering@redhat.com>
21192
21193         * users.txt: Add zile.
21194
21195 2008-07-26  Ben Pfaff  <blp@gnu.org>
21196
21197         Add missing dependencies on new m4/exponent[fdl].m4 files.
21198         * modules/isnanf-nolibm: Add m4/exponentf.m4.
21199         * modules/isnand-nolibm: Add m4/exponentd.m4.
21200         * modules/isnanl-nolibm: Add m4/exponentl.m4.
21201         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21202         m4/isnan[fdl].m4, because the macros actually used moved.
21203         Reported by Jim Meyering.
21204
21205 2008-07-14  Ben Pfaff  <blp@gnu.org>
21206
21207         Add isinf module.
21208         * lib/isinf.c: New file.
21209         * lib/math.in.h: Define isinf macro if we have decided to replace
21210         it.
21211         * m4/isinf.m4: New file.
21212         * m4/math_h.m4: Initialize and substitute variables for isinf
21213         module.
21214         * modules/isinf: New file.
21215         * modules/isinf-tests: New file.
21216         * modules/math: Add substitutions for new module.
21217         * tests/test-isinf.c: New file.
21218         * doc/posix-functions/isinf.texi: Mention new module.
21219         * MODULES.html.sh: Mention new module.
21220
21221 2008-07-14  Ben Pfaff  <blp@gnu.org>
21222
21223         Factor out some macros for use by additional modules.
21224         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21225         exponentf.m4.
21226         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21227         exponentd.m4.
21228         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21229         file exponentl.m4.
21230         * m4/exponentf.m4: New file.
21231         * m4/exponentd.m4: New file.
21232         * m4/exponentl.m4: New file.
21233         * modules/isnanf: Use new file m4/exponentf.m4.
21234         * modules/isnand: Use new file m4/exponentd.m4.
21235         * modules/isnanl: Use new file m4/exponentl.m4.
21236
21237 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
21238
21239         mktime.c: normalize tp->tm_isdst value to -1/0/1.
21240         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21241         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21242         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21243
21244         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21245         readlink on platforms without PATH_MAX.
21246
21247 2008-07-21  Eric Blake  <ebb9@byu.net>
21248
21249         Warn, not fail, on stale version.
21250         * top/GNUmakefile (_curr-ver): Tone down previous patch.
21251
21252         Don't allow installation with stale devel version number.
21253         * top/GNUmakefile (_is-install-target): New macro.
21254         (_curr-ver): Forbid installation with stale version number.
21255
21256 2008-07-20  Bruno Haible  <bruno@clisp.org>
21257
21258         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21259         TESTS_ENVIRONMENT.
21260         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21261
21262 2008-07-20  Bruno Haible  <bruno@clisp.org>
21263
21264         * lib/c-stack.h (c_stack_action): Add documentation.
21265         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21266
21267 2008-07-20  Bruno Haible  <bruno@clisp.org>
21268
21269         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21270         * modules/readlink (License): Likewise.
21271
21272 2008-07-17  Eric Blake  <ebb9@byu.net>
21273
21274         * modules/c-stack (Link): Fix typo.
21275
21276         Make c-stack use libsigsegv, when available.
21277         * modules/c-stack (Depends-on): Add libsigsegv.
21278         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21279         needed.
21280         * lib/c-stack.c (SIGSTKSZ): Define fallback.
21281         (segv_handler, overflow_handler, c_stack_action)
21282         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21283         implementation when libsigsegv is available, but only when using
21284         the library is necessary.
21285         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21286         comment, explaining why XSI check fails on Linux.
21287         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
21288         * tests/test-c-stack2.sh: Tweak skip message.
21289         * NEWS: Document new link-time requirements.
21290
21291 2008-07-16  Eric Blake  <ebb9@byu.net>
21292
21293         c-stack: Expose false positives when not using libsigsegv.
21294         * modules/c-stack-tests (Files): Expand test.
21295         * tests/test-c-stack.c (main): Add means to conditionally trigger
21296         non-overflow SIGSEGV.
21297         * tests/test-c-stack2.sh: New file.
21298
21299 2008-07-14  Bruno Haible  <bruno@clisp.org>
21300
21301         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
21302         Reported by Eric Blake.
21303
21304 2008-07-14  Sam Steingold  <sds@gnu.org>
21305             Bruno Haible  <bruno@clisp.org>
21306
21307         New module libsigsegv.
21308         * modules/libsigsegv: New file.
21309         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
21310         modifications.
21311         * MODULES.html.sh (Signal handling): New section.
21312
21313 2008-07-14  Bruno Haible  <bruno@clisp.org>
21314
21315         * modules/unictype/ctype-* (Description): Add the word "function".
21316         Improves the resulting doc in MODULES.html.
21317
21318 2008-07-12  Ben Pfaff  <blp@gnu.org>
21319
21320         Add longlong module.
21321         * modules/longlong: New file.
21322
21323 2008-07-12  Bruno Haible  <bruno@clisp.org>
21324
21325         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
21326         to empty.
21327
21328 2008-07-10  Ben Pfaff  <blp@gnu.org>
21329
21330         Add isnan module.
21331         * doc/posix-functions/isnan.texi: Mention new module.
21332         * lib/math.in.h: Define isnan macro if we have decided to replace
21333         it.
21334         * m4/isnan.m4: New file.
21335         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
21336         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
21337         also.
21338         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
21339         redundancy.
21340         * m4/math_h.m4: Initialize and substitute variables for isnan
21341         module.
21342         * modules/isnan: New file.
21343         * modules/isnan-tests: New file.
21344         * modules/math: Add substitutions for new module.
21345         * tests/test-isnan.c: New file.
21346         * MODULES.html.sh: Mention new module.
21347
21348 2008-07-10  Ben Pfaff  <blp@gnu.org>
21349
21350         Add isnanf module.
21351         * lib/isnanf.m4: New file.
21352         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
21353         (gl_HAVE_ISNANF_IN_LIBM): New macro.
21354         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
21355         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
21356         * modules/isnanf: New file.
21357         * modules/isnanf-tests: New file.
21358         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
21359         files.
21360         * tests/test-isnanf-nolibm.c: factored most of its contents into
21361         new file tests/test-isnanf.h.
21362         * tests/test-isnanf.h: New file.
21363         * tests/test-isnanf.c: New file.
21364         * MODULES.html.sh: Mention new module.
21365         * doc/glibc-functions/isnanf.texi: Mention new module.
21366
21367 2008-07-10  Ben Pfaff  <blp@gnu.org>
21368
21369         Add isnand module.
21370         * lib/isnand.h: New file.
21371         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
21372         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
21373         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
21374         functionality also.
21375         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
21376         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
21377         (gl_HAVE_ISNAND_IN_LIBM): New macro.
21378         * modules/isnand: New file.
21379         * modules/isnand-tests: New file.
21380         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
21381         files.
21382         * tests/test-isnand-nolibm.c: factored most of its contents into
21383         new file tests/test-isnand.h.
21384         * tests/test-isnand.h: New file.
21385         * tests/test-isnand.c: New file.
21386         * MODULES.html.sh: Mention new module.
21387
21388 2008-07-10  Ben Pfaff  <blp@gnu.org>
21389
21390         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
21391         * lib/isnand.h: Rename lib/isnand-nolibm.h.
21392         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
21393         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
21394         * modules/isnanf-nolibm: Update references to renamed files.
21395         * modules/isnand-nolibm: Likewise.
21396         * modules/isnanf-nolibm-tests: Likewise.
21397         * modules/isnand-nolibm-tests: Likewise.
21398         * lib/frexp.c: Likewise.
21399         * lib/isfinite.c: Likewise.
21400         * lib/signbitd.c: Likewise.
21401         * lib/signbitf.c: Likewise.
21402         * lib/vasnprintf.c: Likewise.
21403         * tests/test-ceilf1.c: Likewise.
21404         * tests/test-ceilf2.c: Likewise.
21405         * tests/test-floorf1.c: Likewise.
21406         * tests/test-floorf2.c: Likewise.
21407         * tests/test-frexp.c: Likewise.
21408         * tests/test-round1.c: Likewise.
21409         * tests/test-round2.c: Likewise.
21410         * tests/test-roundf1.c: Likewise.
21411         * tests/test-strtod.c: Likewise.
21412         * tests/test-trunc1.c: Likewise.
21413         * tests/test-trunc2.c: Likewise.
21414         * tests/test-truncf1.c: Likewise.
21415         * tests/test-truncf2.c: Likewise.
21416         * NEWS: Mention the renamed header files.
21417
21418 2008-07-11  Jim Meyering  <meyering@redhat.com>
21419
21420         vc-list-files: make the last-resort awk code more portable
21421         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
21422         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
21423         does not support it.
21424
21425 2008-07-10  Eric Blake  <ebb9@byu.net>
21426
21427         Work with tar's bootstrap.
21428         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
21429         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
21430         an m4 comment.
21431
21432 2008-07-09  Jim Meyering  <meyering@redhat.com>
21433
21434         posix-shell.m4: fix typo that made this test malfunction
21435         * m4/posix-shell.m4: Remove capitalization in variable name.
21436
21437 2008-07-08  Bruno Haible  <bruno@clisp.org>
21438
21439         * m4/onceonly.m4: Update comments.
21440         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21441
21442 2008-07-04  Jim Meyering  <meyering@redhat.com>
21443
21444         * users.txt: Add vc-dwim.
21445         (bison, coreutils): Use the gitweb URL.
21446
21447 2008-07-03  Jim Meyering  <meyering@redhat.com>
21448
21449         * users.txt: Add libffcall.  From Sam Steingold.
21450
21451 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
21452
21453         getdate.y: do not ignore TZ with relative day, month or year offset
21454         * lib/getdate.y (get_date): Move the tz-handling block to follow the
21455         relative-date-handling, since otherwise, the latter would clobber the
21456         sole output (an updated Start value) of the tz-handling block.
21457         * tests/test-getdate.c: Tests for the fix
21458
21459 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21460
21461         Recognize 'foo_LIBRARIES += libgnu.a'.
21462         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
21463         makefile snippet has already specified an installation location,
21464         also using '+='.
21465
21466 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
21467
21468         getdate.y: factor out common actions
21469         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
21470         Use them in place of open-coded actions.
21471
21472 2008-07-01  Simon Josefsson  <simon@josefsson.org>
21473
21474         Add self-test for getdate module.
21475         * modules/getdate-tests: New file.
21476         * tests/test-getdate.c: New file.
21477
21478 2008-06-29  Bruno Haible  <bruno@clisp.org>
21479
21480         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
21481         .gitignore.
21482         Reported by Sylvain Beucler <beuc@beuc.net>.
21483
21484 2008-06-29  Bruno Haible  <bruno@clisp.org>
21485
21486         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
21487         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
21488
21489 2008-06-29  Bruno Haible  <bruno@clisp.org>
21490
21491         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
21492         EXTRA_DIST.
21493         Reported by Sylvain Beucler <beuc@beuc.net>.
21494
21495 2008-06-26  Jim Meyering  <meyering@redhat.com>
21496
21497         make several modules depend on the "open" module
21498         This provides slightly increased consistency when opening-for-write
21499         the name of a non-directory spelled with a trailing slash.
21500         * modules/chdir-safer: Likewise.
21501         * modules/chown: Likewise.
21502         * modules/clean-temp: Likewise.
21503         * modules/copy-file: Likewise.
21504         * modules/fchdir: Likewise.
21505         * modules/fcntl-safer: Likewise.
21506         * modules/pipe: Likewise.
21507         * modules/utime: Likewise.
21508         Prompted by Eric Blake and Bruno Haible.
21509
21510 2008-06-24  Andreas Schwab  <schwab@suse.de>
21511
21512         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
21513         literals can be used as initializers for global variables.
21514
21515 2008-06-23  Eric Blake  <ebb9@byu.net>
21516
21517         Make gnulib-cache.m4 easier to diff.
21518         * gnulib-tool (func_import): Allow newlines when reading cached
21519         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
21520
21521 2008-06-23  Bruno Haible  <bruno@clisp.org>
21522
21523         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
21524         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
21525         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
21526         m4/signalblocking.m4.
21527         (gl_PREREQ_SIGACTION): Don't invoke it.
21528         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
21529         gl_PREREQ_SIG_HANDLER_H.
21530         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21531         Don't check for sigaction here.
21532
21533 2008-06-23  Bruno Haible  <bruno@clisp.org>
21534
21535         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
21536         (install_handlers): Don't set the SA_RESETHAND flag.
21537
21538 2008-06-23  Bruno Haible  <bruno@clisp.org>
21539
21540         * m4/sigaction.m4: Comment fixes.
21541         * lib/signal.in.h: Likewise.
21542
21543 2008-06-23  Eric Blake  <ebb9@byu.net>
21544
21545         Fix typo.
21546         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
21547
21548         Avoid SA_ namespace.
21549         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
21550         Reported by Ralf Wildenhues.
21551
21552         Avoid test failure due to SA_RESTORER.
21553         * tests/test-sigaction.c (SA_MASK): New macro.
21554         (main): Avoid failing due to extension flags being set.
21555         Reported by Jim Meyering.
21556
21557         Revert use of sig-handler.h in sigprocmask.c.
21558         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
21559         it requires the existence of struct sigaction.
21560         * lib/sigprocmask.c (handler_t): Restore typedef.
21561         (rpl_signal, old_handlers): Use local type.
21562
21563 2008-06-22  Bruno Haible  <bruno@clisp.org>
21564
21565         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
21566         conditionally.
21567         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21568
21569 2008-06-22  Bruno Haible  <bruno@clisp.org>
21570
21571         * doc/posix-functions/siginterrupt.texi: Move note.
21572
21573         * lib/signal.in.h (SA_RESTART): New macro.
21574         * lib/sigaction.c: Update comment.
21575
21576         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
21577
21578         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
21579         (gl_PREREQ_SIGPROCMASK): Invoke it.
21580         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
21581
21582         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
21583
21584         * lib/sigprocmask.c: Update a comment.
21585
21586 2008-06-21  Eric Blake  <ebb9@byu.net>
21587
21588         Use sigaction module rather than signal().
21589         * modules/c-stack (Depends-on): Add sigaction.
21590         * modules/fatal-signal (Depends-on): Likewise.
21591         * modules/nanosleep (Depends-on): Likewise.
21592         * modules/sigprocmask (Files): Add sig-handler.h.
21593         * modules/sigaction (Files): Likewise.
21594         * lib/sig-handler.h (get_handler): New file, suggested by Paul
21595         Eggert.
21596         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
21597         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
21598         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
21599         (init_fatal_signals): Likewise.
21600         * lib/nanosleep.c (rpl_nanosleep): Likewise.
21601         (siginterrupt): Delete fallback.
21602         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
21603         instead.
21604         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
21605         siginterrupt.
21606
21607         New module sigaction, for mingw.
21608         * modules/sigaction: New module...
21609         * modules/sigaction-tests: ...and its test.
21610         * m4/sigaction.m4: New file.
21611         * lib/sigaction.c: Likewise.
21612         * tests/test-sigaction.c: Likewise.
21613         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
21614         * modules/signal (Makefile.am): Likewise.
21615         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
21616         needed.
21617         * doc/posix-headers/signal.texi (signal.h): Mention provided
21618         types.
21619         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
21620         that sigaction is preferable.
21621         * doc/posix-functions/sigaction.texi (sigaction): Mention new
21622         module.
21623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21624         sigaction.
21625
21626         Improve robustness of sigprocmask by overriding signal.
21627         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
21628         is in use.
21629         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
21630         (SIGKILL, SIGSTOP): Provide fallbacks.
21631         (rpl_signal): Implement.
21632         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
21633         signal can be called inside handlers.
21634
21635         Fix nanosleep module on mingw.
21636         * modules/nanosleep (Depends-on): Add sys_select.
21637         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
21638
21639         Fix licensing of sigprocmask.
21640         * modules/raise (License): Relicense as LGPL.
21641
21642 2008-06-21  Bruno Haible  <bruno@clisp.org>
21643
21644         * lib/propername.c (proper_name_utf8): Don't use the transliterated
21645         result if it contains question marks.
21646         Reported by Michael Geng <linux@michaelgeng.de>.
21647
21648 2008-06-19  Bruno Haible  <bruno@clisp.org>
21649
21650         Fix CVS-ism.
21651         * doc/gnulib.texi: Include updated-stamp.texi.
21652         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
21653         (updated-stamp.texi): New rule.
21654         (gnulib.info): Depend on it.
21655         * doc/.gitignore: Add updated-stamp.texi.
21656         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
21657
21658 2008-06-19  Bruno Haible  <bruno@clisp.org>
21659
21660         * doc/Makefile (gnulib.info): Update and simplify dependencies.
21661         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21662
21663 2008-06-19  Eric Blake  <ebb9@byu.net>
21664
21665         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
21666         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
21667         Reported by Stepan Kasal.
21668
21669 2008-06-18  Bruno Haible  <bruno@clisp.org>
21670
21671         * lib/fatal-signal.c (init_fatal_signals): Add comment.
21672         Reported by Eric Blake.
21673
21674 2008-06-18  Eric Blake  <ebb9@byu.net>
21675
21676         Work around cygwin 1.5.25 strsignal bug.
21677         * tests/test-strsignal.c: Allow for const char *.
21678         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
21679
21680 2008-06-18  Simon Josefsson  <simon@josefsson.org>
21681
21682         * users.txt: Update URL to article and add author/date
21683         information.
21684
21685 2008-06-17  Bruno Haible  <bruno@clisp.org>
21686
21687         New macro gl_DISABLE_THREADS.
21688         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
21689         if the user did not pass --enable-threads or --disable-threads option.
21690         (gl_DISABLE_THREADS): New macro.
21691         Reported by Eric Blake <ebb9@byu.net>.
21692
21693 2008-06-17  Bruno Haible  <bruno@clisp.org>
21694
21695         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
21696         when the macro ignores it.
21697         Based on a patch by Eric Blake <ebb9@byu.net>.
21698
21699 2008-06-17  Bruno Haible  <bruno@clisp.org>
21700
21701         * modules/tls (License): Change to LGPLv2+.
21702         Reported by Eric Blake.
21703
21704 2008-06-17  Eric Blake  <ebb9@byu.net>
21705
21706         Simplify c-stack prerequisites.
21707         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
21708         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
21709         no longer requires <ucontext.h> to exist.  Optimize setrlimit
21710         check.
21711         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
21712         <sys/resource.h>.
21713
21714         Move c-stack test into testsuite.
21715         * modules/c-stack-tests: New file.
21716         * lib/c-stack.c [DEBUG]: Move test program...
21717         * tests/test-c-stack.c: ...into this new file.  Skip rather than
21718         fail test if sigaltstack is lacking.
21719         * tests/test-c-stack.sh: New driver file.
21720
21721 2008-06-16  Eric Blake  <ebb9@byu.net>
21722
21723         Use raise module consistently.
21724         * modules/fatal-signal (Depends-on): Add raise.
21725         * modules/sigprocmask (Depends-on): Likewise.
21726         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
21727         * lib/sigprocmask.c (sigprocmask): Likewise.
21728         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21729         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
21730
21731         Fix compliance bug in sigpending.
21732         * lib/sigprocmask.c (sigpending): Return pending array via
21733         parameter, not return value.
21734
21735 2008-06-14  Eric Blake  <ebb9@byu.net>
21736
21737         Improve obstack-printf test code.
21738         * tests/test-obstack-printf.c (test_function): Fix comment, and
21739         simplify usage of obstack_* in macros.  Add a test for coverage.
21740         Reported by Bruno Haible.
21741
21742 2008-06-14  Bruno Haible  <bruno@clisp.org>
21743
21744         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
21745         array size as a constant, not as a const variable.
21746         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
21747         AC_USE_SYSTEM_EXTENSIONS.
21748         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21749         Test whether the obstack_printf function actually exists.
21750         * modules/obstack-printf (Depends-on): Add extensions.
21751         (Include): Remove obstack.h.
21752         * modules/obstack-printf-posix (Depends-on): Add extensions.
21753         (Include): Remove obstack.h.
21754
21755 2008-06-13  Eric Blake  <ebb9@byu.net>
21756
21757         Add obstack-printf and obstack-printf-posix modules.
21758         * modules/obstack-printf: New file.
21759         * modules/obstack-printf-posix: Likewise.
21760         * MODULES.html.sh (Misc): Mention them.
21761         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21762         Likewise.
21763         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21764         Likewise.
21765         * modules/stdio (Makefile.am): Accomodate new modules.
21766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21767         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
21768         Declare.
21769         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
21770         functions.
21771         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
21772         (gl_REPLACE_OBSTACK_PRINTF): New macros
21773         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
21774         * tests/test-obstack-printf.c: New file.
21775         * modules/obstack-printf-tests: Likewise.
21776         * modules/obstack-printf-posix-tests: Likewise.
21777
21778 2008-06-11  Bruno Haible  <bruno@clisp.org>
21779
21780         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
21781         * lib/open.c: Include errno.h.
21782         (open): Fail when attempting to write to a file that has a trailing
21783         slash.
21784         * tests/test-open.c (main): Test against trailing slash bug.
21785         * doc/posix-functions/open.texi: Mention the trailing slash bug.
21786
21787 2008-06-10  Bruno Haible  <bruno@clisp.org>
21788
21789         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
21790         for $? to work inside the trap command, with various /bin/sh-s.
21791         * tests/test-vc-list-files-cvs.sh: Likewise.
21792
21793 2008-06-10  Bruno Haible  <bruno@clisp.org>
21794
21795         * lib/acl-internal.h: Don't include gettext.h here.
21796         * lib/set-mode-acl.c: Include gettext.h here.
21797         * lib/copy-acl.c: Likewise.
21798
21799 2008-06-10  Bruno Haible  <bruno@clisp.org>
21800
21801         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
21802         * lib/wait-process.c (wait_subprocess): Likewise.
21803         * lib/execute.h (execute): Add termsigp argument.
21804         * lib/execute.c (execute): Likewise.
21805         * lib/csharpcomp.c (compile_csharp_using_pnet,
21806         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
21807         * lib/csharpexec.c (execute_csharp_using_pnet,
21808         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
21809         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
21810         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
21811         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
21812         is_jikes_present): Update.
21813         * lib/javaexec.c (execute_java_class): Update.
21814         * lib/javaversion.c (execute_and_read_line): Update.
21815         * NEWS: Document the changes.
21816         Reported by Eric Blake.
21817
21818 2008-06-10  Eric Blake  <ebb9@byu.net>
21819
21820         Add missing include.
21821         * tests/test-strstr.c (includes): Add <signal.h>.
21822         * tests/test-strcasestr.c (includes): Likewise.
21823         * tests/test-memmem.c (includes): Likewise.
21824
21825 2008-06-10  Bruno Haible  <bruno@clisp.org>
21826
21827         * lib/wait-process.c (wait_subprocess): Add an assertion.
21828
21829 2008-06-10  Bruno Haible  <bruno@clisp.org>
21830
21831         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
21832
21833 2008-06-10  Bruno Haible  <bruno@clisp.org>
21834
21835         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
21836         using alarm().
21837         * tests/test-strcasestr.c (main): Likewise.
21838         * tests/test-strstr.c (main): Likewise.
21839
21840 2008-06-09  Bruno Haible  <bruno@clisp.org>
21841
21842         Work around the Solaris 10 ACE ACLs ABI change.
21843         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
21844         declare if ACL_NO_TRIVIAL is present.
21845         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
21846         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
21847         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
21848         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
21849         define if ACL_NO_TRIVIAL is present.
21850         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
21851         and use the current ABI.
21852         (file_has_acl): Use same #if condition as elsewhere.
21853         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
21854         in use, and use the current ABI.
21855         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
21856         Reported by Jim Meyering.
21857
21858 2008-06-09  Eric Blake  <ebb9@byu.net>
21859
21860         Work around environments that (stupidly) ignore SIGALRM.
21861         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
21862         before using alarm().
21863         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21864         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21865         Reported by Ian Beckwith <ianb@erislabs.net>.
21866
21867         Produce autobuild blurb earlier in log.
21868         * modules/autobuild (configure.ac-early): Move AB_INIT here.
21869
21870 2008-06-09  Jim Meyering  <meyering@redhat.com>
21871         and Ondřej Vašík  <ovasik@redhat.com>
21872
21873         utimens.c: correct kernel bug work-around
21874         Ondřej Vašík found that the invalid return value of 280 indicates
21875         failure, not success, and the kernel bug we're trying to work
21876         around affects not just the utimensat call, but also the fallback
21877         futimens call.
21878         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
21879         not success.
21880         [HAVE_FUTIMENS]: Use the same work-around, here.
21881
21882 2008-06-09  Jim Meyering  <meyering@redhat.com>
21883
21884         add more guards around definition of ACE_-related code
21885         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
21886         ALLOW and ACE_OWNER are also defined.
21887
21888 2008-06-08  Bruno Haible  <bruno@clisp.org>
21889
21890         * lib/acl-internal.h: Add me as co-author.
21891         * lib/file-has-acl.c: Likewise.
21892         * lib/set-mode-acl.c: Likewise.
21893         * lib/copy-acl.c: Likewise.
21894
21895 2008-06-08  Bruno Haible  <bruno@clisp.org>
21896
21897         Add support for AIX ACLs.
21898         * lib/acl-internal.h (acl_nontrivial): New declaration.
21899         * lib/file-has-acl.c (acl_nontrivial): New function.
21900         (file_has_acl): Add implementation using AIX 4 ACL API.
21901         * lib/set-mode-acl.c (qset_acl): Likewise.
21902         * lib/copy-acl.c (qcopy_acl): Likewise.
21903
21904 2008-06-08  Bruno Haible  <bruno@clisp.org>
21905
21906         Add support for HP-UX ACLs.
21907         * lib/acl-internal.h (acl_nontrivial): New declaration.
21908         * lib/file-has-acl.c (acl_nontrivial): New function.
21909         (file_has_acl): Add implementation using HP-UX 11 ACL API.
21910         * lib/set-mode-acl.c (qset_acl): Likewise.
21911         * lib/copy-acl.c (qcopy_acl): Likewise.
21912
21913 2008-06-08  Bruno Haible  <bruno@clisp.org>
21914
21915         Add support for Cygwin ACLs.
21916         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
21917         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
21918         the chmod_or_fchmod call.
21919         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
21920
21921 2008-06-08  Bruno Haible  <bruno@clisp.org>
21922
21923         Fix bug with setuid modes in Solaris 10+ code.
21924         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
21925         succeeded, when the mode contains some special bits.
21926
21927 2008-06-08  Bruno Haible  <bruno@clisp.org>
21928
21929         Add support for Solaris 7..10 ACLs.
21930         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
21931         declarations.
21932         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
21933         functions.
21934         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
21935         * lib/set-mode-acl.c (qset_acl): Likewise.
21936         * lib/copy-acl.c (qcopy_acl): Likewise.
21937
21938 2008-06-08  Bruno Haible  <bruno@clisp.org>
21939
21940         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
21941         declaration.
21942         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
21943         (acl_access_nontrivial): Remove MacOS X case.
21944         (file_has_acl): Use acl_extended_nontrivial.
21945         * lib/copy-acl.c (qcopy_acl): Likewise.
21946
21947 2008-06-08  Bruno Haible  <bruno@clisp.org>
21948
21949         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
21950
21951 2008-06-08  Jim Meyering  <meyering@redhat.com>
21952
21953         * modules/acl (Maintainer): Add Bruno Haible.
21954
21955 2008-06-07  Bruno Haible  <bruno@clisp.org>
21956
21957         Improve support for Tru64 ACLs.
21958         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
21959         ACL on OSF/1.
21960
21961 2008-06-07  Bruno Haible  <bruno@clisp.org>
21962
21963         Add support for MacOS X ACLs.
21964         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
21965         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
21966         * lib/set-mode-acl.c (qset_acl): Likewise.
21967         * lib/copy-acl.c (qcopy_acl): Likewise.
21968
21969 2008-06-07  Bruno Haible  <bruno@clisp.org>
21970
21971         Fix memory leak introduced on 2008-05-22.
21972         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
21973         use.
21974
21975 2008-06-07  Bruno Haible  <bruno@clisp.org>
21976
21977         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
21978         to construct an empty ACL.
21979
21980 2008-06-07  Bruno Haible  <bruno@clisp.org>
21981
21982         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
21983         precisely.
21984         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
21985
21986 2008-06-07  Bruno Haible  <bruno@clisp.org>
21987
21988         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
21989         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
21990
21991 2008-06-07  Bruno Haible  <bruno@clisp.org>
21992
21993         * doc/posix-functions/_setjmp.texi: Explain the use of this function
21994         regardless of POSIX.
21995         * doc/posix-functions/_longjmp.texi: Likewise.
21996         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
21997         SystemV platform in this case.
21998
21999 2008-06-06  Eric Blake  <ebb9@byu.net>
22000
22001         Document abort() bugs.
22002         * doc/posix-functions/abort.texi (abort): Mention anomalies.
22003
22004         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22005         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22006         sigsetjmp.
22007         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22008         siglongjmp, but only as a macro.
22009         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22010         is obsolete.
22011         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22012
22013         Tweak documentation to cover cygwin argz bugs.
22014         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22015         argz bug fix; no code change needed since no cygwin releases
22016         occurred between the last fix and the bug being tested.
22017         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22018         module and recently fixed cygwin bugs.
22019         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22020         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22021         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22022         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22023         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22024         Likewise.
22025         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22026         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22027         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22028         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22029         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22030         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22031         Likewise.
22032
22033         Avoid gcc warning on cygwin.
22034         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22035         !ACL_NO_TRIVIAL]: Avoid unused variable.
22036
22037 2008-06-05  Eric Blake  <ebb9@byu.net>
22038
22039         Be tolerant of UNKNOWN version in gnulib-tool test dir.
22040         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22041         git-version-gen fails to come up with a version.
22042         Reported by Simon Josefsson.
22043
22044 2008-06-05  Jim Meyering  <meyering@redhat.com>
22045             Paul Eggert  <eggert@cs.ucla.edu>
22046
22047         utimens.c: work around a probable Linux kernel bug
22048         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22049         appears to be a kernel bug that causes utimensat to return 280
22050         instead of 0, indicating success.
22051
22052 2008-06-04  Bruno Haible  <bruno@clisp.org>
22053
22054         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22055         2008-06-01 commit.
22056
22057 2008-06-04  Bruno Haible  <bruno@clisp.org>
22058
22059         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22060         * lib/file-has-acl.c (acl_access_nontrivial): New function.
22061         (file_has_acl): Use it. Save errno afterwards.
22062         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22063
22064 2008-06-03  Bruno Haible  <bruno@clisp.org>
22065
22066         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22067         draft code. Simplify #ifs.
22068         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22069         Put Solaris code after POSIX-draft code. Fix comments regarding
22070         Solaris 10, HP-UX. Mention Cygwin.
22071         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22072
22073 2008-06-03  Eric Blake  <ebb9@byu.net>
22074
22075         Provide fallback for older kernels.
22076         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22077         Provide runtime fallback if kernel lacks support.
22078         Reported by Mike Frysinger.
22079
22080 2008-06-02  Bruno Haible  <bruno@clisp.org>
22081
22082         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22083         it exists.
22084
22085 2008-06-02  Bruno Haible  <bruno@clisp.org>
22086
22087         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22088         * lib/copy-acl.c (qcopy_acl): Update comment.
22089
22090 2008-06-02  Bruno Haible  <bruno@clisp.org>
22091
22092         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22093         like ACL APIs.
22094
22095 2008-06-02  Bruno Haible  <bruno@clisp.org>
22096
22097         * tests/test-file-has-acl.sh: Use different code for Cygwin.
22098         * tests/test-set-mode-acl.sh: Likewise.
22099         * tests/test-copy-acl.sh: Likewise.
22100         * tests/test-copy-file.sh: Likewise.
22101
22102 2008-06-02  Bruno Haible  <bruno@clisp.org>
22103
22104         * tests/test-file-has-acl.sh: Remove unused code.
22105
22106 2008-06-01  Bruno Haible  <bruno@clisp.org>
22107
22108         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22109         (copy_acl): Just a wrapper around qcopy_acl that emits the error
22110         messages.
22111         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22112
22113 2008-06-01  Bruno Haible  <bruno@clisp.org>
22114
22115         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22116         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22117         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22118         APIs.
22119         * modules/acl-tests (configure.ac): Remove tests now contained in
22120         m4/acl.m4.
22121
22122 2008-06-02  Jim Meyering  <meyering@redhat.com>
22123
22124         announce-gen: use a better key-server host name
22125         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22126         it may be more consistently reliable.  Suggested by Werner Koch
22127         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22128
22129 2008-06-01  Bruno Haible  <bruno@clisp.org>
22130
22131         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22132         Reported by Voroskoi Andras <voroskoi@gmail.com>.
22133
22134 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
22135
22136         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22137
22138 2008-06-01  Bruno Haible  <bruno@clisp.org>
22139
22140         New ACL tests.
22141         * tests/test-file-has-acl.sh: New file.
22142         * tests/test-file-has-acl.c: New file.
22143         * tests/test-set-mode-acl.sh: New file.
22144         * tests/test-set-mode-acl.c: New file.
22145         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22146         * tests/test-copy-acl.c: New file.
22147         * modules/acl-tests: New file, based on modules/copy-file-tests.
22148         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22149         (Depends-on): Add acl-tests.
22150         (configure.ac): Remove checks.
22151         (Makefile.am): Don't create test-sameacls program here any more.
22152
22153 2008-06-01  Bruno Haible  <bruno@clisp.org>
22154
22155         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22156         * tests/test-sameacls.c: Include progname.h.
22157         (main): Invoke set_program_name. Portability fixes for MacOS X,
22158         Solaris, HP-UX.
22159
22160 2008-06-01  Bruno Haible  <bruno@clisp.org>
22161
22162         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22163         function.
22164         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22165
22166 2008-06-01  Bruno Haible  <bruno@clisp.org>
22167
22168         * modules/rpmatch (Depends-on): Add strdup.
22169
22170 2008-06-01  Bruno Haible  <bruno@clisp.org>
22171
22172         * lib/pipe.c: Include unistd-safer.h.
22173         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22174         * modules/pipe (Depends-on): Add unistd-safer.
22175
22176 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22177
22178         * modules/autobuild (configure.ac): Call AB_INIT.
22179
22180 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22181
22182         * tests/test-getaddrinfo.c: Don't print debug messages by default.
22183         Suggested by Bruno Haible <bruno@clisp.org>.
22184
22185 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22186
22187         * tests/test-base64.c: Cast size_t to unsigned long when invoking
22188         printf.  Use %lu instead of %d.  Reported by Bruno Haible
22189         <bruno@clisp.org>.
22190
22191 2008-05-29  Eric Blake  <ebb9@byu.net>
22192
22193         Prefer new POSIX 200x interfaces over futimesat.
22194         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22195         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22196         when available.
22197         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22198
22199 2008-05-28  Bruno Haible  <bruno@clisp.org>
22200
22201         * modules/stpcpy (License): Change to LGPLv2+.
22202         Requested by David Lutterkort <dlutter@redhat.com>.
22203
22204 2008-05-27  Bruno Haible  <bruno@clisp.org>
22205
22206         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22207         current mingw.
22208         Reported by Jose E. Marchesi <jemarch@gnu.org>.
22209
22210 2008-05-27  Bruno Haible  <bruno@clisp.org>
22211
22212         * modules/iconv_open (Link): New section, from module 'iconv'.
22213         * modules/striconv (Link): Likewise.
22214         * modules/striconveh (Link): Likewise.
22215         * modules/xstriconv (Link): Likewise.
22216         * modules/unicodeio (Link): Likewise.
22217         * modules/propername (Link): Likewise.
22218         Reported by Jim Meyering.
22219
22220 2008-05-26  Jim Meyering  <meyering@redhat.com>
22221
22222         sha256: do not artificially restrict buffer length to be < 2^32
22223         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22224         uint32_t to size_t.
22225         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22226         to match.
22227
22228         avoid unaligned access errors, e.g., on sparc
22229         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22230         direct access through a possibly-unaligned uint64* pointer.
22231         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22232         direct access through a possibly-unaligned uint32* pointer.
22233         Prompted by this patch from Tom "spot" Callaway:
22234         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22235
22236         sha512.c: fix typo in comment
22237         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22238
22239 2008-05-25  Bruno Haible  <bruno@clisp.org>
22240
22241         * lib/set-mode-acl.c: Renamed from lib/acl.c.
22242         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22243         (Makefile.am): Update lib_SOURCES.
22244
22245 2008-05-25  Bruno Haible  <bruno@clisp.org>
22246
22247         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22248
22249 2008-05-25  Jim Meyering  <meyering@redhat.com>
22250
22251         useless-if-before-free: freed expr may have white-space differences
22252         * build-aux/useless-if-before-free: Recognize cases in which the
22253         freed expression differs from the tested one in embedded white
22254         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
22255         $1 was used, so we can't make any regexp shy.  Improved tests now
22256         detect this.
22257
22258         useless-if-before-free: accept white space in the expression.
22259         * build-aux/useless-if-before-free: For now, any white space
22260         in the expression must be identical in the free argument.
22261
22262         useless-if-before-free: efficiency tweak
22263         * build-aux/useless-if-before-free: Make the expression-matching
22264         regexp "shy".
22265         Make the *outer* regexp shy, not the expr-matching one.
22266
22267         update code-in-comment to accept cast of free arg
22268         * build-aux/useless-if-before-free: Update regexp.
22269
22270 2008-05-25  Bruno Haible  <bruno@clisp.org>
22271
22272         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22273         * modules/copy-file-tests (Files, Makefile.am): Update.
22274         * tests/test-copy-file.c (func_test_copy): Update.
22275
22276 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
22277
22278         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22279
22280 2008-05-23  Bruno Haible  <bruno@clisp.org>
22281
22282         Improve support for ACLs on OSF/1.
22283         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22284         Remove fallback for unknown flavors of ACLs.
22285
22286 2008-05-22  Bruno Haible  <bruno@clisp.org>
22287
22288         Add support for ACLs on OSF/1.
22289         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
22290         replacements.
22291         (acl_free_text): New macro fallback.
22292         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
22293         acl_free.
22294         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
22295         acl_free_text function. Require AC_C_INLINE.
22296
22297 2008-05-22  Bruno Haible  <bruno@clisp.org>
22298
22299         Make copy_acl work on MacOS X 10.5.
22300         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
22301         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
22302         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
22303         If MODE_INSIDE_ACL, don't assume that every system has the same text
22304         representation for ACLs as FreeBSD.
22305         * lib/copy-acl.c (copy_acl): Add support for platforms with
22306         !MODE_INSIDE_ACL.
22307         * lib/file-has-acl.c (file_has_acl): Likewise.
22308         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
22309         FreeBSD, MacOS X, or IRIX, respectively.
22310
22311 2008-05-22  Bruno Haible  <bruno@clisp.org>
22312
22313         * lib/acl.h: Don't include <sys/acl.h>.
22314         (GETACLCNT): Move fallback to lib/acl-internal.h.
22315         * lib/acl-internal.h: Include <sys/acl.h> here.
22316         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
22317
22318 2008-05-22  Bruno Haible  <bruno@clisp.org>
22319
22320         Split off copy_acl function to separate file.
22321         * lib/copy-acl.c: New file, extracted from lib/acl.c.
22322         * lib/acl.c (copy_acl): Moved function to separate file.
22323         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
22324         * modules/acl (Files): Add lib/copy-acl.c.
22325         (Makefiles.am): Augment lib_SOURCES.
22326
22327 2008-05-22  Bruno Haible  <bruno@clisp.org>
22328
22329         * modules/copy-file-tests: New file.
22330         * tests/test-copy-file.sh: New file.
22331         * tests/test-copy-file.c: New file.
22332         * tests/test-copy-file-sameacls.c: New file.
22333
22334 2008-05-22  Eric Blake  <ebb9@byu.net>
22335
22336         Avoid gcc warning.
22337         * tests/test-memcmp.c (main): Pass NULL indirectly.
22338
22339 2008-05-21  Bruno Haible  <bruno@clisp.org>
22340
22341         Add reference doc about ACLs.
22342         * doc/acl-resources.txt: New file.
22343         * doc/acl-cygwin.txt: New file.
22344
22345 2008-05-21  Bruno Haible  <bruno@clisp.org>
22346
22347         Avoid one more warning from gcc.
22348         * lib/vasnprintf.c (IF_LINT): Update comments.
22349         (VASNPRINTF): Use it also for the 'prefix' array initializer.
22350
22351 2008-05-21  Jim Meyering  <meyering@redhat.com>
22352
22353         avoid a warning from gcc
22354         * lib/vasnprintf.c (IF_LINT): Define.
22355         (scale10_round_decimal_long_double):
22356         Use it to avoid a "may be used uninitialized" warning.
22357         (scale10_round_decimal_double): Likewise.
22358
22359 2008-05-21  Simon Josefsson  <simon@josefsson.org>
22360
22361         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
22362         declared.
22363
22364 2008-05-20  Bruno Haible  <bruno@clisp.org>
22365
22366         * tests/test-memcmp.c (main): Test also the sign of the result. Test
22367         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
22368
22369 2008-05-20  Simon Josefsson  <simon@josefsson.org>
22370
22371         * modules/memcmp-tests: New file.
22372         * tests/test-memcmp.c: New file.
22373
22374 2008-05-19  Bruno Haible  <bruno@clisp.org>
22375
22376         * modules/propername (Notice, configure.ac): Put quoted "..." into
22377         --keyword option.
22378         * lib/propername.h: Update comments accordingly.
22379         Reported by Eric Blake.
22380
22381 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
22382
22383         * modules/getpass-gnu (Depends-on): Add fseeko.
22384
22385 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22386
22387         * modules/base64-tests: New file.
22388
22389 2008-05-19  Bo Borgerson <gigabo@gmail.com>
22390
22391         * lib/base64.c (base64_decode_ctx): If a decode context structure
22392         was passed in use it to ignore newlines.  If a context structure
22393         was _not_ passed in, continue to treat newlines as garbage (this
22394         is the historical behavior).  Formerly base64_decode.
22395         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22396         takes a decode context structure.
22397         * lib/base64.h (base64_decode): Macro for four-argument calls.
22398         (base64_decode_alloc): Likewise.
22399         * lib/base64.c (base64_decode_ctx): If a decode context structure
22400         was passed in use it to ignore newlines.  If a context structure
22401         was _not_ passed in, continue to treat newlines as garbage (this
22402         is the historical behavior).  Formerly base64_decode.
22403         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22404         takes a decode context structure.
22405         * lib/base64.h (base64_decode): Macro for four-argument calls.
22406         (base64_decode_alloc): Likewise.
22407
22408 2008-05-19  Jim Meyering  <meyering@redhat.com>
22409
22410         avoid a warning from gcc
22411         * lib/trim.c (IF_LINT): Define.
22412         (trim2): Use it to avoid a "may be used uninitialized" warning.
22413
22414         Fix doc typo.
22415         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
22416
22417 2008-05-19  Bruno Haible  <bruno@clisp.org>
22418
22419         * doc/glibc-functions/getpass.texi: Document limits of other
22420         implementations.
22421
22422 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22423             Bruno Haible <bruno@clisp.org>
22424
22425         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
22426
22427 2008-05-18  Bruno Haible  <bruno@clisp.org>
22428
22429         * modules/propername: New file, from GNU gettext.
22430         * lib/propername.h: New file, from GNU gettext.
22431         * lib/propername.c: New file, from GNU gettext.
22432         * MODULES.html.sh (Internationalization functions): Add propername.
22433
22434 2008-05-16  Jim Meyering  <meyering@redhat.com>
22435             Bruno Haible  <bruno@clisp.org>
22436
22437         Avoid some warnings from "gcc -Wshadow".
22438         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
22439
22440 2008-05-15  Eric Blake  <ebb9@byu.net>
22441
22442         Extend previous patch to cygwin 1.7.0.
22443         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
22444         fast implementation in cygwin >= 1.7.0.
22445         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22446         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22447
22448 2008-05-15  Bruno Haible  <bruno@clisp.org>
22449
22450         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
22451         implementation in glibc >= 2.9.
22452         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22453         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22454
22455 2008-05-15  Bruno Haible  <bruno@clisp.org>
22456
22457         * MODULES.html.sh (Internationalization functions): Remove linebreak.
22458         (Unicode string functions): Add unilbrk/*.
22459         Reported by Karl Berry.
22460
22461 2008-05-15  Eric Blake  <ebb9@byu.net>
22462
22463         Fix violation of <stdbool.h> replacement in regex.
22464         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
22465         * lib/regexec.c (re_search_internal): Likewise.
22466         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
22467
22468 2008-05-15  Jim Meyering  <meyering@redhat.com>
22469
22470         avoid distracting test output when git or cvs is not found
22471         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
22472         * tests/test-vc-list-files-git.sh: Likewise.
22473
22474 2008-05-15  Eric Blake  <ebb9@byu.net>
22475
22476         Glibc finally accepted the memmem speedup code, bugzilla #5514.
22477         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
22478         glibc version.
22479         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22480         * doc/posix-functions/strstr.texi (strstr): Likewise.
22481         * lib/str-two-way.h (MAX): Sychronize with glibc.
22482
22483 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
22484
22485         * lib/regcomp.c (optimize_utf8): Add a note on why we test
22486         opr.ctx_type.
22487         (calc_first): Initialize constraint field.
22488         (duplicate_node_closure): Use it instead of special casing ANCHORS.
22489         Fix grammar.
22490         (duplicate_node): Merge constraint field for all node types.
22491         (calc_eclosure_iter): Look at constraint field for all node types.
22492         * lib/regex_internal.c (create_cd_newstate): Don't look at
22493         opr.ctx_type.
22494
22495 2008-05-14  Bruno Haible  <bruno@clisp.org>
22496
22497         Help GCC to do better code generation.
22498         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
22499         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22500         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
22501         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
22502         Declare with attribute 'malloc' if supported.
22503
22504 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
22505
22506         use "echo STR|wc -c" rather than unportable "expr length STR"
22507         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
22508         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
22509
22510 2008-05-14  Jim Meyering  <meyering@redhat.com>
22511
22512         use dd ibs=$n count=1 ... rather than less-portable head -c$n
22513         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
22514         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
22515         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
22516         via Collin Lasse.
22517
22518 2008-05-14  Eric Blake  <ebb9@byu.net>
22519
22520         Avoid quadratic growth in gl_LIBSOURCES.
22521         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
22522         Suggested by Bruno Haible.
22523
22524         Test xmemdup0.
22525         * modules/xmemdup0-tests: New file.
22526         * tests/test-xmemdup0.c: Likewise.
22527
22528 2008-05-13  Eric Blake  <ebb9@byu.net>
22529
22530         Split xmemdup0 into its own module.
22531         * modules/xmemdup0: New file.
22532         * lib/xmemdup0.h: Likewise.
22533         * lib/xmemdup0.c: Likewise.
22534         * MODULES.html.sh (Memory management functions): Add xmemdup0.
22535         * lib/xalloc.h (xmemdup0): Remove.
22536         * lib/xmalloc.c (xmemdup0): Likewise.
22537
22538 2008-05-13  Eric Blake  <ebb9@byu.net>
22539             Bruno Haible  <bruno@clisp.org>
22540
22541         Reduce number of forks required during autoconf.
22542         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
22543         and gl_LIBSOURCES_DIR.
22544         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
22545         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
22546         m4_syscmd per file.
22547         <m4_foreach_w>: Move...
22548         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
22549
22550 2008-05-13  Eric Blake  <ebb9@byu.net>
22551
22552         * gnulib-tool: Fix various comment typos.
22553
22554 2008-05-12  Bruno Haible  <bruno@clisp.org>
22555
22556         Tailor the linebreaking algorithm.
22557         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
22558
22559 2008-05-12  Bruno Haible  <bruno@clisp.org>
22560
22561         Update to Unicode 5.0.0.
22562         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22563         LBP_JV, LBP_JT. Redistribute values.
22564         (unilbrk_table): Change size.
22565         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
22566         Unicode TR#14 rev. 22.
22567         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22568         LBP_JV, LBP_JT. Redistribute values.
22569         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
22570         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
22571         Update.
22572         * lib/unilbrk/lbrkprop1.h: Regenerated.
22573         * lib/unilbrk/lbrkprop2.h: Regenerated.
22574         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
22575         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
22576         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
22577         Likewise.
22578         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
22579         Likewise.
22580         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
22581         result.
22582         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22583         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22584         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22585         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
22586         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
22587         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
22588
22589 2008-05-11  Bruno Haible  <bruno@clisp.org>
22590
22591         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
22592
22593 2008-05-11  Bruno Haible  <bruno@clisp.org>
22594
22595         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
22596         * modules/unilbrk/gen-lbrk: New file.
22597
22598 2008-05-11  Bruno Haible  <bruno@clisp.org>
22599
22600         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
22601         * m4/sha512.m4 (gl_SHA512): Likewise.
22602
22603 2008-05-11  Jim Meyering  <meyering@redhat.com>
22604
22605         New modules: crypto/sha256, crypto/sha512 (from coreutils)
22606         * modules/crypto/sha256: New file.
22607         * modules/crypto/sha512: Likewise.
22608         * lib/sha256.c: Likewise.
22609         * lib/sha256.h: Likewise.
22610         * lib/sha512.c: Likewise.
22611         * lib/sha512.h: Likewise.
22612         * lib/u64.h: Likewise.
22613         * m4/sha256.m4: Likewise.
22614         * m4/sha512.m4: Likewise.
22615         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
22616
22617 2008-05-10  Bruno Haible  <bruno@clisp.org>
22618
22619         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
22620         (Input/Output <stdio.h>): Add xprintf.
22621         (Signal handling <signal.h>): Add strsignal.
22622         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
22623         (Core language properties): Add func.
22624         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
22625         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
22626         strings.
22627         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
22628         (Input/output): New section.
22629         (File system functions): Add openat-die, stat-macros.
22630         (Networking functions): Add sockets.
22631         (Unicode string functions): Add unictype/*.
22632         (Support for building libraries and executables): Add gperf.
22633         (Support for building documentation): Add agpl-3.0.
22634         (Misc): Add nocrash.
22635
22636 2008-05-10  Bruno Haible  <bruno@clisp.org>
22637
22638         * modules/unictype/gen-ctype: New file.
22639
22640 2008-05-10  Jim Meyering  <meyering@redhat.com>
22641
22642         Make chdir-safer.c more efficient on a system with no symlinks.
22643         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
22644         also if ELOOP is zero.  Suggested by Bruno Haible.
22645
22646         Make chdir-safer.c slightly safer.
22647         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
22648         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
22649
22650         Avoid compile failure on systems without ELOOP (like mingw).
22651         * lib/chdir-safer.c (ELOOP): Define if not already defined.
22652         Reported by Bruno Haible.
22653
22654 2008-05-10  Bruno Haible  <bruno@clisp.org>
22655
22656         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
22657         (is_utf8_encoding): Use a case-insensitive comparison.
22658         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
22659         streq.
22660
22661 2008-05-10  Bruno Haible  <bruno@clisp.org>
22662
22663         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
22664         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
22665         * lib/unilbrk/ulc-common.h (iconv_string_length,
22666         iconv_string_keeping_offsets): Remove declarations.
22667         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
22668         Don't include <iconv.h>, streq.h, xsize.h.
22669         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
22670         conversion.
22671         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
22672         <iconv.h>, streq.h, xsize.h.
22673         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
22674         conversion.
22675         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
22676         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
22677         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
22678         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
22679
22680 2008-05-10  Bruno Haible  <bruno@clisp.org>
22681
22682         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
22683         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
22684
22685         * modules/unilbrk/u32-width-linebreaks-tests: New file.
22686         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
22687
22688         * modules/unilbrk/u16-width-linebreaks-tests: New file.
22689         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
22690
22691         * modules/unilbrk/u8-width-linebreaks-tests: New file.
22692         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
22693
22694         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
22695         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
22696
22697         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
22698         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
22699
22700         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
22701         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
22702
22703         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
22704         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
22705
22706 2008-05-10  Bruno Haible  <bruno@clisp.org>
22707
22708         Split up 'linebreak' module.
22709         * lib/unilbrk.h: New file, based on lib/linebreak.h.
22710         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
22711         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
22712         modifications.
22713         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
22714         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
22715         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
22716         lib/linebreak.c.
22717         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
22718         lib/linebreak.c.
22719         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
22720         lib/linebreak.c.
22721         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
22722         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
22723         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
22724         lib/linebreak.c.
22725         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
22726         lib/linebreak.c.
22727         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
22728         lib/linebreak.c.
22729         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
22730         lib/linebreak.c.
22731         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
22732         lib/linebreak.c.
22733         * modules/unilbrk/base: New file.
22734         * modules/unilbrk/tables: New file.
22735         * modules/unilbrk/u8-possible-linebreaks: New file.
22736         * modules/unilbrk/u16-possible-linebreaks: New file.
22737         * modules/unilbrk/u32-possible-linebreaks: New file.
22738         * modules/unilbrk/ulc-common: New file.
22739         * modules/unilbrk/ulc-possible-linebreaks: New file.
22740         * modules/unilbrk/u8-width-linebreaks: New file.
22741         * modules/unilbrk/u16-width-linebreaks: New file.
22742         * modules/unilbrk/u32-width-linebreaks: New file.
22743         * modules/unilbrk/ulc-width-linebreaks: New file.
22744         * lib/linebreak.h: Remove file.
22745         * lib/linebreak.c: Remove file.
22746         * m4/linebreak.m4: Remove file.
22747         * modules/linebreak: Remove file.
22748         * NEWS: Mention the changes.
22749
22750 2008-05-09  Eric Blake  <ebb9@byu.net>
22751
22752         Add xmemdup0.
22753         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
22754         implementation.
22755         * lib/xmalloc.c (xmemdup0): New C implementation.
22756
22757 2008-05-08  Bruno Haible  <bruno@clisp.org>
22758
22759         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
22760
22761 2008-05-07  Eric Blake  <ebb9@byu.net>
22762
22763         Support cross-compilation of <wctype.h>.
22764         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
22765         AC_CACHE_CHECK.
22766
22767 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
22768
22769         * build-aux/vc-list-files: Add support for bzr.
22770
22771 2008-05-03  Jim Meyering  <meyering@redhat.com>
22772
22773         avoid failed assertion with tight malloc
22774         * tests/test-getndelim2.c: Correct an off-by-one assertion.
22775
22776 2008-05-03  Simon Josefsson  <simon@josefsson.org>
22777
22778         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
22779         are needed from arpa/inet.h.
22780         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
22781         Reported by Bruno Haible.
22782
22783 2008-05-02  Jim Meyering  <meyering@redhat.com>
22784
22785         avoid compilation error on FreeBSD 6
22786         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
22787
22788 2008-05-01  Jim Meyering  <meyering@redhat.com>
22789
22790         useless-if-before-free: correct --help's exit status description
22791         * build-aux/useless-if-before-free (usage): Like grep, exit 0
22792         for one or more matches, etc.  Reported by Bruno Haible.
22793
22794         vc-list-files: make the stand-alone gnulib test work
22795         * modules/vc-list-files-tests (configure.ac):
22796         Define and AC_SUBST abs_aux_dir.
22797         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
22798         $(abs_top_srcdir) to each script and having each of them
22799         duplicate the work of setting PATH, set PATH here, using
22800         the new variable, abs_aux_dir instead.
22801         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
22802         * tests/test-vc-list-files-git.sh: Likewise.
22803         Reported by Bruno Haible.
22804
22805 2008-05-01  Bruno Haible  <bruno@clisp.org>
22806
22807         * lib/getndelim2.c (getndelim2): Fix newsize computation during
22808         reallocation. Rename 'done' to 'found_delimiter'.
22809
22810 2008-05-01  Jim Meyering  <meyering@redhat.com>
22811
22812         vc-list-files: accommodate /bin/sh like the one from Solaris 10
22813         * build-aux/vc-list-files: Use `...`, not $(...).
22814
22815 2008-04-30  Jim Meyering  <meyering@redhat.com>
22816
22817         add tests for vc-list-files
22818         * modules/vc-list-files-tests: New module.
22819         * tests/test-vc-list-files-cvs.sh: New file.
22820         * tests/test-vc-list-files-git.sh: New file.
22821
22822         avoid a warning from gcc
22823         * lib/getndelim2.c (IF_LINT): Define.
22824         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
22825
22826         vc-list-files: work properly with build-aux/cvsu, too
22827         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
22828         to all cvs-based clauses.
22829
22830         vc-list-files: work properly in the CVS+awk case, too
22831         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
22832
22833         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
22834         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
22835         take more than one file argument, so .  Add quotes, just in case $dir
22836         ever contains a shell meta-character.  Prompted by Soren Hansen in
22837         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
22838
22839 2008-04-29  Eric Blake  <ebb9@byu.net>
22840
22841         Optimize getndelim2 to use block operations when possible.
22842         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
22843         freadseek, and memchr2.
22844         * lib/getndelim2.c (getndelim2): Use them for block reads.
22845
22846 2008-04-29  Bruno Haible  <bruno@clisp.org>
22847
22848         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
22849         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22850         * modules/inet_ntop (Depends-on): Add extensions.
22851         * modules/inet_pton (Depends-on): Likewise.
22852         Reported by Simon Josefsson.
22853
22854 2008-04-29  Jim Meyering  <meyering@redhat.com>
22855
22856         When the is more than one match in a block, match all of them.
22857         * build-aux/useless-if-before-free: Iterate through each block
22858         until there are no more matches.
22859
22860         Fix broken useless-if-before-free script.
22861         * build-aux/useless-if-before-free: Fix typo: missing "?" after
22862         the expression to match cast of argument to free-like function.
22863
22864 2008-04-29  Eric Blake  <ebb9@byu.net>
22865
22866         Use new header.
22867         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
22868
22869 2008-04-29  Jim Meyering  <meyering@redhat.com>
22870
22871         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
22872         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
22873         by gnulib to exist and to declare e.g., inet_ntop.
22874         Don't include "inet_ntop.h", now removed.
22875
22876         * m4/arpa_inet_h.m4: Remove trailing blanks.
22877
22878 2008-04-29  Eric Blake  <ebb9@byu.net>
22879
22880         Silence valgrind on safe reads beyond potential array bounds.
22881         * lib/rawmemchr.valgrind: New file.
22882         * lib/strchrnul.valgrind: Likewise.
22883         * modules/rawmemchr (Files): Distribute new file.
22884         * modules/strchrnul (Files): Likewise.
22885         Suggested by Bruno Haible.
22886
22887 2008-04-29  Bruno Haible  <bruno@clisp.org>
22888
22889         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
22890         (inet_ntop, inet_pton): Change portability warning's wording.
22891         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
22892         Invoke gl_CHECK_NEXT_HEADERS.
22893         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
22894         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
22895         set ARPA_INET_H.
22896         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22897         * modules/arpa_inet (Description): No longer only for systems that
22898         lack it.
22899         (Depends-on): Add include_next.
22900         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
22901         HAVE_ARPA_INET_H.
22902
22903 2008-04-29  Jim Meyering  <meyering@redhat.com>
22904
22905         * modules/mkdir (License): Re-license as LGPLv2+.
22906
22907 2008-04-29  Bruno Haible  <bruno@clisp.org>
22908
22909         * modules/rawmemchr (Maintainer): Set to Eric.
22910         * modules/strchrnul (Maintainer): Likewise.
22911
22912 2008-04-29  Simon Josefsson  <simon@josefsson.org>
22913
22914         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
22915         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
22916
22917         * modules/arpa_inet (arpa/inet.h): Use them.
22918
22919 2008-04-28  Eric Blake  <ebb9@byu.net>
22920
22921         Test getndelim2.
22922         * modules/getndelim2-tests: New file.
22923         * tests/test-getndelim2.c: Likewise.
22924         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
22925         stream.
22926         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
22927
22928         * MODULES.html.sh: Document new module.
22929
22930 2008-04-20  Bruno Haible  <bruno@clisp.org>
22931
22932         * lib/c-stack.c (die): Use raise.
22933         * modules/c-stack (Depends-on): Add raise.
22934
22935 2008-04-28  Bruno Haible  <bruno@clisp.org>
22936
22937         Expect rpmatch to be declared.
22938         * lib/yesno.c (rpmatch): Remove declaration.
22939
22940         Declare rpmatch.
22941         * lib/stdlib.in.h (rpmatch): New declaration.
22942         * lib/rpmatch.c: Include <stdlib.h> first.
22943         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
22944         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
22945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
22946         HAVE_RPMATCH.
22947         * modules/rpmatch (Depends-on): Add stdlib, extensions.
22948         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22949         (Include): Set to <stdlib.h>.
22950         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
22951         HAVE_RPMATCH.
22952         * NEWS: Document the change.
22953
22954 2008-04-28  Bruno Haible  <bruno@clisp.org>
22955
22956         Change rpmatch to use nl_langinfo when appropriate.
22957         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
22958         (N_): New macro.
22959         (localized_pattern): New function/macro.
22960         (try): Remove match, nomatch arguments. Copy the pattern into safe
22961         memory before caching it.
22962         (rpmatch): Use localized_pattern. Add translator comments.
22963         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
22964         Suggested by Eric Blake.
22965         * modules/rpmatch (Depends-on): Add stdbool.
22966
22967 2008-04-28  Eric Blake  <ebb9@byu.net>
22968
22969         Add rawmemchr module, matching glibc.
22970         * modules/string (Makefile.am): New indicator.
22971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
22972         * lib/string.in.h (rawmemchr): Declare when appropriate.
22973         * modules/rawmemchr: New file.
22974         * m4/rawmemchr.m4: Likewise.
22975         * lib/rawmemchr.c: Likewise.
22976         * modules/rawmemchr-tests: Likewise.
22977         * tests/test-rawmemchr.c: Likewise.
22978         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
22979         module.
22980         * modules/strchrnul (Depends-on): Add rawmemchr.
22981         * lib/strchrnul.c (strchrnul): Optimize a corner case.
22982
22983         Whitespace cleanup.
22984         * tests/test-strchrnul.c: Reindent.
22985         * lib/strchrnul.c: Likewise.
22986
22987         Optimize and test strchrnul.
22988         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
22989         * modules/strchrnul-tests: New file.
22990         * tests/test-strchrnul.c: Likewise.
22991
22992         Remove intprops dependency.
22993         * modules/memchr (Depends-on): Remove intprops.
22994         * modules/memrchr (Depends-on): Likewise.
22995         * modules/memchr2 (Depends-on): Likewise.
22996         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
22997         * lib/memrchr.c (__memrchr): Likewise.
22998         * lib/memrchr2.c (memchr2): Likewise.
22999         Reported by Simon Josefsson.
23000
23001 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23002
23003         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23004         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23005
23006 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23007
23008         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23009
23010         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23011
23012         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23013
23014         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23015         declarations.
23016         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23017
23018         * m4/inet_pton.m4: Don't check for header files.
23019
23020         * m4/inet_ntop.m4: Don't check for header files.
23021
23022 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23023
23024         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23025         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23026         trigger for cygwin).
23027         Reported by Bruno Haible  <bruno@clisp.org>.
23028
23029 2008-04-28  Bruno Haible  <bruno@clisp.org>
23030
23031         * doc/posix-functions/strdup.texi: Mention mingw problem.
23032
23033 2008-04-27  Bruno Haible  <bruno@clisp.org>
23034
23035         * modules/stat-time-tests (Depends-on): Add sleep.
23036         * tests/test-stat-time.c (force_unlink): New function.
23037         (cleanup): Use it.
23038         (test_mtime): Remove the ctime related tests.
23039         (test_ctime): New function, containing the ctime related tests.
23040         (main): Call test_ctime, except on native Windows platforms.
23041
23042 2008-04-27  Bruno Haible  <bruno@clisp.org>
23043
23044         * lib/rpmatch.c (rpmatch): Add some comments.
23045         Reported by James Youngman <jay@gnu.org>.
23046
23047 2008-04-27  Bruno Haible  <bruno@clisp.org>
23048
23049         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23050         quiet NaNs.
23051
23052 2008-04-27  Bruno Haible  <bruno@clisp.org>
23053
23054         Make test-yesno.sh work on mingw.
23055         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23056         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23057         (main): Set stdin to binary mode.
23058         * modules/yesno-tests (Depends-on): Add binary-io.
23059
23060 2008-04-27  Bruno Haible  <bruno@clisp.org>
23061
23062         Fix 'isfinite' on x86, x86_64, ia64 platforms.
23063         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23064         argument that lie outside the IEEE 854 domain.
23065         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23066         (gl_ISFINITE): Use it.
23067         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23068
23069 2008-04-27  Bruno Haible  <bruno@clisp.org>
23070
23071         Allow local renaming in config.h.
23072         * lib/memrchr.c (memrchr): Don't undefine outside libc.
23073
23074 2008-04-27  Bruno Haible  <bruno@clisp.org>
23075
23076         * lib/memchr.c (__memchr): Change type of 'i'.
23077         * lib/memchr2.c (memchr2): Likewise.
23078
23079 2008-04-26  Eric Blake  <ebb9@byu.net>
23080         and Bruno Haible  <bruno@clisp.org>
23081
23082         Optimize and test memrchr.
23083         * modules/memrchr (Depends-on): Add intprops.
23084         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23085         * modules/memrchr-tests: New file.
23086         * tests/test-memrchr.c: New file.
23087
23088 2008-04-26  Bruno Haible  <bruno@clisp.org>
23089
23090         Add tentative support for DragonFly BSD.
23091         * lib/stdio-impl.h: Add macros for DragonFly BSD.
23092         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23093         fp.
23094         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23095         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23096         * lib/fpurge.c (fpurge): Likewise.
23097         * lib/freadable.c (freaadable): Likewise.
23098         * lib/freadahead.c (freadahead): Likewise.
23099         * lib/freading.c (freading): Likewise.
23100         * lib/freadptr.c (freadptr): Likewise.
23101         * lib/freadseek.c (freadptrinc): Likewise.
23102         * lib/fseeko.c (fseeko): Likewise.
23103         * lib/fseterr.c (fseterr): Likewise.
23104         * lib/fwritable.c (fwritable): Likewise.
23105         * lib/fwriting.c (fwriting): Likewise.
23106
23107 2008-04-26  Bruno Haible  <bruno@clisp.org>
23108
23109         * lib/stdio-impl.h: New file.
23110         * lib/fbufmode.c: Include stdio-impl.h.
23111         (fbufmode): Use fp_, remove redundant #defines.
23112         * lib/fflush.c: Include stdio-impl.h.
23113         (clear_ungetc_buffer): Remove redundant #defines.
23114         * lib/fpurge.c: Include stdio-impl.h.
23115         (fpurge): Remove redundant #defines.
23116         * lib/freadable.c: Include stdio-impl.h.
23117         (freadable): Remove redundant #defines.
23118         * lib/freadahead.c: Include stdio-impl.h.
23119         (freadahead): Remove redundant #defines.
23120         * lib/freading.c: Include stdio-impl.h.
23121         (freading): Remove redundant #defines.
23122         * lib/freadptr.c: Include stdio-impl.h.
23123         (freadptr): Remove redundant #defines.
23124         * lib/freadseek.c: Include stdio-impl.h.
23125         (freadptrinc): Remove redundant #defines.
23126         * lib/fseeko.c: Include stdio-impl.h.
23127         (rpl_fseeko): Remove redundant #defines.
23128         * lib/fseterr.c: Include stdio-impl.h.
23129         (fseterr): Remove redundant #defines.
23130         * lib/fwritable.c: Include stdio-impl.h.
23131         (fwritable: Remove redundant #defines.
23132         * lib/fwriting.c: Include stdio-impl.h.
23133         (fwriting): Remove redundant #defines.
23134         * modules/fbufmode (Files): Add lib/stdio-impl.h.
23135         * modules/fflush (Files): Likewise.
23136         * modules/fpurge (Files): Likewise.
23137         * modules/freadable (Files): Likewise.
23138         * modules/freadahead (Files): Likewise.
23139         * modules/freading (Files): Likewise.
23140         * modules/freadptr (Files): Likewise.
23141         * modules/freadseek (Files): Likewise.
23142         * modules/fseeko (Files): Likewise.
23143         * modules/fseterr (Files): Likewise.
23144         * modules/fwritable (Files): Likewise.
23145         * modules/fwriting (Files): Likewise.
23146
23147 2008-04-26  Bruno Haible  <bruno@clisp.org>
23148
23149         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23150         restore_seek_optimization, update_fpos_cache): New functions, extracted
23151         from rpl_fflush.
23152         (rpl_fflush): Use them.
23153         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23154         (gl_REPLACE_FFLUSH): Use it.
23155
23156 2008-04-26  Bruno Haible  <bruno@clisp.org>
23157
23158         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23159         on Solaris.
23160         * tests/test-xstrtoimax.sh: Likewise.
23161         * tests/test-xstrtoumax.sh: Likewise.
23162         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23163
23164 2008-04-26  Bruno Haible  <bruno@clisp.org>
23165
23166         * modules/memchr-tests: New file.
23167         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23168
23169 2008-04-26  Eric Blake  <ebb9@byu.net>
23170             Bruno Haible  <bruno@clisp.org>
23171
23172         * lib/memchr.c: Include intprops.h.
23173         (__memchr): Optimize parallel detection of matching bytes. Rename local
23174         variables. Add explanatory comments.
23175
23176 2008-04-26  Bruno Haible  <bruno@clisp.org>
23177
23178         Fix module 'memchr', broken since 2000-10-28.
23179         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23180
23181 2008-04-26  Bruno Haible  <bruno@clisp.org>
23182
23183         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23184         comments.
23185
23186 2008-04-25  Eric Blake  <ebb9@byu.net>
23187
23188         Use native fstatat on cygwin 1.7.0.
23189         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23190         first.
23191
23192 2008-04-23  Eric Blake  <ebb9@byu.net>
23193
23194         Improve memchr2 performance.
23195         * lib/memchr2.c (memchr2): Further optimize parallel detection of
23196         NUL bytes.
23197         * modules/memchr2 (Depends-on): Use intprops.h.
23198
23199 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23200
23201         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23202         an inline function instead of a CPP macro.  Patch by Ben Pfaff
23203         <blp@cs.stanford.edu>.
23204
23205 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23206
23207         * lib/arpa_inet.in.h: New file.
23208
23209         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23210         (Makefile.am): Sed in substitute header file.
23211
23212         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23213         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
23214
23215         * modules/inet_ntop (configure.ac): Use
23216         gl_ARPA_INET_MODULE_INDICATOR.
23217
23218         * modules/inet_pton (configure.ac): Use
23219         gl_ARPA_INET_MODULE_INDICATOR.
23220
23221 2008-04-22  Jim Meyering  <meyering@redhat.com>
23222
23223         * modules/verify (License): Re-license as LGPLv2+.
23224
23225 2008-04-22  Simon Josefsson  <simon@josefsson.org>
23226
23227         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23228         parameter to void* as per POSIX standard (MinGW uses char*).
23229
23230 2008-04-21  Bruno Haible  <bruno@clisp.org>
23231
23232         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23233         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23234         Define to replacements if REPLACE_ISWCNTRL is 1.
23235         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23236         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23237         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23238         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23239         what it fixes.
23240         * doc/posix-functions/iswalpha.texi: Likewise.
23241         * doc/posix-functions/iswblank.texi: Likewise.
23242         * doc/posix-functions/iswcntrl.texi: Likewise.
23243         * doc/posix-functions/iswdigit.texi: Likewise.
23244         * doc/posix-functions/iswgraph.texi: Likewise.
23245         * doc/posix-functions/iswlower.texi: Likewise.
23246         * doc/posix-functions/iswprint.texi: Likewise.
23247         * doc/posix-functions/iswpunct.texi: Likewise.
23248         * doc/posix-functions/iswspace.texi: Likewise.
23249         * doc/posix-functions/iswupper.texi: Likewise.
23250         * doc/posix-functions/iswxdigit.texi: Likewise.
23251         Reported by Alain Guibert.
23252
23253 2008-04-21  Bruno Haible  <bruno@clisp.org>
23254
23255         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23256         Patch by Alain Guibert.
23257
23258 2008-04-21  Bruno Haible  <bruno@clisp.org>
23259
23260         Fix test failures on mingw.
23261         * tests/test-xstrtol.c (print_no_progname): New function.
23262         (main): Install it in error_print_progname hook.
23263         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23264         * tests/test-xstrtoimax.sh: Likewise.
23265         * tests/test-xstrtoumax.sh: Likewise.
23266
23267 2008-04-21  Bruno Haible  <bruno@clisp.org>
23268
23269         Fix test failure on mingw.
23270         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23271
23272 2008-04-21  Bruno Haible  <bruno@clisp.org>
23273
23274         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23275         Actually assign a value.
23276
23277 2008-04-20  Bruno Haible  <bruno@clisp.org>
23278
23279         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23280         take 2.
23281         * lib/canonicalize.c (canonicalize_file_name): Elide if the
23282         'canonicalize-lgpl' module is also used.
23283         * lib/canonicalize-lgpl.c: Undo last change.
23284         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23285
23286 2008-04-20  Bruno Haible  <bruno@clisp.org>
23287
23288         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
23289         config.h. Provide _mkdir based fallback for mingw.
23290         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
23291         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
23292         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
23293         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
23294         rather than defining mkdir in config.h.
23295         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
23296         (gl_SYS_STAT_H_DEFAULTS): New macro.
23297         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
23298         HAVE_IO_H any more.
23299         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
23300         HAVE_DECL_MKDIR and HAVE_IO_H.
23301
23302 2008-04-20  Bruno Haible  <bruno@clisp.org>
23303
23304         * lib/isapipe.c: Port to native Windows platforms.
23305
23306 2008-04-20  Bruno Haible  <bruno@clisp.org>
23307
23308         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
23309
23310 2008-04-21  Eric Blake  <ebb9@byu.net>
23311
23312         Work around preprocessors that don't handle UINTMAX_MAX.
23313         * lib/memchr2.c (memchr2): Avoid embedded #if.
23314         Reported by Alain Guibert, fix suggested by Bruno Haible.
23315
23316 2008-04-21  Simon Josefsson  <simon@josefsson.org>
23317
23318         * doc/posix-functions/strftime.texi (strftime): Explain better
23319         Windows incompatibility.  Suggested by Micah Cowan
23320         <micah@cowan.name>.
23321
23322 2008-04-20  Bruno Haible  <bruno@clisp.org>
23323
23324         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
23325         unistr/u8-mblen.
23326
23327 2008-04-20  Bruno Haible  <bruno@clisp.org>
23328
23329         Fix test failure on platforms with non-GNU iconv.
23330         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
23331         (U_TO_U8): Use it, rather than u16_to_u8.
23332         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
23333         units at the end of the input string.
23334         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
23335
23336 2008-04-20  Bruno Haible  <bruno@clisp.org>
23337
23338         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
23339         when the resulting length is 0.
23340         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
23341
23342 2008-04-20  Bruno Haible  <bruno@clisp.org>
23343
23344         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
23345         works.
23346         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
23347
23348 2008-04-20  Bruno Haible  <bruno@clisp.org>
23349
23350         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
23351         * modules/tsearch-tests (configure.ac): Test for initstate function.
23352
23353 2008-04-20  Bruno Haible  <bruno@clisp.org>
23354
23355         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
23356         for nlink_t if missing.
23357         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
23358
23359 2008-04-19  Bruno Haible  <bruno@clisp.org>
23360
23361         Work around snprintf bug on Linux libc5.
23362         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
23363         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23364         gl_SNPRINTF_SIZE1.
23365         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23366         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
23367         that test failed.
23368         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
23369         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
23370         * modules/snprintf (Files): Add m4/printf.m4.
23371         * modules/vsnprintf (Files): Likewise.
23372         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
23373         * doc/posix-functions/vsnprintf.texi: Likewise.
23374
23375 2008-04-19  Bruno Haible  <bruno@clisp.org>
23376
23377         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
23378         from 0.0058 to less than 10^-7.
23379
23380 2008-04-19  Bruno Haible  <bruno@clisp.org>
23381
23382         Fix rounding when a precision is given.
23383         * lib/vasnprintf.c (is_borderline): New function.
23384         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
23385         9...9x.
23386         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
23387         %e, %g.
23388         * tests/test-vasprintf-posix.c (test_function): Likewise.
23389         * tests/test-snprintf-posix.h (test_function): Likewise.
23390         * tests/test-sprintf-posix.h (test_function): Likewise.
23391         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
23392         * tests/test-printf-posix.h (test_function): Likewise.
23393         * tests/test-printf-posix.output: Update.
23394         Reported by John Darrington <john@darrington.wattle.id.au> via
23395         Ben Pfaff <blp@cs.stanford.edu>.
23396
23397 2008-04-18  Simon Josefsson  <simon@josefsson.org>
23398
23399         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
23400         Suggested by Bruno Haible <bruno@clisp.org>.
23401
23402 2008-04-17  Bruno Haible  <bruno@clisp.org>
23403
23404         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
23405         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
23406         implementation.
23407         Patch by Bruce Merry <bmerry@gmail.com>.
23408
23409 2008-04-17  Simon Josefsson  <simon@josefsson.org>
23410
23411         * doc/posix-functions/strftime.texi (strftime): Mention that %e
23412         doesn't work under Windows.
23413
23414 2008-04-16  Bruno Haible  <bruno@clisp.org>
23415
23416         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
23417         New macros.
23418         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
23419         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
23420         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
23421         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
23422         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
23423         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
23424         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
23425         macros.
23426         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
23427         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
23428         Northern Sotho, Uighur.
23429
23430 2008-04-16  Bruno Haible  <bruno@clisp.org>
23431
23432         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
23433         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
23434         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
23435         Reported by Daniel Bergström <daniel@octocode.com>.
23436
23437 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
23438             Bruno Haible  <bruno@clisp.org>
23439
23440         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
23441         function.
23442         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
23443         New functions, mostly extracted from gl_locale_name_default.
23444         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
23445
23446 2008-04-16  Eric Blake  <ebb9@byu.net>
23447
23448         Adjust strtod detection to catch glibc 2.7 bug.
23449         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
23450         Reported by John Gatewood Ham.
23451
23452 2008-04-16  Bruno Haible  <bruno@clisp.org>
23453
23454         Add tentative support for Linux libc5.
23455         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
23456         * lib/fpurge.c (fpurge): Likewise.
23457         * lib/freadable.c (freadable): Likewise.
23458         * lib/freadahead.c (freadahead): Likewise.
23459         * lib/freading.c (freading): Likewise.
23460         * lib/freadptr.c (freadptr): Likewise.
23461         * lib/freadseek.c (freadptrinc): Likewise.
23462         * lib/fseeko.c (rpl_fseeko): Likewise.
23463         * lib/fseterr.c (fseterr): Likewise.
23464         * lib/fwritable.c (fwritable): Likewise.
23465         * lib/fwriting.c (fwriting): Likewise.
23466         Reported by Alain Guibert <alguibert+bts@free.fr>.
23467
23468 2008-04-15  Bruno Haible  <bruno@clisp.org>
23469
23470         * modules/mathl (configure.ac): Define module indicator.
23471
23472 2008-04-15  Bruno Haible  <bruno@clisp.org>
23473
23474         * lib/logl.c (logl): Remove unused variables.
23475
23476 2008-04-15  Bruno Haible  <bruno@clisp.org>
23477
23478         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
23479         fails.
23480
23481 2008-04-15  Bruno Haible  <bruno@clisp.org>
23482
23483         * lib/trim.c (trim2): Fix argument of isspace() macro.
23484
23485 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
23486
23487         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
23488         to 0.
23489         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
23490
23491 2008-04-14  Bruno Haible  <bruno@clisp.org>
23492
23493         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
23494         AC_LANG_PROGRAM argument.
23495         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
23496         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
23497         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23498         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23499         * m4/math_h.m4 (gl_MATH_H): Likewise.
23500         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23501         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23502         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23503         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23504         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23505         * m4/regex.m4 (gl_REGEX): Likewise.
23506         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
23507         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
23508         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23509         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
23510         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
23511         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23512         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23513         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23514
23515 2008-04-14  Jim Meyering  <meyering@redhat.com>
23516
23517         test-strtod: fix typos: s/abs/fabs/
23518         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
23519
23520 2008-04-13  Bruno Haible  <bruno@clisp.org>
23521
23522         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
23523         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
23524         module is also used and while not building the reloc-wrapper.
23525
23526 2008-04-13  Bruno Haible  <bruno@clisp.org>
23527
23528         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
23529
23530 2008-04-13  Bruno Haible  <bruno@clisp.org>
23531
23532         Fix AIX compilation failure introduced on 2008-04-02.
23533         * tests/test-frexp.c (exp): Undefine before redefining.
23534         * tests/test-frexpl.c (exp): Likewise.
23535
23536 2008-04-13  Bruno Haible  <bruno@clisp.org>
23537
23538         Work around a HP-UX stdio bug.
23539         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
23540         * tests/test-ftello.c (main): Likewise.
23541         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
23542         * doc/posix-functions/ftello.texi: Likewise.
23543
23544 2008-04-13  Bruno Haible  <bruno@clisp.org>
23545
23546         Make test-signbit pass on HP-UX/hppa.
23547         * tests/test-signbit.c (minus_zerol): New variable.
23548         (test_signbitl): Use it.
23549
23550 2008-04-13  Bruno Haible  <bruno@clisp.org>
23551
23552         Make truncl work on OSF/1 4.0.
23553         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
23554         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23555         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
23557         HAVE_DECL_TRUNCL.
23558         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
23559         HAVE_DECL_TRUNCL.
23560         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
23561
23562 2008-04-13  Bruno Haible  <bruno@clisp.org>
23563
23564         * lib/unictype.h: Remove trailing comma from enumeration definitions.
23565
23566 2008-04-13  Bruno Haible  <bruno@clisp.org>
23567
23568         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
23569         expression, so as to avoid HP-UX 11 cc compiler bug.
23570
23571 2008-04-13  Bruno Haible  <bruno@clisp.org>
23572
23573         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
23574
23575 2008-04-13  Bruno Haible  <bruno@clisp.org>
23576
23577         * lib/git-merge-changelog.c: Remove empty declaration outside of
23578         functions.
23579
23580 2008-04-13  Bruno Haible  <bruno@clisp.org>
23581
23582         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
23583
23584 2008-04-13  Bruno Haible  <bruno@clisp.org>
23585
23586         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
23587         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
23588         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
23589         also if it exists but lacks definitions of the SHUT_* macros.
23590         * modules/sys_socket (Description): Update.
23591         Reported by Elbert Pol <e.pol@chello.nl>.
23592
23593 2008-04-13  Bruno Haible  <bruno@clisp.org>
23594
23595         * lib/localcharset.c (OS2): Don't redefine if already defined.
23596         Reported by Elbert Pol <e.pol@chello.nl>.
23597
23598 2008-04-13  Bruno Haible  <bruno@clisp.org>
23599
23600         * lib/binary-io.h [__EMX__]: Include <io.h>.
23601         Reported by Elbert Pol <e.pol@chello.nl>.
23602
23603 2008-04-12  Bruno Haible  <bruno@clisp.org>
23604
23605         * lib/fpucw.h: Enable the definitions also for x86_64.
23606         Needed for NetBSD/x86_64.
23607         Reported by Thomas Klausner <tk@giga.or.at>.
23608
23609 2008-04-12  Bruno Haible  <bruno@clisp.org>
23610
23611         * tests/test-strtod.c: Include isnand.h.
23612         (main): Use isnand instead of isnan.
23613         Reported by Jim Meyering.
23614
23615 2008-04-12  Bruno Haible  <bruno@clisp.org>
23616
23617         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
23618         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23619
23620 2008-04-12  Jim Meyering  <meyering@redhat.com>
23621
23622         * m4/math_h.m4 (gl_MATH_H): Fix typos.
23623
23624 2008-04-12  Bruno Haible  <bruno@clisp.org>
23625
23626         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
23627         Reported by Elbert Pol <e.pol@chello.nl>.
23628
23629 2008-04-12  Eric Blake  <ebb9@byu.net>
23630
23631         Work around Solaris 10 math.h bug.
23632         * m4/math_h.m4 (gl_MATH_H): Check for bug.
23633         (gl_MATH_H_DEFAULTS): Set up default.
23634         * modules/math (Makefile.am): Replace new indicators.
23635         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
23636         * tests/test-math.c (main): Test this.
23637         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
23638         * doc/posix-headers/math.texi (math.h): Mention bug.
23639         Reported by Nelson H. F. Beebe and Jim Meyering.
23640
23641 2008-04-11  Bruno Haible  <bruno@clisp.org>
23642
23643         Adapt to future versions of Apple GCC.
23644         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
23645         Reported by Peter O'Gorman <peter@pogma.com>.
23646
23647 2008-04-11  Bruno Haible  <bruno@clisp.org>
23648
23649         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
23650
23651 2008-04-11  Bruno Haible  <bruno@clisp.org>
23652
23653         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
23654
23655         * modules/getaddrinfo-tests (Makefile.am): Define
23656         test_getaddrinfo_LDADD.
23657
23658 2008-04-11  Bruno Haible  <bruno@clisp.org>
23659
23660         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
23661         (init): Fix syntax error.
23662         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
23663         is declared.
23664
23665 2008-04-11  Bruno Haible  <bruno@clisp.org>
23666
23667         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
23668         * modules/glob (Depends-on): Add stdbool.
23669
23670 2008-04-11  Bruno Haible  <bruno@clisp.org>
23671
23672         * lib/trim.c: Include <string.h>.
23673
23674 2008-04-11  Eric Blake  <ebb9@byu.net>
23675
23676         Avoid compile failure on OS/2.
23677         * lib/regex_internal.h (internal_function): Disable optimization
23678         on OS/2 (__EMX__), where it caused compiler error.
23679         Reported by Elbert Pol.
23680
23681 2008-04-11  Bruno Haible  <bruno@clisp.org>
23682
23683         Flush the standard error stream before aborting. Needed on mingw.
23684         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
23685         * tests/test-array_list.c (ASSERT): Likewise.
23686         * tests/test-array_oset.c (ASSERT): Likewise.
23687         * tests/test-avltree_list.c (ASSERT): Likewise.
23688         * tests/test-avltree_oset.c (ASSERT): Likewise.
23689         * tests/test-avltreehash_list.c (ASSERT): Likewise.
23690         * tests/test-binary-io.c (ASSERT): Likewise.
23691         * tests/test-byteswap.c (ASSERT): Likewise.
23692         * tests/test-c-ctype.c (ASSERT): Likewise.
23693         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
23694         * tests/test-c-strcasestr.c (ASSERT): Likewise.
23695         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
23696         * tests/test-c-strstr.c (ASSERT): Likewise.
23697         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
23698         * tests/test-canonicalize.c (ASSERT): Likewise.
23699         * tests/test-carray_list.c (ASSERT): Likewise.
23700         * tests/test-ceilf1.c (ASSERT): Likewise.
23701         * tests/test-ceilf2.c (ASSERT): Likewise.
23702         * tests/test-ceill.c (ASSERT): Likewise.
23703         * tests/test-count-one-bits.c (ASSERT): Likewise.
23704         * tests/test-fbufmode.c (ASSERT): Likewise.
23705         * tests/test-fflush2.c (ASSERT): Likewise.
23706         * tests/test-floorf1.c (ASSERT): Likewise.
23707         * tests/test-floorf2.c (ASSERT): Likewise.
23708         * tests/test-floorl.c (ASSERT): Likewise.
23709         * tests/test-fopen.c (ASSERT): Likewise.
23710         * tests/test-fpending.c (ASSERT): Likewise.
23711         * tests/test-fprintf-posix.c (ASSERT): Likewise.
23712         * tests/test-fpurge.c (ASSERT): Likewise.
23713         * tests/test-freadable.c (ASSERT): Likewise.
23714         * tests/test-freadahead.c (ASSERT): Likewise.
23715         * tests/test-freading.c (ASSERT): Likewise.
23716         * tests/test-freadptr.c (ASSERT): Likewise.
23717         * tests/test-freadptr2.c (ASSERT): Likewise.
23718         * tests/test-freadseek.c (ASSERT): Likewise.
23719         * tests/test-freopen.c (ASSERT): Likewise.
23720         * tests/test-frexp.c (ASSERT): Likewise.
23721         * tests/test-frexpl.c (ASSERT): Likewise.
23722         * tests/test-fseek.c (ASSERT): Likewise.
23723         * tests/test-fseeko.c (ASSERT): Likewise.
23724         * tests/test-fstrcmp.c (ASSERT): Likewise.
23725         * tests/test-ftell.c (ASSERT): Likewise.
23726         * tests/test-ftello.c (ASSERT): Likewise.
23727         * tests/test-func.c (ASSERT): Likewise.
23728         * tests/test-fwritable.c (ASSERT): Likewise.
23729         * tests/test-fwriting.c (ASSERT): Likewise.
23730         * tests/test-getdelim.c (ASSERT): Likewise.
23731         * tests/test-getline.c (ASSERT): Likewise.
23732         * tests/test-i-ring.c (ASSERT): Likewise.
23733         * tests/test-iconv-utf.c (ASSERT): Likewise.
23734         * tests/test-iconv.c (ASSERT): Likewise.
23735         * tests/test-isfinite.c (ASSERT): Likewise.
23736         * tests/test-isnand.c (ASSERT): Likewise.
23737         * tests/test-isnanf.c (ASSERT): Likewise.
23738         * tests/test-isnanl.h (ASSERT): Likewise.
23739         * tests/test-ldexpl.c (ASSERT): Likewise.
23740         * tests/test-linked_list.c (ASSERT): Likewise.
23741         * tests/test-linkedhash_list.c (ASSERT): Likewise.
23742         * tests/test-localename.c (ASSERT): Likewise.
23743         * tests/test-lseek.c (ASSERT): Likewise.
23744         * tests/test-mbscasecmp.c (ASSERT): Likewise.
23745         * tests/test-mbscasestr1.c (ASSERT): Likewise.
23746         * tests/test-mbscasestr2.c (ASSERT): Likewise.
23747         * tests/test-mbscasestr3.c (ASSERT): Likewise.
23748         * tests/test-mbscasestr4.c (ASSERT): Likewise.
23749         * tests/test-mbschr.c (ASSERT): Likewise.
23750         * tests/test-mbscspn.c (ASSERT): Likewise.
23751         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
23752         * tests/test-mbspbrk.c (ASSERT): Likewise.
23753         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
23754         * tests/test-mbsrchr.c (ASSERT): Likewise.
23755         * tests/test-mbsspn.c (ASSERT): Likewise.
23756         * tests/test-mbsstr1.c (ASSERT): Likewise.
23757         * tests/test-mbsstr2.c (ASSERT): Likewise.
23758         * tests/test-mbsstr3.c (ASSERT): Likewise.
23759         * tests/test-memchr2.c (ASSERT): Likewise.
23760         * tests/test-memmem.c (ASSERT): Likewise.
23761         * tests/test-open.c (ASSERT): Likewise.
23762         * tests/test-printf-frexp.c (ASSERT): Likewise.
23763         * tests/test-printf-frexpl.c (ASSERT): Likewise.
23764         * tests/test-printf-posix.c (ASSERT): Likewise.
23765         * tests/test-quotearg.c (ASSERT): Likewise.
23766         * tests/test-rbtree_list.c (ASSERT): Likewise.
23767         * tests/test-rbtree_oset.c (ASSERT): Likewise.
23768         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
23769         * tests/test-round1.c (ASSERT): Likewise.
23770         * tests/test-roundf1.c (ASSERT): Likewise.
23771         * tests/test-roundl.c (ASSERT): Likewise.
23772         * tests/test-signbit.c (ASSERT): Likewise.
23773         * tests/test-sleep.c (ASSERT): Likewise.
23774         * tests/test-snprintf-posix.c (ASSERT): Likewise.
23775         * tests/test-snprintf.c (ASSERT): Likewise.
23776         * tests/test-sprintf-posix.c (ASSERT): Likewise.
23777         * tests/test-stat-time.c (ASSERT): Likewise.
23778         * tests/test-strcasestr.c (ASSERT): Likewise.
23779         * tests/test-strerror.c (ASSERT): Likewise.
23780         * tests/test-striconv.c (ASSERT): Likewise.
23781         * tests/test-striconveh.c (ASSERT): Likewise.
23782         * tests/test-striconveha.c (ASSERT): Likewise.
23783         * tests/test-strsignal.c (ASSERT): Likewise.
23784         * tests/test-strstr.c (ASSERT): Likewise.
23785         * tests/test-strtod.c (ASSERT): Likewise.
23786         * tests/test-trunc1.c (ASSERT): Likewise.
23787         * tests/test-trunc2.c (ASSERT): Likewise.
23788         * tests/test-truncf1.c (ASSERT): Likewise.
23789         * tests/test-truncf2.c (ASSERT): Likewise.
23790         * tests/test-truncl.c (ASSERT): Likewise.
23791         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
23792         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
23793         * tests/test-vasnprintf.c (ASSERT): Likewise.
23794         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
23795         * tests/test-vasprintf.c (ASSERT): Likewise.
23796         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
23797         * tests/test-vprintf-posix.c (ASSERT): Likewise.
23798         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
23799         * tests/test-vsnprintf.c (ASSERT): Likewise.
23800         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
23801         * tests/test-wcwidth.c (ASSERT): Likewise.
23802         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
23803         * tests/test-xprintf-posix.c (ASSERT): Likewise.
23804         * tests/test-xvasprintf.c (ASSERT): Likewise.
23805         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
23806         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
23807         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
23808         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
23809         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
23810         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
23811         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
23812         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
23813         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
23814         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
23815         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
23816         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
23817         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
23818         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
23819         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
23820         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
23821         * tests/unictype/test-block_list.c (ASSERT): Likewise.
23822         * tests/unictype/test-block_of.c (ASSERT): Likewise.
23823         * tests/unictype/test-block_test.c (ASSERT): Likewise.
23824         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
23825         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
23826         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
23827         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
23828         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
23829         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
23830         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
23831         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
23832         * tests/unictype/test-combining.c (ASSERT): Likewise.
23833         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
23834         * tests/unictype/test-digit.c (ASSERT): Likewise.
23835         * tests/unictype/test-mirror.c (ASSERT): Likewise.
23836         * tests/unictype/test-numeric.c (ASSERT): Likewise.
23837         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
23838         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
23839         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
23840         * tests/unictype/test-scripts.c (ASSERT): Likewise.
23841         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
23842         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
23843         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
23844         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
23845         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
23846         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
23847         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
23848         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
23849         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
23850         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
23851         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
23852         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
23853         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
23854         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
23855         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
23856         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
23857         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
23858         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
23859         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
23860         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
23861         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
23862         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
23863         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
23864         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
23865         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
23866         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
23867         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
23868         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
23869         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
23870         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
23871         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
23872         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
23873         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
23874         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
23875         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
23876         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
23877         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
23878         Reported by Eric Blake.
23879
23880 2008-04-11  Bruno Haible  <bruno@clisp.org>
23881
23882         * lib/wchar.in.h: Tweak comment.
23883
23884 2008-04-11  Bruno Haible  <bruno@clisp.org>
23885
23886         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
23887         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
23888         gl_COMMON.
23889         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
23890
23891 2008-04-11  Bruno Haible  <bruno@clisp.org>
23892
23893         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
23894
23895 2008-04-11  Simon Josefsson  <simon@josefsson.org>
23896
23897         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
23898         of attempting to use non-existing /dev/*random.  Based on patch
23899         from Adam Strzelecki <ono@java.pl> in
23900         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
23901
23902 2008-04-08  Bruno Haible  <bruno@clisp.org>
23903
23904         Add tentative support for emx+gcc.
23905         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
23906         * lib/fpurge.c (fpurge): Likewise.
23907         * lib/freadable.c (freadable): Likewise.
23908         * lib/freadahead.c (freadahead): Likewise.
23909         * lib/freading.c (freading): Likewise.
23910         * lib/freadptr.c (freadptr): Likewise.
23911         * lib/freadseek.c (freadptrinc): Likewise.
23912         * lib/fseeko.c (rpl_fseeko): Likewise.
23913         * lib/fseterr.c (fseterr): Likewise.
23914         * lib/fwritable.c (fwritable): Likewise.
23915         * lib/fwriting.c (fwriting): Likewise.
23916         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
23917
23918 2008-04-09  Eric Blake  <ebb9@byu.net>
23919
23920         Avoid some autoconf warnings.
23921         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
23922         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
23923         * m4/afs.m4 (gl_AFS): Likewise.
23924         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
23925         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
23926         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23927         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
23928         (gl_INTEGER_TYPE_SUFFIX): Likewise.
23929         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
23930         (AC_CHECK_DECLS_ONCE): Likewise.
23931         Rename file...
23932         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
23933         gnulib-tool requires autoconf 2.59 or better.
23934         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
23935
23936 2008-04-08  Eric Blake  <ebb9@byu.net>
23937
23938         Use 'git describe --match' if present (added in git 1.5.5).
23939         * build-aux/git-version-gen: Limit result to tags that match 'v*'
23940         if possible.
23941
23942 2008-04-08  Bruno Haible  <bruno@clisp.org>
23943
23944         Add tentative support for OpenServer.
23945         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
23946         _ptr, _cnt.
23947         * lib/fpurge.c (fpurge): Likewise.
23948         * lib/freadable.c (freadable): Likewise.
23949         * lib/freadahead.c (freadahead): Likewise.
23950         * lib/freading.c (freading): Likewise.
23951         * lib/freadptr.c (freadptr): Likewise.
23952         * lib/freadseek.c (freadptrinc): Likewise.
23953         * lib/fseeko.c (rpl_fseeko): Likewise.
23954         * lib/fseterr.c (fseterr): Likewise.
23955         * lib/fwritable.c (fwritable): Likewise.
23956         * lib/fwriting.c (fwriting): Likewise.
23957         Reported by Roger Cornelius <rac@tenzing.org> and
23958         Brian K. White <brian@aljex.com>.
23959
23960 2008-04-06  Jim Meyering  <meyering@redhat.com>
23961
23962         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
23963
23964 2008-04-06  Bruno Haible  <bruno@clisp.org>
23965
23966         Avoid possible error with non-ASCII bytes in UTF-8 locales.
23967         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
23968         * tests/test-printf-posix.sh: Likewise.
23969         * tests/test-vfprintf-posix.sh: Likewise.
23970         * tests/test-vprintf-posix.sh: Likewise.
23971         * tests/test-xprintf-posix.sh: Likewise.
23972
23973 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23974
23975         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
23976         hide error from 'ls', needed on OS/2.
23977         Report by Elbert Pol <elbert.pol@gmail.com>.
23978
23979 2008-04-04  Eric Blake  <ebb9@byu.net>
23980
23981         Make test-fseeko.c failures meaningful.
23982         * tests/test-fseeko.c: Print line number on failure.
23983         * tests/test-fseek.c: Likewise.
23984         Reported by Nelson H. F. Beebe.
23985
23986         Improve strtod bug detection check.
23987         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
23988         required for Solaris 10.
23989         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
23990
23991 2008-04-04  Bruno Haible  <bruno@clisp.org>
23992
23993         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
23994         by m4/setenv.m4.
23995
23996 2008-04-03  Eric Blake  <ebb9@byu.net>
23997
23998         Ensure sane .version contents.
23999         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24000         version string.
24001         * build-aux/git-version-gen: Improve documentation.
24002
24003         Make GNU make output nicer.
24004         * top/GNUmakefile [!_have-Makefile]: Add dependency on
24005         MAKECMDGOALS to enforce message for all command line targets.  Set
24006         srcdir for use in maint.mk.
24007
24008         Another maintainer tweak.
24009         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24010         a target that regenerates version.
24011
24012 2008-04-03  Jim Meyering  <meyering@redhat.com>
24013
24014         vc-list-files: don't cause coreutils "make po-check" failure
24015         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24016
24017 2008-04-03  Eric Blake  <ebb9@byu.net>
24018
24019         Allow VPATH usage of vc-list-files.
24020         * build-aux/vc-list-files (scriptversion): Add timestamp.
24021         (options): Add --help, --version, -C.
24022         (CVS): Support installed cvsu.
24023
24024 2008-04-02  Bruno Haible  <bruno@clisp.org>
24025
24026         Avoid some "statement with no effect" warnings from gcc.
24027         * tests/test-wctype.c (main): Explicitly ignore unused values.
24028         Reported by Jim Meyering.
24029
24030 2008-04-02  Jim Meyering  <meyering@redhat.com>
24031
24032         Avoid some warnings from "gcc -Wshadow".
24033         * tests/test-frexp.c (exp): Define to a different identifier.
24034         * tests/test-frexpl.c (exp): Likewise.
24035
24036 2008-04-03  Jim Meyering  <meyering@redhat.com>
24037
24038         bootstrap: remove dangling *.[ch] symlinks from lib
24039         * build-aux/bootstrap [dangling symlink removal]: Move find's
24040         -depth option to precede all others, to avoid a warning.
24041         Remove *.[ch] files too, and from "$source_base" (usually lib/).
24042
24043 2008-04-02  Bruno Haible  <bruno@clisp.org>
24044
24045         Avoid some warnings from "gcc -Wshadow".
24046         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24047         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24048         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24049         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24050         Reported by Jim Meyering.
24051
24052 2008-04-01  Bruno Haible  <bruno@clisp.org>
24053
24054         Fix test to work on IRIX 6.5 with cc.
24055         * tests/test-math.c (numeric_equal): New function.
24056         (main): Use it.
24057
24058 2008-04-01  Bruno Haible  <bruno@clisp.org>
24059
24060         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24061
24062 2008-04-01  Bruno Haible  <bruno@clisp.org>
24063
24064         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24065         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24066         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24067         (Depends-on): Remove math.
24068
24069         * tests/test-vasprintf-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/vasprintf-posix-tests (Files): Add tests/nan.h.
24072         (Depends-on): Remove math.
24073
24074         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24075         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24076         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24077         (Depends-on): Remove math.
24078         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24079         (Depends-on): Remove math.
24080
24081         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24082         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24083         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24084         (Depends-on): Remove math.
24085         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24086         (Depends-on): Remove math.
24087
24088         * tests/test-round1.c: Include nan.h.
24089         (main): Use NaNd instead of NAN.
24090         * modules/round-tests (Files): Add tests/nan.h.
24091
24092         * tests/test-trunc1.c: Include nan.h.
24093         (main): Use NaNd instead of NAN.
24094         * modules/trunc-tests (Files): Add tests/nan.h.
24095
24096         * tests/test-roundf1.c: Include nan.h.
24097         (main): Use NaNf instead of NAN.
24098         * modules/roundf-tests (Files): Add tests/nan.h.
24099
24100         * tests/test-truncf1.c: Include nan.h.
24101         (main): Use NaNf instead of NAN.
24102         * modules/truncf-tests (Files): Add tests/nan.h.
24103
24104         * tests/test-ceilf1.c: Include nan.h.
24105         (main): Use NaNf instead of NAN.
24106         * modules/ceilf-tests (Files): Add tests/nan.h.
24107
24108         * tests/test-floorf1.c: Include nan.h.
24109         (main): Use NaNf instead of NAN.
24110         * modules/floorf-tests (Files): Add tests/nan.h.
24111
24112         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24113         (main): Use NaNf instead of NAN.
24114         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24115
24116         * tests/test-isnand.c: Include nan.h instead of <math.h>.
24117         (main): Use NaNd instead of NAN.
24118         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24119
24120         * tests/test-frexp.c: Include nan.h.
24121         (main): Use NaNd instead of NAN.
24122         * modules/frexp-tests (Files): Add tests/nan.h.
24123
24124         * lib/isnan.c: Don't include <math.h>.
24125         (FUNC): Don't use NAN macro.
24126         * modules/isnand-nolibm (Depends-on): Remove math.
24127         * modules/isnanf-nolibm (Depends-on): Remove math.
24128         * modules/isnanl (Depends-on): Remove math.
24129         * modules/isnanl-nolibm (Depends-on): Remove math.
24130
24131         * tests/nan.h: New file.
24132
24133 2008-04-01  Eric Blake  <ebb9@byu.net>
24134
24135         Fix typos.
24136         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24137         values to be the right type.
24138
24139         For now, cater to gnulib strtod inaccuracies.
24140         * tests/test-strtod.c (main): Allow 1-ulp error on expected
24141         fractional results.  While not as nice from a QoI perspective, it
24142         is a quicker patch than correctly implementing decimal to binary
24143         rounding.
24144
24145 2008-03-31  Eric Blake  <ebb9@byu.net>
24146
24147         Guarantee a definition of NAN.
24148         * lib/math.in.h (NAN): Define if missing.
24149         * tests/test-math.c (main): Test it.
24150         * doc/posix-headers/math.texi (math.h): Document this.
24151         * lib/isnan.c (rpl_isnand): Use it.
24152         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24153         * tests/test-floorf1.c (NaN): Likewise.
24154         * tests/test-frexp.c (NaN): Likewise.
24155         * tests/test-isnand.c (NaN): Likewise.
24156         * tests/test-isnanf.c (NaN): Likewise.
24157         * tests/test-round1.c (NaN): Likewise.
24158         * tests/test-roundf1.c (NaN): Likewise.
24159         * tests/test-snprintf-posix.h (NaN): Likewise.
24160         * tests/test-sprintf-posix.h (NaN): Likewise.
24161         * tests/test-trunc1.c (NaN): Likewise.
24162         * tests/test-truncf1.c (NaN): Likewise.
24163         * tests/test-vasnprintf-posix.c (NaN): Likewise.
24164         * tests/test-vasprintf-posix.c (NaN): Likewise.
24165         * modules/isnand-nolibm (Depends-on): Add math.
24166         * modules/isnanf-nolibm (Depends-on): Likewise.
24167         * modules/isnanl (Depends-on): Likewise.
24168         * modules/isnanl-nolibm (Depends-on): Likewise.
24169         * modules/snprintf-posix-tests (Depends-on): Likewise.
24170         * modules/sprintf-posix-tests (Depends-on): Likewise.
24171         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24172         * modules/vsprintf-posix-tests (Depends-on): Likewise.
24173         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24174         * modules/vasprintf-posix-tests (Depends-on): Likewise.
24175
24176 2008-03-31  Bruno Haible  <bruno@clisp.org>
24177
24178         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24179         * doc/posix-functions/strtod.texi: Likewise.
24180
24181 2008-03-31  Bruno Haible  <bruno@clisp.org>
24182
24183         * tests/test-strtod.c (main): Don't use C99 syntax.
24184
24185 2008-03-31  Bruno Haible  <bruno@clisp.org>
24186
24187         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24188         Reported by Eric Blake.
24189
24190 2008-03-31  Jim Meyering  <meyering@redhat.com>
24191
24192         Don't compare actual signbit return values.
24193         * tests/test-strtod.c (main): Rather, compare only their
24194         zero/non-zero nature.
24195
24196 2008-03-31  Eric Blake  <ebb9@byu.net>
24197
24198         More strtod documentation.
24199         * doc/posix-functions/strtod.texi (strtod): Interpret more test
24200         failures as distinct bugs.
24201
24202 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24203
24204         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24205         Problem reported by Erik Benada in
24206         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24207
24208 2008-03-30  Bruno Haible  <bruno@clisp.org>
24209
24210         * tests/test-strtod.c: Add comments about which assertion fails on which
24211         platform.
24212         * doc/posix-functions/strtod.texi: Add info about many more platforms.
24213
24214 2008-03-30  Eric Blake  <ebb9@byu.net>
24215
24216         Test signbit behavior on zeros.
24217         * tests/test-signbit.c (test_signbitf): Add tests for zero.
24218         (test_signbitd, test_signbitl): Likewise.
24219
24220         More strtod touchups.
24221         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24222         sign of negative underflow, for now.  Use .5, not .1.
24223         * doc/posix-functions/strtod.texi (strtod): Mention these
24224         limitations.
24225         Reported by Jim Meyering.
24226
24227 2008-03-30  Bruno Haible  <bruno@clisp.org>
24228
24229         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24230         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24231
24232 2008-03-30  Bruno Haible  <bruno@clisp.org>
24233
24234         Avoid failure when attempting to return empty iconv results on some
24235         platforms.
24236         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24237         allocation, don't report ENOMEM when the resulting string is empty.
24238
24239 2008-03-30  Bruno Haible  <bruno@clisp.org>
24240
24241         Fix buffer overrun.
24242         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24243         Don't consider the width for tmp_length. Check count against tmp_length
24244         before doing the padding. Ensure enough allocation during padding.
24245
24246 2008-03-30  Eric Blake  <ebb9@byu.net>
24247
24248         strtod touchups.
24249         * lib/strtod.c (strtod): Avoid compiler warnings.
24250         Reported by Jim Meyering.
24251
24252 2008-03-30  Bruno Haible  <bruno@clisp.org>
24253
24254         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24255         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24256         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24257         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24258         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24259         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24260         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24261         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24262
24263         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24264         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24265         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24266         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24267         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24268         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24269         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24270         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24271
24272         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24273         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24274         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24275         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24276         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24277         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24278         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24279         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24280
24281         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24282         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24283
24284         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24285         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24286
24287         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
24288         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
24289
24290         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
24291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
24292         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
24293
24294         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
24295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
24296         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
24297
24298         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
24299         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
24300         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
24301
24302         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
24303         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
24304         * modules/vasprintf (Depends-on): Add EOVERFLOW.
24305
24306         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
24307         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
24308         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
24309         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
24310         (Depends-on): Add EOVERFLOW.
24311         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
24312         (Depends-on): Add EOVERFLOW.
24313         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24314         (Depends-on): Add EOVERFLOW.
24315         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24316         (Depends-on): Add EOVERFLOW.
24317         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24318         (Depends-on): Add EOVERFLOW.
24319         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24320         (Depends-on): Add EOVERFLOW.
24321         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24322         (Depends-on): Add EOVERFLOW.
24323         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24324         (Depends-on): Add EOVERFLOW.
24325
24326         * lib/sprintf.c (EOVERFLOW): Remove fallback.
24327         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
24328         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
24329
24330         * lib/snprintf.c (EOVERFLOW): Remove fallback.
24331         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
24332         * modules/snprintf (Depends-on): Add EOVERFLOW.
24333
24334         * lib/poll.c (EOVERFLOW): Remove fallback.
24335         * modules/poll (Depends-on): Add EOVERFLOW.
24336
24337         * lib/getugroups.c (EOVERFLOW): Remove fallback.
24338         * modules/getugroups (Depends-on): Add EOVERFLOW.
24339
24340         * lib/getdelim.c (EOVERFLOW): Remove fallback.
24341         * modules/getdelim (Depends-on): Add EOVERFLOW.
24342
24343         * lib/ftell.c (EOVERFLOW): Remove fallback.
24344         * modules/ftell (Depends-on): Add EOVERFLOW.
24345
24346         * lib/fprintf.c (EOVERFLOW): Remove fallback.
24347         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
24348         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
24349
24350         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
24351
24352         * modules/EOVERFLOW-tests: New file.
24353         * tests/test-EOVERFLOW.c: New file.
24354
24355         * modules/EOVERFLOW: New file.
24356         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
24357
24358 2008-03-30  Bruno Haible  <bruno@clisp.org>
24359
24360         Fix bug introduced on 2007-06-10.
24361         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
24362         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
24363
24364 2008-03-30  Bruno Haible  <bruno@clisp.org>
24365
24366         Improve freadseek's efficiency after ungetc.
24367         * lib/freadseek.c: Include freadahead.h.
24368         (freadptrinc): New function, extracted from freadseek.
24369         (freadseek): Use it in a loop. Use freadahead to determine the number
24370         of loop iterations.
24371         * modules/freadseek (Depends-on): Add freadahead.
24372         (configure.ac): Require AC_C_INLINE.
24373
24374 2008-03-30  Bruno Haible  <bruno@clisp.org>
24375
24376         * lib/freadseek.c (freadseek): Don't ignore the return value of
24377         freadptr.
24378
24379 2008-03-29  Eric Blake  <ebb9@byu.net>
24380
24381         Add hex float support.
24382         * modules/strtod (Depends-on): Add c-ctype.
24383         (Link): Mention POW_LIB.
24384         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
24385         whitespace between 'e' and exponent.
24386         * tests/test-strtod.c (main): Enable hex float tests.
24387         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
24388         now provides.
24389
24390         Document various strtod bugs, with some fixes.
24391         * doc/posix-functions/strtod.texi (strtod): Document bugs with
24392         "-0x", "inf", "nan", and hex constants.
24393         * doc/posix-functions/atof.texi (atof): Likewise.
24394         * modules/stdlib (Makefile.am): Support strtod.
24395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24396         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
24397         detect additional strtod bugs.
24398         * lib/stdlib.in.h (rpl_strtod): Add declarations.
24399         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
24400         bool where appropriate.  Parse 'inf' and 'nan'.
24401         * tests/test-strtod.c: New file.
24402         * modules/strtod (Depends-on): Add stdbool, stdlib.
24403         (configure.ac): Turn on module indicator.
24404         * modules/strtod-tests: New module.
24405
24406 2008-03-29  Eric Blake  <ebb9@byu.net>
24407
24408         Fix ftell on mingw.
24409         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
24410         * modules/ftell-tests (Depends-on): Add binary-io.
24411         * modules/ftello-tests (Depends-on): Likewise.
24412         * tests/test-ftell.c (main): Enhance test to cover behavior after
24413         ungetc.  Enforce binary mode.
24414         * tests/test-ftello.c (main): Likewise.
24415
24416         Pass test-freadseek on cygwin.
24417         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
24418         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
24419         ungetc buffer.
24420
24421         * tests/test-fflush2.c (main): Fix typo.
24422
24423 2008-03-29  Bruno Haible  <bruno@clisp.org>
24424
24425         * tests/test-fflush2.c (main): Temporarily disable the contents of
24426         this test.
24427         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
24428         Reported by Eric Blake.
24429
24430 2008-03-28  Simon Josefsson  <simon@josefsson.org>
24431
24432         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
24433         (GC_SHA224_DIGEST_SIZE): Add.
24434
24435         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
24436         (gc_hash_digest_length): Likewise.
24437         (gc_hash_buffer): Likewise.
24438
24439 2008-03-25  Bruno Haible  <bruno@clisp.org>
24440
24441         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
24442         detail which gettext release to use.
24443         Reported by Simon Josefsson.
24444
24445 2008-03-26  Jim Meyering  <meyering@redhat.com>
24446
24447         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
24448         * modules/gnumakefile (clean-GNUmakefile): Also, use
24449         test ... && ... || : syntax rather than if-then ... fi.
24450
24451         gnumakefile: Don't double-quote-expand $(VPATH) value.
24452         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
24453
24454 2008-03-24  Eric Blake  <ebb9@byu.net>
24455
24456         Alter GNUmakefile to install into top directory.
24457         * modules/maintainer-makefile: Split, and add dependency...
24458         * modules/gnumakefile: to this new module.
24459         * build-aux/GNUmakefile: Move...
24460         * top/GNUmakefile: ...here.
24461         * build-aux/maint.mk: Move...
24462         * top/maint.mk: ...here.
24463         * MODULES.html.sh (Support for maintaining...): Document new
24464         module.
24465
24466 2008-03-23  Bruno Haible  <bruno@clisp.org>
24467
24468         * gnulib-tool: New options --vc-files, --no-vc-files.
24469         (func_usage): Document them.
24470         (vc_files): New variable.
24471         (func_import): Consider vc_files.
24472         (func_create_testdir): Set vc_files to empty.
24473         Suggested by Jim Meyering and Karl Berry.
24474
24475 2008-03-23  Bruno Haible  <bruno@clisp.org>
24476
24477         Fix regex compilation error on HP-UX 11.
24478         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
24479         * modules/regex (Files): Add m4/mbstate_t.m4.
24480         Reported by Ton Voon <ton.voon@altinity.com>.
24481
24482 2008-03-23  Bruno Haible  <bruno@clisp.org>
24483
24484         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
24485
24486 2008-03-23  Eric Blake  <ebb9@byu.net>
24487             Bruno Haible  <bruno@clisp.org>
24488
24489         Install files from top/ in the destination directory.
24490         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
24491         augmentation also for the files from top/.
24492         (func_import, func_create_testdir): Rewrite file names:
24493         top/filename -> filename.
24494
24495 2008-03-23  Bruno Haible  <bruno@clisp.org>
24496
24497         Tweak "gnulib --version" output.
24498         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
24499
24500 2008-03-23  Bruno Haible  <bruno@clisp.org>
24501
24502         Tweak "gnulib --version" output.
24503         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
24504         rather than contents of ChangeLog, when possible.
24505
24506 2008-03-21  Eric Blake  <ebb9@byu.net>
24507
24508         More --version tweaks.
24509         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
24510         date of last ChangeLog entry.
24511
24512 2008-03-21  Jim Meyering  <meyering@redhat.com>
24513
24514         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
24515
24516 2008-03-20  Eric Blake  <ebb9@byu.net>
24517
24518         VPATH fix.
24519         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
24520
24521 2008-03-20  Simon Josefsson  <simon@josefsson.org>
24522
24523         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
24524         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
24525
24526 2008-03-20  Eric Blake  <ebb9@byu.net>
24527
24528         Sync GNUmakefile with coreutils.
24529         * build-aux/GNUmakefile (have-Makefile): Rename...
24530         (_have-Makefile): ...to this, for namespace consideration.
24531         (GNUmakefile.cfg): Include, if present.
24532         (_autoreconf): Define a default.
24533         (_is-dist-target): New rule for rebuilds to pick up intra-release
24534         version.
24535         (maint-cfg.mk): Rename...
24536         (cfg.mk): ...to this.
24537
24538 2008-03-18  Jim Meyering  <meyering@redhat.com>
24539
24540         New script and module: mktempd
24541         * MODULES.html.sh (maint+release support): Add mktempd.
24542         * build-aux/mktempd: New file.
24543         * modules/mktempd: New file.
24544
24545 2008-03-15  Jim Meyering  <meyering@redhat.com>
24546
24547         Undo last change.
24548         * lib/sha1.c, lib/md5.c: 63 != ~63.
24549         Reported by Andreas Schwab.
24550
24551         sha1.c, md5.c: Hoist a redundant expression.
24552         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
24553         "ctx->buflen" only once, before calling *_process_block.
24554         * lib/md5.c (md5_process_bytes): Likewise.
24555
24556 2008-03-14  Eric Blake  <ebb9@byu.net>
24557
24558         Bump copyright year in files generated by gnulib-tool.
24559         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
24560         gnulib-tool, rather than hard-coding it.
24561
24562         Fix 'gnulib-tool --version' output to work with git.
24563         * gnulib-tool (func_gnulib_dir): New function, extracted from...
24564         (startup): ...here.
24565         (func_version): Use it to invoke git-version-gen, rather than
24566         relying on CVS keyword expansion.  Modernize wording.
24567         (cvsdatestamp, last_checkin_date, version): Kill unused
24568         variables.
24569
24570 2008-03-12  Jim Meyering  <meyering@redhat.com>
24571
24572         Recognize optional cast of the argument to free.
24573         * build-aux/useless-if-before-free: Update regexps.
24574
24575         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
24576
24577 2008-03-11  Bruno Haible  <bruno@clisp.org>
24578
24579         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
24580         by a single package.
24581         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
24582         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
24583         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
24584         Reported by Sam Steingold <sds@gnu.org>.
24585
24586 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24587
24588         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
24589         repositories.
24590
24591 2008-03-11  Bruno Haible  <bruno@clisp.org>
24592
24593         Avoid conflicts between local macro definitions.
24594         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24595         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
24596
24597 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
24598             Bruno Haible  <bruno@clisp.org>
24599
24600         Make va_copy work with some version of xlc on AIX 5.1.
24601         * lib/stdarg.in.h: New file.
24602         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
24603         On AIX, use a <stdarg.h> file substitute.
24604         * modules/stdarg (Files): Add lib/stdarg.in.h.
24605         (Depends-on): Add include_next.
24606         (Makefile.am): Build a stdarg.h substitute if requested.
24607         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
24608
24609 2008-03-10  Bruno Haible  <bruno@clisp.org>
24610
24611         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
24612         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24613         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24614
24615 2008-03-10  Bruno Haible  <bruno@clisp.org>
24616
24617         * modules/stdlib (Depends-on): Add include_next, remove
24618         absolute-header.
24619
24620 2008-03-09  Bruno Haible  <bruno@clisp.org>
24621
24622         * lib/freadahead.h (freadahead): Document more precisely.
24623         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
24624         the sum of both buffer sizes.
24625         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
24626         * NEWS: Document the change.
24627
24628 2008-03-09  Bruno Haible  <bruno@clisp.org>
24629
24630         Extend freadptr to return also the buffer size.
24631         * lib/freadptr.h (freadptr): Add sizep argument.
24632         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
24633         (freadptr): Add sizep argument. Determine buffer size like freadahead
24634         does.
24635         * tests/test-freadptr.c: Don't include freadahead.h.
24636         (main): Adapt for new calling convention of freadptr.
24637         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
24638         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
24639         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
24640         tests/test-freadptr2.sh.
24641         (Depends): Remove freadahead.
24642         (TESTS): Add test-freadptr2.sh.
24643         (check_PROGRAMS): Add test-freadptr2.
24644
24645 2008-03-09  Bruno Haible  <bruno@clisp.org>
24646
24647         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
24648         Report and solution by Simon Josefsson.
24649
24650 2008-03-06  Bruno Haible  <bruno@clisp.org>
24651
24652         Make fflush after ungetc work on BSD platforms.
24653         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
24654         * tests/test-fflush2.c: New file.
24655         * tests/test-fflush2.sh: New file.
24656         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
24657         tests/test-fflush2.c.
24658         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
24659         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
24660
24661 2008-03-06  Eric Blake  <ebb9@byu.net>
24662
24663         Likewise for ftello.
24664         * modules/ftello (Dependencies): Add extensions.
24665         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
24666
24667 2008-03-06  Bruno Haible  <bruno@clisp.org>
24668
24669         * modules/fseeko (Dependencies): Add extensions.
24670         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
24671         Needed on glibc systems.
24672
24673 2008-03-06  Bruno Haible  <bruno@clisp.org>
24674
24675         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
24676         email address.
24677         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24678
24679 2008-03-06  Bruno Haible  <bruno@clisp.org>
24680
24681         * users.txt: Add libgnupdf.
24682
24683 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24684
24685         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
24686         (Header File Substitutes, Function Substitutes,
24687         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
24688         (Build robot for gnulib): Fix typo.
24689
24690 2008-03-06  Bruno Haible  <bruno@clisp.org>
24691
24692         * doc/gnulib-tool.texi (VCS Issues): Small updates.
24693         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24694
24695 2008-03-06  Bruno Haible  <bruno@clisp.org>
24696
24697         * doc/func.texi: New file, extracted from doc/gnulib.texi.
24698         * doc/gnulib.texi: Include it.
24699
24700 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24701
24702         * modules/func (License): Change license to unlimited; there was
24703         no LGPL parts in the module anyway.
24704
24705 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24706
24707         * modules/__func__: Renamed to modules/func.
24708         * modules/__func__-tests: Renamed to modules/func-tests.
24709         * tests/test-__func__.c: Renamed to tests/test-func.c.
24710         * m4/__func__.m4: Renamed to m4/func.m4.
24711         * doc/gnulib.texi (__func__): Section renamed to func.
24712         Suggested by Eric Blake <ebb9@byu.net>.
24713
24714 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24715
24716         * doc/gnulib.texi (__func__): Use C99 terminology when talking
24717         about __func__.  Make example self-contained.  Suggested by Eric
24718         Blake <ebb9@byu.net>.
24719
24720         * tests/test-__func__.c (main): Avoid extraneous () around __func.
24721         Suggested by Eric Blake <ebb9@byu.net>.
24722
24723 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24724
24725         * modules/__func__: New file.
24726         * modules/__func__-tests: New file.
24727         * tests/test-__func__.c: New file.
24728         * m4/__func__.m4: New file.
24729         * doc/gnulib.texi (__func__): Document __func__ module.
24730
24731 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24732
24733         * modules/byteswap (License): Re-license as LGPLv2+.
24734
24735 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24736
24737         * doc/Makefile: Add pdf target.
24738
24739 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24740
24741         * modules/inline (License): Use 'unlimited', since there are only
24742         *.m4 files in this module.
24743
24744 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24745             Bruno Haible  <bruno@clisp.org>
24746
24747         Add support for HP C 7.1 on OpenVMS 8.3.
24748         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
24749
24750 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24751
24752         Update VMS specifics.
24753         * lib/getopt.c [VMS]: Remove include of unixlib.h.
24754
24755 2008-03-02  Jim Meyering  <meyering@redhat.com>
24756
24757         Remove the last dependency on the "free" module.
24758         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
24759         Reported by Bob Proulx.
24760
24761         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
24762
24763         Remove useless "if" tests before free.  Deprecate "free" module.
24764         * doc/posix-functions/free.texi: Mention that this
24765         module is no longer useful.
24766         * modules/free (Notice): Say this module is obsolete.
24767         * modules/readutmp (Depends-on): Remove free.
24768         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
24769         * lib/putenv.c (putenv): Likewise.
24770         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
24771         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
24772         * tests/test-c-strcasestr.c (main): Likewise.
24773         * tests/test-c-strstr.c (main): Likewise.
24774         * tests/test-mbscasestr1.c (main): Likewise.
24775         * tests/test-mbscasestr2.c (main): Likewise.
24776         * tests/test-mbsstr1.c (main): Likewise.
24777         * tests/test-mbsstr2.c (main): Likewise.
24778         * tests/test-memmem.c (main): Likewise.
24779         * tests/test-strcasestr.c (main): Likewise.
24780         * tests/test-striconv.c (main): Likewise.
24781         * tests/test-striconveh.c (main): Likewise.
24782         * tests/test-striconveha.c (main): Likewise.
24783         * tests/test-strstr.c (main): Likewise.
24784
24785         * build-aux/git-version-gen: Adjust a comment and the Usage string.
24786
24787         bootstrap: sync from coreutils again
24788         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
24789
24790 2008-03-01  Jim Meyering  <meyering@redhat.com>
24791
24792         bootstrap: sync from coreutils
24793         * build-aux/bootstrap (update_po_files): Copy a .po file into place
24794         also when the target doesn't exist.
24795
24796 2008-03-01  Eric Blake  <ebb9@byu.net>
24797
24798         Fix bugs in last patch.
24799         * lib/memchr2.c (memchr2): Fix typo.
24800         * tests/test-memchr2.c: Test previous bug, and don't use GNU
24801         extension.
24802         Reported by Bruce Korb.
24803
24804         New module 'memchr2'.
24805         * modules/memchr2: New file.
24806         * modules/memchr2-tests: Likewise.
24807         * lib/memchr2.h: Likewise.
24808         * lib/memchr2.c: Likewise, based on memchr.c.
24809         * tests/test-memchr2.c: New test.
24810         * MODULES.html.sh (String handling): Add memchr2.
24811
24812 2008-02-29  Bruno Haible  <bruno@clisp.org>
24813
24814         * modules/freadseek-tests: New file.
24815         * tests/test-freadseek.sh: New file.
24816         * tests/test-freadseek.c: New file.
24817
24818         New module 'freadseek'.
24819         * modules/freadseek: New file.
24820         * lib/freadseek.h: New file.
24821         * lib/freadseek.c: New file.
24822         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
24823
24824 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
24825
24826         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
24827         wydawca.
24828
24829         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
24830         program_invocation_name and program_invocation_short_name are
24831         present.
24832
24833 2008-02-28  Bruno Haible  <bruno@clisp.org>
24834
24835         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
24836         * tests/test-freadptr.sh: Also test non-seekable stdin.
24837
24838 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
24839
24840         * build-aux/bootstrap (source_base, m4_base)
24841         (doc_base, tests_base): New variables.
24842         (gnulib_tool_options): Do not hardcode base directories, use
24843         the above variables instead.
24844
24845 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
24846
24847         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
24848
24849 2008-02-28  Bruno Haible  <bruno@clisp.org>
24850
24851         * modules/freadptr-tests: New file.
24852         * tests/test-freadptr.sh: New file.
24853         * tests/test-freadptr.c: New file.
24854
24855         New module 'freadptr'.
24856         * modules/freadptr: New file.
24857         * lib/freadptr.h: New file.
24858         * lib/freadptr.c: New file.
24859         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
24860
24861 2008-02-26  Karl Berry  <karl@freefriends.org>
24862
24863         Sync from Libtool:
24864         * libltdl/argz.c (argz_add, argz_count): New functions.
24865         * libltdl/argz.in.h: Declare them.
24866         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
24867
24868 2008-02-22  Bruno Haible  <bruno@clisp.org>
24869
24870         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
24871         is a pointer type.  Needed for HP-UX 10.
24872         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
24873         * doc/posix-functions/gmtime_r.texi: Likewise.
24874         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24875
24876 2008-02-24  Bruno Haible  <bruno@clisp.org>
24877
24878         * modules/environ-tests: New file.
24879         * tests/test-environ.c: New file.
24880
24881         New module 'environ'.
24882         * modules/environ: New file.
24883         * lib/unistd.in.h (environ): New declaration.
24884         * m4/environ.m4: New file.
24885         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
24886         after use.
24887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
24888         HAVE_DECL_ENVIRON.
24889         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
24890         HAVE_DECL_ENVIRON.
24891         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
24892         wrong claim that 'environ' is missing on some systems.
24893         * modules/execute (Depends-on): Add environ.
24894         * lib/execute.c (environ): Remove fallback declaration.
24895         * modules/pipe (Depends-on): Add environ.
24896         * lib/pipe.c (environ): Remove fallback declaration.
24897         * modules/setenv (Depends-on): Add environ.
24898         * lib/setenv.c (environ): Remove fallback declaration.
24899         * modules/unsetenv (Depends-on): Add environ.
24900         * lib/unsetenv.c (environ): Remove fallback declaration.
24901         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
24902         m4/environ.m4.
24903         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
24904         (gl_PREREQ_UNSETENV): Likewise.
24905
24906 2008-02-24  Bruno Haible  <bruno@clisp.org>
24907
24908         * doc/posix-functions/environ.texi: Document the MacOS X problem.
24909
24910 2008-02-20  Bob Proulx  <bob@proulx.com>
24911
24912         Enable use of older two part flavor 'git describe'.
24913         * build-aux/git-version-gen: If using the older two part flavor of
24914         git version then recreate the third part now present in the
24915         newer three part flavor of git describe.
24916
24917 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
24918
24919         * lib/fts.c (fts_build): Typo correction to comment.
24920
24921 2008-02-17  Bruno Haible  <bruno@clisp.org>
24922
24923         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
24924         generating no-op conflicts.
24925
24926 2008-02-17  Bruno Haible  <bruno@clisp.org>
24927
24928         Speed up by 10%.
24929         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
24930         result_entries, rather than an index-based loop.
24931
24932 2008-02-17  Bruno Haible  <bruno@clisp.org>
24933
24934         Speed up by 25%.
24935         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
24936         'hashcode_cached'.
24937         (entry_create): New function.
24938         (entry_hashcode): Use the cached hashcode if possible.
24939         (read_changelog_file, try_split_merged_entry): Use entry_create.
24940
24941 2008-02-17  Bruno Haible  <bruno@clisp.org>
24942
24943         Speed up from O(n^2) to O(n) for long ChangeLog files.
24944         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
24945         (read_changelog_file): Change implementation of entries_reversed list
24946         to rbtreehash.
24947         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
24948
24949 2008-02-17  Bruno Haible  <bruno@clisp.org>
24950
24951         New option --split-merged-entry.
24952         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
24953         (find_paragraph_end, try_split_merged_entry): New functions.
24954         (long_options): Add option --split-merged-entry.
24955         (usage): Document option --split-merged-entry.
24956         (main): Implement option --split-merged-entry.
24957         Reported by Eric Blake.
24958
24959 2008-02-17  Bruno Haible  <bruno@clisp.org>
24960
24961         * lib/git-merge-changelog.c: Include c-strstr.h.
24962         (main): Support the "git pull --rebase" situation.
24963         * modules/git-merge-changelog (Depends-on): Add c-strstr.
24964         Reported by Eric Blake.
24965
24966 2008-02-16  Eric Blake  <ebb9@byu.net>
24967
24968         Avoid doubling \ in common case of "c-maybe" quoting style.
24969         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
24970         eliding outer quotes.
24971         * lib/quotearg.h: Document this.
24972         * tests/test-quotearg.c (result_strings, inputs, results_g)
24973         (flag_results, locale_results): Test it by adding a new string to
24974         each test group.
24975         (compare_strings): Test new string.
24976
24977 2008-02-13  Eric Blake  <ebb9@byu.net>
24978
24979         Avoid trigraph quoting in default output.
24980         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
24981         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
24982         unless explicitly requested.
24983         * tests/test-quotearg.c (flag_results, main): Add additional tests.
24984
24985 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
24986
24987         Don't rely on signed integer overflowing to negative value.
24988         * lib/getugroups.c (getugroups): Include <limits.h>.
24989         Instead, compare against INT_MAX, and increment only if the test passes.
24990
24991 2008-02-13  Jim Meyering  <meyering@redhat.com>
24992         and Eric Blake  <ebb9@byu.net>
24993
24994         Avoid shadowing warning and compile errors on Linux.
24995         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
24996         forwarding macros on Linux.
24997         (dcgettext): Define a stub, for Linux.
24998         (results_g, main): Avoid warnings.
24999
25000 2008-02-12  Eric Blake  <ebb9@byu.net>
25001
25002         Silence warning in last patch.
25003         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25004
25005         Quotearg part 4: add tests, fix c-maybe colon quoting.
25006         * lib/quotearg.h: Improve documentation.
25007         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25008         escapes when adding outer quotes.  When quoting trigraphs, use
25009         valid C notation.  When quoting NUL, omit extra characters if next
25010         character is not digit.  Alter prototype.
25011         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25012         callers.
25013         * modules/quotearg-tests: New module.
25014         * tests/test-quotearg.c: New test.
25015
25016 2008-02-07  Eric Blake  <ebb9@byu.net>
25017
25018         Quotearg part 3: add flag to control outer quote elision.
25019         * lib/quotearg.h (c_maybe_quoting_style): New style.
25020         (enum quoting_flags): Better documentation of flags.
25021         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25022         c-maybe style.
25023         (quotearg_buffer_restyled): Handle new flag to elide outer
25024         quotes.
25025
25026         Quotearg part 2: add flag that can control NUL elision.
25027         * lib/quotearg.h (set_quoting_flags): New prototype.
25028         * lib/quotearg.c (struct quoting_options): Add flag field.
25029         (set_quoting_flags): New function.
25030         (quotearg_buffer_restyled): Add flags parameter.
25031         (quotearg_alloc_mem): Set the flag if length cannot be returned.
25032         (quotearg_n_options): Set the flag, since length cannot be
25033         returned.
25034         (quoting_options_from_style): Default flags correctly.
25035
25036         Quotearg part 1: more wrappers, restore quotearg_char state.
25037         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25038         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25039         (quotearg_colon_mem): New wrappers.
25040         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25041         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25042         functions.
25043         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25044         (quotearg_colon_mem): New functions.
25045
25046 2008-02-11  Bruno Haible  <bruno@clisp.org>
25047
25048         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25049         library in the current directory: it does not work with parallel make.
25050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25051
25052 2008-02-11  Bruno Haible  <bruno@clisp.org>
25053
25054         * .gitattributes: New file.
25055
25056 2008-02-11  Jim Meyering  <meyering@redhat.com>
25057
25058         useless-if-before-free: Fix reversed exit values.
25059         * build-aux/useless-if-before-free: Use correct values
25060         for EXIT_MATCH and EXIT_NO_MATCH.
25061
25062         * build-aux/useless-if-before-free: Close stdout carefully.
25063
25064 2008-02-10  Bruno Haible  <bruno@clisp.org>
25065
25066         New module 'git-merge-changelog'.
25067         * modules/git-merge-changelog: New file.
25068         * lib/git-merge-changelog.c: New file.
25069
25070 2008-02-10  Jim Meyering  <meyering@redhat.com>
25071
25072         useless-if-before-free: New option: --list (-l).
25073
25074         useless-if-before-free: Don't exit immediately upon open failure.
25075         * build-aux/useless-if-before-free: Exit 2 for errors.
25076         Upon failure to open a file, don't exit immediately.
25077         Rather, just warn and continue with any remaining files.
25078
25079 2008-02-10  Bruno Haible  <bruno@clisp.org>
25080
25081         New abstract list operation 'node_set_value'.
25082         * lib/gl_list.h (gl_list_node_set_value): New function.
25083         (struct gl_list_implementation): New field node_set_value.
25084         * lib/gl_list.c (gl_list_node_set_value): New function.
25085         * lib/gl_array_list.c (gl_array_node_set_value): New function.
25086         (gl_array_list_implementation): Update.
25087         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25088         (gl_carray_list_implementation): Update.
25089         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25090         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25091         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25092         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25093         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25094         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25095         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25096         Update.
25097         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25098         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25099         (gl_sublist_list_implementation): Update.
25100
25101 2008-02-10  Bruno Haible  <bruno@clisp.org>
25102
25103         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25104         Needed when ELEMENT is #defined to 'some_type *'.
25105
25106 2008-02-10  Jim Meyering  <meyering@redhat.com>
25107
25108         New script and module: useless-if-before-free
25109         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25110         * build-aux/useless-if-before-free: New file.
25111         * modules/useless-if-before-free: New file.
25112
25113         * build-aux/gitlog-to-changelog: Use committer date, not author date.
25114
25115         xstrtol_error: Fix typo.
25116         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25117         s/exit_failure/exit_status/.
25118
25119 2008-02-09  Jim Meyering  <meyering@redhat.com>
25120
25121         New script and module: gitlog-to-changelog
25122         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25123         * modules/gitlog-to-changelog: New file.
25124         * build-aux/gitlog-to-changelog: New file.
25125
25126 2008-02-08  Jim Meyering  <meyering@redhat.com>
25127
25128         Avoid two "parameter unused" warnings.
25129         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25130         Mark "st" as used.
25131
25132         Use "git COMMAND", not "git-COMMAND".
25133         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25134         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25135         * build-aux/git-version-gen: Use "git status", not "git-status".
25136
25137 2008-02-07  Bruno Haible  <bruno@clisp.org>
25138
25139         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25140         Avoids a crash on Windows Vista.
25141         Reported by Adam Strzelecki <ono@java.pl> via
25142         Simon Josefsson <simon@josefsson.org>.
25143
25144 2008-02-06  Bruno Haible  <bruno@clisp.org>
25145
25146         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25147         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25148         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25149         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25150         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25151         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25152         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25153         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25154         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25155         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25156         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25157         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25158         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25160         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25161         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25162         left-adjust flag.
25163         * tests/test-snprintf-posix.h (test_function): Likewise.
25164         * tests/test-sprintf-posix.h (test_function): Likewise.
25165         * tests/test-vasprintf-posix.c (test_function): Likewise.
25166         * doc/posix-functions/fprintf.texi: Update.
25167         * doc/posix-functions/printf.texi: Update.
25168         * doc/posix-functions/snprintf.texi: Update.
25169         * doc/posix-functions/sprintf.texi: Update.
25170         * doc/posix-functions/vfprintf.texi: Update.
25171         * doc/posix-functions/vprintf.texi: Update.
25172         * doc/posix-functions/vsnprintf.texi: Update.
25173         * doc/posix-functions/vsprintf.texi: Update.
25174         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25175
25176 2008-02-06  Bruno Haible  <bruno@clisp.org>
25177
25178         Fix bug introduced on 2008-01-26.
25179         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25180
25181 2008-02-06  Bruno Haible  <bruno@clisp.org>
25182
25183         Fix bug introduced on 2007-06-10.
25184         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25185         !NEED_PRINTF_FLAG_ZERO.
25186
25187 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
25188
25189         getloadavg: use libperfstat on AIX5
25190         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25191
25192 2008-02-03  Bruno Haible  <bruno@clisp.org>
25193
25194         * lib/diffseq.h: Add comments about required #includes.
25195         Reported by Michael Biggs <gnulib@doubleplum.net>.
25196
25197 2008-02-01  Bruno Haible  <bruno@clisp.org>
25198
25199         * users.txt: Add gnuit.
25200
25201 2008-01-31  Bruno Haible  <bruno@clisp.org>
25202
25203         * lib/md4.c (set_uint32): Mark as inline.
25204         * lib/md5.c (set_uint32): Likewise.
25205         * lib/sha1.c (set_uint32): Likewise.
25206         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25207         * m4/md5.m4 (gl_MD5): Likewise.
25208         * m4/sha1.m4 (gl_SHA1): Likewise.
25209
25210 2008-01-31  Jim Meyering  <meyering@redhat.com>
25211
25212         Use "sizeof VAR", rather than a literal "4".
25213         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25214         * lib/md4.c (md4_read_ctx): Likewise.
25215         * lib/sha1.c (sha1_read_ctx): Likewise.
25216
25217 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25218
25219         * tests/test-sha1.c: New file, based on test-md5.c.
25220
25221         * modules/crypto/sha1-tests: New file.
25222
25223 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25224
25225         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25226
25227 2008-01-31  Jim Meyering  <meyering@redhat.com>
25228
25229         Prefer "sizeof v" over the equivalent "4".
25230         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25231         * lib/md5.c (set_uint32): Likewise.
25232         * lib/sha1.c (set_uint32): Likewise.
25233
25234 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25235
25236         * lib/sha1.c (set_uint32): Mark function as static.
25237
25238 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25239
25240         md2: clarify comments to say that alignment is not required.
25241         * lib/md2.h: Remove warning about alignment in comment.
25242         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25243         never been required.
25244
25245 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25246
25247         md4: adapt alignment constraint fix from sha1.
25248         * lib/md4.c (set_uint32): New function, from sha1.c
25249         (md4_read_ctx): Use it.
25250         (md4_finish_ctx): Doc fix.
25251         * lib/md4.h: Doc fix.
25252
25253 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25254
25255         md5: adapt alignment constraint fix from sha1.
25256         * lib/md5.c (set_uint32): New function, from sha1.c
25257         (md5_read_ctx): Use it.
25258         (md5_finish_ctx): Doc fix.
25259         * lib/md5.h: Doc fix.
25260
25261 2008-01-30  Peter Palfrader  <weasel@debian.org>
25262
25263         sha1: remove the result buffer alignment constraint
25264         * lib/sha1.c (set_uint32): New function.
25265         (sha1_read_ctx): Rewrite to remove the result buffer alignment
25266         constraint.
25267         (sha1_finish_ctx): Remove comment warning about alignment constraint.
25268         * lib/sha1.h: Likewise.
25269
25270 2008-01-30  Andreas Schwab  <schwab@suse.de>
25271             Bruno Haible  <bruno@clisp.org>
25272
25273         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25274         correct definition of LDBL_MIN_EXP.
25275
25276 2008-01-30  Karl Berry  <karl@gnu.org>
25277
25278         * config/srclist-update: try to preserve x bit on updates.
25279         * config/srclistvars.sh: update for karl.
25280
25281 2008-01-29  Jim Meyering  <meyering@redhat.com>
25282
25283         vasnprintf.c: Avoid warning about unused label
25284         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25285         "overflow" label definition and associated code with the
25286         same cpp condition that guards the sole use of that label.
25287
25288 2008-01-26  Bruno Haible  <bruno@clisp.org>
25289
25290         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
25291         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
25292         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
25293         * lib/isnanl-nolibm.h (isnanl): Likewise.
25294         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25295
25296 2008-01-26  Bruno Haible  <bruno@clisp.org>
25297
25298         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
25299         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
25300
25301 2008-01-26  Bruno Haible  <bruno@clisp.org>
25302
25303         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
25304         GCC >= 4.0 built-in.
25305         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
25306
25307 2008-01-26  Bruno Haible  <bruno@clisp.org>
25308
25309         Rename isnan, applicable to 'double' only, to isnand.
25310         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
25311         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
25312         (configure.ac): Update.
25313         (Include): Replace "isnan.h" with "isnand.h".
25314         * m4/isnand.m4: Renamed from m4/isnan.m4.
25315         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
25316         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
25317         instead of isnan.c.
25318         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
25319         instead of HAVE_ISNAN_IN_LIBC.
25320         (isnand): Renamed from isnan.
25321         * lib/isnand.c: New file.
25322         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
25323         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
25324         (Makefile.am): Update.
25325         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
25326         Include isnand.h instead of isnan.h.
25327         (main): Test isnand instead of isnan.
25328         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
25329         isnan-nolibm.
25330         * modules/frexp (Depends-on): Likewise.
25331         * modules/frexp-tests (Depends-on): Likewise.
25332         * modules/frexp-nolibm (Depends-on): Likewise.
25333         * modules/frexp-nolibm-tests (Depends-on): Likewise.
25334         * modules/isfinite (Depends-on): Likewise.
25335         * modules/round-tests (Depends-on): Likewise.
25336         * modules/signbit (Depends-on): Likewise.
25337         * modules/signbit-tests (Depends-on): Likewise.
25338         * modules/snprintf-posix (Depends-on): Likewise.
25339         * modules/sprintf-posix (Depends-on): Likewise.
25340         * modules/trunc-tests (Depends-on): Likewise.
25341         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25342         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25343         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25344         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25345         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25346         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25347         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25348         * modules/vasnprintf-posix (Depends-on): Likewise.
25349         * modules/vasprintf-posix (Depends-on): Likewise.
25350         * modules/vfprintf-posix (Depends-on): Likewise.
25351         * modules/vsnprintf-posix (Depends-on): Likewise.
25352         * modules/vsprintf-posix (Depends-on): Likewise.
25353         * lib/frexp.c: Include isnand.h instead of isnan.h.
25354         (ISNAN): Set to isnand instead of isnan.
25355         * lib/isfinite.c: Include isnand.h instead of isnan.h.
25356         (gl_isfinited): Use isnand instead of isnan.
25357         * lib/signbitd.c: Include isnand.h instead of isnan.h.
25358         (gl_signbitd): Use isnand instead of isnan.
25359         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
25360         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
25361         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
25362         (main): Use isnand instead of isnan.
25363         * tests/test-round1.c: Include isnand.h.
25364         (main): Use isnand instead of isnan.
25365         * tests/test-round2.c: Include isnand.h instead of isnan.h.
25366         (ISNAN): Set to isnand instead of isnan.
25367         * tests/test-trunc1.c: Include isnand.h.
25368         (main): Use isnand instead of isnan.
25369         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
25370         (equal): Use isnand instead of isnan.
25371         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
25372         isnand-nolibm.
25373         * NEWS: Mention the change.
25374
25375 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25376             Bruno Haible  <bruno@clisp.org>
25377
25378         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
25379         the GCC builtins for signbits are present and set
25380         REPLACE_SIGNBIT_USING_GCC if so.
25381         * lib/math.in.h (signbit): Define using GCC builtins if
25382         REPLACE_SIGNBIT_USING_GCC is set.
25383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
25384         REPLACE_SIGNBIT_USING_GCC.
25385         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
25386
25387 2008-01-25  Jim Meyering  <meyering@redhat.com>
25388
25389         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
25390         * lib/poll.c: Include <config.h>, not "config.h".
25391         * tests/test-getaddrinfo.c: Likewise.
25392
25393 2008-01-25  Simon Josefsson  <simon@josefsson.org>
25394
25395         * modules/sockets-tests: New file.
25396
25397 2008-01-24  Simon Josefsson  <simon@josefsson.org>
25398
25399         * modules/sockets: New module, can be used to call WSA_Startup and
25400         WSA_Cleanup when needed.
25401
25402         * lib/sockets.h, lib/sockets.c: New files.
25403
25404         * m4/sockets.m4: New file.
25405
25406         * tests/test-sockets.c: New file.
25407
25408 2008-01-19  Bruno Haible  <bruno@clisp.org>
25409
25410         * doc/posix-headers: Renamed from doc/headers.
25411         * doc/posix-functions: Renamed from doc/functions.
25412         * doc/gnulib.texi: Update.
25413
25414 2008-01-19  Bruno Haible  <bruno@clisp.org>
25415
25416         * doc/glibc-functions/strcasestr.texi: Include contents of
25417         doc/functions/strcasestr.texi, fixing the list of platforms.
25418         * doc/functions/strcasestr.texi: Remove file.
25419
25420 2008-01-19  Bruno Haible  <bruno@clisp.org>
25421
25422         * doc/glibc-functions/memmem.texi: Include contents of
25423         doc/functions/memmem.texi.
25424         * doc/functions/memmem.texi: Remove file.
25425
25426 2008-01-18  Bruno Haible  <bruno@clisp.org>
25427
25428         * doc/glibc-functions/*.texi: New files.
25429         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
25430         to use the new files.
25431
25432 2008-01-17  Bruno Haible  <bruno@clisp.org>
25433
25434         * tests/test-gethostname.c (main): Fix printf statement.
25435
25436 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25437
25438         * modules/gethostname-tests: New file.
25439
25440         * tests/test-gethostname.c: New file.
25441
25442 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25443
25444         * lib/gethostname.c: Include string.h unconditionally, strncpy is
25445         used by the UNAME case.  Reported by Bruno Haible
25446         <bruno@clisp.org>.
25447
25448 2008-01-17  Eric Blake  <ebb9@byu.net>
25449
25450         Convert c-strcasestr to be more efficient.
25451         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
25452         (Depends-on): Add c-strcase, remove malloca, strnlen.
25453         * tests/test-c-strcasestr.c (main): Enhance test.
25454         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
25455
25456 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25457
25458         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
25459         Use it in creating po/Makevars.
25460
25461 2008-01-15  Simon Josefsson  <simon@josefsson.org>
25462
25463         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
25464         Applications that requires it should initialize libgcrypt
25465         manually.
25466
25467 2008-01-16  Simon Josefsson  <simon@josefsson.org>
25468
25469         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
25470
25471 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25472
25473         Fix problem with getdate on mingw32 reported by Simon Josefsson
25474         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
25475         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
25476         tzname", when deciding whether to declare tzname.
25477         * lib/strftime.c (tzname): Likewise.
25478
25479 2008-01-15  Bruno Haible  <bruno@clisp.org>
25480
25481         Work around a MacOS X 10.5 bug in frexpl().
25482         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
25483         * doc/functions/frexpl.texi: Document the bug.
25484         Reported by Elias Pipping <pipping@gentoo.org>.
25485
25486 2008-01-14  Eric Blake  <ebb9@byu.net>
25487
25488         Touch up previous patch.
25489         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
25490         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
25491
25492         Convert strcasestr module to use Two-Way algorithm.
25493         * modules/strcasestr-simple: New module, based on the old
25494         strcasestr, but with Two-Way rather than KMP.
25495         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
25496         * lib/string.in.h (rpl_strcasestr): Declare.
25497         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
25498         performance.
25499         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
25500         * modules/string (Makefile.am): Support strcasestr.
25501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25502         * modules/strcasestr-tests (Depends-on): Check for alarm.
25503         * tests/test-strcasestr.c: Augment test.
25504         * lib/str-two-way.h: Clean up stray macro.
25505         * NEWS: Document new module.
25506         * MODULES.html.sh (string handling): Likewise.
25507         * doc/functions/strcasestr.texi: New file.
25508         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
25509         here, since it is not a POSIX function.
25510
25511 2008-01-14  Colin Watson  <cjwatson@debian.org>
25512             Bruno Haible  <bruno@clisp.org>
25513
25514         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
25515         works fine; if not, set REPLACE_STRSIGNAL.
25516         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
25517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25518         REPLACE_STRSIGNAL.
25519         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
25520         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
25521         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
25522
25523 2008-01-14  Bruno Haible  <bruno@clisp.org>
25524
25525         * modules/strsignal (Include): Change to <string.h>.
25526
25527 2008-01-14  Colin Watson  <cjwatson@debian.org>
25528
25529         * modules/argp (Notice): Add a notice recommending to change
25530         XGETTEXT_OPTIONS.
25531         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
25532
25533 2008-01-13  Colin Watson  <cjwatson@debian.org>
25534
25535         * modules/strsignal-tests: New file.
25536         * tests/test-strsignal.c: New file.
25537
25538         * lib/strsignal.c: New file, from glibc with modifications.
25539         * lib/siglist.h: New file, from glibc with modifications.
25540         * lib/string.in.h (strsignal): New declaration.
25541         * m4/strsignal.m4: New file.
25542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25543         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
25544         * modules/strsignal: New file.
25545         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
25546         HAVE_DECL_STRSIGNAL.
25547
25548 2008-01-13  Bruno Haible  <bruno@clisp.org>
25549
25550         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
25551         locale encoding is not ASCII. Needed for OpenBSD 4.0.
25552         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25553         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25554
25555 2008-01-13  Bruno Haible  <bruno@clisp.org>
25556
25557         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
25558         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
25559         * lib/argp.h (__attribute__): Likewise.
25560         * lib/c-stack.c (__attribute__): Likewise.
25561         * lib/error.h (__attribute__): Likewise.
25562         * lib/fts.c (__attribute__): Likewise.
25563         * lib/openat.h (__attribute__): Likewise.
25564         * lib/stdio.in.h (__attribute__): Likewise.
25565         * lib/string.in.h (__attribute__): Likewise.
25566         * lib/utimens.c (__attribute__): Likewise.
25567         * lib/vasnprintf.h (__attribute__): Likewise.
25568         * lib/xalloc.h (__attribute__): Likewise.
25569         * lib/xprintf.h (__attribute__): Likewise.
25570         * lib/xstrtol.h (__attribute__): Likewise.
25571         * lib/xvasprintf.h (__attribute__): Likewise.
25572
25573 2008-01-12  Bruno Haible  <bruno@clisp.org>
25574
25575         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
25576         * doc/glibc-headers/a.out.texi: New file.
25577         * doc/glibc-headers/aliases.texi: New file.
25578         * doc/glibc-headers/alloca.texi: New file.
25579         * doc/glibc-headers/ar.texi: New file.
25580         * doc/glibc-headers/argp.texi: New file.
25581         * doc/glibc-headers/argz.texi: New file.
25582         * doc/glibc-headers/byteswap.texi: New file.
25583         * doc/glibc-headers/crypt.texi: New file.
25584         * doc/glibc-headers/endian.texi: New file.
25585         * doc/glibc-headers/envz.texi: New file.
25586         * doc/glibc-headers/err.texi: New file.
25587         * doc/glibc-headers/error.texi: New file.
25588         * doc/glibc-headers/execinfo.texi: New file.
25589         * doc/glibc-headers/fpu_control.texi: New file.
25590         * doc/glibc-headers/fstab.texi: New file.
25591         * doc/glibc-headers/fts.texi: New file.
25592         * doc/glibc-headers/getopt.texi: New file.
25593         * doc/glibc-headers/ieee754.texi: New file.
25594         * doc/glibc-headers/ifaddrs.texi: New file.
25595         * doc/glibc-headers/libintl.texi: New file.
25596         * doc/glibc-headers/mcheck.texi: New file.
25597         * doc/glibc-headers/mntent.texi: New file.
25598         * doc/glibc-headers/obstack.texi: New file.
25599         * doc/glibc-headers/paths.texi: New file.
25600         * doc/glibc-headers/printf.texi: New file.
25601         * doc/glibc-headers/pty.texi: New file.
25602         * doc/glibc-headers/resolv.texi: New file.
25603         * doc/glibc-headers/shadow.texi: New file.
25604         * doc/glibc-headers/sysexits.texi: New file.
25605         * doc/glibc-headers/ttyent.texi: New file.
25606
25607 2008-01-12  Jim Meyering  <meyering@redhat.com>
25608
25609         announce-gen: emit Gnulib's git-based version string.
25610         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
25611         New option --gnulib-version=V, where V is expected to be
25612         the output of running git describe in the gnulib directory.
25613         (get_tool_versions): Request feedback on xdelta.  I suspect it's
25614         not useful, and plan to stop publishing an xdelta file with each
25615         coreutils release.
25616
25617         * build-aux/announce-gen: Also check for lzma-compressed files.
25618
25619 2008-01-11  Bruno Haible  <bruno@clisp.org>
25620
25621         * tests/test-memmem.c (main): Increase maximum allowed time.
25622         * tests/test-strstr.c (main): Likewise.
25623
25624 2008-01-11  Bruno Haible  <bruno@clisp.org>
25625
25626         * doc/functions/memmem.texi: Add more precisions about platforms.
25627         * doc/functions/strstr.texi: Likewise.
25628
25629 2008-01-10  Eric Blake  <ebb9@byu.net>
25630
25631         * m4/strstr.m4: Delete cruft from copy-n-paste.
25632         Reported by Bruno Haible.
25633
25634 2008-01-10  Bruno Haible  <bruno@clisp.org>
25635
25636         Make c-strstr rely on strstr.
25637         * lib/c-strstr.c: Don't include str-kmp.h.
25638         (c_strstr): Define in terms of strstr.
25639         * modules/c-strstr (Files): Remove lib/str-kmp.h.
25640         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
25641
25642 2008-01-10  Bruno Haible  <bruno@clisp.org>
25643
25644         * doc/gnulib.texi (String Functions in C Locale): New section.
25645         * doc/c-ctype.texi: New file.
25646         * doc/c-strcase.texi: New file.
25647         * doc/c-strcaseeq.texi: New file.
25648         * doc/c-strcasestr.texi: New file.
25649         * doc/c-strstr.texi: New file.
25650         * doc/c-strtod.texi: New file.
25651         * doc/c-strtold.texi: New file.
25652
25653 2008-01-10  Eric Blake  <ebb9@byu.net>
25654
25655         * lib/relocatable.h: Fix a comment.
25656
25657 2008-01-10  Eric Blake  <ebb9@byu.net>
25658
25659         Share two-way algorithm.
25660         * lib/str-two-way.h: New file, merged from...
25661         * lib/memmem.c: ...here...
25662         * lib/strstr.c: ...and here.
25663         * modules/memmem (Files): Use it.
25664         * modules/strstr (Files): Likewise.
25665
25666         Avoid quadratic strstr implementations.
25667         * lib/strstr.c: New file.
25668         * m4/strstr.m4: Likewise.
25669         * modules/strstr: Likewise.
25670         * modules/strstr-tests: Likewise.
25671         * tests/test-strstr.c: Likewise.
25672         * lib/string.in.h (rpl_strstr): Declare.
25673         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
25674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
25675         * modules/string (Makefile.am): Likewise.
25676         * MODULES.html.sh (string handling): Mention new module.
25677         * doc/functions/strstr.texi (strstr): Document the bug.
25678
25679 2008-01-10  Bruno Haible  <bruno@clisp.org>
25680
25681         * lib/relocatable.h (relocate): State whether result is freshly
25682         allocated or not.
25683         * lib/relocatable.c (relocate): Return a freshly allocated string
25684         instead of a pointer to a privately held string.
25685         Reported by Sylvain Beucler <beuc@gnu.org>.
25686
25687 2008-01-10  Colin Watson  <cjwatson@debian.org>
25688
25689         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
25690         s/S_ISNLK/S_ISLNK/.
25691
25692 2008-01-09  Bruno Haible  <bruno@clisp.org>
25693
25694         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
25695         and other files.
25696         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
25697         if it's only a guess.
25698         * modules/memmem: Simplify by depending on memmem-simple.
25699
25700 2008-01-09  Bruno Haible  <bruno@clisp.org>
25701
25702         Work around OpenBSD 4.0 tdelete() bug.
25703         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
25704         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
25705         macros and don't redefine the enum values.
25706         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
25707         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
25708         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
25709
25710 2008-01-09  Bruno Haible  <bruno@clisp.org>
25711
25712         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
25713         (main): Don't perform the tests if setlocale did not install a UTF-8
25714         locale. Needed on OpenBSD 4.0.
25715         * modules/wcwidth-tests (Depends-on): Add localcharset.
25716
25717 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25718
25719         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
25720         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
25721         * NEWS: announce this.
25722         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
25723
25724 2008-01-09  Simon Josefsson  <simon@josefsson.org>
25725         and Eric Blake  <ebb9@byu.net>
25726
25727         Add memmem-simple module.
25728         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
25729         (gl_FUNC_MEMMEM): Separate performance from presence checks.
25730         * modules/memmem-simple: New file.
25731         * modules/memmem (Description): Tweak.
25732         * MODULES.html.sh (string handling): Mention new module.
25733         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
25734         addressed by memmem-simple.
25735         * NEWS: Document the difference.
25736
25737 2008-01-09  Eric Blake  <ebb9@byu.net>
25738
25739         Give gcc some memmem optimization hints.
25740         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
25741         (strcasestr): Declare as pure.
25742         * modules/memmem (Maintainer): Claim my implementation.
25743
25744 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25745
25746         Support AIX 6.1 and higher.
25747         * build-aux/config.libpath: Likewise.
25748         * build-aux/config.rpath: Likewise.
25749
25750 2008-01-08  Jim Meyering  <meyering@redhat.com>
25751             Bruno Haible  <bruno@clisp.org>
25752
25753         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
25754         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
25755         Reported by Peter Fales in
25756         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
25757
25758 2008-01-08  Bruno Haible  <bruno@clisp.org>
25759
25760         * modules/unictype/category-of (Depends-on): Add
25761         unictype/category-none.
25762         * modules/unictype/category-and-tests (Depends-on): Add
25763         unictype/category-{L,N,Lu,Nd}.
25764         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
25765         * modules/unictype/category-or-tests (Depends-on): Add
25766         unictype/category-{L,N}.
25767         * modules/unictype/category-name-tests (Depends-on): Add
25768         unictype/category-{Z,Nl}.
25769         Reported by Simon Josefsson.
25770
25771 2008-01-08  Bruno Haible  <bruno@clisp.org>
25772
25773         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
25774         convention better.
25775         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
25776         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
25777         Reported by Peter Miller <millerp@canb.auug.org.au>.
25778
25779 2008-01-08  Eric Blake  <ebb9@byu.net>
25780
25781         Rewrite memmem to guarantee linear complexity without malloc.
25782         * lib/memmem.c (memmem): Use Two-Way rather than
25783         Knuth-Morris-Pratt, to allow O(1) space usage.
25784         (critical_factorization, two_way_short_needle)
25785         (two_way_long_needle): New functions.
25786         (knuth_morris_pratt): Delete.
25787         * modules/memmem (Depends-on): No longer need malloca or stdbool.
25788         Add stdint.
25789         * tests/test-memmem.c (main): Add tests for periodic needle and
25790         sublinear performance.
25791         * doc/functions/memmem.texi (memmem): Document other deficiencies
25792         in cygwin and older glibc.
25793
25794 2008-01-08  Bruno Haible  <bruno@clisp.org>
25795
25796         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
25797         augmentation.
25798
25799 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
25800
25801         Add a configure time option: --disable-acl.
25802         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
25803         AC_ARG_ENABLE(acl).
25804
25805 2008-01-06  Simon Josefsson  <simon@josefsson.org>
25806
25807         * tests/test-localename.c: Don't include obsolete "setenv.h".
25808
25809         * modules/localename-tests (Depends-on): Need unsetenv.
25810
25811 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25812
25813         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
25814
25815 2008-01-06  Colin Watson  <cjwatson@debian.org>
25816
25817         * users.txt: Add man-db.
25818
25819 2008-01-07  Bruno Haible  <bruno@clisp.org>
25820
25821         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
25822         previous section name.
25823
25824 2008-01-07  Bruno Haible  <bruno@clisp.org>
25825
25826         * lib/progname.c (set_program_name): Don't strip off a leading
25827         "lt-" prefix outside a .libs directory.
25828         Suggested by Paul Eggert.
25829
25830 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
25831             Bruno Haible  <bruno@clisp.org>
25832
25833         Improve memory cleanup in 'relocatable' module.
25834         * lib/relocatable.h (compute_curr_prefix): Change return type to
25835         'char *'.
25836         * lib/relocatable.c (compute_curr_prefix): Change return type to
25837         'char *'. Free curr_installdir after use.
25838         (relocate): Free curr_prefix_better after use.
25839         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
25840
25841 2008-01-01  Bruno Haible  <bruno@clisp.org>
25842
25843         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
25844         failure on older glibc systems.
25845         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25846
25847 2008-01-05  Eric Blake  <ebb9@byu.net>
25848
25849         Avoid quadratic system memmem.
25850         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
25851         Reported by Ralf Wildenhues.
25852
25853         Fix memmem test for mingw.
25854         * modules/memmem-tests (configure.ac): Check for alarm.
25855         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
25856         it.
25857         * doc/functions/memmem.texi: New file.
25858         * doc/gnulib.texi (Function Substitutes): Add memmem.
25859         Reported by Bruno Haible.
25860
25861 2008-01-04  Bruno Haible  <bruno@clisp.org>
25862
25863         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
25864         Require gl_HEADER_STRINGS_H_DEFAULTS, not
25865         gl_HEADER_STRING_H_DEFAULTS.
25866
25867 2008-01-04  Eric Blake  <ebb9@byu.net>
25868
25869         Shorten duration of memmem test.
25870         * tests/test-memmem.c (main): Use alarm to declare failure if test
25871         is taking too long.
25872         Reported by Ralf Wildenhues.
25873
25874 2007-12-21  Simon Josefsson  <simon@josefsson.org>
25875
25876         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
25877         string, needed by strerror.
25878
25879 2008-01-03  Colin Watson  <cjwatson@debian.org>
25880             Bruno Haible  <bruno@clisp.org>
25881
25882         * doc/gnulib-tool.texi (Localization): New section.
25883
25884 2008-01-02  Bruno Haible  <bruno@clisp.org>
25885
25886         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
25887         variables to 'unsigned char *' type.
25888         Reported by Paul Eggert.
25889
25890 2008-01-02  Jim Meyering  <jim@meyering.net>
25891
25892         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
25893
25894 2007-12-31  Jim Meyering  <jim@meyering.net>
25895
25896         Avoid use of private FTS type name.
25897         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
25898
25899 2007-12-30  Karl Berry  <karl@gnu.org>
25900
25901         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
25902         work around defect in Texinfo and/or the standalone Info browser.
25903
25904 2007-12-30  Bruno Haible  <bruno@clisp.org>
25905
25906         Unify 5 copies of the KMP code.
25907         * lib/str-kmp.h: New file.
25908         * lib/c-strcasestr.c: Include str-kmp.h.
25909         (knuth_morris_pratt): Remove function.
25910         (c_strcasestr): Update.
25911         * lib/c-strstr.c: Include str-kmp.h.
25912         (knuth_morris_pratt): Remove function.
25913         (c_strcasestr): Update.
25914         * lib/mbscasestr.c: Include str-kmp.h.
25915         (knuth_morris_pratt_unibyte): Remove function.
25916         * lib/mbsstr.c: Include str-kmp.h.
25917         (knuth_morris_pratt_unibyte): Remove function.
25918         * lib/strcasestr.c: Include str-kmp.h.
25919         (knuth_morris_pratt): Remove function.
25920         (strcasestr): Update.
25921         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
25922         * modules/c-strstr (Files): Likewise.
25923         * modules/mbscasestr (Files): Likewise.
25924         * modules/mbsstr (Files): Likewise.
25925         * modules/strcasestr (Files): Likewise.
25926         Suggested by Paul Eggert.
25927
25928 2007-12-30  Bruno Haible  <bruno@clisp.org>
25929
25930         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
25931         defined.
25932
25933 2007-12-30  Bruno Haible  <bruno@clisp.org>
25934
25935         * lib/xmalloca.h: Include xalloc.h.
25936         (xnmalloca): New macro.
25937
25938 2007-12-30  Bruno Haible  <bruno@clisp.org>
25939
25940         * lib/malloca.h (nmalloca): New macro.
25941         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
25942         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
25943         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
25944         knuth_morris_pratt_multibyte): Likewise.
25945         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
25946         knuth_morris_pratt_multibyte): Likewise.
25947         * lib/memmem.c (knuth_morris_pratt): Likewise.
25948         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
25949
25950 2007-12-25  Bruno Haible  <bruno@clisp.org>
25951
25952         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
25953         * lib/glob.c: Don't include openat.h.
25954         (link_exists2_p): Add back the code that deals with the
25955         !GLOB_ALTDIRFUNC case.
25956         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
25957         let it do the filename concatenation.
25958         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
25959         * modules/glob (Depends-on): Remove openat.
25960
25961 2007-12-31  Bruno Haible  <bruno@clisp.org>
25962
25963         * modules/dirfd (License): Change to LGPLv2+.
25964         Approved by Jim Meyering.
25965
25966 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25967
25968         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
25969         when multiplying M by sizeof (size_t).
25970
25971 2007-12-10  Martin Lambers  <marlam@marlam.de>
25972
25973         Override getpagesize on mingw.
25974         * lib/getpagesize.c: New file.
25975         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
25976         * modules/getpagesize (Files): Add lib/getpagesize.c.
25977         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
25978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25979         REPLACE_GETPAGESIZE.
25980         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
25981
25982 2007-12-25  Bruno Haible  <bruno@clisp.org>
25983
25984         * modules/localcharset (Notice): New field.
25985         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
25986         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
25987
25988 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25989             Bruno Haible  <bruno@clisp.org>
25990
25991         Avoid using the syntax symbol() in formatted documentation.
25992         * MODULES.html.sh (func_module): When replacing symbol() with a
25993         hyperlink, remove the parentheses. Show an error if some remain.
25994         Recognize and render the '...' syntax.
25995         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
25996         Rework. Add paragraph about GCC's inlining.
25997         * doc/alloca.texi: Likewise.
25998         * doc/error.texi: Remove parentheses from symbol reference.
25999         * doc/gnulib-intro.texi: Likewise.
26000         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26001         * modules/fnmatch (Description): Reword to say "the ... function".
26002         * modules/full-read (Description): Likewise.
26003         * modules/full-write (Description): Likewise.
26004         * modules/safe-read (Description): Likewise.
26005         * modules/safe-write (Description): Likewise.
26006         * modules/strchrnul (Description): Likewise.
26007         * modules/trim (Description): Likewise.
26008         * modules/error (Description): Remove parentheses from symbol
26009         references.
26010         * modules/verror (Description): Likewise.
26011         Reported by Karl Berry.
26012
26013 2007-12-25  Bruno Haible  <bruno@clisp.org>
26014
26015         Fixup after 2007-10-16 commit.
26016         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26017
26018 2007-12-24  Bruno Haible  <bruno@clisp.org>
26019
26020         Make --enable-relocatable work with DESTDIR.
26021         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26022         to compute installdir from destprog.
26023         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26024         also set the RELOC_DESTDIR variable.
26025         Reported by Левашев Иван <octagram@bluebottle.com>.
26026
26027 2007-12-24  Bruno Haible  <bruno@clisp.org>
26028
26029         Fix link error due to xalloc_die().
26030         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26031         of xreadlink.
26032         * lib/relocwrapper.c: Update comments.
26033         * build-aux/install-reloc: Remove xreadlink.c from file list.
26034         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26035         xreadlink.c.
26036         Reported by Левашев Иван <octagram@bluebottle.com>.
26037
26038 2007-12-24  Bruno Haible  <bruno@clisp.org>
26039
26040         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26041         * lib/setenv.h: Remove file.
26042         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26043         lib/setenv.h.
26044         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26045         (Depends-on): Add stdlib.
26046         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26047         gl_FUNC_UNSETENV.
26048         (Include): Replace setenv.h with <stdlib.h>.
26049         * modules/unsetenv: New file.
26050         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26051         * lib/unsetenv.c: Include <stdlib.h> first.
26052         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26053         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26054         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26055         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26056         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26057         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26059         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26060         * doc/functions/unsetenv.texi: Update.
26061         * modules/xsetenv (Depends-on): Add unsetenv.
26062         * modules/getdate (Depends-on): Likewise.
26063         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26064         * lib/xsetenv.c: Don't include setenv.h.
26065         * lib/getdate.y: Likewise.
26066         * lib/relocwrapper.c: Likewise.
26067         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26068         (Depends-on): Add stdlib.
26069         * NEWS: Mention the changes.
26070         Reported by Левашев Иван <octagram@bluebottle.com>.
26071
26072 2007-12-23  Bruno Haible  <bruno@clisp.org>
26073
26074         * lib/memmem.c (memmem): Use lowercase variable names. Tab
26075         indentation.
26076
26077 2007-12-23  Bruno Haible  <bruno@clisp.org>
26078
26079         * lib/c-strcasestr.c: Add more comments.
26080         * lib/c-strstr.c: Likewise.
26081         * lib/mbscasestr.c: Likewise.
26082         * lib/mbsstr.c: Likewise.
26083         * lib/strcasestr.c: Likewise.
26084         * lib/memmem.c: Likewise.
26085
26086 2007-12-23  Bruno Haible  <bruno@clisp.org>
26087
26088         * tests/test-memmem.c: Include <string.h> first.
26089
26090 2007-12-22  Bruno Haible  <bruno@clisp.org>
26091
26092         * gnulib-tool (func_create_testdir): Change $auxdir while generating
26093         the contents of $testsbase.
26094         Reported by Ralf Wildenhues.
26095
26096 2007-12-22  Bruno Haible  <bruno@clisp.org>
26097
26098         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26099         two variables local_ldadd_before, local_ldadd_last.
26100
26101 2007-12-20  Eric Blake  <ebb9@byu.net>
26102
26103         Work around circular library issue when cross-compiling.
26104         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26105         that progname.o does not need to pull in rpl_memcmp.
26106
26107 2007-12-19  Eric Blake  <ebb9@byu.net>
26108
26109         Fix memmem to avoid O(n^2) worst-case complexity.
26110         * lib/memmem.c (knuth_morris_pratt): New function.
26111         (memmem): Use it if first few naive iterations fail.
26112         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26113         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26114         * modules/memchr (License): Likewise.
26115         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26116         malloca.
26117         * tests/test-memmem.c: Rewrite, borrowing ideas from
26118         test-mbsstr1.c; the old version wouldn't even compile!
26119         * modules/memmem-tests: New file.
26120         * lib/string.in.h (rpl_memmem): Add declaration.
26121         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26123         REPLACE_MEMMEM.
26124
26125 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26126
26127         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26128         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26129         before any system include files, and undef after them all.  This
26130         should fix a problem on VMS reported by John E. Malmberg in
26131         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26132
26133 2007-12-17  Eric Blake  <ebb9@byu.net>
26134
26135         Revert addition of verify, for BSD/OS.
26136         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26137         can't handle large files, for the sake of obsolete platforms.
26138         * modules/fseeko (Depends-on): Remove verify.
26139         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26140         * doc/functions/ftello.texi (ftello): Likewise.
26141         * doc/functions/fgetpos.texi (fgetpos): Likewise.
26142         Reported by Larry Jones.
26143
26144 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
26145
26146         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26147         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26148
26149 2007-12-17  Jim Meyering  <meyering@redhat.com>
26150
26151         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26152         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26153         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26154         * modules/getcwd (Depends-on): Add openat.
26155         Reported by Petr Salinger.
26156
26157 2007-12-17  Bruno Haible  <bruno@clisp.org>
26158
26159         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26160         avoid a segmentation fault of the configure test on x86_64 systems.
26161
26162 2007-12-15  Jim Meyering  <meyering@redhat.com>
26163
26164         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26165
26166 2007-12-13  Eric Blake  <ebb9@byu.net>
26167
26168         Another fseek test.
26169         * tests/test-fseek.c (main): Also test ungetc handling.
26170         * tests/test-fseeko.c (main): Likewise.
26171         * modules/fseeko (Depends-on): Add verify.
26172         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26173         large.
26174         Reported by Larry Jones.
26175
26176         Fix fseeko on mingw.
26177         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26178         seek.
26179
26180         Beef up fseek tests.
26181         * tests/test-fseek.c (main): Also test eof handling.
26182         * tests/test-fseeko.c (main): Likewise.
26183         Reported by Larry Jones.
26184
26185 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
26186
26187         Fix fseeko on BSD-based platforms.
26188         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26189         successful seek.
26190
26191 2007-12-12  Eric Blake  <ebb9@byu.net>
26192
26193         Allow circular dependency of separate libtests.a
26194         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26195         when use_libtests.
26196
26197 2007-12-11  Eric Blake  <ebb9@byu.net>
26198
26199         Fix bug with -0.0L in previous patch.
26200         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26201         * tests/test-isnan.c (main): Also test on zeroes.
26202         * tests/test-isnanf.c (main): Likewise.
26203         * tests/test-isnanl.h (main): Likewise.
26204
26205         Detect pseudo-denormals on x86 even when cross-compiling.
26206         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26207         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26208         invalid bit patterns that happen to satisfy ==.
26209
26210         Avoid link failures with separate libtests.a.
26211         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26212         last, to satisfy circular dependencies.
26213
26214 2007-12-11  Eric Blake  <ebb9@byu.net>
26215         and Bruno Haible  <bruno@clisp.org>
26216
26217         Fix OpenBSD 4.0 <float.h> handling of long double.
26218         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26219         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26220         * doc/headers/float.texi (float.h): Document OpenBSD bug.
26221
26222 2007-12-11  Jim Meyering  <meyering@redhat.com>
26223
26224         * users.txt: Add libvirt.
26225
26226         Support versions of autoconf prior to 2.59c.
26227         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26228         if it is not already defined.
26229
26230 2007-12-09  Bruno Haible  <bruno@clisp.org>
26231
26232         Let 'gnulib-tool --import' collect sources needed for the tests in
26233         tests/ rather than in lib/.
26234         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26235         argument. If true, add rules to generate libtests.a, and put libtests.a
26236         into $(LDADD). Consider source files in subdirectories and set
26237         uses_subdirs.
26238         (func_emit_initmacro_start, func_emit_initmacro_end,
26239         func_emit_initmacro_done): Pass all arguments explicitly.
26240         (func_import): Determine two module lists main_modules,
26241         testsrelated_modules. Determine use_libtests. Determine two variables
26242         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26243         instead of just sed_transform_lib_file. Determine two variables
26244         main_files and testsrelated_files. Compute 'files' as the union of
26245         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26246         func_add_or_update. In the generated gnulib-comp.m4, collect the
26247         object files for tests/ in different variables than those for lib/.
26248         Substitute LIBTESTS_LIBDEPS.
26249         (func_create_testdir): Combine the uses_subdirs results from
26250         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26251
26252 2007-12-09  Bruno Haible  <bruno@clisp.org>
26253
26254         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26255         the build-aux directory.
26256
26257 2007-12-09  Bruno Haible  <bruno@clisp.org>
26258
26259         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26260         introduced on 2006-09-09.
26261
26262 2007-12-07  Jim Meyering  <meyering@redhat.com>
26263
26264         Let these macros work also with autoconf-2.59.
26265         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
26266         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26267         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26268
26269 2007-12-06  Jim Meyering  <meyering@redhat.com>
26270
26271         Avoid a configure-time syntax error in gl_FUNC_ACL.
26272         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26273         function in each branch, before testing the cache variable.
26274
26275 2007-12-04  Eric Blake  <ebb9@byu.net>
26276
26277         Make scripts executable.
26278         * build-aux/config.guess: Add execute permissions.
26279         * build-aux/config.sub: Likewise.
26280         * build-aux/gendocs.sh: Likewise.
26281
26282         Fix frexp on mingw.
26283         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26284         cross-compiling.
26285         * doc/functions/frexp.texi (frexp): Document the bug.
26286
26287         Make cygwin fseeko check more reliable.
26288         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
26289         version numbers, rather than unrelated feature check.
26290         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
26291         * doc/functions/ftello.texi (ftello): Likewise.
26292         Reported by Bruno Haible.
26293
26294         * m4/strerror.m4: Bump version number.
26295
26296 2007-12-03  Bruno Haible  <bruno@clisp.org>
26297
26298         * doc/functions/mprotect.texi: Mention the mingw problem.
26299
26300 2007-12-03  Eric Blake  <ebb9@byu.net>
26301
26302         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
26303         REPLACE_STRERROR is initialized before this macro.
26304
26305 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26306
26307         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
26308         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
26309         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
26310         put -lsec in even for programs other than 'ls'.  This fixes a problem
26311         for gettext reported by Bruno Haible in
26312         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
26313         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
26314         Add support for Solaris 10.  This isn't efficient, but should get the
26315         job done for now.
26316
26317 2007-12-03  James Youngman  <jay@gnu.org>
26318
26319         * doc/regexprops-generic.texi: change "an close-group" to "a
26320         close-group" and "illegal" to "not allowed".
26321
26322 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26323
26324         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
26325         pr_byname.h. Needed for the rare case when the maintainer has done
26326         "make maintainer-clean" in the source directory and then attempts a
26327         build outside the source directory.
26328         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
26329         scripts_byname.h.
26330
26331 2007-12-02  Martin Lambers <marlam@marlam.de>
26332             Bruno Haible  <bruno@clisp.org>
26333
26334         * lib/getpagesize.h: Remove file.
26335         * lib/unistd.in.h: Include declaration of getpagesize here.
26336         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
26337         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
26338         HAVE_SYS_PARAM_H.
26339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
26340         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26341         * modules/getpagesize (Files): Remove lib/getpagesize.h.
26342         (Depends-on): Add unistd.
26343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26344         (Include): Use <unistd.h> instead of getpagesize.h.
26345         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
26346         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26347         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
26348         gl_GETPAGESIZE invocation, already handled by module dependency.
26349         * lib/pagealign_alloc.c: Don't include getpagesize.h.
26350
26351 2007-12-02  Bruno Haible  <bruno@clisp.org>
26352
26353         * modules/strings-tests: New file.
26354         * tests/test-strings.c: New file.
26355
26356         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
26357         * lib/strings.in.h: New file.
26358         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
26359         * m4/strings_h.m4: New file.
26360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
26361         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
26362         * modules/strings: New file.
26363         * modules/string (Makefile.am): Update.
26364         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
26365         Reported by Karl Berry.
26366
26367 2007-12-01  Eric Blake  <ebb9@byu.net>
26368
26369         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
26370         accomodate fix in cygwin 1.5.25.
26371
26372 2007-12-01  Jim Meyering  <meyering@redhat.com>
26373
26374         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
26375         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
26376         that would inhibit utf8-optimization of a regexp containing line-
26377         or buffer-anchors, e.g., `^', `$'.
26378
26379 2007-11-30  Bruno Haible  <bruno@clisp.org>
26380
26381         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
26382         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
26383         glthread_recursive_lock_init.
26384         * lib/lock.c (glthread_recursive_lock_init)
26385         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
26386         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26387
26388 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
26389
26390         New function qset_acl, like set_acl but with syscall semantics.
26391         * lib/acl.h (qset_acl): New decl.
26392         * lib/acl.c (qset_acl): New function.
26393         (set_acl): Use new function.  Use more-consistent diagnostics.
26394
26395 2007-11-28  Jim Meyering  <meyering@redhat.com>
26396
26397         * modules/physmem (License): Change from GPL to LGPLv2+.
26398
26399 2007-11-26  Bruno Haible  <bruno@clisp.org>
26400
26401         * lib/vasnprintf.c (decode_long_double): Don't abort if the
26402         'long double' type has excess precision.
26403         Reported by Jim Meyering in
26404         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
26405
26406 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26407
26408         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
26409         Sync from <http://gnu.org/licenses>.
26410         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
26411         with license text from same location.
26412         * doc/maintain.texi, doc/standards.texi:  Sync from
26413         <http://savannah.gnu.org/projects/gnustandards>.
26414
26415 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
26416         and Jim Meyering  <meyering@redhat.com>
26417
26418         Adjust getdate' grammar to accept a slightly more regular language.
26419         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
26420         Before, the former was rejected.
26421         * lib/getdate.y (digits_to_date_time): New function, factored
26422         out of ...
26423         (number): ...here.  Just call digits_to_date_time.
26424         (hybrid): New non-terminal to handle an <unsigned number,
26425         signed relative offset> sequence consistently.
26426
26427 2007-11-18  Jim Meyering  <meyering@redhat.com>
26428
26429         Pull my changes from coreutils:
26430         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
26431         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
26432         use of $gnulib_tool_option_extras, so that it's separated from the
26433         preceding argument.
26434
26435         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
26436         * build-aux/bootstrap (cp_mark_as_generated): Create any required
26437         parent destination directories before copying a file into place.
26438
26439 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
26440
26441         bootstrap: work also with 4-argument variant of AC_INIT
26442         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
26443
26444 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26445
26446         Port test-getaddrinfo to Solaris.
26447         Problem reported by Bruno Haible in
26448         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
26449         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
26450         explanation of setting 'hints'.
26451         Don't reject an implementation merely because it returns EAI_SERVICE.
26452         (EAI_SERVICE): Define to 0 if not defined.
26453
26454 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26455
26456         The license of gnu-make and posix-shell is now "GPLed build tool".
26457         * modules/gnu-make (License): Likewise.
26458         * modules/posix-shell (License): Likewise.
26459
26460         New module posix-shell, for determining a POSIX shell
26461         or perhaps something that is close enough to a POSIX shell.
26462         * m4/posix-shell.m4: New file.
26463         * modules/posix-shell: New file.
26464
26465         * MODULES.html.sh: Mention new module.
26466
26467         New module gnu-make, for determining whether we're using GNU Make.
26468         * m4/gnu-make.m4: New file.
26469         * modules/gnu-make: New file.
26470         * MODULES.html.sh: Mention new module.
26471
26472 2007-11-14  Jim Meyering  <meyering@redhat.com>
26473
26474         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
26475         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
26476         use this macro to create a function _definition_.
26477         Remove useless "#undef ARGMATCH_DIE".
26478
26479 2007-11-14  Bruno Haible  <bruno@clisp.org>
26480
26481         * lib/config.charset: Update for OpenBSD 4.1.
26482         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
26483
26484 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26485
26486         Document 64-bit #if problems in stdint.texi.
26487         * doc/headers/stdint.texi (stdint.h): Mention problems with
26488         64-bit-#if, and how to work around them.
26489
26490         Don't insist on 'long long int' support in the preprocessor.  It
26491         breaks too many things.  For example, PRIdMAX still uses a 'long
26492         long int' format with the latest Sun compiler, even though
26493         HAVE_LONG_LONG_INT isn't defined due to that compiler's
26494         preprocessor problem.  This causes the latest coreutils to dump
26495         core on Solaris 10 sparc with the Sun C compiler.
26496         Instead, fix the 2007-10-16 problem in a different way, by evaluating
26497         the troublesome expressions at configure-time, not at #if-time.
26498         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
26499         preprocessor.
26500         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
26501         compile-time C checks, done at 'configure'-time.
26502         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
26503         * modules/inttypes (Makefile): Substitute the new symbols that
26504         gl_INTTYPES_H now generates.
26505         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
26506
26507 2007-11-12  Bruno Haible  <bruno@clisp.org>
26508
26509         Tests for Unicode character classification functions.
26510
26511         * modules/unictype/bidicategory-byname-tests: New file.
26512         * modules/unictype/bidicategory-name-tests: New file.
26513         * modules/unictype/bidicategory-of-tests: New file.
26514         * modules/unictype/bidicategory-test-tests: New file.
26515         * modules/unictype/block-list-tests: New file.
26516         * modules/unictype/block-of-tests: New file.
26517         * modules/unictype/block-test-tests: New file.
26518         * modules/unictype/category-C-tests: New file.
26519         * modules/unictype/category-Cc-tests: New file.
26520         * modules/unictype/category-Cf-tests: New file.
26521         * modules/unictype/category-Cn-tests: New file.
26522         * modules/unictype/category-Co-tests: New file.
26523         * modules/unictype/category-Cs-tests: New file.
26524         * modules/unictype/category-L-tests: New file.
26525         * modules/unictype/category-Ll-tests: New file.
26526         * modules/unictype/category-Lm-tests: New file.
26527         * modules/unictype/category-Lo-tests: New file.
26528         * modules/unictype/category-Lt-tests: New file.
26529         * modules/unictype/category-Lu-tests: New file.
26530         * modules/unictype/category-M-tests: New file.
26531         * modules/unictype/category-Mc-tests: New file.
26532         * modules/unictype/category-Me-tests: New file.
26533         * modules/unictype/category-Mn-tests: New file.
26534         * modules/unictype/category-N-tests: New file.
26535         * modules/unictype/category-Nd-tests: New file.
26536         * modules/unictype/category-Nl-tests: New file.
26537         * modules/unictype/category-No-tests: New file.
26538         * modules/unictype/category-P-tests: New file.
26539         * modules/unictype/category-Pc-tests: New file.
26540         * modules/unictype/category-Pd-tests: New file.
26541         * modules/unictype/category-Pe-tests: New file.
26542         * modules/unictype/category-Pf-tests: New file.
26543         * modules/unictype/category-Pi-tests: New file.
26544         * modules/unictype/category-Po-tests: New file.
26545         * modules/unictype/category-Ps-tests: New file.
26546         * modules/unictype/category-S-tests: New file.
26547         * modules/unictype/category-Sc-tests: New file.
26548         * modules/unictype/category-Sk-tests: New file.
26549         * modules/unictype/category-Sm-tests: New file.
26550         * modules/unictype/category-So-tests: New file.
26551         * modules/unictype/category-Z-tests: New file.
26552         * modules/unictype/category-Zl-tests: New file.
26553         * modules/unictype/category-Zp-tests: New file.
26554         * modules/unictype/category-Zs-tests: New file.
26555         * modules/unictype/category-and-not-tests: New file.
26556         * modules/unictype/category-and-tests: New file.
26557         * modules/unictype/category-byname-tests: New file.
26558         * modules/unictype/category-name-tests: New file.
26559         * modules/unictype/category-none-tests: New file.
26560         * modules/unictype/category-of-tests: New file.
26561         * modules/unictype/category-or-tests: New file.
26562         * modules/unictype/category-test-withtable-tests: New file.
26563         * modules/unictype/combining-class-tests: New file.
26564         * modules/unictype/ctype-alnum-tests: New file.
26565         * modules/unictype/ctype-alpha-tests: New file.
26566         * modules/unictype/ctype-blank-tests: New file.
26567         * modules/unictype/ctype-cntrl-tests: New file.
26568         * modules/unictype/ctype-digit-tests: New file.
26569         * modules/unictype/ctype-graph-tests: New file.
26570         * modules/unictype/ctype-lower-tests: New file.
26571         * modules/unictype/ctype-print-tests: New file.
26572         * modules/unictype/ctype-punct-tests: New file.
26573         * modules/unictype/ctype-space-tests: New file.
26574         * modules/unictype/ctype-upper-tests: New file.
26575         * modules/unictype/ctype-xdigit-tests: New file.
26576         * modules/unictype/decimal-digit-tests: New file.
26577         * modules/unictype/digit-tests: New file.
26578         * modules/unictype/mirror-tests: New file.
26579         * modules/unictype/numeric-tests: New file.
26580         * modules/unictype/property-alphabetic-tests: New file.
26581         * modules/unictype/property-ascii-hex-digit-tests: New file.
26582         * modules/unictype/property-bidi-arabic-digit-tests: New file.
26583         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
26584         * modules/unictype/property-bidi-block-separator-tests: New file.
26585         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
26586         * modules/unictype/property-bidi-common-separator-tests: New file.
26587         * modules/unictype/property-bidi-control-tests: New file.
26588         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
26589         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
26590         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
26591         * modules/unictype/property-bidi-european-digit-tests: New file.
26592         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
26593         * modules/unictype/property-bidi-left-to-right-tests: New file.
26594         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
26595         * modules/unictype/property-bidi-other-neutral-tests: New file.
26596         * modules/unictype/property-bidi-pdf-tests: New file.
26597         * modules/unictype/property-bidi-segment-separator-tests: New file.
26598         * modules/unictype/property-bidi-whitespace-tests: New file.
26599         * modules/unictype/property-byname-tests: New file.
26600         * modules/unictype/property-combining-tests: New file.
26601         * modules/unictype/property-composite-tests: New file.
26602         * modules/unictype/property-currency-symbol-tests: New file.
26603         * modules/unictype/property-dash-tests: New file.
26604         * modules/unictype/property-decimal-digit-tests: New file.
26605         * modules/unictype/property-default-ignorable-code-point-tests: New file.
26606         * modules/unictype/property-deprecated-tests: New file.
26607         * modules/unictype/property-diacritic-tests: New file.
26608         * modules/unictype/property-extender-tests: New file.
26609         * modules/unictype/property-format-control-tests: New file.
26610         * modules/unictype/property-grapheme-base-tests: New file.
26611         * modules/unictype/property-grapheme-extend-tests: New file.
26612         * modules/unictype/property-grapheme-link-tests: New file.
26613         * modules/unictype/property-hex-digit-tests: New file.
26614         * modules/unictype/property-hyphen-tests: New file.
26615         * modules/unictype/property-id-continue-tests: New file.
26616         * modules/unictype/property-id-start-tests: New file.
26617         * modules/unictype/property-ideographic-tests: New file.
26618         * modules/unictype/property-ids-binary-operator-tests: New file.
26619         * modules/unictype/property-ids-trinary-operator-tests: New file.
26620         * modules/unictype/property-ignorable-control-tests: New file.
26621         * modules/unictype/property-iso-control-tests: New file.
26622         * modules/unictype/property-join-control-tests: New file.
26623         * modules/unictype/property-left-of-pair-tests: New file.
26624         * modules/unictype/property-line-separator-tests: New file.
26625         * modules/unictype/property-logical-order-exception-tests: New file.
26626         * modules/unictype/property-lowercase-tests: New file.
26627         * modules/unictype/property-math-tests: New file.
26628         * modules/unictype/property-non-break-tests: New file.
26629         * modules/unictype/property-not-a-character-tests: New file.
26630         * modules/unictype/property-numeric-tests: New file.
26631         * modules/unictype/property-other-alphabetic-tests: New file.
26632         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
26633         * modules/unictype/property-other-grapheme-extend-tests: New file.
26634         * modules/unictype/property-other-id-continue-tests: New file.
26635         * modules/unictype/property-other-id-start-tests: New file.
26636         * modules/unictype/property-other-lowercase-tests: New file.
26637         * modules/unictype/property-other-math-tests: New file.
26638         * modules/unictype/property-other-uppercase-tests: New file.
26639         * modules/unictype/property-paired-punctuation-tests: New file.
26640         * modules/unictype/property-paragraph-separator-tests: New file.
26641         * modules/unictype/property-pattern-syntax-tests: New file.
26642         * modules/unictype/property-pattern-white-space-tests: New file.
26643         * modules/unictype/property-private-use-tests: New file.
26644         * modules/unictype/property-punctuation-tests: New file.
26645         * modules/unictype/property-quotation-mark-tests: New file.
26646         * modules/unictype/property-radical-tests: New file.
26647         * modules/unictype/property-sentence-terminal-tests: New file.
26648         * modules/unictype/property-soft-dotted-tests: New file.
26649         * modules/unictype/property-space-tests: New file.
26650         * modules/unictype/property-terminal-punctuation-tests: New file.
26651         * modules/unictype/property-test-tests: New file.
26652         * modules/unictype/property-titlecase-tests: New file.
26653         * modules/unictype/property-unassigned-code-value-tests: New file.
26654         * modules/unictype/property-unified-ideograph-tests: New file.
26655         * modules/unictype/property-uppercase-tests: New file.
26656         * modules/unictype/property-variation-selector-tests: New file.
26657         * modules/unictype/property-white-space-tests: New file.
26658         * modules/unictype/property-xid-continue-tests: New file.
26659         * modules/unictype/property-xid-start-tests: New file.
26660         * modules/unictype/property-zero-width-tests: New file.
26661         * modules/unictype/scripts-tests: New file.
26662         * modules/unictype/syntax-c-ident-tests: New file.
26663         * modules/unictype/syntax-c-whitespace-tests: New file.
26664         * modules/unictype/syntax-java-ident-tests: New file.
26665         * modules/unictype/syntax-java-whitespace-tests: New file.
26666         * tests/unictype/test-bidi_byname.c: New file.
26667         * tests/unictype/test-bidi_name.c: New file.
26668         * tests/unictype/test-bidi_of.c: New file.
26669         * tests/unictype/test-bidi_test.c: New file.
26670         * tests/unictype/test-block_list.c: New file.
26671         * tests/unictype/test-block_of.c: New file.
26672         * tests/unictype/test-block_test.c: New file.
26673         * tests/unictype/test-categ_and.c: New file.
26674         * tests/unictype/test-categ_and_not.c: New file.
26675         * tests/unictype/test-categ_byname.c: New file.
26676         * tests/unictype/test-categ_name.c: New file.
26677         * tests/unictype/test-categ_none.c: New file.
26678         * tests/unictype/test-categ_of.c: New file.
26679         * tests/unictype/test-categ_or.c: New file.
26680         * tests/unictype/test-categ_test_withtable.c: New file.
26681         * tests/unictype/test-combining.c: New file.
26682         * tests/unictype/test-decdigit.c: New file.
26683         * tests/unictype/test-digit.c: New file.
26684         * tests/unictype/test-mirror.c: New file.
26685         * tests/unictype/test-numeric.c: New file.
26686         * tests/unictype/test-pr_byname.c: New file.
26687         * tests/unictype/test-pr_test.c: New file.
26688         * tests/unictype/test-predicate-part1.h: New file.
26689         * tests/unictype/test-predicate-part2.h: New file.
26690         * tests/unictype/test-scripts.c: New file.
26691         * tests/unictype/test-sy_c_ident.c: New file.
26692         * tests/unictype/test-sy_java_ident.c: New file.
26693
26694         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
26695         for Unicode 5.0.0.
26696         * tests/unictype/test-categ_Cc.c: Likewise.
26697         * tests/unictype/test-categ_Cf.c: Likewise.
26698         * tests/unictype/test-categ_Cn.c: Likewise.
26699         * tests/unictype/test-categ_Co.c: Likewise.
26700         * tests/unictype/test-categ_Cs.c: Likewise.
26701         * tests/unictype/test-categ_L.c: Likewise.
26702         * tests/unictype/test-categ_Ll.c: Likewise.
26703         * tests/unictype/test-categ_Lm.c: Likewise.
26704         * tests/unictype/test-categ_Lo.c: Likewise.
26705         * tests/unictype/test-categ_Lt.c: Likewise.
26706         * tests/unictype/test-categ_Lu.c: Likewise.
26707         * tests/unictype/test-categ_M.c: Likewise.
26708         * tests/unictype/test-categ_Mc.c: Likewise.
26709         * tests/unictype/test-categ_Me.c: Likewise.
26710         * tests/unictype/test-categ_Mn.c: Likewise.
26711         * tests/unictype/test-categ_N.c: Likewise.
26712         * tests/unictype/test-categ_Nd.c: Likewise.
26713         * tests/unictype/test-categ_Nl.c: Likewise.
26714         * tests/unictype/test-categ_No.c: Likewise.
26715         * tests/unictype/test-categ_P.c: Likewise.
26716         * tests/unictype/test-categ_Pc.c: Likewise.
26717         * tests/unictype/test-categ_Pd.c: Likewise.
26718         * tests/unictype/test-categ_Pe.c: Likewise.
26719         * tests/unictype/test-categ_Pf.c: Likewise.
26720         * tests/unictype/test-categ_Pi.c: Likewise.
26721         * tests/unictype/test-categ_Po.c: Likewise.
26722         * tests/unictype/test-categ_Ps.c: Likewise.
26723         * tests/unictype/test-categ_S.c: Likewise.
26724         * tests/unictype/test-categ_Sc.c: Likewise.
26725         * tests/unictype/test-categ_Sk.c: Likewise.
26726         * tests/unictype/test-categ_Sm.c: Likewise.
26727         * tests/unictype/test-categ_So.c: Likewise.
26728         * tests/unictype/test-categ_Z.c: Likewise.
26729         * tests/unictype/test-categ_Zl.c: Likewise.
26730         * tests/unictype/test-categ_Zp.c: Likewise.
26731         * tests/unictype/test-categ_Zs.c: Likewise.
26732         * tests/unictype/test-ctype_alnum.c: Likewise.
26733         * tests/unictype/test-ctype_alpha.c: Likewise.
26734         * tests/unictype/test-ctype_blank.c: Likewise.
26735         * tests/unictype/test-ctype_cntrl.c: Likewise.
26736         * tests/unictype/test-ctype_digit.c: Likewise.
26737         * tests/unictype/test-ctype_graph.c: Likewise.
26738         * tests/unictype/test-ctype_lower.c: Likewise.
26739         * tests/unictype/test-ctype_print.c: Likewise.
26740         * tests/unictype/test-ctype_punct.c: Likewise.
26741         * tests/unictype/test-ctype_space.c: Likewise.
26742         * tests/unictype/test-ctype_upper.c: Likewise.
26743         * tests/unictype/test-ctype_xdigit.c: Likewise.
26744         * tests/unictype/test-decdigit.h: Likewise.
26745         * tests/unictype/test-digit.h: Likewise.
26746         * tests/unictype/test-numeric.h: Likewise.
26747         * tests/unictype/test-pr_alphabetic.c: Likewise.
26748         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
26749         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26750         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26751         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
26752         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26753         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
26754         * tests/unictype/test-pr_bidi_control.c: Likewise.
26755         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
26756         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
26757         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26758         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26759         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26760         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26761         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26762         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26763         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
26764         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
26765         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
26766         * tests/unictype/test-pr_combining.c: Likewise.
26767         * tests/unictype/test-pr_composite.c: Likewise.
26768         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26769         * tests/unictype/test-pr_dash.c: Likewise.
26770         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26771         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
26772         * tests/unictype/test-pr_deprecated.c: Likewise.
26773         * tests/unictype/test-pr_diacritic.c: Likewise.
26774         * tests/unictype/test-pr_extender.c: Likewise.
26775         * tests/unictype/test-pr_format_control.c: Likewise.
26776         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26777         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26778         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26779         * tests/unictype/test-pr_hex_digit.c: Likewise.
26780         * tests/unictype/test-pr_hyphen.c: Likewise.
26781         * tests/unictype/test-pr_id_continue.c: Likewise.
26782         * tests/unictype/test-pr_id_start.c: Likewise.
26783         * tests/unictype/test-pr_ideographic.c: Likewise.
26784         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
26785         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
26786         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26787         * tests/unictype/test-pr_iso_control.c: Likewise.
26788         * tests/unictype/test-pr_join_control.c: Likewise.
26789         * tests/unictype/test-pr_left_of_pair.c: Likewise.
26790         * tests/unictype/test-pr_line_separator.c: Likewise.
26791         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26792         * tests/unictype/test-pr_lowercase.c: Likewise.
26793         * tests/unictype/test-pr_math.c: Likewise.
26794         * tests/unictype/test-pr_non_break.c: Likewise.
26795         * tests/unictype/test-pr_not_a_character.c: Likewise.
26796         * tests/unictype/test-pr_numeric.c: Likewise.
26797         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26798         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
26799         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
26800         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26801         * tests/unictype/test-pr_other_id_start.c: Likewise.
26802         * tests/unictype/test-pr_other_lowercase.c: Likewise.
26803         * tests/unictype/test-pr_other_math.c: Likewise.
26804         * tests/unictype/test-pr_other_uppercase.c: Likewise.
26805         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
26806         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
26807         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
26808         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
26809         * tests/unictype/test-pr_private_use.c: Likewise.
26810         * tests/unictype/test-pr_punctuation.c: Likewise.
26811         * tests/unictype/test-pr_quotation_mark.c: Likewise.
26812         * tests/unictype/test-pr_radical.c: Likewise.
26813         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26814         * tests/unictype/test-pr_soft_dotted.c: Likewise.
26815         * tests/unictype/test-pr_space.c: Likewise.
26816         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26817         * tests/unictype/test-pr_titlecase.c: Likewise.
26818         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26819         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26820         * tests/unictype/test-pr_uppercase.c: Likewise.
26821         * tests/unictype/test-pr_variation_selector.c: Likewise.
26822         * tests/unictype/test-pr_white_space.c: Likewise.
26823         * tests/unictype/test-pr_xid_continue.c: Likewise.
26824         * tests/unictype/test-pr_xid_start.c: Likewise.
26825         * tests/unictype/test-pr_zero_width.c: Likewise.
26826         * tests/unictype/test-sy_c_whitespace.c: Likewise.
26827         * tests/unictype/test-sy_java_whitespace.c: Likewise.
26828
26829 2007-11-12  Bruno Haible  <bruno@clisp.org>
26830
26831         Unicode character classification functions.
26832         * lib/unictype.h: New file.
26833         * modules/unictype/base: New file.
26834         * modules/unictype/category-L: New file.
26835         * modules/unictype/category-Lu: New file.
26836         * modules/unictype/category-Ll: New file.
26837         * modules/unictype/category-Lt: New file.
26838         * modules/unictype/category-Lm: New file.
26839         * modules/unictype/category-Lo: New file.
26840         * modules/unictype/category-M: New file.
26841         * modules/unictype/category-Mn: New file.
26842         * modules/unictype/category-Mc: New file.
26843         * modules/unictype/category-Me: New file.
26844         * modules/unictype/category-N: New file.
26845         * modules/unictype/category-Nd: New file.
26846         * modules/unictype/category-Nl: New file.
26847         * modules/unictype/category-No: New file.
26848         * modules/unictype/category-P: New file.
26849         * modules/unictype/category-Pc: New file.
26850         * modules/unictype/category-Pd: New file.
26851         * modules/unictype/category-Ps: New file.
26852         * modules/unictype/category-Pe: New file.
26853         * modules/unictype/category-Pi: New file.
26854         * modules/unictype/category-Pf: New file.
26855         * modules/unictype/category-Po: New file.
26856         * modules/unictype/category-S: New file.
26857         * modules/unictype/category-Sm: New file.
26858         * modules/unictype/category-Sc: New file.
26859         * modules/unictype/category-Sk: New file.
26860         * modules/unictype/category-So: New file.
26861         * modules/unictype/category-Z: New file.
26862         * modules/unictype/category-Zs: New file.
26863         * modules/unictype/category-Zl: New file.
26864         * modules/unictype/category-Zp: New file.
26865         * modules/unictype/category-C: New file.
26866         * modules/unictype/category-Cc: New file.
26867         * modules/unictype/category-Cf: New file.
26868         * modules/unictype/category-Cs: New file.
26869         * modules/unictype/category-Co: New file.
26870         * modules/unictype/category-Cn: New file.
26871         * modules/unictype/category-or: New file.
26872         * modules/unictype/category-of: New file.
26873         * modules/unictype/category-test: New file.
26874         * modules/unictype/category-test-withtable: New file.
26875         * modules/unictype/category-byname: New file.
26876         * modules/unictype/category-none: New file.
26877         * modules/unictype/category-and: New file.
26878         * modules/unictype/category-and-not: New file.
26879         * modules/unictype/category-name: New file.
26880         * modules/unictype/combining-class: New file.
26881         * modules/unictype/category-all: New file.
26882         * modules/unictype/bidicategory-all: New file.
26883         * modules/unictype/bidicategory-byname: New file.
26884         * modules/unictype/bidicategory-name: New file.
26885         * modules/unictype/bidicategory-of: New file.
26886         * modules/unictype/bidicategory-test: New file.
26887         * modules/unictype/decimal-digit: New file.
26888         * modules/unictype/digit: New file.
26889         * modules/unictype/numeric: New file.
26890         * modules/unictype/mirror: New file.
26891         * modules/unictype/property-white-space: New file.
26892         * modules/unictype/property-alphabetic: New file.
26893         * modules/unictype/property-other-alphabetic: New file.
26894         * modules/unictype/property-not-a-character: New file.
26895         * modules/unictype/property-default-ignorable-code-point: New file.
26896         * modules/unictype/property-other-default-ignorable-code-point: New
26897         file.
26898         * modules/unictype/property-deprecated: New file.
26899         * modules/unictype/property-logical-order-exception: New file.
26900         * modules/unictype/property-variation-selector: New file.
26901         * modules/unictype/property-private-use: New file.
26902         * modules/unictype/property-unassigned-code-value: New file.
26903         * modules/unictype/property-uppercase: New file.
26904         * modules/unictype/property-other-uppercase: New file.
26905         * modules/unictype/property-lowercase: New file.
26906         * modules/unictype/property-other-lowercase: New file.
26907         * modules/unictype/property-titlecase: New file.
26908         * modules/unictype/property-soft-dotted: New file.
26909         * modules/unictype/property-id-start: New file.
26910         * modules/unictype/property-other-id-start: New file.
26911         * modules/unictype/property-id-continue: New file.
26912         * modules/unictype/property-other-id-continue: New file.
26913         * modules/unictype/property-xid-start: New file.
26914         * modules/unictype/property-xid-continue: New file.
26915         * modules/unictype/property-pattern-white-space: New file.
26916         * modules/unictype/property-pattern-syntax: New file.
26917         * modules/unictype/property-join-control: New file.
26918         * modules/unictype/property-grapheme-base: New file.
26919         * modules/unictype/property-grapheme-extend: New file.
26920         * modules/unictype/property-other-grapheme-extend: New file.
26921         * modules/unictype/property-grapheme-link: New file.
26922         * modules/unictype/property-bidi-control: New file.
26923         * modules/unictype/property-bidi-left-to-right: New file.
26924         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
26925         * modules/unictype/property-bidi-arabic-right-to-left: New file.
26926         * modules/unictype/property-bidi-european-digit: New file.
26927         * modules/unictype/property-bidi-eur-num-separator: New file.
26928         * modules/unictype/property-bidi-eur-num-terminator: New file.
26929         * modules/unictype/property-bidi-arabic-digit: New file.
26930         * modules/unictype/property-bidi-common-separator: New file.
26931         * modules/unictype/property-bidi-block-separator: New file.
26932         * modules/unictype/property-bidi-segment-separator: New file.
26933         * modules/unictype/property-bidi-whitespace: New file.
26934         * modules/unictype/property-bidi-non-spacing-mark: New file.
26935         * modules/unictype/property-bidi-boundary-neutral: New file.
26936         * modules/unictype/property-bidi-pdf: New file.
26937         * modules/unictype/property-bidi-embedding-or-override: New file.
26938         * modules/unictype/property-bidi-other-neutral: New file.
26939         * modules/unictype/property-hex-digit: New file.
26940         * modules/unictype/property-ascii-hex-digit: New file.
26941         * modules/unictype/property-ideographic: New file.
26942         * modules/unictype/property-unified-ideograph: New file.
26943         * modules/unictype/property-radical: New file.
26944         * modules/unictype/property-ids-binary-operator: New file.
26945         * modules/unictype/property-ids-trinary-operator: New file.
26946         * modules/unictype/property-zero-width: New file.
26947         * modules/unictype/property-space: New file.
26948         * modules/unictype/property-non-break: New file.
26949         * modules/unictype/property-iso-control: New file.
26950         * modules/unictype/property-format-control: New file.
26951         * modules/unictype/property-dash: New file.
26952         * modules/unictype/property-hyphen: New file.
26953         * modules/unictype/property-punctuation: New file.
26954         * modules/unictype/property-line-separator: New file.
26955         * modules/unictype/property-paragraph-separator: New file.
26956         * modules/unictype/property-quotation-mark: New file.
26957         * modules/unictype/property-sentence-terminal: New file.
26958         * modules/unictype/property-terminal-punctuation: New file.
26959         * modules/unictype/property-currency-symbol: New file.
26960         * modules/unictype/property-math: New file.
26961         * modules/unictype/property-other-math: New file.
26962         * modules/unictype/property-paired-punctuation: New file.
26963         * modules/unictype/property-left-of-pair: New file.
26964         * modules/unictype/property-combining: New file.
26965         * modules/unictype/property-composite: New file.
26966         * modules/unictype/property-decimal-digit: New file.
26967         * modules/unictype/property-numeric: New file.
26968         * modules/unictype/property-diacritic: New file.
26969         * modules/unictype/property-extender: New file.
26970         * modules/unictype/property-ignorable-control: New file.
26971         * modules/unictype/property-test: New file.
26972         * modules/unictype/property-byname: New file.
26973         * modules/unictype/property-all: New file.
26974         * modules/unictype/scripts: New file.
26975         * modules/unictype/scripts-all: New file.
26976         * modules/unictype/block-of: New file.
26977         * modules/unictype/block-test: New file.
26978         * modules/unictype/block-list: New file.
26979         * modules/unictype/block-all: New file.
26980         * modules/unictype/syntax-c-whitespace: New file.
26981         * modules/unictype/syntax-java-whitespace: New file.
26982         * modules/unictype/syntax-c-ident: New file.
26983         * modules/unictype/syntax-java-ident: New file.
26984         * modules/unictype/ctype-alnum: New file.
26985         * modules/unictype/ctype-alpha: New file.
26986         * modules/unictype/ctype-cntrl: New file.
26987         * modules/unictype/ctype-digit: New file.
26988         * modules/unictype/ctype-graph: New file.
26989         * modules/unictype/ctype-lower: New file.
26990         * modules/unictype/ctype-print: New file.
26991         * modules/unictype/ctype-punct: New file.
26992         * modules/unictype/ctype-space: New file.
26993         * modules/unictype/ctype-upper: New file.
26994         * modules/unictype/ctype-xdigit: New file.
26995         * modules/unictype/ctype-blank: New file.
26996         * lib/unictype/bidi_byname.c: New file.
26997         * lib/unictype/bidi_name.c: New file.
26998         * lib/unictype/bidi_of.c: New file.
26999         * lib/unictype/bidi_test.c: New file.
27000         * lib/unictype/bitmap.h: New file.
27001         * lib/unictype/block_test.c: New file.
27002         * lib/unictype/blocks.c: New file.
27003         * lib/unictype/categ_C.c: New file.
27004         * lib/unictype/categ_Cc.c: New file.
27005         * lib/unictype/categ_Cf.c: New file.
27006         * lib/unictype/categ_Cn.c: New file.
27007         * lib/unictype/categ_Co.c: New file.
27008         * lib/unictype/categ_Cs.c: New file.
27009         * lib/unictype/categ_L.c: New file.
27010         * lib/unictype/categ_Ll.c: New file.
27011         * lib/unictype/categ_Lm.c: New file.
27012         * lib/unictype/categ_Lo.c: New file.
27013         * lib/unictype/categ_Lt.c: New file.
27014         * lib/unictype/categ_Lu.c: New file.
27015         * lib/unictype/categ_M.c: New file.
27016         * lib/unictype/categ_Mc.c: New file.
27017         * lib/unictype/categ_Me.c: New file.
27018         * lib/unictype/categ_Mn.c: New file.
27019         * lib/unictype/categ_N.c: New file.
27020         * lib/unictype/categ_Nd.c: New file.
27021         * lib/unictype/categ_Nl.c: New file.
27022         * lib/unictype/categ_No.c: New file.
27023         * lib/unictype/categ_P.c: New file.
27024         * lib/unictype/categ_Pc.c: New file.
27025         * lib/unictype/categ_Pd.c: New file.
27026         * lib/unictype/categ_Pe.c: New file.
27027         * lib/unictype/categ_Pf.c: New file.
27028         * lib/unictype/categ_Pi.c: New file.
27029         * lib/unictype/categ_Po.c: New file.
27030         * lib/unictype/categ_Ps.c: New file.
27031         * lib/unictype/categ_S.c: New file.
27032         * lib/unictype/categ_Sc.c: New file.
27033         * lib/unictype/categ_Sk.c: New file.
27034         * lib/unictype/categ_Sm.c: New file.
27035         * lib/unictype/categ_So.c: New file.
27036         * lib/unictype/categ_Z.c: New file.
27037         * lib/unictype/categ_Zl.c: New file.
27038         * lib/unictype/categ_Zp.c: New file.
27039         * lib/unictype/categ_Zs.c: New file.
27040         * lib/unictype/categ_and.c: New file.
27041         * lib/unictype/categ_and_not.c: New file.
27042         * lib/unictype/categ_byname.c: New file.
27043         * lib/unictype/categ_name.c: New file.
27044         * lib/unictype/categ_none.c: New file.
27045         * lib/unictype/categ_of.c: New file.
27046         * lib/unictype/categ_or.c: New file.
27047         * lib/unictype/categ_test.c: New file.
27048         * lib/unictype/combining.c: New file.
27049         * lib/unictype/ctype_alnum.c: New file.
27050         * lib/unictype/ctype_alpha.c: New file.
27051         * lib/unictype/ctype_blank.c: New file.
27052         * lib/unictype/ctype_cntrl.c: New file.
27053         * lib/unictype/ctype_digit.c: New file.
27054         * lib/unictype/ctype_graph.c: New file.
27055         * lib/unictype/ctype_lower.c: New file.
27056         * lib/unictype/ctype_print.c: New file.
27057         * lib/unictype/ctype_punct.c: New file.
27058         * lib/unictype/ctype_space.c: New file.
27059         * lib/unictype/ctype_upper.c: New file.
27060         * lib/unictype/ctype_xdigit.c: New file.
27061         * lib/unictype/decdigit.c: New file.
27062         * lib/unictype/digit.c: New file.
27063         * lib/unictype/identsyntaxmap.h: New file.
27064         * lib/unictype/mirror.c: New file.
27065         * lib/unictype/numeric.c: New file.
27066         * lib/unictype/pr_alphabetic.c: New file.
27067         * lib/unictype/pr_ascii_hex_digit.c: New file.
27068         * lib/unictype/pr_bidi_arabic_digit.c: New file.
27069         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27070         * lib/unictype/pr_bidi_block_separator.c: New file.
27071         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27072         * lib/unictype/pr_bidi_common_separator.c: New file.
27073         * lib/unictype/pr_bidi_control.c: New file.
27074         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27075         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27076         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27077         * lib/unictype/pr_bidi_european_digit.c: New file.
27078         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27079         * lib/unictype/pr_bidi_left_to_right.c: New file.
27080         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27081         * lib/unictype/pr_bidi_other_neutral.c: New file.
27082         * lib/unictype/pr_bidi_pdf.c: New file.
27083         * lib/unictype/pr_bidi_segment_separator.c: New file.
27084         * lib/unictype/pr_bidi_whitespace.c: New file.
27085         * lib/unictype/pr_byname.c: New file.
27086         * lib/unictype/pr_byname.gperf: New file.
27087         * lib/unictype/pr_combining.c: New file.
27088         * lib/unictype/pr_composite.c: New file.
27089         * lib/unictype/pr_currency_symbol.c: New file.
27090         * lib/unictype/pr_dash.c: New file.
27091         * lib/unictype/pr_decimal_digit.c: New file.
27092         * lib/unictype/pr_default_ignorable_code_point.c: New file.
27093         * lib/unictype/pr_deprecated.c: New file.
27094         * lib/unictype/pr_diacritic.c: New file.
27095         * lib/unictype/pr_extender.c: New file.
27096         * lib/unictype/pr_format_control.c: New file.
27097         * lib/unictype/pr_grapheme_base.c: New file.
27098         * lib/unictype/pr_grapheme_extend.c: New file.
27099         * lib/unictype/pr_grapheme_link.c: New file.
27100         * lib/unictype/pr_hex_digit.c: New file.
27101         * lib/unictype/pr_hyphen.c: New file.
27102         * lib/unictype/pr_id_continue.c: New file.
27103         * lib/unictype/pr_id_start.c: New file.
27104         * lib/unictype/pr_ideographic.c: New file.
27105         * lib/unictype/pr_ids_binary_operator.c: New file.
27106         * lib/unictype/pr_ids_trinary_operator.c: New file.
27107         * lib/unictype/pr_ignorable_control.c: New file.
27108         * lib/unictype/pr_iso_control.c: New file.
27109         * lib/unictype/pr_join_control.c: New file.
27110         * lib/unictype/pr_left_of_pair.c: New file.
27111         * lib/unictype/pr_line_separator.c: New file.
27112         * lib/unictype/pr_logical_order_exception.c: New file.
27113         * lib/unictype/pr_lowercase.c: New file.
27114         * lib/unictype/pr_math.c: New file.
27115         * lib/unictype/pr_non_break.c: New file.
27116         * lib/unictype/pr_not_a_character.c: New file.
27117         * lib/unictype/pr_numeric.c: New file.
27118         * lib/unictype/pr_other_alphabetic.c: New file.
27119         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27120         * lib/unictype/pr_other_grapheme_extend.c: New file.
27121         * lib/unictype/pr_other_id_continue.c: New file.
27122         * lib/unictype/pr_other_id_start.c: New file.
27123         * lib/unictype/pr_other_lowercase.c: New file.
27124         * lib/unictype/pr_other_math.c: New file.
27125         * lib/unictype/pr_other_uppercase.c: New file.
27126         * lib/unictype/pr_paired_punctuation.c: New file.
27127         * lib/unictype/pr_paragraph_separator.c: New file.
27128         * lib/unictype/pr_pattern_syntax.c: New file.
27129         * lib/unictype/pr_pattern_white_space.c: New file.
27130         * lib/unictype/pr_private_use.c: New file.
27131         * lib/unictype/pr_punctuation.c: New file.
27132         * lib/unictype/pr_quotation_mark.c: New file.
27133         * lib/unictype/pr_radical.c: New file.
27134         * lib/unictype/pr_sentence_terminal.c: New file.
27135         * lib/unictype/pr_soft_dotted.c: New file.
27136         * lib/unictype/pr_space.c: New file.
27137         * lib/unictype/pr_terminal_punctuation.c: New file.
27138         * lib/unictype/pr_test.c: New file.
27139         * lib/unictype/pr_titlecase.c: New file.
27140         * lib/unictype/pr_unassigned_code_value.c: New file.
27141         * lib/unictype/pr_unified_ideograph.c: New file.
27142         * lib/unictype/pr_uppercase.c: New file.
27143         * lib/unictype/pr_variation_selector.c: New file.
27144         * lib/unictype/pr_white_space.c: New file.
27145         * lib/unictype/pr_xid_continue.c: New file.
27146         * lib/unictype/pr_xid_start.c: New file.
27147         * lib/unictype/pr_zero_width.c: New file.
27148         * lib/unictype/scripts.c: New file.
27149         * lib/unictype/sy_c_ident.c: New file.
27150         * lib/unictype/sy_c_whitespace.c: New file.
27151         * lib/unictype/sy_java_ident.c: New file.
27152         * lib/unictype/sy_java_whitespace.c: New file.
27153
27154         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27155         Unicode 5.0.0.
27156         * lib/unictype/blocks.h: Likewise.
27157         * lib/unictype/categ_C.h: Likewise.
27158         * lib/unictype/categ_Cc.h: Likewise.
27159         * lib/unictype/categ_Cf.h: Likewise.
27160         * lib/unictype/categ_Cn.h: Likewise.
27161         * lib/unictype/categ_Co.h: Likewise.
27162         * lib/unictype/categ_Cs.h: Likewise.
27163         * lib/unictype/categ_L.h: Likewise.
27164         * lib/unictype/categ_Ll.h: Likewise.
27165         * lib/unictype/categ_Lm.h: Likewise.
27166         * lib/unictype/categ_Lo.h: Likewise.
27167         * lib/unictype/categ_Lt.h: Likewise.
27168         * lib/unictype/categ_Lu.h: Likewise.
27169         * lib/unictype/categ_M.h: Likewise.
27170         * lib/unictype/categ_Mc.h: Likewise.
27171         * lib/unictype/categ_Me.h: Likewise.
27172         * lib/unictype/categ_Mn.h: Likewise.
27173         * lib/unictype/categ_N.h: Likewise.
27174         * lib/unictype/categ_Nd.h: Likewise.
27175         * lib/unictype/categ_Nl.h: Likewise.
27176         * lib/unictype/categ_No.h: Likewise.
27177         * lib/unictype/categ_P.h: Likewise.
27178         * lib/unictype/categ_Pc.h: Likewise.
27179         * lib/unictype/categ_Pd.h: Likewise.
27180         * lib/unictype/categ_Pe.h: Likewise.
27181         * lib/unictype/categ_Pf.h: Likewise.
27182         * lib/unictype/categ_Pi.h: Likewise.
27183         * lib/unictype/categ_Po.h: Likewise.
27184         * lib/unictype/categ_Ps.h: Likewise.
27185         * lib/unictype/categ_S.h: Likewise.
27186         * lib/unictype/categ_Sc.h: Likewise.
27187         * lib/unictype/categ_Sk.h: Likewise.
27188         * lib/unictype/categ_Sm.h: Likewise.
27189         * lib/unictype/categ_So.h: Likewise.
27190         * lib/unictype/categ_Z.h: Likewise.
27191         * lib/unictype/categ_Zl.h: Likewise.
27192         * lib/unictype/categ_Zp.h: Likewise.
27193         * lib/unictype/categ_Zs.h: Likewise.
27194         * lib/unictype/categ_of.h: Likewise.
27195         * lib/unictype/combining.h: Likewise.
27196         * lib/unictype/ctype_alnum.h: Likewise.
27197         * lib/unictype/ctype_alpha.h: Likewise.
27198         * lib/unictype/ctype_blank.h: Likewise.
27199         * lib/unictype/ctype_cntrl.h: Likewise.
27200         * lib/unictype/ctype_digit.h: Likewise.
27201         * lib/unictype/ctype_graph.h: Likewise.
27202         * lib/unictype/ctype_lower.h: Likewise.
27203         * lib/unictype/ctype_print.h: Likewise.
27204         * lib/unictype/ctype_punct.h: Likewise.
27205         * lib/unictype/ctype_space.h: Likewise.
27206         * lib/unictype/ctype_upper.h: Likewise.
27207         * lib/unictype/ctype_xdigit.h: Likewise.
27208         * lib/unictype/decdigit.h: Likewise.
27209         * lib/unictype/digit.h: Likewise.
27210         * lib/unictype/mirror.h: Likewise.
27211         * lib/unictype/numeric.h: Likewise.
27212         * lib/unictype/pr_alphabetic.h: Likewise.
27213         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27214         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27215         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27216         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27217         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27218         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27219         * lib/unictype/pr_bidi_control.h: Likewise.
27220         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27221         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27222         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27223         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27224         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27225         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27226         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27227         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27228         * lib/unictype/pr_bidi_pdf.h: Likewise.
27229         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27230         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27231         * lib/unictype/pr_combining.h: Likewise.
27232         * lib/unictype/pr_composite.h: Likewise.
27233         * lib/unictype/pr_currency_symbol.h: Likewise.
27234         * lib/unictype/pr_dash.h: Likewise.
27235         * lib/unictype/pr_decimal_digit.h: Likewise.
27236         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27237         * lib/unictype/pr_deprecated.h: Likewise.
27238         * lib/unictype/pr_diacritic.h: Likewise.
27239         * lib/unictype/pr_extender.h: Likewise.
27240         * lib/unictype/pr_format_control.h: Likewise.
27241         * lib/unictype/pr_grapheme_base.h: Likewise.
27242         * lib/unictype/pr_grapheme_extend.h: Likewise.
27243         * lib/unictype/pr_grapheme_link.h: Likewise.
27244         * lib/unictype/pr_hex_digit.h: Likewise.
27245         * lib/unictype/pr_hyphen.h: Likewise.
27246         * lib/unictype/pr_id_continue.h: Likewise.
27247         * lib/unictype/pr_id_start.h: Likewise.
27248         * lib/unictype/pr_ideographic.h: Likewise.
27249         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27250         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27251         * lib/unictype/pr_ignorable_control.h: Likewise.
27252         * lib/unictype/pr_iso_control.h: Likewise.
27253         * lib/unictype/pr_join_control.h: Likewise.
27254         * lib/unictype/pr_left_of_pair.h: Likewise.
27255         * lib/unictype/pr_line_separator.h: Likewise.
27256         * lib/unictype/pr_logical_order_exception.h: Likewise.
27257         * lib/unictype/pr_lowercase.h: Likewise.
27258         * lib/unictype/pr_math.h: Likewise.
27259         * lib/unictype/pr_non_break.h: Likewise.
27260         * lib/unictype/pr_not_a_character.h: Likewise.
27261         * lib/unictype/pr_numeric.h: Likewise.
27262         * lib/unictype/pr_other_alphabetic.h: Likewise.
27263         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27264         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27265         * lib/unictype/pr_other_id_continue.h: Likewise.
27266         * lib/unictype/pr_other_id_start.h: Likewise.
27267         * lib/unictype/pr_other_lowercase.h: Likewise.
27268         * lib/unictype/pr_other_math.h: Likewise.
27269         * lib/unictype/pr_other_uppercase.h: Likewise.
27270         * lib/unictype/pr_paired_punctuation.h: Likewise.
27271         * lib/unictype/pr_paragraph_separator.h: Likewise.
27272         * lib/unictype/pr_pattern_syntax.h: Likewise.
27273         * lib/unictype/pr_pattern_white_space.h: Likewise.
27274         * lib/unictype/pr_private_use.h: Likewise.
27275         * lib/unictype/pr_punctuation.h: Likewise.
27276         * lib/unictype/pr_quotation_mark.h: Likewise.
27277         * lib/unictype/pr_radical.h: Likewise.
27278         * lib/unictype/pr_sentence_terminal.h: Likewise.
27279         * lib/unictype/pr_soft_dotted.h: Likewise.
27280         * lib/unictype/pr_space.h: Likewise.
27281         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27282         * lib/unictype/pr_titlecase.h: Likewise.
27283         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27284         * lib/unictype/pr_unified_ideograph.h: Likewise.
27285         * lib/unictype/pr_uppercase.h: Likewise.
27286         * lib/unictype/pr_variation_selector.h: Likewise.
27287         * lib/unictype/pr_white_space.h: Likewise.
27288         * lib/unictype/pr_xid_continue.h: Likewise.
27289         * lib/unictype/pr_xid_start.h: Likewise.
27290         * lib/unictype/pr_zero_width.h: Likewise.
27291         * lib/unictype/scripts.h: Likewise.
27292         * lib/unictype/scripts_byname.gperf: Likewise.
27293         * lib/unictype/sy_c_ident.h: Likewise.
27294         * lib/unictype/sy_c_whitespace.h: Likewise.
27295         * lib/unictype/sy_java_ident.h: Likewise.
27296         * lib/unictype/sy_java_whitespace.h: Likewise.
27297
27298         * lib/unictype/Makefile: New file.
27299         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
27300         glibc.
27301         * lib/unictype/3level.h: New file, copied from glibc.
27302         * lib/unictype/3levelbit.h: New file.
27303
27304 2007-11-11  Bruno Haible  <bruno@clisp.org>
27305
27306         * modules/gperf: New file.
27307         * modules/iconv_open (Depends-on): Add it.
27308         (Makefile.am): Remove the GPERF definition.
27309
27310 2007-11-11  Bruno Haible  <bruno@clisp.org>
27311
27312         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
27313         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
27314
27315 2007-11-11  Bruno Haible  <bruno@clisp.org>
27316
27317         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
27318         (usage): Remove function.
27319
27320 2007-11-11  Bruno Haible  <bruno@clisp.org>
27321
27322         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
27323         gl_FUNC_CEILF_LIBS.
27324         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
27325         gl_FUNC_CEIL_LIBS.
27326         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
27327         gl_FUNC_CEILL_LIBS.
27328         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
27329         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27330         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
27331
27332 2007-11-11  Bruno Haible  <bruno@clisp.org>
27333
27334         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
27335         roundf were declared but do not exist on functions.
27336         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
27337         roundl were declared but do not exist on functions.
27338         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
27339         HAVE_FLOORL_AND_CEILL, respectively.
27340         Needed for Sun C on Solaris 10.
27341
27342 2007-11-11  Bruno Haible  <bruno@clisp.org>
27343
27344         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
27345         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
27346         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
27347         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
27348         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
27349         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
27350         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
27351         HAVE_DECL_ROUNDF.
27352         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
27353         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
27354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
27355         of HAVE_DECL_ROUND*.
27356         * modules/math (Makefile.am): Update.
27357
27358 2007-11-10  Bruno Haible  <bruno@clisp.org>
27359
27360         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
27361         ptrdiff_t as m4/intl.m4.
27362
27363 2007-11-10  Jim Meyering  <meyering@redhat.com>
27364
27365         Avoid link failure for the argmatch test.
27366         * tests/test-argmatch.c (usage): Define function to avoid a link
27367         failure: argmatch_die requires a usage function.
27368
27369 2007-11-09  Bruno Haible  <bruno@clisp.org>
27370
27371         * doc/functions/snprintf.texi: Mention BeOS deficiency.
27372         * doc/functions/vsnprintf.texi: Likewise.
27373         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
27374         with a size argument < 2.
27375
27376 2007-11-09  Bruno Haible  <bruno@clisp.org>
27377
27378         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
27379         buffer. Fixes an inefficiency introduced on 2007-11-03.
27380
27381 2007-11-09  Bruno Haible  <bruno@clisp.org>
27382
27383         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
27384         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
27385
27386 2007-11-08  Jim Meyering  <meyering@redhat.com>
27387
27388         Change cache variable name prefix "jm_" to "gl_" everywhere.
27389         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
27390         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
27391         * m4/uptime.m4: s/gl_/jm_/
27392
27393 2007-11-07  Bruno Haible  <bruno@clisp.org>
27394
27395         Update to GNU gettext 0.17.
27396         * m4/intl.m4: Update to GNU gettext 0.17.
27397         * m4/po.m4: Likewise.
27398         * modules/gettext (Files): Remove m4/ulonglong.m4.
27399         (configure.ac): Require gettext infrastructure from version 0.17.
27400
27401 2007-11-06  Bruno Haible  <bruno@clisp.org>
27402
27403         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
27404         symbolic values are not defined in a public header.
27405         * lib/freadable.c (freadable) [QNX]: Likewise.
27406         * lib/freadahead.c (freadahead) [QNX]: Likewise.
27407         * lib/freading.c (freading) [QNX]: Likewise.
27408         * lib/fseterr.c (fseterr) [QNX]: Likewise.
27409         * lib/fwritable.c (fwritable) [QNX]: Likewise.
27410         * lib/fwriting.c (fwriting) [QNX]: Likewise.
27411         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
27412         Reported by Alain Magloire.
27413
27414         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
27415
27416 2007-11-05  Bruno Haible  <bruno@clisp.org>
27417
27418         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
27419         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
27420         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
27421         Reported by Eric Blake.
27422
27423 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27424             Bruno Haible  <bruno@clisp.org>
27425
27426         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
27427         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
27428         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
27429         (malloc): Undefine also before including <stdlib.h>.
27430         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
27431         Needed on OSF/1 4.0.
27432
27433 2007-11-05  Jim Meyering  <meyering@redhat.com>
27434
27435         git-version-gen: sync from coreutils.
27436         * build-aux/git-version-gen: Add comments.
27437         Change the first '-' to '.' in the snapshot version string,
27438         e.g., 6.9-377-08144 -> 6.9.377-08144
27439         Remove first parameter.
27440         Don't declare a version "-dirty" merely because a time
27441         stamp has changed.
27442
27443 2007-11-04  Bruno Haible  <bruno@clisp.org>
27444
27445         * lib/lock.h: Protect all macro definitions containing an 'if'
27446         statement through a "do { ... } while (0)".
27447         * lib/tls.h: Likewise.
27448
27449 2007-11-04  Bruno Haible  <bruno@clisp.org>
27450
27451         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
27452
27453 2007-11-04  Bruno Haible  <bruno@clisp.org>
27454
27455         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
27456         * modules/fprintf-posix (Depends-on): Add nocrash.
27457         * modules/snprintf-posix (Depends-on): Likewise.
27458         * modules/sprintf-posix (Depends-on): Likewise.
27459         * modules/vasnprintf-posix (Depends-on): Likewise.
27460         * modules/vasprintf-posix (Depends-on): Likewise.
27461         * modules/vfprintf-posix (Depends-on): Likewise.
27462         * modules/vsnprintf-posix (Depends-on): Likewise.
27463         * modules/vsprintf-posix (Depends-on): Likewise.
27464         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27465         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27466         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27467         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27468         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27469         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27470         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27471
27472 2007-11-04  Bruno Haible  <bruno@clisp.org>
27473
27474         * modules/nocrash: New file.
27475         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
27476         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
27477
27478 2007-11-04  Bruno Haible  <bruno@clisp.org>
27479
27480         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
27481         precision handling.
27482         * tests/test-vasprintf-posix.c (test_function): Likewise.
27483         * tests/test-snprintf-posix.h (test_function): Likewise.
27484         * tests/test-sprintf-posix.h (test_function): Likewise.
27485
27486         Fix *printf behaviour for large precisions on mingw and BeOS.
27487         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
27488         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
27489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
27490         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27492         gl_PRINTF_PRECISION and test its result. Invoke
27493         gl_PREREQ_VASNPRINTF_PRECISION.
27494         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27495         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27496         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27497         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27498         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27499         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27500         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27501         * doc/functions/fprintf.texi: Update.
27502         * doc/functions/printf.texi: Update.
27503         * doc/functions/snprintf.texi: Update.
27504         * doc/functions/sprintf.texi: Update.
27505         * doc/functions/vfprintf.texi: Update.
27506         * doc/functions/vprintf.texi: Update.
27507         * doc/functions/vsnprintf.texi: Update.
27508         * doc/functions/vsprintf.texi: Update.
27509
27510 2007-11-04  Bruno Haible  <bruno@clisp.org>
27511
27512         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
27513
27514 2007-11-04  Bruno Haible  <bruno@clisp.org>
27515
27516         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
27517         Reported by Sylvain Beucler <beuc@gnu.org>.
27518
27519 2007-11-03  Bruno Haible  <bruno@clisp.org>
27520
27521         * tests/test-fprintf-posix2.sh: New file.
27522         * tests/test-fprintf-posix2.c: New file.
27523         * modules/fprintf-posix-tests (Files): Add them.
27524         (TESTS): Add test-fprintf-posix2.sh.
27525         (configure.ac): Check for getrlimit and setrlimit.
27526         (check_PROGRAMS): Add test-fprintf-posix2.
27527
27528         * tests/test-printf-posix2.sh: New file.
27529         * tests/test-printf-posix2.c: New file.
27530         * modules/printf-posix-tests (Files): Add them.
27531         (TESTS): Add test-printf-posix2.sh.
27532         (configure.ac): Check for getrlimit and setrlimit.
27533         (check_PROGRAMS): Add test-printf-posix2.
27534
27535         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
27536         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
27537         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
27538         (decode_double): New function, copied from decode_long_double.
27539         (scale10_round_decimal_decoded): New function, extracted from
27540         scale10_round_decimal_long_double.
27541         (scale10_round_decimal_long_double): Use it.
27542         (scale10_round_decimal_double): New function.
27543         (floorlog10): New function.
27544         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
27545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
27546         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27547         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27548         gl_PRINTF_ENOMEM and test its result. Invoke
27549         gl_PREREQ_VASNPRINTF_ENOMEM.
27550         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27551         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27552         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27553         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27554         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27555         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27556         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27557         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
27558         * modules/snprintf-posix (Depends-on): Likewise.
27559         * modules/sprintf-posix (Depends-on): Likewise.
27560         * modules/vasnprintf-posix (Depends-on): Likewise.
27561         * modules/vasprintf-posix (Depends-on): Likewise.
27562         * modules/vfprintf-posix (Depends-on): Likewise.
27563         * modules/vsnprintf-posix (Depends-on): Likewise.
27564         * modules/vsprintf-posix (Depends-on): Likewise.
27565         * doc/functions/fprintf.texi: Update.
27566         * doc/functions/printf.texi: Update.
27567         * doc/functions/snprintf.texi: Update.
27568         * doc/functions/sprintf.texi: Update.
27569         * doc/functions/vfprintf.texi: Update.
27570         * doc/functions/vprintf.texi: Update.
27571         * doc/functions/vsnprintf.texi: Update.
27572         * doc/functions/vsprintf.texi: Update.
27573
27574 2007-11-03  Bruno Haible  <bruno@clisp.org>
27575
27576         * modules/frexp-nolibm-tests: New file.
27577
27578         * modules/frexp-nolibm: New file.
27579         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
27580
27581 2007-11-03  Bruno Haible  <bruno@clisp.org>
27582
27583         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
27584         value is C99 compliant.
27585         Needed for OSF/1 5.1.
27586
27587 2007-11-03  Bruno Haible  <bruno@clisp.org>
27588
27589         Fix out-of-memory handling of vasnprintf.
27590         * lib/printf-parse.c: Include <errno.h>.
27591         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
27592         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
27593         is already set.
27594
27595 2007-11-02  Eric Blake  <ebb9@byu.net>
27596
27597         Fix tests on cygwin.
27598         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
27599
27600 2007-11-01  Bruno Haible  <bruno@clisp.org>
27601
27602         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
27603         warning.
27604         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
27605         needed for POSIX compatibility.
27606
27607 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27608
27609         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
27610         for compatibility with GNU.
27611
27612 2007-11-01  Bruno Haible  <bruno@clisp.org>
27613
27614         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
27615         (putenv): Renamed from rpl_putenv. Change argument type from
27616         'const char *' to 'char *'.
27617         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
27618         of defining putenv in config.h, just set REPLACE_PUTENV.
27619         * modules/putenv (Depends-on): Add stdlib.
27620         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27621         (Include): Use <stdlib.h>.
27622         * lib/stdlib.in.h (putenv): New declaration.
27623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
27624         REPLACE_PUTENV.
27625         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
27626         REPLACE_PUTENV.
27627         Needed for MacOS X 10.5.0.
27628         Reported by Peter O'Gorman <peter@pogma.com>.
27629
27630 2007-11-01  Jim Meyering  <meyering@redhat.com>
27631
27632         Treat an empty date string exactly like "0".
27633         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
27634         if the remaining date string (to be parsed) is empty, use "0".
27635         Reported by Mischa Molhoek and discussed in this thread:
27636         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
27637
27638 2007-10-31  Bruno Haible  <bruno@clisp.org>
27639
27640         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
27641         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
27642         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
27643         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
27644         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
27645         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
27646
27647 2007-10-31  Bruno Haible  <bruno@clisp.org>
27648
27649         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
27650         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
27651         (AC_TYPE_LONG_LONG_INT): Use it.
27652         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
27653         it as well.
27654         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
27655         to m4/longlong.m4.
27656         * modules/stdint (Files): Remove m4/ulonglong.m4.
27657         * modules/strtoull (Files): Use m4/longlong.m4 instead of
27658         m4/ulonglong.m4.
27659         * modules/strtoumax (Files): Likewise.
27660
27661 2007-10-30  Bruno Haible  <bruno@clisp.org>
27662
27663         * modules/xvasprintf-posix: New file.
27664         Suggested by Eric Blake.
27665
27666 2007-10-30  Bruno Haible  <bruno@clisp.org>
27667
27668         * modules/xprintf-posix-tests: New file.
27669         * tests/test-xprintf-posix.sh: New file.
27670         * tests/test-xprintf-posix.c: New file.
27671         * tests/test-xfprintf-posix.c: New file.
27672
27673         * modules/xprintf-posix: New file.
27674
27675 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27676
27677         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
27678         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
27679         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
27680
27681 2007-10-29  Bruno Haible  <bruno@clisp.org>
27682
27683         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
27684         contain the special marker '_cv_'.
27685         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27686         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27687         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27688         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27689         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27690         Reported by Ralf Wildenhues.
27691
27692 2007-10-29  Bruno Haible  <bruno@clisp.org>
27693
27694         * gnulib-tool (func_import): When --lgpl is not specified, set
27695         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
27696         GPLv3.
27697         Reported by Simon Josefsson.
27698
27699 2007-10-28  Bruno Haible  <bruno@clisp.org>
27700
27701         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
27702         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
27703         HAVE_DECL_ISFINITE.
27704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27705         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
27706         HAVE_DECL_ISFINITE.
27707
27708 2007-10-28  Bruno Haible  <bruno@clisp.org>
27709
27710         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
27711         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
27712
27713 2007-10-28  Bruno Haible  <bruno@clisp.org>
27714
27715         Fix link errors with Sun C 5.0 on Solaris 10.
27716         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
27717         function is declared but not present in the compiler's libm.
27718         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27719         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27720         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
27721         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
27722         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
27723         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
27724         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
27725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27726         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
27727         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
27728         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
27729         HAVE_DECL_FLOORL.
27730
27731 2007-10-28  Bruno Haible  <bruno@clisp.org>
27732
27733         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
27734         gl_FUNC_FLOORL. Cache the result.
27735         (gl_FUNC_FLOORL): Use it.
27736         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
27737         gl_FUNC_CEILL. Cache the result.
27738         (gl_FUNC_CEILL): Use it.
27739
27740         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
27741         gl_FUNC_FLOOR. Cache the result.
27742         (gl_FUNC_FLOOR): Use it.
27743         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
27744         gl_FUNC_CEIL. Cache the result.
27745         (gl_FUNC_CEIL): Use it.
27746
27747         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
27748         gl_FUNC_FLOORF. Cache the result.
27749         (gl_FUNC_FLOORF): Use it.
27750         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
27751         gl_FUNC_CEILF. Cache the result.
27752         (gl_FUNC_CEILF): Use it.
27753
27754 2007-10-28  Bruno Haible  <bruno@clisp.org>
27755
27756         * gnulib-tool: Allow specifying the LGPL version number through
27757         --lgpl=2 or --lgpl=3.
27758         (func_usage): Document --lgpl with argument.
27759         Handle --lgpl=... arguments.
27760         (func_import): Recognize also gl_LGPL calls with an argument. When
27761         --lgpl=2 is used and the module's license is just LGPL, report an
27762         error. Set sed_transform_lib_file according to the lgpl variable. In
27763         the generated files, use --lgpl or gl_LGPL invocations with argument,
27764         if necessary.
27765         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
27766         an LGPv2+ license.
27767         * doc/gnulib-tool.texi (Modified imports): Update explanation of
27768         gl_LGPL macro.
27769
27770 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27771             Bruno Haible  <bruno@clisp.org>
27772
27773         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
27774         (u16_uctomb_aux): Likewise.
27775         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
27776         !HAVE_INLINE.
27777         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
27778
27779 2007-10-28  Bruno Haible  <bruno@clisp.org>
27780
27781         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
27782         Invoke AM_GETTEXT_OPTION if it exists.
27783         * modules/vasprintf: Likewise.
27784         * modules/verror: Likewise.
27785         * modules/xprintf: Likewise.
27786         * modules/xvasprintf: Likewise.
27787
27788 2007-10-27  Ben Pfaff  <blp@gnu.org>
27789
27790         * lib/math.in.h: Define isfinite macro and prototypes for
27791         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
27792         implementations.
27793         * m4/math_h.m4: New substitutions for isfinite module.
27794         * lib/isfinite.c: New file.
27795         * m4/isfinite.m4: New file.
27796         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
27797         * modules/isfinite: New file.
27798         * modules/isfinite-tests: New file.
27799         * tests/tests-isfinite.c: New file.
27800         * doc/functions/isfinite.texi: Mention isfinite module.
27801         * MODULES.html.sh: Mention new module.
27802
27803 2007-10-27  Ben Pfaff  <blp@gnu.org>
27804
27805         Ralf Wildenhues reported that Tru64 4.0D declares the round
27806         functions but does not have definitions.
27807         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
27808         cannot be found in any library, set the output variable to
27809         "missing" instead of "".
27810         * m4/round.m4: Also use our substitute if we cannot find round in
27811         any library, even if it is declared.
27812         * m4/roundf.m4: Likewise for roundf.
27813         * m4/roundl.m4: Likewise for roundl.
27814         * lib/math.in.h: Undefine roundf, round, roundl before defining
27815         their replacements, to allow for hypothetical systems where these
27816         may be defined as macros but not available in libraries.
27817
27818 2007-10-27  Bruno Haible  <bruno@clisp.org>
27819
27820         * doc/gnulib.texi: Invoke @firstparagraphindent.
27821         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
27822         changes in gnulib.
27823         (Source changes): New section.
27824
27825 2007-10-26  Bruno Haible  <bruno@clisp.org>
27826
27827         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
27828         borrowed from autoconf.
27829
27830 2007-10-26  Bruno Haible  <bruno@clisp.org>
27831
27832         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
27833         strerror returned the empty string. Needed on HP-UX 11.00.
27834
27835 2007-10-24  Micah Cowan  <micah@cowan.name>
27836
27837         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
27838         * build-aux/bootstrap: Remove support for now-unnecessary option,
27839         --cvs-user, and envvars CVS_USER, CVS_RSH.
27840
27841 2007-10-24  Jim Meyering  <meyering@redhat.com>
27842
27843         Avoid diagnostics from sha1sum when there is no cached checksum.
27844         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
27845         if the po.s1 file hasn't been created yet.
27846
27847         * build-aux/bootstrap: Sync from coreutils:
27848         2007-10-24  Jim Meyering  <meyering@redhat.com>
27849         Get gnulib from the git repository, not from an obsolete cvs one.
27850         * build-aux/bootstrap: Suggestion from Micah Cowan.
27851         2007-10-04  Jim Meyering  <jim@meyering.net>
27852         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
27853         (update_po_files): Work also when there are no .po files in po/.
27854
27855 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27856
27857         * README: Append ".git" to git and cg examples.
27858         Problem reported by Benoit Sigoure.
27859
27860 2007-10-23  Micah Cowan  <micah@cowan.name>
27861
27862         * users.txt: Add wget.
27863
27864 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27865
27866         Fix linking of some unistdio tests on FreeBSD.
27867         * modules/unistdio/u16-vsnprintf-tests
27868         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
27869         * modules/unistdio/u16-vsprintf-tests
27870         (test_u16_vsnprintf1_LDADD): Likewise.
27871         * modules/unistdio/u32-vsnprintf-tests
27872         (test_u32_vsnprintf1_LDADD): Likewise.
27873         * modules/unistdio/u32-vsprintf-tests
27874         (test_u32_vsprintf1_LDADD): Likewise.
27875         * modules/unistdio/u8-vsnprintf-tests
27876         (test_u8_vsnprintf1_LDADD): Likewise.
27877         * modules/unistdio/u8-vsprintf-tests
27878         (test_u8_vsprintf1_LDADD): Likewise.
27879         * modules/unistdio/ulc-vsnprintf-tests
27880         (test_ulc_vsnprintf1_LDADD): Likewise.
27881         * modules/unistdio/ulc-vsprintf-tests
27882         (test_ulc_vsprintf1_LDADD): Likewise.
27883
27884         Fix linking of some uniconv tests on FreeBSD.
27885         * modules/uniconv/u16-conv-from-enc-tests
27886         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
27887         * modules/uniconv/u16-conv-to-enc-tests
27888         (test_u16_conv_to_enc_LDADD): Likewise.
27889         * modules/uniconv/u16-strconv-from-enc-tests
27890         (test_u16_strconv_from_enc_LDADD): Likewise.
27891         * modules/uniconv/u16-strconv-to-enc-tests
27892         (test_u16_strconv_to_enc_LDADD): Likewise.
27893         * modules/uniconv/u32-conv-from-enc-tests
27894         (test_u32_conv_from_enc_LDADD): Likewise.
27895         * modules/uniconv/u32-conv-to-enc-tests
27896         (test_u32_conv_to_enc_LDADD): Likewise.
27897         * modules/uniconv/u32-strconv-from-enc-tests
27898         (test_u32_strconv_from_enc_LDADD): Likewise.
27899         * modules/uniconv/u32-strconv-to-enc-tests
27900         (test_u32_strconv_to_enc_LDADD): Likewise.
27901         * modules/uniconv/u8-conv-from-enc-tests
27902         (test_u8_conv_from_enc_LDADD): Likewise.
27903         * modules/uniconv/u8-conv-to-enc-tests
27904         (test_u8_conv_to_enc_LDADD): Likewise.
27905         * modules/uniconv/u8-strconv-from-enc-tests
27906         (test_u8_strconv_from_enc_LDADD): Likewise.
27907         * modules/uniconv/u8-strconv-to-enc-tests
27908         (test_u8_strconv_to_enc_LDADD): Likewise.
27909
27910 2007-10-22  Bruno Haible  <bruno@clisp.org>
27911
27912         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
27913         size.
27914
27915 2007-10-22  Eric Blake  <ebb9@byu.net>
27916
27917         Tweak x*printf documentation.
27918         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
27919         variable name and comments.
27920         Suggested by Bruno Haible.
27921
27922 2007-10-22  Bruno Haible  <bruno@clisp.org>
27923
27924         * lib/acl.c (copy_acl): Fix file name in comment.
27925
27926 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27927
27928         Fix Tru64 problem with stdbool.h.
27929         * lib/stdbool.in.h (false, true):
27930         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
27931         Don't declare as an enum in this situation; it runs afoul of Tru64.
27932         Problem reported by Steven M. Schweda in
27933         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
27934
27935 2007-10-22  Eric Blake  <ebb9@byu.net>
27936
27937         Also wrap vf?printf.
27938         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
27939         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
27940         (xvprintf, xvfprintf): New functions.
27941
27942 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27943
27944         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
27945         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
27946
27947         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
27948         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
27949
27950 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27951
27952         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
27953         by Bruno Haible.
27954
27955 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27956
27957         * lib/getloadavg.c
27958         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
27959         Undef `sys' after including sys/table.h, for Tru64 4.0D.
27960
27961         * tests/test-i-ring.c: Work for C89.
27962
27963 2007-10-22  Bruno Haible  <bruno@clisp.org>
27964
27965         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
27966         -1u, in preprocessor expression, so that we don't test for the bug
27967         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
27968         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
27969
27970 2007-10-22  Eric Blake  <ebb9@byu.net>
27971
27972         * tests/test-yesno.sh: Silence stderr during test.
27973
27974 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27975
27976         * modules/crypto/gc-camellia: New file.
27977
27978         * m4/gc-camellia.m4: New file.
27979
27980         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
27981
27982         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
27983
27984 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27985
27986         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
27987         --help to stdout.  Reported by sms@antinode.org (Steven
27988         M. Schweda).
27989
27990 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27991
27992         * users.txt: Fix link to libksba.
27993
27994 2007-10-21  Ben Pfaff  <blp@gnu.org>
27995
27996         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
27997         round.c roundf implementation that depends on floorf and ceilf to
27998         be tested unconditionally.
27999
28000 2007-10-21  Ben Pfaff  <blp@gnu.org>
28001
28002         * m4/check-libm-func.m4: Removed.
28003         * m4/check-math-lib.m4: New file.
28004         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28005         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28006         definition and lack of AC_LIBOBJ([roundf]).
28007         * m4/roundl.m4: Ditto, and similarly for roundl.
28008         * modules/round: Reference new m4 file.
28009         * modules/roundf: Ditto.
28010         * modules/roundl: Ditto.
28011         * tests/test-round2.c (main): Use ROUND instead of round.
28012         Bug report from Bruno Haible.
28013
28014 2007-10-21  Bruno Haible  <bruno@clisp.org>
28015
28016         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28017         context.
28018
28019 2007-10-21  Bruno Haible  <bruno@clisp.org>
28020
28021         * tests/test-wcwidth.c (main): Allow negative result for some control
28022         characters.
28023
28024         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28025         Needed on OSF/1 5.1.
28026
28027 2007-10-21  Bruno Haible  <bruno@clisp.org>
28028
28029         * tests/test-floorf1.c: Include isnanf.h.
28030         (main): Use isnanf() instead of isnan().
28031         * tests/test-ceilf1.c: Include isnanf.h.
28032         (main): Use isnanf() instead of isnan().
28033         * tests/test-truncf1.c: Include isnanf.h.
28034         (main): Use isnanf() instead of isnan().
28035         * tests/test-roundf1.c: Include isnanf.h.
28036         (main): Use isnanf() instead of isnan().
28037
28038 2007-10-21  Eric Blake  <ebb9@byu.net>
28039
28040         * users.txt: Update URL for m4.
28041
28042 2007-10-21  Bruno Haible  <bruno@clisp.org>
28043
28044         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28045
28046 2007-10-21  Bruno Haible  <bruno@clisp.org>
28047
28048         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28049         Git's management files if the CVS files are not present.
28050
28051 2007-10-20  Bruno Haible  <bruno@clisp.org>
28052
28053         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28054         gcc-3.4.x.
28055
28056 2007-10-20  Ben Pfaff  <blp@gnu.org>
28057
28058         * lib/math.in.h: Declare round, roundf, roundl if we are providing
28059         implementations.
28060         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28061         * lib/round.c: New file.
28062         * lib/roundf.c: New file.
28063         * lib/roundl.c: New file.
28064         * m4/round.m4: New file.
28065         * m4/roundf.m4: New file.
28066         * m4/roundl.m4: New file.
28067         * m4/check-libm-func-m4: New file.
28068         * modules/math: Replace round, roundf, roundl related @VARS@ in
28069         math.in.h.
28070         * modules/round: New file.
28071         * modules/round-tests: New file.
28072         * modules/roundf: New file.
28073         * modules/roundf-tests: New file.
28074         * modules/roundl: New file.
28075         * modules/roundl-tests: New file.
28076         * tests/test-round1.c: New file.
28077         * tests/test-round2.c: New file.
28078         * tests/test-roundf1.c: New file.
28079         * tests/test-roundf2.c: New file.
28080         * tests/test-roundl.c: New file.
28081         * doc/functions/round.texi: Mention round module.
28082         * doc/functions/roundf.texi: Mention roundf module.
28083         * doc/functions/roundl.texi: Mention roundl module.
28084         * MODULES.html.sh: Mention new modules.
28085         Thanks to Bruno Haible for suggestions.
28086
28087 2007-10-20  Jim Meyering  <meyering@redhat.com>
28088
28089         * lib/xprintf.c: Include <config.h> unconditionally.
28090
28091         Change xprintf's license to GPL.
28092         * modules/xprintf (License): s/LGPL/GPL/, since this module
28093         depends on modules (exit and exitfail) which are GPL.
28094         Suggestion from Bruno Haible.
28095
28096         xprintf fixes.
28097         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28098         Use a clearer diagnostic.
28099         Patch from Bruno Haible.
28100
28101 2007-10-20  Bruno Haible  <bruno@clisp.org>
28102
28103         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28104         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28105         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28106
28107 2007-10-20  Bruno Haible  <bruno@clisp.org>
28108
28109         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28110         precision in the comparison result > x - 1 or similar.
28111         * tests/test-ceilf2.c (correct_result_p): Likewise.
28112         * tests/test-truncf2.c (correct_result_p): Likewise.
28113         * tests/test-trunc2.c (correct_result_p): Likewise.
28114         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28115
28116 2007-10-20  Bruno Haible  <bruno@clisp.org>
28117
28118         * modules/ceil: New file.
28119         * m4/ceil.m4: New file.
28120         * doc/functions/ceil.texi: Mention the 'ceil' module.
28121
28122 2007-10-20  Bruno Haible  <bruno@clisp.org>
28123
28124         * modules/floor: New file.
28125         * m4/floor.m4: New file.
28126         * doc/functions/floor.texi: Mention the 'floor' module.
28127
28128 2007-10-20  Bruno Haible  <bruno@clisp.org>
28129
28130         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28131         of %a.
28132         * modules/floorf-tests (Depends-on): Likewise.
28133         * modules/truncf-tests (Depends-on): Likewise.
28134         * modules/trunc-tests (Depends-on): Likewise.
28135         Reported by Ben Pfaff.
28136
28137 2007-10-19  Jim Meyering  <meyering@redhat.com>
28138
28139         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28140         Don't bother testing specific errno values.  Just test ferror.
28141
28142         New module: xprintf
28143         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28144
28145 2007-10-19  Bruno Haible  <bruno@clisp.org>
28146
28147         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28148         syntax.
28149         * modules/javaexec (Makefile.am): Likewise.
28150         * modules/relocatable-prog (Makefile.am): Likewise.
28151         Suggested by Jim Meyering.
28152
28153 2007-10-18  Bruno Haible  <bruno@clisp.org>
28154
28155         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28156         Reported by Jim Meyering.
28157
28158 2007-10-18  Eric Blake  <ebb9@byu.net>
28159
28160         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28161
28162 2007-10-18  Bruno Haible  <bruno@clisp.org>
28163
28164         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28165         the format string into writable memory. Needed in Fortify conditions.
28166
28167 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
28168             Bruno Haible  <bruno@clisp.org>
28169
28170         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28171         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28172         * modules/trim (Depends-on): Add mbchar.
28173         (configure.ac): Add gl_FUNC_MBRTOWC.
28174         (Makefile.am): Augment lib_SOURCES.
28175
28176 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28177
28178         Modify glob.c to use fstatat and dirfd, to simplify it.
28179         Suggested by Eric Blake.
28180         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28181         Don't include <stdbool.h>; not used.
28182         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28183         (link_exists_p): Simplify implementation, since we can now assume
28184         dirfd and fstatat.
28185         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
28186
28187 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28188
28189         * gnulib-tool (func_get_dependencies): Fix sed script to
28190         match only tests.
28191
28192 2007-10-17  Bruno Haible  <bruno@clisp.org>
28193
28194         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28195         allow locale names without encoding suffix.
28196         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28197         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28198
28199 2007-10-16  Bruno Haible  <bruno@clisp.org>
28200
28201         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28202         * lib/getgroups.c (getgroups): Likewise.
28203         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28204
28205 2007-10-16  Bruno Haible  <bruno@clisp.org>
28206
28207         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28208         * modules/malloc-posix (License): Likewise.
28209         * modules/realloc-posix (License): Likewise.
28210         * modules/calloc-posix (License): Likewise.
28211         * modules/intprops (License): Change from GPL to LGPL, with
28212         Paul Eggert's approval.
28213
28214 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28215
28216         Merge glibc changes into lib/glob.c.
28217
28218         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28219         2007-10-15 04:59:03 UTC.  Here are the changes:
28220
28221         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
28222
28223         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28224
28225         * lib/glob.c: Add some branch prediction throughout.
28226
28227         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
28228
28229         [BZ #5103]
28230         * lib/glob.c (glob): Recognize patterns starting \/.
28231
28232         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
28233
28234         [BZ #3996]
28235         * lib/glob.c (attribute_hidden): Define if not defined.
28236         (glob): Unescape dirname, filename or username when needed and not
28237         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
28238         is NULL.  Handle unescaped [ in pattern without closing ].
28239         Don't pass GLOB_CHECK down to recursive glob for directories.
28240         (__glob_pattern_type): New function.
28241         (__glob_pattern_p): Implement using __glob_pattern_type.
28242         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28243         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28244         Remove unreachable code.
28245
28246         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
28247
28248         * lib/glob.c (glob_in_dir): Add some comments and asserts to
28249         explain why there are no leaks.
28250
28251         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
28252
28253         [BZ #3253]
28254         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28255         time, rather allocate increasingly bigger arrays of pointers, if
28256         possible with alloca, if too large with malloc.
28257
28258 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28259
28260         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28261         Problem reported by H.Merijn Brand in
28262         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28263         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28264         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28265
28266 2007-10-15  Bruno Haible  <bruno@clisp.org>
28267
28268         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28269         with explicit rpl_ prefix.
28270         * lib/fopen.c (fopen): Likewise.
28271         * lib/freopen.c (freopen): Likewise.
28272         * lib/iconv.c (iconv): Likewise.
28273         * lib/iconv_close.c (iconv_close): Likewise.
28274
28275 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28276
28277         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28278
28279 2007-10-15  Bruno Haible  <bruno@clisp.org>
28280
28281         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28282         <stddef.h> instead of <stdlib.h> since we only need NULL.
28283         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28284
28285 2007-10-15  Bruno Haible  <bruno@clisp.org>
28286
28287         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
28288         Replace paragraph talking about LIBOBJS.
28289         Reported by Colin Watson <cjwatson@debian.org>.
28290
28291 2007-10-15  Bruno Haible  <bruno@clisp.org>
28292
28293         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
28294         <stdlib.h> before using NULL.
28295
28296 2007-10-15  Simon Josefsson  <simon@josefsson.org>
28297
28298         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
28299         Reported by Albert Chin <china@thewrittenword.com>.
28300
28301 2007-10-14  Bruno Haible  <bruno@clisp.org>
28302
28303         * modules/iconv_open-utf-tests: New file.
28304         * tests/test-iconv-utf.c: New file.
28305
28306         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
28307         * modules/iconv_open-utf: New file.
28308         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
28309         (iconv, iconv_close): New declarations.
28310         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
28311         be defined.
28312         (iconv_open): Add special handling of conversion between UTF-8 and
28313         UTF-{16,32}{BE,LE}.
28314         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
28315         * lib/iconv_close.c: New file.
28316         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
28317         gl_FUNC_ICONV_OPEN.
28318         (gl_FUNC_ICONV_OPEN): Use it.
28319         (gl_FUNC_ICONV_OPEN_UTF): New macro.
28320         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
28321         and REPLACE_ICONV_UTF.
28322         * modules/iconv_open (Depends-on): Add c-strcase.
28323         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
28324         ICONV_CONST.
28325         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
28326
28327 2007-10-13  Albert Chin  <china@thewrittenword.com>
28328             Bruno Haible  <bruno@clisp.org>
28329
28330         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
28331         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
28332
28333 2007-10-13  Bruno Haible  <bruno@clisp.org>
28334
28335         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
28336         defined, use the ISO C99 inline semantics.
28337         * lib/argp.h (ARGP_EI): Likewise.
28338
28339 2007-10-13  Bruno Haible  <bruno@clisp.org>
28340
28341         Handle 'inline' change in gcc 4.3.0.
28342         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
28343         argp_fmtstream_write, argp_fmtstream_set_lmargin,
28344         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
28345         argp_fmtstream_point): Disable 'extern' declaration if the function
28346         definition is going to be provided inline.
28347         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
28348         semantics, not the ISO C99 inline semantics.
28349         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
28350         'extern' declaration if the function definition is going to be provided
28351         inline.
28352         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
28353         the GNU C inline semantics, not the ISO C99 inline semantics. With
28354         GCC 4.2, avoid a warning.
28355
28356 2007-10-13  Bruno Haible  <bruno@clisp.org>
28357
28358         * lib/freading.h (freading): Enable the use of __freading for
28359         glibc >= 2.7.
28360         * lib/freading.c (freading): Likewise.
28361
28362 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28363
28364         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
28365         "warning: C99 inline functions are not supported; using GNU89".
28366
28367 2007-10-12  Bruno Haible  <bruno@clisp.org>
28368
28369         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
28370         of 2.
28371         * tests/test-ceilf2.c: New file.
28372         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
28373
28374         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
28375         * modules/ceilf-tests: Update.
28376
28377 2007-10-12  Bruno Haible  <bruno@clisp.org>
28378
28379         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
28380         of 2.
28381         * tests/test-floorf2.c: New file.
28382         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
28383
28384         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
28385         * modules/floorf-tests: Update.
28386
28387 2007-10-12  Bruno Haible  <bruno@clisp.org>
28388
28389         * tests/test-trunc2.c: New file.
28390         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
28391
28392         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
28393         * modules/trunc-tests: Update.
28394
28395 2007-10-12  Bruno Haible  <bruno@clisp.org>
28396
28397         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
28398         of 2.
28399         * tests/test-truncf2.c: New file.
28400         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
28401
28402         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
28403         * modules/truncf-tests: Update.
28404
28405 2007-10-11  Eric Blake  <ebb9@byu.net>
28406
28407         Don't claim strerror is broken on Interix.
28408         * doc/functions/strerror.texi (strerror): Known broken systems are
28409         now Solaris 8, and not Interix.
28410         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
28411         Interix on cross-compile.
28412         Reported by Martin Koeppe in
28413         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
28414
28415 2007-10-11  Bruno Haible  <bruno@clisp.org>
28416
28417         * modules/i-ring-tests: New file.
28418         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
28419         instead of assert.
28420
28421 2007-10-11  Bruno Haible  <bruno@clisp.org>
28422
28423         * modules/filenamecat-tests: New file.
28424         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
28425         * lib/filenamecat.c: Remove test code.
28426
28427 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28428
28429         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
28430
28431         * lib/strerror.c: Include <string.h> always, to test interface,
28432         and to remove the need for the dummy.
28433         Include intprops.h to compute width instead of doing it ourselves
28434         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
28435         (strerror): Define it to return NULL if there's no system strerror.
28436         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
28437         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
28438         ancient pre-strerror Unix systems well any more.  Saying "unknown
28439         system error" is enough.
28440         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
28441         simpler strerror.c implementation.
28442         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
28443         Simplify the tests to reflect the simpler strerror implementation.
28444         * modules/strerror (Depends-on): Add intprops.
28445
28446 2007-10-09  Eric Blake  <ebb9@byu.net>
28447
28448         Silence test-fpending.
28449         * modules/fpending-tests (Files): Add wrapper script.
28450         * tests/test-fpending.sh: New file.
28451
28452 2007-10-09  Bruno Haible  <bruno@clisp.org>
28453
28454         * MODULES.html.sh (func_module): Don't create a hyperlink for
28455         function names like 'printf_frexp'.
28456         (Misc): Add crc, memxor.
28457         (Characteristics of floating types): New section.
28458         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
28459         isnanf-nolibm, signbit, trunc, truncf, truncl.
28460         (Enhancements for ISO C 99 functions): New subsection Input/output.
28461         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
28462         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
28463         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
28464         (Compatibility checks for POSIX:2001 functions): Add clock-time.
28465         (Enhancements for POSIX:2001 functions): Add chdir-long.
28466         (File system functions): Add areadlink, chdir-safer, read-file.
28467         Remove cycle-check.
28468         (File system as inode set): New section.
28469         (Date and time): Add gethrxtime.
28470         (Multithreading): Add openmp.
28471         (Internationalization functions): Add localename.
28472         (Unicode string functions): Add unistr/u*-mbsnlen.
28473         (Support for maintaining and releasing projects): Add git-version-gen.
28474         (Lone files): Remove directories.
28475
28476 2007-10-08  Ben Pfaff  <blp@gnu.org>
28477
28478         * lib/xmalloca.h: Fix typo in comment.
28479
28480 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28481
28482         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
28483         when avoiding problems with integer overflow.  Use a portable test
28484         instead.
28485
28486 2007-10-08  Simon Josefsson  <simon@josefsson.org>
28487
28488         * modules/dummy (License): Change to LGPLv2+.
28489         * modules/float (License): Likewise
28490         * modules/realloc (License): Likewise
28491         * modules/stdlib (License): Likewise
28492
28493 2007-10-07  Bruno Haible  <bruno@clisp.org>
28494
28495         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
28496         * floor.c (TWO_MANT_DIG): Likewise.
28497         * ceil.c (TWO_MANT_DIG): Likewise.
28498         Reported by Ben Pfaff.
28499
28500 2007-10-07  Bruno Haible  <bruno@clisp.org>
28501
28502         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
28503         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
28504         * lib/frexp.c (FUNC): Likewise.
28505         * lib/printf-frexp.h (printf_frexp): Likewise.
28506         * lib/printf-frexpl.h (printf_frexpl): Likewise.
28507         * lib/printf-frexp.c (FUNC): Likewise.
28508         Suggested by Jim Meyering.
28509
28510 2007-10-07  Jim Meyering  <meyering@redhat.com>
28511
28512         Make xnanosleep's integer overflow test more robust.
28513         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
28514         so that gcc-4.3.0 doesn't optimize away this test for overflow.
28515
28516 2007-10-07  Bruno Haible  <bruno@clisp.org>
28517
28518         * NEWS: Mention the license change.
28519
28520         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
28521         abbreviations in the modules files.
28522
28523         Change copyright notice from GPLv2+ to GPLv3+.
28524         * README: Change copyright notice.
28525         * MODULES.html.sh: Likewise.
28526         * build-aux/bootstrap.conf: Likewise.
28527         * build-aux/config.libpath: Likewise.
28528         * build-aux/csharpcomp.sh.in: Likewise.
28529         * build-aux/csharpexec.sh.in: Likewise.
28530         * build-aux/install-reloc: Likewise.
28531         * build-aux/javacomp.sh.in: Likewise.
28532         * build-aux/javaexec.sh.in: Likewise.
28533         * build-aux/ldd.sh.in: Likewise.
28534         * build-aux/reloc-ldflags: Likewise.
28535         * build-aux/relocatable.sh.in: Likewise.
28536         * build-aux/x-to-1.in: Likewise.
28537         * check-module: Likewise.
28538         * config/srclistvars.sh: Likewise.
28539         * gnulib-tool: Likewise.
28540         * lib/acl-internal.h: Likewise.
28541         * lib/acl.c: Likewise.
28542         * lib/acl.h: Likewise.
28543         * lib/acl_entries.c: Likewise.
28544         * lib/areadlink-with-size.c: Likewise.
28545         * lib/areadlink.c: Likewise.
28546         * lib/areadlink.h: Likewise.
28547         * lib/argmatch.c: Likewise.
28548         * lib/argmatch.h: Likewise.
28549         * lib/argp-ba.c: Likewise.
28550         * lib/argp-eexst.c: Likewise.
28551         * lib/argp-fmtstream.c: Likewise.
28552         * lib/argp-fmtstream.h: Likewise.
28553         * lib/argp-fs-xinl.c: Likewise.
28554         * lib/argp-help.c: Likewise.
28555         * lib/argp-namefrob.h: Likewise.
28556         * lib/argp-parse.c: Likewise.
28557         * lib/argp-pin.c: Likewise.
28558         * lib/argp-pv.c: Likewise.
28559         * lib/argp-pvh.c: Likewise.
28560         * lib/argp-xinl.c: Likewise.
28561         * lib/argp.h: Likewise.
28562         * lib/at-func.c: Likewise.
28563         * lib/atanl.c: Likewise.
28564         * lib/backupfile.c: Likewise.
28565         * lib/backupfile.h: Likewise.
28566         * lib/basename.c: Likewise.
28567         * lib/binary-io.h: Likewise.
28568         * lib/byteswap.in.h: Likewise.
28569         * lib/c-stack.c: Likewise.
28570         * lib/c-stack.h: Likewise.
28571         * lib/c-strcasestr.c: Likewise.
28572         * lib/c-strcasestr.h: Likewise.
28573         * lib/c-strstr.c: Likewise.
28574         * lib/c-strstr.h: Likewise.
28575         * lib/c-strtod.c: Likewise.
28576         * lib/calloc.c: Likewise.
28577         * lib/canon-host.c: Likewise.
28578         * lib/canon-host.h: Likewise.
28579         * lib/canonicalize-lgpl.c: Likewise.
28580         * lib/canonicalize.c: Likewise.
28581         * lib/canonicalize.h: Likewise.
28582         * lib/ceil.c: Likewise.
28583         * lib/ceilf.c: Likewise.
28584         * lib/ceill.c: Likewise.
28585         * lib/chdir-long.c: Likewise.
28586         * lib/chdir-long.h: Likewise.
28587         * lib/chdir-safer.c: Likewise.
28588         * lib/chdir-safer.h: Likewise.
28589         * lib/chown.c: Likewise.
28590         * lib/classpath.c: Likewise.
28591         * lib/classpath.h: Likewise.
28592         * lib/clean-temp.c: Likewise.
28593         * lib/clean-temp.h: Likewise.
28594         * lib/cloexec.c: Likewise.
28595         * lib/close-stream.c: Likewise.
28596         * lib/closein.c: Likewise.
28597         * lib/closein.h: Likewise.
28598         * lib/closeout.c: Likewise.
28599         * lib/closeout.h: Likewise.
28600         * lib/concat-filename.c: Likewise.
28601         * lib/copy-file.c: Likewise.
28602         * lib/copy-file.h: Likewise.
28603         * lib/count-one-bits.h: Likewise.
28604         * lib/crc.c: Likewise.
28605         * lib/crc.h: Likewise.
28606         * lib/creat-safer.c: Likewise.
28607         * lib/csharpcomp.c: Likewise.
28608         * lib/csharpcomp.h: Likewise.
28609         * lib/csharpexec.c: Likewise.
28610         * lib/csharpexec.h: Likewise.
28611         * lib/cycle-check.c: Likewise.
28612         * lib/cycle-check.h: Likewise.
28613         * lib/diacrit.c: Likewise.
28614         * lib/diacrit.h: Likewise.
28615         * lib/diffseq.h: Likewise.
28616         * lib/dirchownmod.c: Likewise.
28617         * lib/dirent.in.h: Likewise.
28618         * lib/dirfd.c: Likewise.
28619         * lib/dirfd.h: Likewise.
28620         * lib/dirname.c: Likewise.
28621         * lib/dirname.h: Likewise.
28622         * lib/dummy.c: Likewise.
28623         * lib/dup-safer.c: Likewise.
28624         * lib/dup2.c: Likewise.
28625         * lib/eealloc.h: Likewise.
28626         * lib/error.c: Likewise.
28627         * lib/error.h: Likewise.
28628         * lib/euidaccess.c: Likewise.
28629         * lib/exclude.c: Likewise.
28630         * lib/exclude.h: Likewise.
28631         * lib/execute.c: Likewise.
28632         * lib/execute.h: Likewise.
28633         * lib/exitfail.c: Likewise.
28634         * lib/exitfail.h: Likewise.
28635         * lib/expl.c: Likewise.
28636         * lib/fatal-signal.c: Likewise.
28637         * lib/fatal-signal.h: Likewise.
28638         * lib/fbufmode.c: Likewise.
28639         * lib/fbufmode.h: Likewise.
28640         * lib/fchdir.c: Likewise.
28641         * lib/fchmodat.c: Likewise.
28642         * lib/fchownat.c: Likewise.
28643         * lib/fcntl--.h: Likewise.
28644         * lib/fcntl-safer.h: Likewise.
28645         * lib/fcntl.in.h: Likewise.
28646         * lib/fd-safer.c: Likewise.
28647         * lib/fflush.c: Likewise.
28648         * lib/file-has-acl.c: Likewise.
28649         * lib/file-set.c: Likewise.
28650         * lib/file-type.c: Likewise.
28651         * lib/file-type.h: Likewise.
28652         * lib/fileblocks.c: Likewise.
28653         * lib/filemode.c: Likewise.
28654         * lib/filemode.h: Likewise.
28655         * lib/filename.h: Likewise.
28656         * lib/filenamecat.c: Likewise.
28657         * lib/filenamecat.h: Likewise.
28658         * lib/findprog.c: Likewise.
28659         * lib/findprog.h: Likewise.
28660         * lib/float.in.h: Likewise.
28661         * lib/floor.c: Likewise.
28662         * lib/floorf.c: Likewise.
28663         * lib/floorl.c: Likewise.
28664         * lib/fopen-safer.c: Likewise.
28665         * lib/fopen.c: Likewise.
28666         * lib/fpending.c: Likewise.
28667         * lib/fpending.h: Likewise.
28668         * lib/fprintf.c: Likewise.
28669         * lib/fprintftime.h: Likewise.
28670         * lib/fpucw.h: Likewise.
28671         * lib/fpurge.c: Likewise.
28672         * lib/fpurge.h: Likewise.
28673         * lib/freadable.c: Likewise.
28674         * lib/freadable.h: Likewise.
28675         * lib/freadahead.c: Likewise.
28676         * lib/freadahead.h: Likewise.
28677         * lib/freading.c: Likewise.
28678         * lib/freading.h: Likewise.
28679         * lib/free.c: Likewise.
28680         * lib/freopen.c: Likewise.
28681         * lib/frexp.c: Likewise.
28682         * lib/frexpl.c: Likewise.
28683         * lib/fseek.c: Likewise.
28684         * lib/fseterr.c: Likewise.
28685         * lib/fseterr.h: Likewise.
28686         * lib/fstatat.c: Likewise.
28687         * lib/fstrcmp.c: Likewise.
28688         * lib/fstrcmp.h: Likewise.
28689         * lib/fsusage.c: Likewise.
28690         * lib/fsusage.h: Likewise.
28691         * lib/ftell.c: Likewise.
28692         * lib/ftello.c: Likewise.
28693         * lib/fts-cycle.c: Likewise.
28694         * lib/fts.c: Likewise.
28695         * lib/fts_.h: Likewise.
28696         * lib/full-read.c: Likewise.
28697         * lib/full-read.h: Likewise.
28698         * lib/full-write.c: Likewise.
28699         * lib/full-write.h: Likewise.
28700         * lib/fwritable.c: Likewise.
28701         * lib/fwritable.h: Likewise.
28702         * lib/fwriteerror.c: Likewise.
28703         * lib/fwriteerror.h: Likewise.
28704         * lib/fwriting.c: Likewise.
28705         * lib/fwriting.h: Likewise.
28706         * lib/gcd.c: Likewise.
28707         * lib/gcd.h: Likewise.
28708         * lib/getcwd.c: Likewise.
28709         * lib/getdate.h: Likewise.
28710         * lib/getdate.y: Likewise.
28711         * lib/getdomainname.c: Likewise.
28712         * lib/getdomainname.h: Likewise.
28713         * lib/getgroups.c: Likewise.
28714         * lib/gethostname.c: Likewise.
28715         * lib/gethrxtime.c: Likewise.
28716         * lib/gethrxtime.h: Likewise.
28717         * lib/getloadavg.c: Likewise.
28718         * lib/getndelim2.c: Likewise.
28719         * lib/getndelim2.h: Likewise.
28720         * lib/getnline.c: Likewise.
28721         * lib/getnline.h: Likewise.
28722         * lib/getopt.c: Likewise.
28723         * lib/getopt.in.h: Likewise.
28724         * lib/getopt1.c: Likewise.
28725         * lib/getopt_int.h: Likewise.
28726         * lib/getpagesize.h: Likewise.
28727         * lib/getsubopt.c: Likewise.
28728         * lib/gettime.c: Likewise.
28729         * lib/getugroups.c: Likewise.
28730         * lib/getugroups.h: Likewise.
28731         * lib/getusershell.c: Likewise.
28732         * lib/gl_anyavltree_list1.h: Likewise.
28733         * lib/gl_anyavltree_list2.h: Likewise.
28734         * lib/gl_anyhash_list1.h: Likewise.
28735         * lib/gl_anyhash_list2.h: Likewise.
28736         * lib/gl_anylinked_list1.h: Likewise.
28737         * lib/gl_anylinked_list2.h: Likewise.
28738         * lib/gl_anyrbtree_list1.h: Likewise.
28739         * lib/gl_anyrbtree_list2.h: Likewise.
28740         * lib/gl_anytree_list1.h: Likewise.
28741         * lib/gl_anytree_list2.h: Likewise.
28742         * lib/gl_anytree_oset.h: Likewise.
28743         * lib/gl_anytreehash_list1.h: Likewise.
28744         * lib/gl_anytreehash_list2.h: Likewise.
28745         * lib/gl_array_list.c: Likewise.
28746         * lib/gl_array_list.h: Likewise.
28747         * lib/gl_array_oset.c: Likewise.
28748         * lib/gl_array_oset.h: Likewise.
28749         * lib/gl_avltree_list.c: Likewise.
28750         * lib/gl_avltree_list.h: Likewise.
28751         * lib/gl_avltree_oset.c: Likewise.
28752         * lib/gl_avltree_oset.h: Likewise.
28753         * lib/gl_avltreehash_list.c: Likewise.
28754         * lib/gl_avltreehash_list.h: Likewise.
28755         * lib/gl_carray_list.c: Likewise.
28756         * lib/gl_carray_list.h: Likewise.
28757         * lib/gl_linked_list.c: Likewise.
28758         * lib/gl_linked_list.h: Likewise.
28759         * lib/gl_linkedhash_list.c: Likewise.
28760         * lib/gl_linkedhash_list.h: Likewise.
28761         * lib/gl_list.c: Likewise.
28762         * lib/gl_list.h: Likewise.
28763         * lib/gl_oset.c: Likewise.
28764         * lib/gl_oset.h: Likewise.
28765         * lib/gl_rbtree_list.c: Likewise.
28766         * lib/gl_rbtree_list.h: Likewise.
28767         * lib/gl_rbtree_oset.c: Likewise.
28768         * lib/gl_rbtree_oset.h: Likewise.
28769         * lib/gl_rbtreehash_list.c: Likewise.
28770         * lib/gl_rbtreehash_list.h: Likewise.
28771         * lib/gl_sublist.c: Likewise.
28772         * lib/gl_sublist.h: Likewise.
28773         * lib/group-member.c: Likewise.
28774         * lib/group-member.h: Likewise.
28775         * lib/hard-locale.c: Likewise.
28776         * lib/hard-locale.h: Likewise.
28777         * lib/hash-pjw.c: Likewise.
28778         * lib/hash-pjw.h: Likewise.
28779         * lib/hash-triple.c: Likewise.
28780         * lib/hash.c: Likewise.
28781         * lib/hash.h: Likewise.
28782         * lib/human.c: Likewise.
28783         * lib/human.h: Likewise.
28784         * lib/i-ring.c: Likewise.
28785         * lib/i-ring.h: Likewise.
28786         * lib/idcache.c: Likewise.
28787         * lib/imaxabs.c: Likewise.
28788         * lib/imaxdiv.c: Likewise.
28789         * lib/inet_pton.c: Likewise.
28790         * lib/inet_pton.h: Likewise.
28791         * lib/intprops.h: Likewise.
28792         * lib/inttostr.c: Likewise.
28793         * lib/inttostr.h: Likewise.
28794         * lib/inttypes.in.h: Likewise.
28795         * lib/isapipe.c: Likewise.
28796         * lib/isdir.c: Likewise.
28797         * lib/isnan.c: Likewise.
28798         * lib/isnan.h: Likewise.
28799         * lib/isnanf.c: Likewise.
28800         * lib/isnanf.h: Likewise.
28801         * lib/isnanl-nolibm.h: Likewise.
28802         * lib/isnanl.c: Likewise.
28803         * lib/isnanl.h: Likewise.
28804         * lib/javacomp.c: Likewise.
28805         * lib/javacomp.h: Likewise.
28806         * lib/javaexec.c: Likewise.
28807         * lib/javaexec.h: Likewise.
28808         * lib/javaversion.c: Likewise.
28809         * lib/javaversion.h: Likewise.
28810         * lib/javaversion.java: Likewise.
28811         * lib/lbrkprop.h: Likewise.
28812         * lib/lchmod.h: Likewise.
28813         * lib/lchown.c: Likewise.
28814         * lib/ldexpl.c: Likewise.
28815         * lib/linebreak.c: Likewise.
28816         * lib/linebreak.h: Likewise.
28817         * lib/linebuffer.c: Likewise.
28818         * lib/linebuffer.h: Likewise.
28819         * lib/locale.in.h: Likewise.
28820         * lib/logl.c: Likewise.
28821         * lib/long-options.c: Likewise.
28822         * lib/long-options.h: Likewise.
28823         * lib/lstat.c: Likewise.
28824         * lib/lstat.h: Likewise.
28825         * lib/math.in.h: Likewise.
28826         * lib/mbchar.c: Likewise.
28827         * lib/mbchar.h: Likewise.
28828         * lib/mbfile.h: Likewise.
28829         * lib/mbiter.h: Likewise.
28830         * lib/mbscasecmp.c: Likewise.
28831         * lib/mbscasestr.c: Likewise.
28832         * lib/mbschr.c: Likewise.
28833         * lib/mbscspn.c: Likewise.
28834         * lib/mbslen.c: Likewise.
28835         * lib/mbsncasecmp.c: Likewise.
28836         * lib/mbsnlen.c: Likewise.
28837         * lib/mbspbrk.c: Likewise.
28838         * lib/mbspcasecmp.c: Likewise.
28839         * lib/mbsrchr.c: Likewise.
28840         * lib/mbssep.c: Likewise.
28841         * lib/mbsspn.c: Likewise.
28842         * lib/mbsstr.c: Likewise.
28843         * lib/mbstok_r.c: Likewise.
28844         * lib/mbswidth.c: Likewise.
28845         * lib/mbswidth.h: Likewise.
28846         * lib/mbuiter.h: Likewise.
28847         * lib/memcasecmp.c: Likewise.
28848         * lib/memcasecmp.h: Likewise.
28849         * lib/memchr.c: Likewise.
28850         * lib/memcmp.c: Likewise.
28851         * lib/memcoll.c: Likewise.
28852         * lib/memcoll.h: Likewise.
28853         * lib/memcpy.c: Likewise.
28854         * lib/memrchr.c: Likewise.
28855         * lib/mkancesdirs.c: Likewise.
28856         * lib/mkdir-p.c: Likewise.
28857         * lib/mkdir-p.h: Likewise.
28858         * lib/mkdir.c: Likewise.
28859         * lib/mkdirat.c: Likewise.
28860         * lib/mkdtemp.c: Likewise.
28861         * lib/mkstemp-safer.c: Likewise.
28862         * lib/mkstemp.c: Likewise.
28863         * lib/modechange.c: Likewise.
28864         * lib/modechange.h: Likewise.
28865         * lib/mountlist.c: Likewise.
28866         * lib/mountlist.h: Likewise.
28867         * lib/mpsort.c: Likewise.
28868         * lib/nanosleep.c: Likewise.
28869         * lib/obstack.c: Likewise.
28870         * lib/obstack.h: Likewise.
28871         * lib/open-safer.c: Likewise.
28872         * lib/open.c: Likewise.
28873         * lib/openat-die.c: Likewise.
28874         * lib/openat-priv.h: Likewise.
28875         * lib/openat-proc.c: Likewise.
28876         * lib/openat.c: Likewise.
28877         * lib/openat.h: Likewise.
28878         * lib/pagealign_alloc.c: Likewise.
28879         * lib/pagealign_alloc.h: Likewise.
28880         * lib/physmem.c: Likewise.
28881         * lib/physmem.h: Likewise.
28882         * lib/pipe-safer.c: Likewise.
28883         * lib/pipe.c: Likewise.
28884         * lib/pipe.h: Likewise.
28885         * lib/posixtm.c: Likewise.
28886         * lib/posixtm.h: Likewise.
28887         * lib/posixver.c: Likewise.
28888         * lib/printf-frexp.c: Likewise.
28889         * lib/printf-frexp.h: Likewise.
28890         * lib/printf-frexpl.c: Likewise.
28891         * lib/printf-frexpl.h: Likewise.
28892         * lib/printf.c: Likewise.
28893         * lib/progname.c: Likewise.
28894         * lib/progname.h: Likewise.
28895         * lib/progreloc.c: Likewise.
28896         * lib/putenv.c: Likewise.
28897         * lib/quote.c: Likewise.
28898         * lib/quote.h: Likewise.
28899         * lib/quotearg.c: Likewise.
28900         * lib/quotearg.h: Likewise.
28901         * lib/raise.c: Likewise.
28902         * lib/readline.c: Likewise.
28903         * lib/readline.h: Likewise.
28904         * lib/readlink.c: Likewise.
28905         * lib/readtokens.c: Likewise.
28906         * lib/readtokens.h: Likewise.
28907         * lib/readtokens0.c: Likewise.
28908         * lib/readtokens0.h: Likewise.
28909         * lib/readutmp.c: Likewise.
28910         * lib/readutmp.h: Likewise.
28911         * lib/realloc.c: Likewise.
28912         * lib/relocwrapper.c: Likewise.
28913         * lib/rename-dest-slash.c: Likewise.
28914         * lib/rename.c: Likewise.
28915         * lib/rmdir.c: Likewise.
28916         * lib/rpmatch.c: Likewise.
28917         * lib/safe-read.c: Likewise.
28918         * lib/safe-read.h: Likewise.
28919         * lib/safe-write.c: Likewise.
28920         * lib/safe-write.h: Likewise.
28921         * lib/same-inode.h: Likewise.
28922         * lib/same.c: Likewise.
28923         * lib/same.h: Likewise.
28924         * lib/save-cwd.c: Likewise.
28925         * lib/save-cwd.h: Likewise.
28926         * lib/savedir.c: Likewise.
28927         * lib/savedir.h: Likewise.
28928         * lib/savewd.c: Likewise.
28929         * lib/savewd.h: Likewise.
28930         * lib/search.in.h: Likewise.
28931         * lib/setenv.c: Likewise.
28932         * lib/setenv.h: Likewise.
28933         * lib/settime.c: Likewise.
28934         * lib/sh-quote.c: Likewise.
28935         * lib/sh-quote.h: Likewise.
28936         * lib/sig2str.c: Likewise.
28937         * lib/sig2str.h: Likewise.
28938         * lib/signal.in.h: Likewise.
28939         * lib/signbitd.c: Likewise.
28940         * lib/signbitf.c: Likewise.
28941         * lib/signbitl.c: Likewise.
28942         * lib/sigprocmask.c: Likewise.
28943         * lib/sincosl.c: Likewise.
28944         * lib/sleep.c: Likewise.
28945         * lib/sprintf.c: Likewise.
28946         * lib/sqrtl.c: Likewise.
28947         * lib/stat-time.h: Likewise.
28948         * lib/stdio--.h: Likewise.
28949         * lib/stdio-safer.h: Likewise.
28950         * lib/stdlib--.h: Likewise.
28951         * lib/stdlib-safer.h: Likewise.
28952         * lib/stdlib.in.h: Likewise.
28953         * lib/stpcpy.c: Likewise.
28954         * lib/stpncpy.c: Likewise.
28955         * lib/strchrnul.c: Likewise.
28956         * lib/strcspn.c: Likewise.
28957         * lib/strerror.c: Likewise.
28958         * lib/strftime.c: Likewise.
28959         * lib/strftime.h: Likewise.
28960         * lib/striconveh.c: Likewise.
28961         * lib/striconveh.h: Likewise.
28962         * lib/striconveha.c: Likewise.
28963         * lib/striconveha.h: Likewise.
28964         * lib/stripslash.c: Likewise.
28965         * lib/strnlen1.c: Likewise.
28966         * lib/strnlen1.h: Likewise.
28967         * lib/strtod.c: Likewise.
28968         * lib/strtoimax.c: Likewise.
28969         * lib/strtok_r.c: Likewise.
28970         * lib/strtol.c: Likewise.
28971         * lib/strtoll.c: Likewise.
28972         * lib/strtoul.c: Likewise.
28973         * lib/strtoull.c: Likewise.
28974         * lib/sysexits.in.h: Likewise.
28975         * lib/tempname.c: Likewise.
28976         * lib/tempname.h: Likewise.
28977         * lib/timespec.h: Likewise.
28978         * lib/tls.c: Likewise.
28979         * lib/tls.h: Likewise.
28980         * lib/tmpdir.c: Likewise.
28981         * lib/tmpdir.h: Likewise.
28982         * lib/tmpfile-safer.c: Likewise.
28983         * lib/tmpfile.c: Likewise.
28984         * lib/trigl.c: Likewise.
28985         * lib/trigl.h: Likewise.
28986         * lib/trim.c: Likewise.
28987         * lib/trim.h: Likewise.
28988         * lib/trunc.c: Likewise.
28989         * lib/truncf.c: Likewise.
28990         * lib/truncl.c: Likewise.
28991         * lib/tsearch.c: Likewise.
28992         * lib/unicodeio.c: Likewise.
28993         * lib/unicodeio.h: Likewise.
28994         * lib/unistd--.h: Likewise.
28995         * lib/unistd-safer.h: Likewise.
28996         * lib/unistdio/ulc-fprintf.c: Likewise.
28997         * lib/unistdio/ulc-vfprintf.c: Likewise.
28998         * lib/unlinkdir.c: Likewise.
28999         * lib/unlinkdir.h: Likewise.
29000         * lib/unlocked-io.h: Likewise.
29001         * lib/unsetenv.c: Likewise.
29002         * lib/userspec.c: Likewise.
29003         * lib/utime.c: Likewise.
29004         * lib/utimecmp.c: Likewise.
29005         * lib/utimecmp.h: Likewise.
29006         * lib/utimens.c: Likewise.
29007         * lib/verify.h: Likewise.
29008         * lib/verror.c: Likewise.
29009         * lib/verror.h: Likewise.
29010         * lib/version-etc-fsf.c: Likewise.
29011         * lib/version-etc.c: Likewise.
29012         * lib/version-etc.h: Likewise.
29013         * lib/vfprintf.c: Likewise.
29014         * lib/vprintf.c: Likewise.
29015         * lib/vsprintf.c: Likewise.
29016         * lib/w32spawn.h: Likewise.
29017         * lib/wait-process.c: Likewise.
29018         * lib/wait-process.h: Likewise.
29019         * lib/wcwidth.c: Likewise.
29020         * lib/write-any-file.c: Likewise.
29021         * lib/xalloc-die.c: Likewise.
29022         * lib/xalloc.h: Likewise.
29023         * lib/xasprintf.c: Likewise.
29024         * lib/xgetcwd.c: Likewise.
29025         * lib/xgetcwd.h: Likewise.
29026         * lib/xgetdomainname.c: Likewise.
29027         * lib/xgetdomainname.h: Likewise.
29028         * lib/xgethostname.c: Likewise.
29029         * lib/xmalloc.c: Likewise.
29030         * lib/xmalloca.c: Likewise.
29031         * lib/xmalloca.h: Likewise.
29032         * lib/xmemcoll.c: Likewise.
29033         * lib/xnanosleep.c: Likewise.
29034         * lib/xreadlink.c: Likewise.
29035         * lib/xreadlink.h: Likewise.
29036         * lib/xsetenv.c: Likewise.
29037         * lib/xsetenv.h: Likewise.
29038         * lib/xstriconv.c: Likewise.
29039         * lib/xstriconv.h: Likewise.
29040         * lib/xstrndup.c: Likewise.
29041         * lib/xstrndup.h: Likewise.
29042         * lib/xstrtod.c: Likewise.
29043         * lib/xstrtod.h: Likewise.
29044         * lib/xstrtol-error.c: Likewise.
29045         * lib/xstrtol.c: Likewise.
29046         * lib/xstrtol.h: Likewise.
29047         * lib/xtime.h: Likewise.
29048         * lib/xvasprintf.c: Likewise.
29049         * lib/xvasprintf.h: Likewise.
29050         * lib/yesno.c: Likewise.
29051         * lib/yesno.h: Likewise.
29052         * posix-modules: Likewise.
29053         * tests/test-alloca-opt.c: Likewise.
29054         * tests/test-arcfour.c: Likewise.
29055         * tests/test-arctwo.c: Likewise.
29056         * tests/test-argmatch.c: Likewise.
29057         * tests/test-argp-2.sh: Likewise.
29058         * tests/test-argp.c: Likewise.
29059         * tests/test-arpa_inet.c: Likewise.
29060         * tests/test-array_list.c: Likewise.
29061         * tests/test-array_oset.c: Likewise.
29062         * tests/test-atexit.c: Likewise.
29063         * tests/test-avltree_list.c: Likewise.
29064         * tests/test-avltree_oset.c: Likewise.
29065         * tests/test-avltreehash_list.c: Likewise.
29066         * tests/test-base64.c: Likewise.
29067         * tests/test-binary-io.c: Likewise.
29068         * tests/test-byteswap.c: Likewise.
29069         * tests/test-c-ctype.c: Likewise.
29070         * tests/test-c-strcasecmp.c: Likewise.
29071         * tests/test-c-strcasestr.c: Likewise.
29072         * tests/test-c-strncasecmp.c: Likewise.
29073         * tests/test-c-strstr.c: Likewise.
29074         * tests/test-canonicalize-lgpl.c: Likewise.
29075         * tests/test-canonicalize.c: Likewise.
29076         * tests/test-carray_list.c: Likewise.
29077         * tests/test-ceilf.c: Likewise.
29078         * tests/test-ceill.c: Likewise.
29079         * tests/test-count-one-bits.c: Likewise.
29080         * tests/test-crc.c: Likewise.
29081         * tests/test-dirname.c: Likewise.
29082         * tests/test-fbufmode.c: Likewise.
29083         * tests/test-fcntl.c: Likewise.
29084         * tests/test-fflush.c: Likewise.
29085         * tests/test-floorf.c: Likewise.
29086         * tests/test-floorl.c: Likewise.
29087         * tests/test-fopen.c: Likewise.
29088         * tests/test-fprintf-posix.c: Likewise.
29089         * tests/test-fprintf-posix.h: Likewise.
29090         * tests/test-fpurge.c: Likewise.
29091         * tests/test-freadable.c: Likewise.
29092         * tests/test-freadahead.c: Likewise.
29093         * tests/test-freading.c: Likewise.
29094         * tests/test-freopen.c: Likewise.
29095         * tests/test-frexp.c: Likewise.
29096         * tests/test-frexpl.c: Likewise.
29097         * tests/test-fseek.c: Likewise.
29098         * tests/test-fseeko.c: Likewise.
29099         * tests/test-fseterr.c: Likewise.
29100         * tests/test-fstrcmp.c: Likewise.
29101         * tests/test-ftell.c: Likewise.
29102         * tests/test-ftello.c: Likewise.
29103         * tests/test-fwritable.c: Likewise.
29104         * tests/test-fwriting.c: Likewise.
29105         * tests/test-getaddrinfo.c: Likewise.
29106         * tests/test-getpass.c: Likewise.
29107         * tests/test-gettimeofday.c: Likewise.
29108         * tests/test-hmac-md5.c: Likewise.
29109         * tests/test-hmac-sha1.c: Likewise.
29110         * tests/test-iconv.c: Likewise.
29111         * tests/test-iconvme.c: Likewise.
29112         * tests/test-inttypes.c: Likewise.
29113         * tests/test-isnan.c: Likewise.
29114         * tests/test-isnanf.c: Likewise.
29115         * tests/test-isnanl-nolibm.c: Likewise.
29116         * tests/test-isnanl.c: Likewise.
29117         * tests/test-isnanl.h: Likewise.
29118         * tests/test-ldexpl.c: Likewise.
29119         * tests/test-linked_list.c: Likewise.
29120         * tests/test-linkedhash_list.c: Likewise.
29121         * tests/test-locale.c: Likewise.
29122         * tests/test-localename.c: Likewise.
29123         * tests/test-lock.c: Likewise.
29124         * tests/test-lseek.c: Likewise.
29125         * tests/test-malloca.c: Likewise.
29126         * tests/test-math.c: Likewise.
29127         * tests/test-mbscasecmp.c: Likewise.
29128         * tests/test-mbscasestr1.c: Likewise.
29129         * tests/test-mbscasestr2.c: Likewise.
29130         * tests/test-mbscasestr3.c: Likewise.
29131         * tests/test-mbscasestr4.c: Likewise.
29132         * tests/test-mbschr.c: Likewise.
29133         * tests/test-mbscspn.c: Likewise.
29134         * tests/test-mbsncasecmp.c: Likewise.
29135         * tests/test-mbspbrk.c: Likewise.
29136         * tests/test-mbspcasecmp.c: Likewise.
29137         * tests/test-mbsrchr.c: Likewise.
29138         * tests/test-mbsspn.c: Likewise.
29139         * tests/test-mbsstr1.c: Likewise.
29140         * tests/test-mbsstr2.c: Likewise.
29141         * tests/test-mbsstr3.c: Likewise.
29142         * tests/test-md5.c: Likewise.
29143         * tests/test-memmem.c: Likewise.
29144         * tests/test-netinet_in.c: Likewise.
29145         * tests/test-open.c: Likewise.
29146         * tests/test-printf-frexp.c: Likewise.
29147         * tests/test-printf-frexpl.c: Likewise.
29148         * tests/test-printf-posix.c: Likewise.
29149         * tests/test-printf-posix.h: Likewise.
29150         * tests/test-rbtree_list.c: Likewise.
29151         * tests/test-rbtree_oset.c: Likewise.
29152         * tests/test-rbtreehash_list.c: Likewise.
29153         * tests/test-read-file.c: Likewise.
29154         * tests/test-rijndael.c: Likewise.
29155         * tests/test-search.c: Likewise.
29156         * tests/test-signbit.c: Likewise.
29157         * tests/test-sleep.c: Likewise.
29158         * tests/test-snprintf-posix.c: Likewise.
29159         * tests/test-snprintf-posix.h: Likewise.
29160         * tests/test-snprintf.c: Likewise.
29161         * tests/test-sprintf-posix.c: Likewise.
29162         * tests/test-sprintf-posix.h: Likewise.
29163         * tests/test-stat-time.c: Likewise.
29164         * tests/test-stdbool.c: Likewise.
29165         * tests/test-stdint.c: Likewise.
29166         * tests/test-stdio.c: Likewise.
29167         * tests/test-stdlib.c: Likewise.
29168         * tests/test-stpncpy.c: Likewise.
29169         * tests/test-strcasestr.c: Likewise.
29170         * tests/test-striconv.c: Likewise.
29171         * tests/test-striconveh.c: Likewise.
29172         * tests/test-striconveha.c: Likewise.
29173         * tests/test-string.c: Likewise.
29174         * tests/test-sys_select.c: Likewise.
29175         * tests/test-sys_socket.c: Likewise.
29176         * tests/test-sys_stat.c: Likewise.
29177         * tests/test-sys_time.c: Likewise.
29178         * tests/test-sysexits.c: Likewise.
29179         * tests/test-time.c: Likewise.
29180         * tests/test-tls.c: Likewise.
29181         * tests/test-trunc.c: Likewise.
29182         * tests/test-truncf.c: Likewise.
29183         * tests/test-truncl.c: Likewise.
29184         * tests/test-unistd.c: Likewise.
29185         * tests/test-vasnprintf-posix.c: Likewise.
29186         * tests/test-vasnprintf-posix2.c: Likewise.
29187         * tests/test-vasnprintf.c: Likewise.
29188         * tests/test-vasprintf-posix.c: Likewise.
29189         * tests/test-vasprintf.c: Likewise.
29190         * tests/test-verify.c: Likewise.
29191         * tests/test-vfprintf-posix.c: Likewise.
29192         * tests/test-vprintf-posix.c: Likewise.
29193         * tests/test-vsnprintf-posix.c: Likewise.
29194         * tests/test-vsnprintf.c: Likewise.
29195         * tests/test-vsprintf-posix.c: Likewise.
29196         * tests/test-wchar.c: Likewise.
29197         * tests/test-wctype.c: Likewise.
29198         * tests/test-wcwidth.c: Likewise.
29199         * tests/test-xstrtol.c: Likewise.
29200         * tests/test-xvasprintf.c: Likewise.
29201         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29202         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29203         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29204         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29205         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29206         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29207         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29208         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29209         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29210         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29211         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29212         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29213         * tests/uniname/test-uninames.c: Likewise.
29214         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29215         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29216         * tests/unistdio/test-u16-printf1.h: Likewise.
29217         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29218         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29219         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29220         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29221         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29222         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29223         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29224         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29225         * tests/unistdio/test-u32-printf1.h: Likewise.
29226         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29227         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29228         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29229         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29230         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29231         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29232         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29233         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29234         * tests/unistdio/test-u8-printf1.h: Likewise.
29235         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29236         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29237         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29238         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29239         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29240         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29241         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29242         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29243         * tests/unistdio/test-ulc-printf1.h: Likewise.
29244         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29245         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29246         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29247         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29248         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29249         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29250         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29251         * tests/uniwidth/test-u16-width.c: Likewise.
29252         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29253         * tests/uniwidth/test-u32-width.c: Likewise.
29254         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29255         * tests/uniwidth/test-u8-width.c: Likewise.
29256         * tests/uniwidth/test-uc_width.c: Likewise.
29257         * config/srclist-update: Likewise.
29258         (fixlicense): Update to GPLv3+.
29259
29260         Change copyright notice from LGPLv2.1+ to LGPLv3+.
29261         * tests/test-tsearch.c: Change copyright notice.
29262
29263         Change copyright notice from LGPLv2.0+ to LGPLv3+.
29264         * lib/c-strcaseeq.h: Change copyright notice.
29265         * lib/streq.h: Likewise.
29266         * lib/uniconv.h: Likewise.
29267         * lib/uniconv/u-conv-from-enc.h: Likewise.
29268         * lib/uniconv/u-conv-to-enc.h: Likewise.
29269         * lib/uniconv/u-strconv-from-enc.h: Likewise.
29270         * lib/uniconv/u-strconv-to-enc.h: Likewise.
29271         * lib/uniconv/u16-conv-from-enc.c: Likewise.
29272         * lib/uniconv/u16-conv-to-enc.c: Likewise.
29273         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29274         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29275         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29276         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29277         * lib/uniconv/u32-conv-from-enc.c: Likewise.
29278         * lib/uniconv/u32-conv-to-enc.c: Likewise.
29279         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29280         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29281         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29282         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29283         * lib/uniconv/u8-conv-from-enc.c: Likewise.
29284         * lib/uniconv/u8-conv-to-enc.c: Likewise.
29285         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29286         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29287         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
29288         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29289         * lib/uniname.h: Likewise.
29290         * lib/uniname/uniname.c: Likewise.
29291         * lib/unistdio.h: Likewise.
29292         * lib/unistdio/u-asnprintf.h: Likewise.
29293         * lib/unistdio/u-asprintf.h: Likewise.
29294         * lib/unistdio/u-printf-args.c: Likewise.
29295         * lib/unistdio/u-printf-args.h: Likewise.
29296         * lib/unistdio/u-printf-parse.h: Likewise.
29297         * lib/unistdio/u-snprintf.h: Likewise.
29298         * lib/unistdio/u-sprintf.h: Likewise.
29299         * lib/unistdio/u-vasprintf.h: Likewise.
29300         * lib/unistdio/u-vsnprintf.h: Likewise.
29301         * lib/unistdio/u-vsprintf.h: Likewise.
29302         * lib/unistdio/u16-asnprintf.c: Likewise.
29303         * lib/unistdio/u16-asprintf.c: Likewise.
29304         * lib/unistdio/u16-printf-parse.c: Likewise.
29305         * lib/unistdio/u16-snprintf.c: Likewise.
29306         * lib/unistdio/u16-sprintf.c: Likewise.
29307         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
29308         * lib/unistdio/u16-u16-asprintf.c: Likewise.
29309         * lib/unistdio/u16-u16-snprintf.c: Likewise.
29310         * lib/unistdio/u16-u16-sprintf.c: Likewise.
29311         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
29312         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
29313         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
29314         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
29315         * lib/unistdio/u16-vasnprintf.c: Likewise.
29316         * lib/unistdio/u16-vasprintf.c: Likewise.
29317         * lib/unistdio/u16-vsnprintf.c: Likewise.
29318         * lib/unistdio/u16-vsprintf.c: Likewise.
29319         * lib/unistdio/u32-asnprintf.c: Likewise.
29320         * lib/unistdio/u32-asprintf.c: Likewise.
29321         * lib/unistdio/u32-printf-parse.c: Likewise.
29322         * lib/unistdio/u32-snprintf.c: Likewise.
29323         * lib/unistdio/u32-sprintf.c: Likewise.
29324         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
29325         * lib/unistdio/u32-u32-asprintf.c: Likewise.
29326         * lib/unistdio/u32-u32-snprintf.c: Likewise.
29327         * lib/unistdio/u32-u32-sprintf.c: Likewise.
29328         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
29329         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
29330         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
29331         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
29332         * lib/unistdio/u32-vasnprintf.c: Likewise.
29333         * lib/unistdio/u32-vasprintf.c: Likewise.
29334         * lib/unistdio/u32-vsnprintf.c: Likewise.
29335         * lib/unistdio/u32-vsprintf.c: Likewise.
29336         * lib/unistdio/u8-asnprintf.c: Likewise.
29337         * lib/unistdio/u8-asprintf.c: Likewise.
29338         * lib/unistdio/u8-printf-parse.c: Likewise.
29339         * lib/unistdio/u8-snprintf.c: Likewise.
29340         * lib/unistdio/u8-sprintf.c: Likewise.
29341         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
29342         * lib/unistdio/u8-u8-asprintf.c: Likewise.
29343         * lib/unistdio/u8-u8-snprintf.c: Likewise.
29344         * lib/unistdio/u8-u8-sprintf.c: Likewise.
29345         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
29346         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
29347         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
29348         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
29349         * lib/unistdio/u8-vasnprintf.c: Likewise.
29350         * lib/unistdio/u8-vasprintf.c: Likewise.
29351         * lib/unistdio/u8-vsnprintf.c: Likewise.
29352         * lib/unistdio/u8-vsprintf.c: Likewise.
29353         * lib/unistdio/ulc-asnprintf.c: Likewise.
29354         * lib/unistdio/ulc-asprintf.c: Likewise.
29355         * lib/unistdio/ulc-printf-parse.c: Likewise.
29356         * lib/unistdio/ulc-snprintf.c: Likewise.
29357         * lib/unistdio/ulc-sprintf.c: Likewise.
29358         * lib/unistdio/ulc-vasnprintf.c: Likewise.
29359         * lib/unistdio/ulc-vasprintf.c: Likewise.
29360         * lib/unistdio/ulc-vsnprintf.c: Likewise.
29361         * lib/unistdio/ulc-vsprintf.c: Likewise.
29362         * lib/unistr.h: Likewise.
29363         * lib/unistr/u-cpy-alloc.h: Likewise.
29364         * lib/unistr/u-cpy.h: Likewise.
29365         * lib/unistr/u-endswith.h: Likewise.
29366         * lib/unistr/u-move.h: Likewise.
29367         * lib/unistr/u-set.h: Likewise.
29368         * lib/unistr/u-startswith.h: Likewise.
29369         * lib/unistr/u-stpcpy.h: Likewise.
29370         * lib/unistr/u-stpncpy.h: Likewise.
29371         * lib/unistr/u-strcat.h: Likewise.
29372         * lib/unistr/u-strcpy.h: Likewise.
29373         * lib/unistr/u-strcspn.h: Likewise.
29374         * lib/unistr/u-strdup.h: Likewise.
29375         * lib/unistr/u-strlen.h: Likewise.
29376         * lib/unistr/u-strncat.h: Likewise.
29377         * lib/unistr/u-strncpy.h: Likewise.
29378         * lib/unistr/u-strnlen.h: Likewise.
29379         * lib/unistr/u-strpbrk.h: Likewise.
29380         * lib/unistr/u-strspn.h: Likewise.
29381         * lib/unistr/u-strstr.h: Likewise.
29382         * lib/unistr/u-strtok.h: Likewise.
29383         * lib/unistr/u16-check.c: Likewise.
29384         * lib/unistr/u16-chr.c: Likewise.
29385         * lib/unistr/u16-cmp.c: Likewise.
29386         * lib/unistr/u16-cpy-alloc.c: Likewise.
29387         * lib/unistr/u16-cpy.c: Likewise.
29388         * lib/unistr/u16-endswith.c: Likewise.
29389         * lib/unistr/u16-mblen.c: Likewise.
29390         * lib/unistr/u16-mbsnlen.c: Likewise.
29391         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29392         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29393         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29394         * lib/unistr/u16-mbtouc.c: Likewise.
29395         * lib/unistr/u16-mbtoucr.c: Likewise.
29396         * lib/unistr/u16-move.c: Likewise.
29397         * lib/unistr/u16-next.c: Likewise.
29398         * lib/unistr/u16-prev.c: Likewise.
29399         * lib/unistr/u16-set.c: Likewise.
29400         * lib/unistr/u16-startswith.c: Likewise.
29401         * lib/unistr/u16-stpcpy.c: Likewise.
29402         * lib/unistr/u16-stpncpy.c: Likewise.
29403         * lib/unistr/u16-strcat.c: Likewise.
29404         * lib/unistr/u16-strchr.c: Likewise.
29405         * lib/unistr/u16-strcmp.c: Likewise.
29406         * lib/unistr/u16-strcpy.c: Likewise.
29407         * lib/unistr/u16-strcspn.c: Likewise.
29408         * lib/unistr/u16-strdup.c: Likewise.
29409         * lib/unistr/u16-strlen.c: Likewise.
29410         * lib/unistr/u16-strmblen.c: Likewise.
29411         * lib/unistr/u16-strmbtouc.c: Likewise.
29412         * lib/unistr/u16-strncat.c: Likewise.
29413         * lib/unistr/u16-strncmp.c: Likewise.
29414         * lib/unistr/u16-strncpy.c: Likewise.
29415         * lib/unistr/u16-strnlen.c: Likewise.
29416         * lib/unistr/u16-strpbrk.c: Likewise.
29417         * lib/unistr/u16-strrchr.c: Likewise.
29418         * lib/unistr/u16-strspn.c: Likewise.
29419         * lib/unistr/u16-strstr.c: Likewise.
29420         * lib/unistr/u16-strtok.c: Likewise.
29421         * lib/unistr/u16-to-u32.c: Likewise.
29422         * lib/unistr/u16-to-u8.c: Likewise.
29423         * lib/unistr/u16-uctomb-aux.c: Likewise.
29424         * lib/unistr/u16-uctomb.c: Likewise.
29425         * lib/unistr/u32-check.c: Likewise.
29426         * lib/unistr/u32-chr.c: Likewise.
29427         * lib/unistr/u32-cmp.c: Likewise.
29428         * lib/unistr/u32-cpy-alloc.c: Likewise.
29429         * lib/unistr/u32-cpy.c: Likewise.
29430         * lib/unistr/u32-endswith.c: Likewise.
29431         * lib/unistr/u32-mblen.c: Likewise.
29432         * lib/unistr/u32-mbsnlen.c: Likewise.
29433         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29434         * lib/unistr/u32-mbtouc.c: Likewise.
29435         * lib/unistr/u32-mbtoucr.c: Likewise.
29436         * lib/unistr/u32-move.c: Likewise.
29437         * lib/unistr/u32-next.c: Likewise.
29438         * lib/unistr/u32-prev.c: Likewise.
29439         * lib/unistr/u32-set.c: Likewise.
29440         * lib/unistr/u32-startswith.c: Likewise.
29441         * lib/unistr/u32-stpcpy.c: Likewise.
29442         * lib/unistr/u32-stpncpy.c: Likewise.
29443         * lib/unistr/u32-strcat.c: Likewise.
29444         * lib/unistr/u32-strchr.c: Likewise.
29445         * lib/unistr/u32-strcmp.c: Likewise.
29446         * lib/unistr/u32-strcpy.c: Likewise.
29447         * lib/unistr/u32-strcspn.c: Likewise.
29448         * lib/unistr/u32-strdup.c: Likewise.
29449         * lib/unistr/u32-strlen.c: Likewise.
29450         * lib/unistr/u32-strmblen.c: Likewise.
29451         * lib/unistr/u32-strmbtouc.c: Likewise.
29452         * lib/unistr/u32-strncat.c: Likewise.
29453         * lib/unistr/u32-strncmp.c: Likewise.
29454         * lib/unistr/u32-strncpy.c: Likewise.
29455         * lib/unistr/u32-strnlen.c: Likewise.
29456         * lib/unistr/u32-strpbrk.c: Likewise.
29457         * lib/unistr/u32-strrchr.c: Likewise.
29458         * lib/unistr/u32-strspn.c: Likewise.
29459         * lib/unistr/u32-strstr.c: Likewise.
29460         * lib/unistr/u32-strtok.c: Likewise.
29461         * lib/unistr/u32-to-u16.c: Likewise.
29462         * lib/unistr/u32-to-u8.c: Likewise.
29463         * lib/unistr/u32-uctomb.c: Likewise.
29464         * lib/unistr/u8-check.c: Likewise.
29465         * lib/unistr/u8-chr.c: Likewise.
29466         * lib/unistr/u8-cmp.c: Likewise.
29467         * lib/unistr/u8-cpy-alloc.c: Likewise.
29468         * lib/unistr/u8-cpy.c: Likewise.
29469         * lib/unistr/u8-endswith.c: Likewise.
29470         * lib/unistr/u8-mblen.c: Likewise.
29471         * lib/unistr/u8-mbsnlen.c: Likewise.
29472         * lib/unistr/u8-mbtouc-aux.c: Likewise.
29473         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29474         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29475         * lib/unistr/u8-mbtouc.c: Likewise.
29476         * lib/unistr/u8-mbtoucr.c: Likewise.
29477         * lib/unistr/u8-move.c: Likewise.
29478         * lib/unistr/u8-next.c: Likewise.
29479         * lib/unistr/u8-prev.c: Likewise.
29480         * lib/unistr/u8-set.c: Likewise.
29481         * lib/unistr/u8-startswith.c: Likewise.
29482         * lib/unistr/u8-stpcpy.c: Likewise.
29483         * lib/unistr/u8-stpncpy.c: Likewise.
29484         * lib/unistr/u8-strcat.c: Likewise.
29485         * lib/unistr/u8-strchr.c: Likewise.
29486         * lib/unistr/u8-strcmp.c: Likewise.
29487         * lib/unistr/u8-strcpy.c: Likewise.
29488         * lib/unistr/u8-strcspn.c: Likewise.
29489         * lib/unistr/u8-strdup.c: Likewise.
29490         * lib/unistr/u8-strlen.c: Likewise.
29491         * lib/unistr/u8-strmblen.c: Likewise.
29492         * lib/unistr/u8-strmbtouc.c: Likewise.
29493         * lib/unistr/u8-strncat.c: Likewise.
29494         * lib/unistr/u8-strncmp.c: Likewise.
29495         * lib/unistr/u8-strncpy.c: Likewise.
29496         * lib/unistr/u8-strnlen.c: Likewise.
29497         * lib/unistr/u8-strpbrk.c: Likewise.
29498         * lib/unistr/u8-strrchr.c: Likewise.
29499         * lib/unistr/u8-strspn.c: Likewise.
29500         * lib/unistr/u8-strstr.c: Likewise.
29501         * lib/unistr/u8-strtok.c: Likewise.
29502         * lib/unistr/u8-to-u16.c: Likewise.
29503         * lib/unistr/u8-to-u32.c: Likewise.
29504         * lib/unistr/u8-uctomb-aux.c: Likewise.
29505         * lib/unistr/u8-uctomb.c: Likewise.
29506         * lib/unitypes.h: Likewise.
29507         * lib/uniwidth.h: Likewise.
29508         * lib/uniwidth/cjk.h: Likewise.
29509         * lib/uniwidth/u16-strwidth.c: Likewise.
29510         * lib/uniwidth/u16-width.c: Likewise.
29511         * lib/uniwidth/u32-strwidth.c: Likewise.
29512         * lib/uniwidth/u32-width.c: Likewise.
29513         * lib/uniwidth/u8-strwidth.c: Likewise.
29514         * lib/uniwidth/u8-width.c: Likewise.
29515         * lib/uniwidth/width.c: Likewise.
29516
29517 2007-10-07  Bruno Haible  <bruno@clisp.org>
29518
29519         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
29520         The file is still under LGPL (see modules/inttypes).
29521
29522 2007-10-06  Bruno Haible  <bruno@clisp.org>
29523
29524         * modules/trunc (Dependencies): Add 'extensions'.
29525         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
29526         Reported by Ben Pfaff <blp@gnu.org>.
29527
29528 2007-10-06  Bruno Haible  <bruno@clisp.org>
29529
29530         * modules/freopen-tests: New file.
29531         * tests/test-freopen.c: New file.
29532
29533         * modules/fopen-tests: New file.
29534         * tests/test-fopen.c: New file.
29535
29536         * modules/fopen: New file.
29537         * lib/fopen.c: New file.
29538         * m4/fopen.m4: New file.
29539         * modules/freopen: New file.
29540         * lib/freopen.c: New file.
29541         * m4/freopen.m4: New file.
29542         * lib/stdio.in.h (fopen, freopen): New declarations.
29543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
29544         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29545         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
29546         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29547         * doc/functions/fopen.texi: Mention the 'fopen' module.
29548         * doc/functions/freopen.texi: Mention the 'freopen' module.
29549
29550 2007-10-06  Bruno Haible  <bruno@clisp.org>
29551
29552         * modules/open-tests: New file.
29553         * tests/test-open.c: New file.
29554
29555         * modules/open: New file.
29556         * lib/open.c: New file.
29557         * m4/open.m4: New file.
29558         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
29559         lib/open.c does.
29560         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
29561         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
29562         macros.
29563         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
29564         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
29565         REPLACE_OPEN.
29566         * doc/functions/open.texi: Mention the 'open' module.
29567
29568 2007-10-04  Bruno Haible  <bruno@clisp.org>
29569
29570         * modules/ceill-tests: New file.
29571         * tests/test-ceill.c: New file.
29572
29573         * modules/ceill: New file.
29574         * lib/ceill.c: Replace entire file.
29575         * m4/ceill.m4: New file.
29576         * lib/math.in.h (ceill): Replace declaration.
29577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
29578         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
29579         * doc/functions/ceill.texi: Mention the 'ceill' module.
29580         * modules/mathl (Files): Remove lib/ceill.c.
29581         (Depends-on): Add ceill.
29582
29583 2007-10-04  Bruno Haible  <bruno@clisp.org>
29584
29585         * modules/ceilf-tests: New file.
29586         * tests/test-ceilf.c: New file.
29587
29588         * modules/ceilf: New file.
29589         * lib/ceil.c: New file.
29590         * lib/ceilf.c: New file.
29591         * m4/ceilf.m4: New file.
29592         * lib/math.in.h (ceilf): New declaration.
29593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
29594         HAVE_DECL_CEILF.
29595         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
29596         HAVE_DECL_CEILF.
29597         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
29598
29599 2007-10-04  Bruno Haible  <bruno@clisp.org>
29600
29601         * modules/floorl-tests: New file.
29602         * tests/test-floorl.c: New file.
29603
29604         * modules/floorl: New file.
29605         * lib/floorl.c: Replace entire file.
29606         * m4/floorl.m4: New file.
29607         * lib/math.in.h (floorl): Replace declaration.
29608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
29609         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
29610         * doc/functions/floorl.texi: Mention the 'floorl' module.
29611         * modules/mathl (Files): Remove lib/floorl.c.
29612         (Depends-on): Add floorl.
29613
29614 2007-10-04  Bruno Haible  <bruno@clisp.org>
29615
29616         * modules/floorf-tests: New file.
29617         * tests/test-floorf.c: New file.
29618
29619         * modules/floorf: New file.
29620         * lib/floor.c: New file.
29621         * lib/floorf.c: New file.
29622         * m4/floorf.m4: New file.
29623         * lib/math.in.h (floorf): New declaration.
29624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
29625         HAVE_DECL_FLOORF.
29626         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
29627         HAVE_DECL_FLOORF.
29628         * doc/functions/floorf.texi: Mention the 'floorf' module.
29629
29630 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
29631             Bruno Haible  <bruno@clisp.org>
29632
29633         Advertise for the Git server instead of the CVS server.
29634         * doc/gnulib-intro.texi (Steady Development): Mention the Git
29635         repository instead of the CVS one.
29636         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
29637         about all VCS systems generically.
29638         * doc/gnulib.texi (Introduction): Capitalize `Git'.
29639
29640 2007-10-04  Bruno Haible  <bruno@clisp.org>
29641
29642         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
29643         means.
29644         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
29645
29646 2007-10-04  Bruno Haible  <bruno@clisp.org>
29647
29648         * modules/truncl-tests: New file.
29649         * tests/test-truncl.c: New file.
29650
29651         * modules/truncl: New file.
29652         * lib/truncl.c: New file.
29653         * m4/truncl.m4: New file.
29654         * lib/math.in.h (truncl): New declaration.
29655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
29656         HAVE_DECL_TRUNCL.
29657         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
29658         HAVE_DECL_TRUNCL.
29659         * doc/functions/truncl.texi: Mention the 'truncl' module.
29660
29661 2007-10-04  Bruno Haible  <bruno@clisp.org>
29662
29663         * modules/truncf-tests: New file.
29664         * tests/test-truncf.c: New file.
29665
29666         * modules/truncf: New file.
29667         * lib/trunc.c: Make paramerizable through USE_* macros.
29668         * lib/truncf.c: New file.
29669         * m4/truncf.m4: New file.
29670         * lib/math.in.h (truncf): New declaration.
29671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
29672         HAVE_DECL_TRUNCF.
29673         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
29674         HAVE_DECL_TRUNCF.
29675         * doc/functions/truncf.texi: Mention the 'truncf' module.
29676
29677 2007-10-03  Bruno Haible  <bruno@clisp.org>
29678
29679         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29680         augmentation also for tests modules.
29681         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
29682         * modules/atexit-tests (Makefile.am): Likewise.
29683         * modules/binary-io-tests (Makefile.am): Likewise.
29684         * modules/c-strcase-tests (Makefile.am): Likewise.
29685         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
29686         * modules/canonicalize-tests (Makefile.am): Likewise.
29687         * modules/closein-tests (Makefile.am): Likewise.
29688         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29689         * modules/freadahead-tests (Makefile.am): Likewise.
29690         * modules/fseek-tests (Makefile.am): Likewise.
29691         * modules/fseeko-tests (Makefile.am): Likewise.
29692         * modules/ftell-tests (Makefile.am): Likewise.
29693         * modules/ftello-tests (Makefile.am): Likewise.
29694         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
29695         * modules/isnanl-tests (Makefile.am): Likewise.
29696         * modules/lseek-tests (Makefile.am): Likewise.
29697         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29698         * modules/mbscasestr-tests (Makefile.am): Likewise.
29699         * modules/mbschr-tests (Makefile.am): Likewise.
29700         * modules/mbscspn-tests (Makefile.am): Likewise.
29701         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29702         * modules/mbspbrk-tests (Makefile.am): Likewise.
29703         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29704         * modules/mbsrchr-tests (Makefile.am): Likewise.
29705         * modules/mbsspn-tests (Makefile.am): Likewise.
29706         * modules/mbsstr-tests (Makefile.am): Likewise.
29707         * modules/printf-posix-tests (Makefile.am): Likewise.
29708         * modules/snprintf-posix-tests (Makefile.am): Likewise.
29709         * modules/sprintf-posix-tests (Makefile.am): Likewise.
29710         * modules/tsearch-tests (Makefile.am): Likewise.
29711         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29712         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29713         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29714         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29715         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29716         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29717         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29718         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29719         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
29720         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
29721         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29722         * modules/xstrtol-tests (Makefile.am): Likewise.
29723         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29724         * modules/yesno-tests (Makefile.am): Likewise.
29725
29726 2007-10-03  Bruno Haible  <bruno@clisp.org>
29727
29728         * modules/trunc-tests: New file.
29729         * tests/test-trunc.c: New file.
29730
29731         * modules/trunc: New file.
29732         * lib/trunc.c: New file.
29733         * m4/trunc.m4: New file.
29734         * lib/math.in.h (trunc): New declaration.
29735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
29736         HAVE_DECL_TRUNC.
29737         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
29738         HAVE_DECL_TRUNC.
29739         * doc/functions/trunc.texi: Mention the 'trunc' module.
29740
29741 2007-10-03  Bruno Haible  <bruno@clisp.org>
29742
29743         * tests/test-fpending.c: New file, mostly copied
29744         from coreutils/lib/t-fpending.c.
29745         * modules/fpending-tests: New file.
29746
29747 2007-10-03  Bruno Haible  <bruno@clisp.org>
29748
29749         Port the stdio extensions to QNX (untested).
29750         * lib/fseterr.c (fseterr): Add support for QNX.
29751         * lib/fbufmode.c (fbufmode): Likewise.
29752         * lib/freadable.c (freadable): Likewise.
29753         * lib/fwritable.c (fwritable): Likewise.
29754         * lib/freading.c (freading): Likewise.
29755         * lib/fwriting.c (fwriting): Likewise.
29756         * lib/freadahead.c (freadahed): Likewise.
29757         * lib/fpurge.c (fpurge): Likewise.
29758         * lib/fseeko.c (rpl_fseeko): Likewise.
29759
29760 2007-10-03  Bruno Haible  <bruno@clisp.org>
29761             Jim Meyering  <jim@meyering.net>
29762             Eric Blake  <ebb9@byu.net>
29763
29764         * doc/relocatable.texi: Use @command instead of @program.
29765
29766 2007-10-02  Jim Meyering  <jim@meyering.net>
29767
29768         Perform one more "_.h" -> ".in.h" substitution.
29769         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
29770         instead of unistd_.h here, too.
29771
29772 2007-10-01  Bruno Haible  <bruno@clisp.org>
29773
29774         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
29775         Needed for the alloca-opt module.
29776
29777 2007-09-30  Bruno Haible  <bruno@clisp.org>
29778
29779         * lib/alloca.in.h: Renamed from lib/alloca_.h.
29780         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
29781         alloca_.h.
29782         * lib/argz.in.h: Renamed from lib/argz_.h.
29783         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
29784         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
29785         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
29786         byteswap_.h.
29787         * lib/dirent.in.h: Renamed from lib/dirent_.h.
29788         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
29789         dirent_.h.
29790         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
29791         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
29792         fcntl_.h.
29793         * lib/float.in.h: Renamed from lib/float_.h.
29794         * modules/float (Files, Makefile.am): Use float.in.h instead of
29795         float_.h.
29796         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
29797         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
29798         fnmatch_.h.
29799         * lib/getopt.in.h: Renamed from lib/getopt_.h.
29800         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
29801         getopt_.h.
29802         * lib/glob.in.h: Renamed from lib/glob_.h.
29803         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
29804         * lib/iconv.in.h: Renamed from lib/iconv_.h.
29805         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
29806         iconv_.h.
29807         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
29808         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
29809         inttypes_.h.
29810         * lib/locale.in.h: Renamed from lib/locale_.h.
29811         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
29812         locale_.h.
29813         * lib/math.in.h: Renamed from lib/math_.h.
29814         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
29815         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
29816         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
29817         of netinet_in_.h. Add dependency.
29818         * lib/poll.in.h: Renamed from lib/poll_.h.
29819         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
29820         * lib/search.in.h: Renamed from lib/search_.h.
29821         * modules/search (Files, Makefile.am): Use search.in.h instead of
29822         search_.h.
29823         * lib/signal.in.h: Renamed from lib/signal_.h.
29824         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
29825         _signal.h.
29826         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
29827         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
29828         stdbool_.h.
29829         * lib/stdint.in.h: Renamed from lib/stdint_.h.
29830         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
29831         stdint_.h.
29832         * lib/stdio.in.h: Renamed from lib/stdio_.h.
29833         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
29834         stdio_.h.
29835         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
29836         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
29837         stdlib_.h.
29838         * lib/string.in.h: Renamed from lib/string_.h.
29839         * modules/string (Files, Makefile.am): Use string.in.h instead of
29840         string_.h.
29841         * doc/gnulib-tool.texi (Initial import): Update.
29842         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
29843         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
29844         of sys_select_.h. Add dependency.
29845         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
29846         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
29847         of sys_socket_.h.
29848         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
29849         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
29850         sys_stat_.h.
29851         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
29852         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
29853         sys_time_.h.
29854         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
29855         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
29856         sysexits_.h.
29857         * lib/time.in.h: Renamed from lib/time_.h.
29858         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
29859         * lib/unistd.in.h: Renamed from lib/unistd_.h.
29860         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
29861         unistd_.h.
29862         * lib/wchar.in.h: Renamed from lib/wchar_.h.
29863         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
29864         wchar_.h.
29865         * lib/wctype.in.h: Renamed from lib/wctype_.h.
29866         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
29867         wctype_.h.
29868         * build-aux/bootstrap (slurp): Update.
29869         * lib/.cppi-disable: Update.
29870
29871 2007-09-30  Bruno Haible  <bruno@clisp.org>
29872
29873         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
29874         Needed on BeOS.
29875
29876 2007-09-30  Bruno Haible  <bruno@clisp.org>
29877
29878         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
29879
29880 2007-09-29  Bruno Haible  <bruno@clisp.org>
29881
29882         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
29883
29884 2007-09-29  Bruno Haible  <bruno@clisp.org>
29885
29886         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
29887         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
29888         * build-aux/install-reloc: Compile also areadlink.c.
29889         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
29890
29891 2007-09-29  Bruno Haible  <bruno@clisp.org>
29892
29893         * gnulib-tool (func_emit_initmacro_done): Indentation.
29894
29895 2007-09-29  Bruno Haible  <bruno@clisp.org>
29896
29897         * README: Add CVS checkout update instructions.
29898         Info from Bob Proulx <bob@proulx.com>.
29899
29900 2007-09-28  Eric Blake  <ebb9@byu.net>
29901
29902         Provide move-if-change.
29903         * build-aux/move-if-change: New file, based on best practice
29904         rather than any canonical upstream location.
29905
29906 2007-09-28  Jim Meyering  <jim@meyering.net>
29907
29908         Fix canonicalize loop-detection corner case.
29909         Do not attempt to stat the symlink values stored via seen_triple.
29910         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
29911         on linux-2.6.18, (but not 2.6.22).
29912         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
29913         triple_compare.  The former compares dev,ino,filename, while the latter
29914         would actually stat dirname(filename) when dev and ino were equal.
29915         * lib/hash-triple.c: Install <string.h>.
29916         (STREQ): Define.
29917         (triple_compare_ino_str): New function.
29918         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
29919
29920 2007-09-28  Eric Blake  <ebb9@byu.net>
29921
29922         Enforce that AC_REPLACE_FUNCS files exist.
29923         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
29924         override check for typos.
29925
29926         Fix test-closein on Solaris 10.
29927         * tests/test-closein.c (main): Don't assume stdin can be inherited
29928         closed on all systems.
29929         * tests/test-closein.sh: Likewise.
29930         Reported by Piotr Tarnowski.
29931
29932 2007-09-28  Jim Meyering  <jim@meyering.net>
29933
29934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
29935
29936 2007-09-27  Jim Meyering  <jim@meyering.net>
29937
29938         canonicalize: Avoid a false-positive cycle failure.
29939         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
29940         Sort.  Remove cycle-check.
29941         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
29942         not cycle-check.h.
29943         (seen_triple): New function.
29944         (canonicalize_filename_mode): Use it instead of cycle-check.
29945         * tests/test-canonicalize.c: Add a test for this bug.
29946         * tests/test-canonicalize.sh: Set up and run the test.
29947
29948         New module, file-set, from coreutils.
29949         * modules/file-set: Define it.
29950         * lib/file-set.c, lib/file-set.h: Implement.
29951
29952         New module, hash-triple, from coreutils.
29953         * modules/hash-triple: Define it.
29954         * lib/hash-triple.c, lib/hash-triple.h: Implement.
29955
29956 2007-09-25  Eric Blake  <ebb9@byu.net>
29957
29958         Fix strerror on Interix.
29959         * lib/string_.h (strerror): Declare replacement.
29960         * doc/functions/strerror.texi (strerror): Document the Interix
29961         shortcoming.
29962         * modules/string (Makefile.am): Support new hooks.
29963         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
29964         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
29965         gl_FUNC_STRERROR_SEPARATE.
29966         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
29967         * lib/strerror.c (rpl_strerror): Provide replacement.
29968         * modules/strerror (Depends-on): Add string.
29969         (configure.ac): Detect use of module.
29970         * tests/test-strerror.c: New file.
29971         * modules/strerror-tests: New test module.
29972         * modules/argp (Depends-on): Add strerror.
29973         * modules/error (Depends-on): Likewise.
29974         Reported by Martin Koeppe.
29975
29976 2007-09-24  Bruno Haible  <bruno@clisp.org>
29977
29978         * README: Update git instructions.
29979
29980 2007-09-24  Eric Blake  <ebb9@byu.net>
29981
29982         Revert fpending breakage from 2007-09-08.
29983         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
29984         __fpending.c.
29985
29986 2007-09-24  Jim Meyering  <jim@meyering.net>
29987
29988         filenamecat.c: Add a test.
29989         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
29990         showing how the function works when DIR is the empty string.
29991
29992 2007-09-21  Simon Josefsson  <simon@josefsson.org>
29993
29994         * tests/test-canonicalize.sh: Turn on executable bit.
29995
29996 2007-09-19  Eric Blake  <ebb9@byu.net>
29997
29998         * README: Update CVS instructions.
29999
30000 2007-09-18  Bruno Haible  <bruno@clisp.org>
30001
30002         * modules/areadlink: New file.
30003         * lib/areadlink.h (areadlink): New declaration.
30004         * lib/areadlink.c: New file, based on lib/xreadlink.c.
30005
30006 2007-09-17  Jim Meyering  <jim@meyering.net>
30007
30008         * lib/savewd.c (ESTALE) [!defined]: Define.
30009         Reported to be required on Interix by Martin Koeppe.
30010
30011 2007-09-17  Bruno Haible  <bruno@clisp.org>
30012
30013         * gnulib-tool (func_version): Use $version.
30014
30015 2007-09-16  Bruno Haible  <bruno@clisp.org>
30016
30017         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30018         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30019         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30020         Reported by Greg Schafer <gschafer@zip.com.au>.
30021
30022 2007-09-15  Bruno Haible  <bruno@clisp.org>
30023
30024         * gnulib-tool (sed): Try a little harder to make bash understand the
30025         alias.
30026         Reported by Bruce Korb <bruce.korb@gmail.com>.
30027
30028 2007-09-13  Eric Blake  <ebb9@byu.net>
30029
30030         * ChangeLog: Remove conflict markers.
30031
30032 2007-09-13  Simon Josefsson  <simon@josefsson.org>
30033
30034         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30035         Reported by Bruno Haible <bruno@clisp.org>.
30036
30037 2007-09-12  Bruno Haible  <bruno@clisp.org>
30038
30039         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30040         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30041         is not defined.
30042
30043 2007-09-12  Eric Blake  <ebb9@byu.net>
30044
30045         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30046         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30047         Autoconf definition.
30048         * modules/euidaccess (Depends-on): Add extensions, for
30049         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30050         * modules/fnmatch (Depends-on): Likewise.
30051         * modules/getaddrinfo (Depends-on): Likewise.
30052         * modules/getdelim (Depends-on): Likewise.
30053         * modules/getline (Depends-on): Likewise.
30054         * modules/getsubopt (Depends-on): Likewise.
30055         * modules/gettext (Depends-on): Likewise.
30056         * modules/group-member (Depends-on): Likewise.
30057         * modules/mbchar (Depends-on): Likewise.
30058         * modules/memmem (Depends-on): Likewise.
30059         * modules/mempcpy (Depends-on): Likewise.
30060         * modules/memrchr (Depends-on): Likewise.
30061         * modules/pagealign_alloc (Depends-on): Likewise.
30062         * modules/readutmp (Depends-on): Likewise.
30063         * modules/stpcpy (Depends-on): Likewise.
30064         * modules/stpncpy (Depends-on): Likewise.
30065         * modules/strchrnul (Depends-on): Likewise.
30066         * modules/strndup (Depends-on): Likewise.
30067         * modules/strsep (Depends-on): Likewise.
30068         * modules/strverscmp (Depends-on): Likewise.
30069         * modules/vasprintf (Depends-on): Likewise.
30070         * modules/wcwidth (Depends-on): Likewise.
30071         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30072         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30073         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30074         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30075         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30076         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30077         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30078         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30079         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30080         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30081         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30082         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30083         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30084         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30085         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30086         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30087         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30088         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30089         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30090         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30091         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30092         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30093         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30094         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30095         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30096         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30097         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30098         so that lock.m4 can be used in gettext without extensions module.
30099
30100 2007-09-11  Bruno Haible  <bruno@clisp.org>
30101
30102         * m4/isc-posix.m4: Remove file.
30103         Suggested by Eric Blake.
30104
30105 2007-09-11  Eric Blake  <ebb9@byu.net>
30106
30107         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30108
30109 2007-09-10  Bruno Haible  <bruno@clisp.org>
30110
30111         * posix-modules: Fix typo in error message.
30112         Reported by Matt <mkraai@beckman.com>.
30113
30114 2007-09-09  Bruno Haible  <bruno@clisp.org>
30115
30116         * doc/functions/getdelim.texi: Update list of platforms lacking the
30117         function.
30118         * doc/functions/getline.texi: Likewise.
30119
30120 2007-09-09  Jim Meyering  <jim@meyering.net>
30121
30122         * lib/hash.c (hash_initialize): Detect calloc failure.
30123         Reported by Bruno Haible.
30124
30125 2007-09-09  Bruno Haible  <bruno@clisp.org>
30126
30127         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30128         malloc or realloc fails.
30129
30130 2007-09-09  Bruno Haible  <bruno@clisp.org>
30131
30132         * modules/getcwd (Depends-on): Add malloc-posix.
30133         * modules/glob (Depends-on): Likewise.
30134         * modules/putenv (Depends-on): Likewise.
30135         * modules/strdup (Depends-on): Likewise.
30136         * modules/getdelim (Depends-on): Add realloc-posix.
30137         * modules/read-file (Depends-on): Likewise.
30138
30139 2007-09-09  Bruno Haible  <bruno@clisp.org>
30140
30141         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30142         (gl_FUNC_MALLOC_POSIX): Require it.
30143         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30144         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30145         * modules/realloc (Files): Add m4/malloc.m4.
30146         * modules/calloc (Files): Likewise.
30147
30148 2007-09-09  Bruno Haible  <bruno@clisp.org>
30149
30150         * modules/malloc-posix: New file.
30151         * modules/malloc (Depends-on): Add malloc-posix.
30152         * lib/malloc.c: Include errno.h.
30153         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30154         and a POSIX-compatible malloc into a single function. Set ENOMEM
30155         when returning NULL.
30156         * m4/malloc.m4: New file.
30157         * doc/functions/malloc.texi: Mention the malloc-posix module.
30158         * lib/stdlib_.h (malloc): New declaration.
30159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30160         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30161         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30162         and HAVE_MALLOC_POSIX.
30163
30164 2007-09-09  Bruno Haible  <bruno@clisp.org>
30165
30166         * modules/realloc-posix: New file.
30167         * modules/realloc (Depends-on): Add realloc-posix.
30168         * lib/realloc.c: Include errno.h.
30169         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30170         and a POSIX-compatible realloc into a single function. Set ENOMEM
30171         when returning NULL.
30172         * m4/realloc.m4: New file.
30173         * doc/functions/realloc.texi: Mention the realloc-posix module.
30174         * lib/stdlib_.h (realloc): New declaration.
30175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30176         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30177         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30178         and HAVE_REALLOC_POSIX.
30179
30180 2007-09-09  Bruno Haible  <bruno@clisp.org>
30181
30182         * modules/calloc-posix: New file.
30183         * modules/calloc (Depends-on): Add calloc-posix.
30184         * lib/calloc.c: Include errno.h.
30185         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30186         and a POSIX-compatible calloc into a single function. Set ENOMEM
30187         when returning NULL.
30188         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30189         * doc/functions/calloc.texi: Mention the calloc-posix module.
30190         * lib/stdlib_.h (calloc): New declaration.
30191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30192         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30193         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30194         and HAVE_CALLOC_POSIX.
30195
30196 2007-09-09  Bruno Haible  <bruno@clisp.org>
30197
30198         Allow for modules to show an arbitrary notice.
30199         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30200         * gnulib-tool: New option --extract-notice.
30201         (func_usage): Document it.
30202         (sed_extract_prog): Update.
30203         (func_get_notice): New function.
30204         (func_modules_notice): New function.
30205         (func_import, func_create_testdir): Invoke it.
30206         Suggested by Jim Meyering.
30207
30208 2007-09-09  Bruno Haible  <bruno@clisp.org>
30209
30210         * gnulib-tool: New options --verbose, --quiet.
30211         (func_usage): Document them.
30212         (verbose): New variable.
30213         (func_execute_command): New function.
30214         (func_import): Don't show the module list and the file list if
30215         $verbose < 0.
30216         (func_create_testdir): Likewise. Use func_execute_command.
30217         (func_create_megatestdir): Use func_execute_command.
30218
30219 2007-09-08  Bruno Haible  <bruno@clisp.org>
30220
30221         * gnulib-tool (func_import): Prefer rsync over wget when available,
30222         for fetching the PO files.
30223
30224 2007-09-08  Bruno Haible  <bruno@clisp.org>
30225
30226         * posix-modules: New file. Portions copied from gnulib-tool.
30227         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30228
30229 2007-09-08  Jim Meyering  <jim@meyering.net>
30230
30231         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30232         * lib/fpending.h: Rename from __fpending.h.
30233         * lib/fpending.c: Rename from __fpending.c.
30234         Include "fpending.h", not "__fpending.h".
30235         * lib/__fpending.h, lib/__fpending.c: Remove files.
30236         * modules/fpending (Files): Reflect new file names.
30237         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30238
30239 2007-09-08  Bruno Haible  <bruno@clisp.org>
30240
30241         * m4/inttypes-h.m4: Remove stub file.
30242
30243 2007-09-07  Simon Josefsson  <simon@josefsson.org>
30244
30245         * doc/headers/stdint.texi: Discuss #include_next issue.
30246
30247 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30248
30249         * build-aux/bootstrap: Remove obsolete comment about wget --help.
30250
30251 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30252
30253         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30254         in variable name.
30255
30256 2007-09-03  Jim Meyering  <jim@meyering.net>
30257
30258         New module: git-version-gen.
30259         * modules/git-version-gen: New file.
30260
30261         Import changes from coreutils for bootstrap script.
30262
30263         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30264
30265         bootstrap: uses rsync to download the .po files
30266         * build-aux/bootstrap (po_download_command_format): New global.
30267         (download_po_files): Use rsync.
30268         (update_po_files): Don't remove .po files after download,
30269         so future rsync runs can take advantage of the copies.
30270
30271         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30272
30273         Solve the unnecessary-.po-file-regeneration problem once and for all.
30274         * build-aux/bootstrap (download_po_files): New function, renamed from
30275         get_translations.  Now, downloads, but doesn't update LINGUAS.
30276         (update_po_files): New function.
30277
30278         bootstrap: Ignore more.
30279         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30280         uniwidth to e.g., lib/.gitignore.
30281         (slurp): Handle the sys_stat_.h -> sys mapping, too.
30282
30283         * build-aux/bootstrap: New setting: vc_ignore.
30284         (insert_sorted_if_absent): Create $file if absent.
30285         Adapt to new, possibly empty, list: $vc_ignore.
30286
30287         bootstrap: generate more ignorable names
30288         * build-aux/bootstrap (slurp): When generating ignorable names,
30289         also map .sin to .sed, .gperf to .c, and .y to .c.
30290
30291 2007-09-03  Jim Meyering  <jim@meyering.net>
30292
30293         * build-aux/git-version-gen: New file, from coreutils.  For details, see
30294         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
30295
30296 2007-09-02  Bruno Haible  <bruno@clisp.org>
30297
30298         Fix mis-recognition of 'mcs' on QNX 6.
30299         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
30300         output contains the string "Mono".
30301         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
30302         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
30303
30304 2007-09-01  Bruno Haible  <bruno@clisp.org>
30305
30306         Fix collision between uniwidth/* and linebreak modules.
30307         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
30308         u32_width): Remove declarations.
30309         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
30310         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
30311         streq3, streq2, streq1, streq0): Remove functions.
30312         (STREQ): Remove macro.
30313         (is_cjk_encoding): Remove function.
30314         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
30315         (uc_width, u8_width, u16_width, u32_width): Remove functions.
30316         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
30317         * NEWS: Document the change.
30318
30319 2007-09-01  Bruno Haible  <bruno@clisp.org>
30320
30321         * lib/streq.h: Add double-inclusion guard.
30322
30323 2007-09-01  Karl Berry  <karl@gnu.org>
30324
30325         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
30326
30327 2007-08-28  Jim Meyering  <jim@meyering.net>
30328
30329         Rename mreadlink_with_size to areadlink_with_size.
30330         * NEWS: Document the change.
30331         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
30332         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
30333         * lib/mreadlink.h: Rename this to...
30334         * lib/areadlink.h: ...this.
30335         * modules/mreadlink-with-size: Rename this to...
30336         * modules/areadlink-with-size: ...this.
30337         * lib/canonicalize.c: Reflect the renaming.
30338         * modules/canonicalize: Likewise.
30339
30340 2007-08-26  Bruno Haible  <bruno@clisp.org>
30341
30342         * gnulib-tool (func_import): When deciding which files to remove,
30343         consider also dangling symbolic links.
30344         Reported by Eric Blake.
30345
30346 2007-08-26  Bruno Haible  <bruno@clisp.org>
30347
30348         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
30349
30350 2007-08-23  Simon Josefsson  <simon@josefsson.org>
30351
30352         * lib/readline.c: Don't include getline.h, the prototype is now
30353         found in stdio.h.
30354
30355 2007-08-23  Jim Meyering  <jim@meyering.net>
30356
30357         Getdelim touchup.
30358         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
30359         around the funlockfile call, since funlockfile never sets errno.
30360         Don't set errno upon failed realloc.
30361
30362 2007-08-22  Eric Blake  <ebb9@byu.net>
30363
30364         Getline touchups.
30365         * lib/getdelim.c (getdelim): Revert regression that required *n to
30366         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
30367         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
30368         getdelim, rather than whether implementation is missing.
30369         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
30370         * lib/stdio_.h (getline): Also declare if replacement is
30371         required.
30372         * doc/functions/getdelim.texi: New file.
30373         * doc/functions/getline.texi: Likewise.
30374         * doc/gnulib.texi (Function Substitutes): Add new files.
30375         Reported by Bruno Haible.
30376
30377 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
30378
30379         * users.txt: Add Guile.
30380
30381 2007-08-22  Eric Blake  <ebb9@byu.net>
30382
30383         * tests/test-getdelim.c (main): Use remove, not unlink.
30384         * tests/test-getline.c (main): Likewise.
30385
30386         Move getline and getdelim into stdio.h, per POSIX 200x.
30387         * modules/getline (Files): Remove getline.h.
30388         (Depends-on): Add stdio.
30389         (configure.ac): Add module indicator.
30390         * modules/getdelim (Files): Remove getdelim.h.
30391         (Depends-on): Add stdio.
30392         (configure.ac): Add module indicator.
30393         * modules/stdio (Makefile.am): Work with new indicators.
30394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30395         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
30396         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30397         * lib/getdelim.h: Delete.
30398         * lib/getline.h: Delete.
30399         * lib/stdio_.h (getdelim, getline): Declare.
30400         * modules/getdelim-tests: New module.
30401         * modules/getline-tests: Likewise.
30402         * tests/test-getdelim.c: New file.
30403         * tests/test-getline.c: Likewise.
30404         * NEWS: Document the change.
30405         * lib/getline.c: Update choice of header.
30406         * lib/csharpcomp.c: Likewise.
30407         * lib/getpass.c: Likewise.
30408         * lib/javacomp.c: Likewise.
30409         * lib/javaversion.c: Likewise.
30410         * lib/yesno.c: Likewise.
30411         * lib/getdelim.c: Likewise.
30412         (getdelim): Set errno on failure, and avoid memory leak.
30413
30414 2007-08-19  Bruno Haible  <bruno@clisp.org>
30415
30416         * modules/closein (Depends-on): Add freadahead.
30417         * lib/closein.c: Include freadahead.h.
30418         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
30419         is zero.
30420
30421 2007-08-19  Bruno Haible  <bruno@clisp.org>
30422
30423         * modules/freadahead-tests: New file.
30424         * tests/test-freadahead.sh: New file.
30425         * tests/test-freadahead.c: New file.
30426
30427         * modules/freadahead: New file.
30428         * lib/freadahead.h: New file.
30429         * lib/freadahead.c: New file.
30430         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
30431         fbufmode, fpurge, freadable, fwritable.
30432
30433 2007-08-19  Eric Blake  <ebb9@byu.net>
30434
30435         Test yesno in combination with closein.
30436         * lib/yesno.c (yesno): Document use of stdin.
30437         * modules/yesno-tests (Files): New module.
30438         * tests/test-yesno.c (main): New file.
30439         * tests/test-yesno.sh: Likewise.
30440
30441 2007-08-19  Bruno Haible  <bruno@clisp.org>
30442
30443         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
30444         * lib/fseeko.c (rpl_fseeko): Likewise.
30445         * lib/fseterr.c (fseterr): Likewise.
30446
30447 2007-08-19  Bruno Haible  <bruno@clisp.org>
30448
30449         * tests/test-lseek.c (main): Disable a test for BeOS.
30450         * doc/functions/lseek.texi: Document the BeOS bug.
30451
30452 2007-08-19  Bruno Haible  <bruno@clisp.org>
30453             Eric Blake  <ebb9@byu.net>
30454
30455         * lib/lseek.c: Include <sys/stat.h>.
30456         (rpl_lseek): Add workaround code also for Unix platforms.
30457         Needed for BeOS.
30458         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
30459         * doc/functions/lseek.texi: Document BeOS definiency.
30460
30461 2007-08-18  Bruno Haible  <bruno@clisp.org>
30462
30463         * modules/fstrcmp-tests: New file.
30464         * tests/test-fstrcmp.c: New file.
30465
30466 2007-08-18  Bruno Haible  <bruno@clisp.org>
30467
30468         * modules/fstrcmp: New file, from GNU gettext with modifications.
30469         * lib/fstrcmp.h: New file, from GNU gettext.
30470         * lib/fstrcmp.c: New file, from GNU gettext.
30471         * MODULES.html.sh (String handling): Add fstrcmp.
30472
30473 2007-08-18  Bruno Haible  <bruno@clisp.org>
30474
30475         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
30476         'bool'.
30477         (diag, compareseq): Remove const from the ctxt argument.
30478         (USE_HEURISTIC): Undefine at the end.
30479
30480 2007-08-18  Jim Meyering  <jim@meyering.net>
30481
30482         New file: lib/idcache.h
30483         * NEWS: Mention the addition.
30484         * modules/idcache (Files): Add lib/idcache.h
30485         * lib/idcache.c: Include "idcache.h".
30486         Don't include <sys/types.h>.
30487         Add a FIXME comment.
30488         Move file-scoped "static" declarations to the top.
30489         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
30490
30491 2007-08-17  Bruno Haible  <bruno@clisp.org>
30492         and Paul Eggert  <eggert@cs.ucla.edu>
30493
30494         * MODULES.html.sh: Add diffseq.
30495         * modules/diffseq: New file.
30496         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
30497         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
30498
30499 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30500
30501         Import changes from coreutils for bootstrap script.
30502
30503         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
30504
30505         * build-aux/bootstrap (slurp): Work even in environments where
30506         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
30507         current code does not slurp files whose names start with ".", and
30508         this looks like it might be a troublesome area.
30509
30510         2007-07-11  Jim Meyering  <jim@meyering.net>
30511
30512         If there's a GPL vN copyright comment, require that N == 3.
30513
30514         2007-07-08  Jim Meyering  <jim@meyering.net>
30515
30516         Run the coreutils-specific code only if tests/Makefile.am.in exists.
30517         * build-aux/bootstrap (mam_template): Move definition out of loop.
30518
30519         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
30520
30521         * build-aux/bootstrap (symlink_to_dir): Rename function from
30522         symlink_to_gnulib.  Add a directory parameter.  Update all
30523         callers.
30524         (cp_mark_as_generated): Also check for -- and link to -- files in
30525         gl/.
30526
30527         2007-07-08  Jim Meyering  <jim@meyering.net>
30528
30529         Adapt to deeper hierarchy in gnulib.
30530         * build-aux/bootstrap (symlink_to_dir): If the destination
30531         directory doesn't exist, create it. This is required at least for
30532         "lib/uniwidth/cjk.h".
30533
30534         2007-05-15  Jim Meyering  <jim@meyering.net>
30535
30536         * build-aux/bootstrap: Now that generated Makefile.am files
30537         are no longer under version control, they must be created at
30538         bootstrap time.
30539
30540 2007-08-14  Ben Pfaff  <blp@gnu.org>
30541
30542         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
30543
30544 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30545
30546         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
30547         given the changes below.
30548         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
30549         even on hosts that have padding bits beyond the supported 64.
30550
30551 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30552
30553         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
30554         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
30555         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
30556         depends on it.
30557         (xstrtol_error): Remove.
30558         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
30559         but with a different signature.
30560         (ATTRIBUTE_NORETURN, __attribute__): New macros.
30561         * lib/xstrtol-error.c: Include exitfail.h.
30562         (xstrtol_fatal): New function, with a different signature from the
30563         old xstrtol_error, so that the caller need not worry about passing
30564         in an exit status, or about storage management of the option argument.
30565         (xstrtol_error): Now a static function.  Redo signature to
30566         implement xstrtol_fatal.  Output the correct number of hyphens in
30567         front of the option so that the caller need not worry about
30568         storage management.
30569         (N_): New macro.
30570         (_): Remove; not used now.
30571         * modules/xstrtol: Depend on getopt.
30572         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
30573         of old STRTOL_FATAL_ERROR macro.
30574         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
30575         of test program.
30576         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
30577         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
30578
30579 2007-08-08  Eric Blake  <ebb9@byu.net>
30580
30581         * lib/xstrtol-error.c: Add missing include.
30582
30583         Move xstrtol messages into gnulib domain, when --pobase is used.
30584         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
30585         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
30586         * modules/xstrtol (Files): Distribute new file.
30587         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
30588         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
30589         * tests/test-xstrtol.c: ...into new file.
30590         * tests/test-xstrtoul.c: Also test xstrtoul.
30591         * tests/test-xstrtoimax.c: Also test xstrtoimax.
30592         * tests/test-xstrtoumax.c: Also test xstrtoumax.
30593         * tests/test-xstrtol.sh: Drive the tests.
30594         * tests/test-xstrtoimax.sh: Likewise.
30595         * tests/test-xstrtoumax.sh: Likewise.
30596         * modules/xstrtol-tests: New module.
30597         * modules/xstrtoimax-tests: Likewise.
30598         * modules/xstrtoumax-tests: Likewise.
30599
30600 2007-08-08  Jim Meyering  <jim@meyering.net>
30601
30602         New function: mfile_name_concat.
30603         * lib/filenamecat.c (mfile_name_concat): New function, just like
30604         file_name_concat, but return NULL upon failure rather than exiting
30605         with a diagnostic.
30606         * lib/filenamecat.h: Declare it.
30607
30608 2007-08-07  Bruno Haible  <bruno@clisp.org>
30609
30610         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
30611         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
30612         warning from gcc.
30613         Reported by Eric Blake.
30614
30615 2007-08-07  Simon Josefsson  <simon@josefsson.org>
30616
30617         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
30618         * modules/crypto/arcfour (License): Likewise.
30619         * modules/crypto/des-tests (License): Likewise.
30620         * modules/crypto/gc-arctwo-tests (License): Likewise.
30621         * modules/crypto/gc-des-tests (License): Likewise.
30622         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
30623         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
30624         * modules/crypto/gc-md2-tests (License): Likewise.
30625         * modules/crypto/gc-md4-tests (License): Likewise.
30626         * modules/crypto/gc-md5-tests (License): Likewise.
30627         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
30628         * modules/crypto/gc-rijndael-tests (License): Likewise.
30629         * modules/crypto/gc-sha1-tests (License): Likewise.
30630         * modules/crypto/gc-tests (License): Likewise.
30631         * modules/crypto/hmac-md5 (License): Likewise.
30632         * modules/crypto/hmac-sha1 (License): Likewise.
30633         * modules/crypto/md2-tests (License): Likewise.
30634         * modules/crypto/md4-tests (License): Likewise.
30635         * modules/crypto/md5 (License): Likewise.
30636         * modules/crypto/rijndael (License): Likewise.
30637         * modules/crypto/sha1 (License): Likewise.
30638         * modules/memxor (License): Likewise.
30639
30640 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30641         and Bruno Haible  <bruno@clisp.org>
30642
30643         * NEWS: Describe interface changes to human, xstrtol.
30644         * lib/human.h: Include <xstrtol.h>.
30645         (human_options): Return enum strtol_error, not int.  Remove
30646         bool arg; take int * instead.
30647         * lib/human.c: Don't include "gettext.h".
30648         (_): Remove; no longer used.
30649         Don't include <xstrtol.h>, since human.h does it.
30650         (human_options): Adjust to abovementioned interface changes.
30651         Do not report error to stderr; that's now the caller's
30652         responsibility.
30653         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
30654         interface change.
30655         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
30656         Str, Argument_type_string.  All uses changed.  Put " argument"
30657         in diagnostics to make them clearer.  Change wording of suffix
30658         message for clarity.
30659         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
30660         Argument_type_string.
30661         (STRTOL_FATAL_WARN): Remove; no longer used.
30662         * modules/human (Depends-on): Remove gettext-h.
30663
30664 2007-08-06  Simon Josefsson  <simon@josefsson.org>
30665
30666         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
30667
30668 2007-07-31  Bruno Haible  <bruno@clisp.org>
30669
30670         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
30671         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
30672         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
30673
30674 2007-07-31  Bruno Haible  <bruno@clisp.org>
30675
30676         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
30677         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
30678
30679 2007-07-30  Bruno Haible  <bruno@clisp.org>
30680
30681         * modules/base64 (License): Use the synonymous term "LGPLv2+".
30682         * modules/c-ctype (License): Likewise.
30683         * modules/c-strcase (License): Likewise.
30684         * modules/check-version (License): Likewise.
30685         * modules/iconv (License): Likewise.
30686         * modules/iconv_open (License): Likewise.
30687         * modules/read-file (License): Likewise.
30688         * modules/striconv (License): Likewise.
30689         * modules/strverscmp (License): Likewise.
30690         * modules/vasprintf (License): Likewise.
30691         * modules/crypto/des (License): Likewise.
30692         * modules/crypto/gc (License): Likewise.
30693         * modules/crypto/gc-arcfour (License): Likewise.
30694         * modules/crypto/gc-arctwo (License): Likewise.
30695         * modules/crypto/gc-des (License): Likewise.
30696         * modules/crypto/gc-hmac-md5 (License): Likewise.
30697         * modules/crypto/gc-hmac-sha1 (License): Likewise.
30698         * modules/crypto/gc-md2 (License): Likewise.
30699         * modules/crypto/gc-md4 (License): Likewise.
30700         * modules/crypto/gc-md5 (License): Likewise.
30701         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
30702         * modules/crypto/gc-random (License): Likewise.
30703         * modules/crypto/gc-rijndael (License): Likewise.
30704         * modules/crypto/gc-sha1 (License): Likewise.
30705         * modules/crypto/md2 (License): Likewise.
30706         * modules/crypto/md4 (License): Likewise.
30707
30708 2007-07-30  Jim Meyering  <jim@meyering.net>
30709
30710         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
30711         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
30712         it has valid stat data.  This bug would cause du not to count the
30713         sizes of inaccessible directories.
30714         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
30715         in <http://bugzilla.redhat.com/250077>.
30716
30717 2007-07-25  Peter O'Gorman  <peter@pogma.com>
30718             Bruno Haible  <bruno@clisp.org>
30719
30720         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
30721         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
30722         #include_next, gives a diagnostic about it, but reports no error in
30723         the exit code.
30724         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30725
30726 2007-07-24  Ben Pfaff  <blp@gnu.org>
30727
30728         Improve name: "count-one-bits" is better than "popcount".
30729         * MODULES.html.sh: Update name.
30730         * lib/popcount.h: Renamed lib/count-one-bits.h.
30731         (popcount): Renamed count_one_bits.
30732         (popcountl): Renamed count_one_bits_l.
30733         (popcountll): Renamed count_one_bits_ll.
30734         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
30735         * modules/popcount: Renamed module/count-one-bits.
30736         * modules/popcount-tests: Renamed module/count-one-bits-tests.
30737         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
30738
30739 2007-07-23  Ben Pfaff  <blp@gnu.org>
30740
30741         * lib/popcount.h (popcount32): Reduce size of constants, to allow
30742         better code generation, and add U to large constants to avoid
30743         warnings, in non-GCC case.
30744         Suggested by Bruno Haible.
30745
30746 2007-07-23  Ben Pfaff  <blp@gnu.org>
30747
30748         * lib/popcount.h: Use verify_true instead of if...abort.
30749         * modules/popcount: Depend on verify module.
30750         Suggested by Jim Meyering.
30751
30752 2007-07-23  Bruno Haible  <bruno@clisp.org>
30753
30754         * gnulib-tool (func_import): Create a .cvsignore file also when the
30755         directory is not yet in CVS but the toplevel directory is. When
30756         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
30757         Reported by Karl Berry.
30758
30759 2007-07-22  Ben Pfaff  <blp@gnu.org>
30760
30761         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
30762         case.
30763         Suggested by Eric Blake.
30764
30765 2007-07-22  Ben Pfaff  <blp@gnu.org>
30766
30767         New module: popcount.
30768         * MODULES.html.sh: Add popcount.
30769         * modules/popcount: New file.
30770         * modules/popcount-tests: New file.
30771         * tests/test-popcount.c: New file.
30772         * lib/popcount.h: New file.
30773         * m4/popcount.m4: New file.
30774
30775 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30776
30777         * build-aux/announce-gen: Update to GPLv3.
30778
30779         * build-aux/config.guess: Update from config.
30780
30781 2007-07-21  Bruno Haible  <bruno@clisp.org>
30782
30783         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
30784         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
30785
30786 2007-07-20  Jim Meyering  <jim@meyering.net>
30787
30788         * check-module: Diagnose a self-dependency.
30789
30790 2007-07-19  Bruno Haible  <bruno@clisp.org>
30791
30792         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
30793         empty.
30794         Reported by Eric Blake.
30795
30796 2007-07-18  Bruno Haible  <bruno@clisp.org>
30797
30798         * gnulib-tool: New options --po-base, --po-domain.
30799         (func_usage): Document them.
30800         (pobase, po_domain): New variables.
30801         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
30802         DEFAULT_TEXT_DOMAIN.
30803         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
30804         (func_import): Consider pobase and po_domain. Create a po/ directory.
30805         (func_create_testdir): Set pobase and po_domain to empty.
30806         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
30807         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
30808
30809 2007-07-18  Bruno Haible  <bruno@clisp.org>
30810
30811         * gnulib-tool (func_get_automake_snippet): Synthesize also an
30812         EXTRA_DIST augmentation for files in build-aux/.
30813
30814 2007-07-16  Bruno Haible  <bruno@clisp.org>
30815
30816         * modules/lseek (License): Use the synonymous term "LGPLv2+".
30817         * modules/getdelim (License): Likewise.
30818
30819 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30820
30821         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
30822         * modules/d-type (License): Likewise.
30823         * modules/extensions (License): Likewise.
30824         * modules/fnmatch (License): Likewise.
30825         * modules/fseeko (License): Likewise.
30826         * modules/getaddrinfo (License): Likewise.
30827         * modules/getline (License): Likewise.
30828         * modules/getlogin_r (License): Likewise.
30829         * modules/getpass (License): Likewise.
30830         * modules/gettimeofday (License): Likewise.
30831         * modules/glob (License): Likewise.
30832         * modules/inet_ntop (License): Likewise.
30833         * modules/malloc (License): Likewise.
30834         * modules/malloca (License): Likewise.
30835         * modules/memmem (License): Likewise.
30836         * modules/mempcpy (License): Likewise.
30837         * modules/memset (License): Likewise.
30838         * modules/minmax (License): Likewise.
30839         * modules/mktime (License): Likewise.
30840         * modules/netinet_in (License): Likewise.
30841         * modules/pathmax (License): Likewise.
30842         * modules/poll (License): Likewise.
30843         * modules/regex (License): Likewise.
30844         * modules/snprintf (License): Likewise.
30845         * modules/stdbool (License): Likewise.
30846         * modules/stdint (License): Likewise.
30847         * modules/stdio (License): Likewise.
30848         * modules/strcase (License): Likewise.
30849         * modules/strcasestr (License): Likewise.
30850         * modules/strdup (License): Likewise.
30851         * modules/string (License): Likewise.
30852         * modules/strndup (License): Likewise.
30853         * modules/strnlen (License): Likewise.
30854         * modules/strpbrk (License): Likewise.
30855         * modules/strptime (License): Likewise.
30856         * modules/strsep (License): Likewise.
30857         * modules/sys_select (License): Likewise.
30858         * modules/sys_socket (License): Likewise.
30859         * modules/sys_stat (License): Likewise.
30860         * modules/sys_time (License): Likewise.
30861         * modules/time (License): Likewise.
30862         * modules/time_r (License): Likewise.
30863         * modules/timegm (License): Likewise.
30864         * modules/unistd (License): Likewise.
30865         * modules/vsnprintf (License): Likewise.
30866         * modules/wctype (License): Likewise.
30867
30868 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30869
30870         * modules/argz (License): LGPLv2+.
30871
30872 2007-07-15  Karl Berry  <karl@gnu.org>
30873
30874         * doc/gnulib.texi: revise node structure per new fdl.texi.
30875
30876 2007-07-14  Bruno Haible  <bruno@clisp.org>
30877
30878         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
30879         the output file.
30880         * lib/uniname/uninames.h: Regenerated.
30881
30882 2007-07-14  Karl Berry  <karl@gnu.org>
30883
30884         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
30885         omitting sectioning and index commands.
30886
30887 2007-07-13  Bruno Haible  <bruno@clisp.org>
30888
30889         New gnulib-tool option --more-symlinks.
30890         * gnulib-tool (func_usage): Document --more-symlinks.
30891         (do_copyrights): New variable.
30892         Recognize option --more-symlinks.
30893         (func_import): Don't add a copyright notice transform to
30894         sed_transform_lib_file if do_copyrights is empty.
30895
30896 2007-07-13  Bruno Haible  <bruno@clisp.org>
30897
30898         * lib/vasnprintf.c (decimal_point_char): Define also if
30899         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
30900         && !NEED_PRINTF_DIRECTIVE_A.
30901         Reported by Clemens Koller <clemens.koller@anagramm.de> via
30902         Gary V. Vaughan <gary@gnu.org>.
30903
30904 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
30905
30906         * lib/inttypes_.h: Undo previous change, since it was fixed
30907         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
30908
30909 2007-07-13  Bruno Haible  <bruno@clisp.org>
30910
30911         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
30912         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
30913
30914 2007-07-13  Jim Meyering  <jim@meyering.net>
30915
30916         df: Don't fail for Tru64's "file-on-file mount".
30917         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
30918         so we fall through and use statfs instead.  Details here:
30919         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
30920         Reported by Albert Chin.
30921
30922 2007-07-13  Bruno Haible  <bruno@clisp.org>
30923
30924         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
30925         * modules/configmake (License): Likewise.
30926         * modules/gettext (License): Likewise.
30927         * modules/gettext-h (License): Likewise.
30928         * modules/include_next (License): Likewise.
30929         * modules/link-warning (License): Likewise.
30930         * modules/localcharset (License): Likewise.
30931         * modules/localename (License): Likewise.
30932         * modules/lock (License): Likewise.
30933         * modules/relocatable-lib-lgpl (License): Likewise.
30934         * modules/size_max (License): Likewise.
30935         * modules/vasnprintf (License): Likewise.
30936         * modules/wchar (License): Likewise.
30937         * modules/xsize (License): Likewise.
30938
30939 2007-07-13  Bruno Haible  <bruno@clisp.org>
30940
30941         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
30942         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
30943
30944 2007-07-12  Bruno Haible  <bruno@clisp.org>
30945
30946         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
30947         in the modules files.
30948
30949 2007-07-11  Karl Berry  <karl@gnu.org>
30950
30951         * MODULES.html.sh (func_module): use
30952          sed -e '\|^'"${includefile}"'$|d'
30953          instead of /.../d, to avoid errors on $includefile's containing /.
30954
30955 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
30956
30957         * gnulib-tool (func_import): Avoid duplication of --avoid
30958         statements
30959         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
30960         names to `_' in variable names.
30961
30962 2007-07-10  Eric Blake  <ebb9@byu.net>
30963
30964         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
30965         * NEWS: Document this change.
30966
30967 2007-07-08  Bruno Haible  <bruno@clisp.org>
30968
30969         Update to Unicode 5.0.
30970         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
30971         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
30972         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
30973         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
30974         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
30975         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
30976         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
30977         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
30978         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
30979         U+10A3F, U+1D242..U+1D244.
30980         (nonspacing_table_ind): Update.
30981         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
30982         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
30983
30984 2007-07-08  Bruno Haible  <bruno@clisp.org>
30985
30986         Update to Unicode 5.0.
30987         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
30988         code transform. Extend the name index field of unicode_name_to_code and
30989         unicode_code_to_name from 16 to 24 bits.
30990         * lib/uniname/uniname.c (unicode_character_name,
30991         unicode_name_character): Add the range 0x12xxx to the code transform.
30992         * lib/uniname/uninames.h: Regenerated.
30993         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
30994
30995 2007-07-07  Bruno Haible  <bruno@clisp.org>
30996
30997         * modules/wcwidth-tests: New file.
30998         * tests/test-wcwidth.c: New file.
30999
31000         Work around MacOS X wcwidth() bug.
31001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31002         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31003         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31004         original wcwidth in non-UTF-8 locales.
31005         * modules/wcwidth (Depends-on): Add localcharset, streq,
31006         uniwidth/width.
31007         * doc/functions/wcwidth.texi: Update.
31008
31009 2007-07-07  Bruno Haible  <bruno@clisp.org>
31010
31011         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31012         (wcwidth): New declaration.
31013         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31014         macros.
31015         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31016         here. Prepare for creating <wchar.h> unconditionally.
31017         * modules/wchar (Depends-on): Add link-warning.
31018         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31019         REPLACE_WCWIDTH, and GL_LINK_WARNING.
31020         * lib/wcwidth.h: Remove file.
31021         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31022         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31023         * modules/wcwidth (Files): Remove lib/wcwidth.h.
31024         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31025         (Include): Replace wcwidth.h with <wchar.h>.
31026         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31027         * lib/mbchar.h: Don't include wcwidth.h.
31028         * lib/mbswidth.c: Likewise.
31029         * NEWS: Mention the change.
31030
31031 2007-07-07  Bruno Haible  <bruno@clisp.org>
31032
31033         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31034         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31035         definition with an external declaration.
31036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31037         defined as a function. Remove AC_C_INLINE requirement.
31038         * modules/wcwidth (Files): Add lib/wcwidth.c.
31039         (Makefile.am): Remove redundant statement.
31040
31041 2007-07-07  Bruno Haible  <bruno@clisp.org>
31042
31043         * MODULES.html.sh (Unicode string functions): Add the new modules.
31044
31045         * tests/uniwidth/test-u32-strwidth.c: New file.
31046         * modules/uniwidth/u32-strwidth-tests: New file.
31047
31048         * lib/uniwidth/u32-strwidth.c: New file.
31049         * modules/uniwidth/u32-strwidth: New file.
31050
31051         * tests/uniwidth/test-u16-strwidth.c: New file.
31052         * modules/uniwidth/u16-strwidth-tests: New file.
31053
31054         * lib/uniwidth/u16-strwidth.c: New file.
31055         * modules/uniwidth/u16-strwidth: New file.
31056
31057         * tests/uniwidth/test-u8-strwidth.c: New file.
31058         * modules/uniwidth/u8-strwidth-tests: New file.
31059
31060         * lib/uniwidth/u8-strwidth.c: New file.
31061         * modules/uniwidth/u8-strwidth: New file.
31062
31063         * tests/uniwidth/test-u32-width.c: New file.
31064         * modules/uniwidth/u32-width-tests: New file.
31065
31066         * lib/uniwidth/u32-width.c: New file.
31067         * modules/uniwidth/u32-width: New file.
31068
31069         * tests/uniwidth/test-u16-width.c: New file.
31070         * modules/uniwidth/u16-width-tests: New file.
31071
31072         * lib/uniwidth/u16-width.c: New file.
31073         * modules/uniwidth/u16-width: New file.
31074
31075         * tests/uniwidth/test-u8-width.c: New file.
31076         * modules/uniwidth/u8-width-tests: New file.
31077
31078         * lib/uniwidth/u8-width.c: New file.
31079         * modules/uniwidth/u8-width: New file.
31080
31081         * tests/uniwidth/test-uc_width.c: New file.
31082         * modules/uniwidth/width-tests: New file.
31083
31084         * lib/uniwidth/width.c: New file, from GNU libiconv.
31085         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31086         * modules/uniwidth/width: New file.
31087
31088         * lib/uniwidth.h: New file, from GNU libiconv.
31089         * modules/uniwidth/base: New file.
31090
31091 2007-07-07  Bruno Haible  <bruno@clisp.org>
31092
31093         * lib/uniname.h: New file, from GNU gettext.
31094         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31095         * lib/uniname/uninames.h: New file, from GNU gettext.
31096         * lib/uniname/uniname.c: New file, from GNU gettext.
31097         * tests/uniname/test-uninames.sh: New file.
31098         * tests/uniname/test-uninames.c: New file, from GNU gettext.
31099         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31100         * modules/uniname/base: New file.
31101         * modules/uniname/uniname: New file.
31102         * modules/uniname/uniname-tests: New file.
31103         * MODULES.html.sh (Unicode string functions): Add the new modules.
31104
31105 2007-07-06  Bruno Haible  <bruno@clisp.org>
31106
31107         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31108
31109 2007-07-06  Bruno Haible  <bruno@clisp.org>
31110
31111         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31112         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31113         includes <cygwin/sys_time.h> which includes <sys/select.h> which
31114         include <sys/time.h>.
31115         Reported by Eric Blake.
31116
31117 2007-07-06  Eric Blake  <ebb9@byu.net>
31118
31119         Fix testing canonicalize on cygwin.
31120         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31121         Revert patch from 2007-06-19.
31122         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31123         canonicalize module is also in use.
31124         * tests/test-canonicalize.c: New file.
31125         * tests/test-canonicalize.sh: Likewise.
31126         * modules/canonicalize-tests: Likewise.
31127
31128 2007-07-06  Jim Meyering  <jim@meyering.net>
31129
31130         * lib/getugroups.c (getugroups): Detect getgrent failure.
31131         Adjust comment to reflect reality: this function may return -1.
31132
31133 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31134
31135         * build-aux/bootstrap (TP_URL,get_translations): Update to use
31136         the new TP address.
31137         (usage): Fix typo
31138         (gnulib_mk): New variable.
31139
31140 2007-07-05  Jim Meyering  <jim@meyering.net>
31141
31142         Don't let endgrent clobber errno, no matter how improbable.
31143         * lib/getugroups.c (getugroups): Save and restore errno around
31144         endgrent call.
31145
31146         Close the group DB even when failing with 2^31 or more members.
31147         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31148
31149 2007-07-04  Jim Meyering  <jim@meyering.net>
31150
31151         * lib/getugroups.h: New file.
31152         * lib/getugroups.c: Include "getugroups.h".
31153         Remove uses of "register" keyword.
31154         Move local variable, "cp", down into scope where used.
31155         Give "username" parameter the "const" attribute.
31156         * modules/getugroups (Files): Add lib/getugroups.h
31157
31158 2007-07-04  Karl Berry  <karl@gnu.org>
31159
31160         * MODULES.html.sh (func_all_modules): Complete rename of
31161         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31162
31163 2007-07-02  Bruno Haible  <bruno@clisp.org>
31164
31165         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31166         mode, when inttypes.h comes from gnulib.
31167         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31168
31169 2007-07-02  Simon Josefsson  <simon@josefsson.org>
31170
31171         * NEWS: Mention lgpl module name change.
31172
31173         * modules/lgpl-2.1: Renamed from lgpl.
31174
31175         * NEWS: Mention gpl module name change.
31176
31177         * modules/gpl-3.0: New file, based on gpl-2.0.
31178
31179         * modules/gpl-2.0: Renamed from gpl.
31180
31181         * modules/gpl: Fix filename, doc/gpl.texi is now found at
31182         doc/gpl-2.0.texi.
31183
31184 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31185
31186         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31187         #define __STDC_LIMIT_MACROS temporarily while including
31188         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31189         Problem reported by Joel E. Denny in
31190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31191
31192 2007-07-01  Bruno Haible  <bruno@clisp.org>
31193
31194         * lib/unistdio.h: New file.
31195         * lib/unistdio/u-asnprintf.h: New file.
31196         * lib/unistdio/u-asprintf.h: New file.
31197         * lib/unistdio/u-printf-args.c: New file.
31198         * lib/unistdio/u-printf-args.h: New file.
31199         * lib/unistdio/u-printf-parse.h: New file.
31200         * lib/unistdio/u-snprintf.h: New file.
31201         * lib/unistdio/u-sprintf.h: New file.
31202         * lib/unistdio/u-vasprintf.h: New file.
31203         * lib/unistdio/u-vsnprintf.h: New file.
31204         * lib/unistdio/u-vsprintf.h: New file.
31205         * lib/unistdio/ulc-asnprintf.c: New file.
31206         * lib/unistdio/ulc-asprintf.c: New file.
31207         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31208         * lib/unistdio/ulc-printf-parse.c: New file.
31209         * lib/unistdio/ulc-snprintf.c: New file.
31210         * lib/unistdio/ulc-sprintf.c: New file.
31211         * lib/unistdio/ulc-vasnprintf.c: New file.
31212         * lib/unistdio/ulc-vasprintf.c: New file.
31213         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31214         * lib/unistdio/ulc-vsnprintf.c: New file.
31215         * lib/unistdio/ulc-vsprintf.c: New file.
31216         * lib/unistdio/u8-asnprintf.c: New file.
31217         * lib/unistdio/u8-asprintf.c: New file.
31218         * lib/unistdio/u8-printf-parse.c: New file.
31219         * lib/unistdio/u8-snprintf.c: New file.
31220         * lib/unistdio/u8-sprintf.c: New file.
31221         * lib/unistdio/u8-vasnprintf.c: New file.
31222         * lib/unistdio/u8-vasprintf.c: New file.
31223         * lib/unistdio/u8-vsnprintf.c: New file.
31224         * lib/unistdio/u8-vsprintf.c: New file.
31225         * lib/unistdio/u8-u8-asnprintf.c: New file.
31226         * lib/unistdio/u8-u8-asprintf.c: New file.
31227         * lib/unistdio/u8-u8-snprintf.c: New file.
31228         * lib/unistdio/u8-u8-sprintf.c: New file.
31229         * lib/unistdio/u8-u8-vasnprintf.c: New file.
31230         * lib/unistdio/u8-u8-vasprintf.c: New file.
31231         * lib/unistdio/u8-u8-vsnprintf.c: New file.
31232         * lib/unistdio/u8-u8-vsprintf.c: New file.
31233         * lib/unistdio/u16-asnprintf.c: New file.
31234         * lib/unistdio/u16-asprintf.c: New file.
31235         * lib/unistdio/u16-printf-parse.c: New file.
31236         * lib/unistdio/u16-snprintf.c: New file.
31237         * lib/unistdio/u16-sprintf.c: New file.
31238         * lib/unistdio/u16-vasnprintf.c: New file.
31239         * lib/unistdio/u16-vasprintf.c: New file.
31240         * lib/unistdio/u16-vsnprintf.c: New file.
31241         * lib/unistdio/u16-vsprintf.c: New file.
31242         * lib/unistdio/u16-u16-asnprintf.c: New file.
31243         * lib/unistdio/u16-u16-asprintf.c: New file.
31244         * lib/unistdio/u16-u16-snprintf.c: New file.
31245         * lib/unistdio/u16-u16-sprintf.c: New file.
31246         * lib/unistdio/u16-u16-vasnprintf.c: New file.
31247         * lib/unistdio/u16-u16-vasprintf.c: New file.
31248         * lib/unistdio/u16-u16-vsnprintf.c: New file.
31249         * lib/unistdio/u16-u16-vsprintf.c: New file.
31250         * lib/unistdio/u32-asnprintf.c: New file.
31251         * lib/unistdio/u32-asprintf.c: New file.
31252         * lib/unistdio/u32-printf-parse.c: New file.
31253         * lib/unistdio/u32-snprintf.c: New file.
31254         * lib/unistdio/u32-sprintf.c: New file.
31255         * lib/unistdio/u32-vasnprintf.c: New file.
31256         * lib/unistdio/u32-vasprintf.c: New file.
31257         * lib/unistdio/u32-vsnprintf.c: New file.
31258         * lib/unistdio/u32-vsprintf.c: New file.
31259         * lib/unistdio/u32-u32-asnprintf.c: New file.
31260         * lib/unistdio/u32-u32-asprintf.c: New file.
31261         * lib/unistdio/u32-u32-snprintf.c: New file.
31262         * lib/unistdio/u32-u32-sprintf.c: New file.
31263         * lib/unistdio/u32-u32-vasnprintf.c: New file.
31264         * lib/unistdio/u32-u32-vasprintf.c: New file.
31265         * lib/unistdio/u32-u32-vsnprintf.c: New file.
31266         * lib/unistdio/u32-u32-vsprintf.c: New file.
31267         * tests/unistdio/test-ulc-asnprintf1.c: New file.
31268         * tests/unistdio/test-ulc-asnprintf1.h: New file.
31269         * tests/unistdio/test-ulc-printf1.h: New file.
31270         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31271         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31272         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31273         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31274         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31275         * tests/unistdio/test-ulc-vasprintf1.c: New file.
31276         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31277         * tests/unistdio/test-ulc-vsprintf1.c: New file.
31278         * tests/unistdio/test-u8-asnprintf1.c: New file.
31279         * tests/unistdio/test-u8-asnprintf1.h: New file.
31280         * tests/unistdio/test-u8-printf1.h: New file.
31281         * tests/unistdio/test-u8-vasnprintf1.c: New file.
31282         * tests/unistdio/test-u8-vasnprintf2.c: New file.
31283         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31284         * tests/unistdio/test-u8-vasnprintf3.c: New file.
31285         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31286         * tests/unistdio/test-u8-vasprintf1.c: New file.
31287         * tests/unistdio/test-u8-vsnprintf1.c: New file.
31288         * tests/unistdio/test-u8-vsprintf1.c: New file.
31289         * tests/unistdio/test-u16-asnprintf1.c: New file.
31290         * tests/unistdio/test-u16-asnprintf1.h: New file.
31291         * tests/unistdio/test-u16-printf1.h: New file.
31292         * tests/unistdio/test-u16-vasnprintf1.c: New file.
31293         * tests/unistdio/test-u16-vasnprintf2.c: New file.
31294         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
31295         * tests/unistdio/test-u16-vasnprintf3.c: New file.
31296         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
31297         * tests/unistdio/test-u16-vasprintf1.c: New file.
31298         * tests/unistdio/test-u16-vsnprintf1.c: New file.
31299         * tests/unistdio/test-u16-vsprintf1.c: New file.
31300         * tests/unistdio/test-u32-asnprintf1.c: New file.
31301         * tests/unistdio/test-u32-asnprintf1.h: New file.
31302         * tests/unistdio/test-u32-printf1.h: New file.
31303         * tests/unistdio/test-u32-vasnprintf1.c: New file.
31304         * tests/unistdio/test-u32-vasnprintf2.c: New file.
31305         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
31306         * tests/unistdio/test-u32-vasnprintf3.c: New file.
31307         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
31308         * tests/unistdio/test-u32-vasprintf1.c: New file.
31309         * tests/unistdio/test-u32-vsnprintf1.c: New file.
31310         * tests/unistdio/test-u32-vsprintf1.c: New file.
31311         * modules/unistdio/base: New file.
31312         * modules/unistdio/u-printf-args: New file.
31313         * modules/unistdio/ulc-asnprintf: New file.
31314         * modules/unistdio/ulc-asprintf: New file.
31315         * modules/unistdio/ulc-fprintf: New file.
31316         * modules/unistdio/ulc-printf-parse: New file.
31317         * modules/unistdio/ulc-snprintf: New file.
31318         * modules/unistdio/ulc-sprintf: New file.
31319         * modules/unistdio/ulc-vasnprintf: New file.
31320         * modules/unistdio/ulc-vasprintf: New file.
31321         * modules/unistdio/ulc-vfprintf: New file.
31322         * modules/unistdio/ulc-vsnprintf: New file.
31323         * modules/unistdio/ulc-vsprintf: New file.
31324         * modules/unistdio/u8-asnprintf: New file.
31325         * modules/unistdio/u8-asprintf: New file.
31326         * modules/unistdio/u8-printf-parse: New file.
31327         * modules/unistdio/u8-snprintf: New file.
31328         * modules/unistdio/u8-sprintf: New file.
31329         * modules/unistdio/u8-vasnprintf: New file.
31330         * modules/unistdio/u8-vasprintf: New file.
31331         * modules/unistdio/u8-vsnprintf: New file.
31332         * modules/unistdio/u8-vsprintf: New file.
31333         * modules/unistdio/u8-u8-asnprintf: New file.
31334         * modules/unistdio/u8-u8-asprintf: New file.
31335         * modules/unistdio/u8-u8-snprintf: New file.
31336         * modules/unistdio/u8-u8-sprintf: New file.
31337         * modules/unistdio/u8-u8-vasnprintf: New file.
31338         * modules/unistdio/u8-u8-vasprintf: New file.
31339         * modules/unistdio/u8-u8-vsnprintf: New file.
31340         * modules/unistdio/u8-u8-vsprintf: New file.
31341         * modules/unistdio/u16-asnprintf: New file.
31342         * modules/unistdio/u16-asprintf: New file.
31343         * modules/unistdio/u16-printf-parse: New file.
31344         * modules/unistdio/u16-snprintf: New file.
31345         * modules/unistdio/u16-sprintf: New file.
31346         * modules/unistdio/u16-vasnprintf: New file.
31347         * modules/unistdio/u16-vasprintf: New file.
31348         * modules/unistdio/u16-vsnprintf: New file.
31349         * modules/unistdio/u16-vsprintf: New file.
31350         * modules/unistdio/u16-u16-asnprintf: New file.
31351         * modules/unistdio/u16-u16-asprintf: New file.
31352         * modules/unistdio/u16-u16-snprintf: New file.
31353         * modules/unistdio/u16-u16-sprintf: New file.
31354         * modules/unistdio/u16-u16-vasnprintf: New file.
31355         * modules/unistdio/u16-u16-vasprintf: New file.
31356         * modules/unistdio/u16-u16-vsnprintf: New file.
31357         * modules/unistdio/u16-u16-vsprintf: New file.
31358         * modules/unistdio/u32-asnprintf: New file.
31359         * modules/unistdio/u32-asprintf: New file.
31360         * modules/unistdio/u32-printf-parse: New file.
31361         * modules/unistdio/u32-snprintf: New file.
31362         * modules/unistdio/u32-sprintf: New file.
31363         * modules/unistdio/u32-vasnprintf: New file.
31364         * modules/unistdio/u32-vasprintf: New file.
31365         * modules/unistdio/u32-vsnprintf: New file.
31366         * modules/unistdio/u32-vsprintf: New file.
31367         * modules/unistdio/u32-u32-asnprintf: New file.
31368         * modules/unistdio/u32-u32-asprintf: New file.
31369         * modules/unistdio/u32-u32-snprintf: New file.
31370         * modules/unistdio/u32-u32-sprintf: New file.
31371         * modules/unistdio/u32-u32-vasnprintf: New file.
31372         * modules/unistdio/u32-u32-vasprintf: New file.
31373         * modules/unistdio/u32-u32-vsnprintf: New file.
31374         * modules/unistdio/u32-u32-vsprintf: New file.
31375         * modules/unistdio/ulc-asnprintf-tests: New file.
31376         * modules/unistdio/ulc-vasnprintf-tests: New file.
31377         * modules/unistdio/ulc-vasprintf-tests: New file.
31378         * modules/unistdio/ulc-vsnprintf-tests: New file.
31379         * modules/unistdio/ulc-vsprintf-tests: New file.
31380         * modules/unistdio/u8-asnprintf-tests: New file.
31381         * modules/unistdio/u8-vasnprintf-tests: New file.
31382         * modules/unistdio/u8-vasprintf-tests: New file.
31383         * modules/unistdio/u8-vsnprintf-tests: New file.
31384         * modules/unistdio/u8-vsprintf-tests: New file.
31385         * modules/unistdio/u16-asnprintf-tests: New file.
31386         * modules/unistdio/u16-vasnprintf-tests: New file.
31387         * modules/unistdio/u16-vasprintf-tests: New file.
31388         * modules/unistdio/u16-vsnprintf-tests: New file.
31389         * modules/unistdio/u16-vsprintf-tests: New file.
31390         * modules/unistdio/u32-asnprintf-tests: New file.
31391         * modules/unistdio/u32-vasnprintf-tests: New file.
31392         * modules/unistdio/u32-vasprintf-tests: New file.
31393         * modules/unistdio/u32-vsnprintf-tests: New file.
31394         * modules/unistdio/u32-vsprintf-tests: New file.
31395         * MODULES.html.sh (Unicode string functions): Add the new modules.
31396
31397 2007-07-01  Bruno Haible  <bruno@clisp.org>
31398
31399         * lib/sprintf.c (sprintf): Limit the available length estimation,
31400         to avoid address wraparound.
31401         * lib/vsprintf.c (vsprintf): Likewise.
31402         * modules/sprintf-posix (Dependencies): Add stdint.
31403         * modules/vsprintf-posix (Dependencies): Likewise.
31404
31405 2007-07-01  Bruno Haible  <bruno@clisp.org>
31406
31407         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
31408         Windows PATH as well. Conservative double-quoting. Comments.
31409
31410 2007-07-01  Bruno Haible  <bruno@clisp.org>
31411             Eric Blake  <ebb9@byu.net>
31412             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31413
31414         * gnulib-tool (self_abspathname): Fix algorithm to cope with
31415         empty components in $PATH, denoting '.'.
31416
31417 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31418
31419         * gnulib-tool: Fix indentation.
31420         (func_create_megatestdir): Likewise.
31421         Report by Bruno Haible.
31422
31423 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31424
31425         Sync from Automake.
31426         * build-aux/gnupload: Fix shell portability issues with for loops.
31427         Report by Karl Berry.
31428
31429 2007-06-29  Simon Josefsson  <simon@josefsson.org>
31430
31431         * build-aux/maint.mk (POURL): Use translationproject.org.
31432
31433 2007-06-27  Simon Josefsson  <simon@josefsson.org>
31434             Bruno Haible  <bruno@clisp.org>
31435
31436         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
31437         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
31438         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
31439         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
31440         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
31441
31442 2007-06-27  Bruno Haible  <bruno@clisp.org>
31443
31444         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
31445         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
31446
31447 2007-06-26  Karl Berry  <karl@gnu.org>
31448
31449         * MODULES.html.sh: remove xreadlink-with-size.
31450
31451 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31452
31453         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
31454         method that I hope also handles the double-include problem noted
31455         by Bruno Haible in
31456         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
31457
31458 2007-06-23  Bruno Haible  <bruno@clisp.org>
31459
31460         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31461         Don't let the 'mostlyclean' target fail if the last subdirectory could
31462         not be removed.
31463         Reported by Karl Berry.
31464
31465 2007-06-23  Bruno Haible  <bruno@clisp.org>
31466
31467         * gnulib-tool (echo): Add a speedier workaround for ksh.
31468         * tests/test-echo.sh: Likewise.
31469
31470 2007-06-23  Bruno Haible  <bruno@clisp.org>
31471
31472         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
31473         * tests/test-echo.sh: Likewise.
31474
31475 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31476
31477         * gnulib-tool (IFS): Initialize early, so we don't set it to
31478         empty later.
31479         (self_abspathname): Rewrite algorithm to set it, reindent.
31480         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
31481         (func_create_megatestdir): Merge some sed scripts.
31482
31483 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31484
31485         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
31486         exposed by Sun Studio 11 cc on Solaris 8.
31487
31488 2007-06-22  Bruno Haible  <bruno@clisp.org>
31489
31490         * gnulib-tool (echo): Ensure the echo primitive does not interpret
31491         backslashes.
31492         * tests/test-echo.sh: New file.
31493
31494 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31495
31496         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
31497         simplify `sed_replace_build_aux' scripts, they are portable but
31498         echoing them with `echo' is not.
31499         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
31500
31501 2007-06-21  Karl Berry  <karl@gnu.org>
31502
31503         * config/srclist.txt: guess we can't handle the licenses via
31504         srclist at the moment.
31505
31506 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31507
31508         * MODULES.html.sh: Add include_next.
31509         * modules/include_next: New file.
31510
31511 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31512
31513         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
31514         INCLUDE_NEXT.
31515         (gl_CHECK_NEXT_HEADERS): New macro.
31516         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
31517         the obsolescent gl_ABSOLUTE_HEADER.
31518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
31519         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
31520         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31521         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31522         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31523         * m4/math_h.m4 (gl_MATH_H): Likewise.
31524         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31525         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31526         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31527         * m4/stdint.m4 (gl_STDINT_H): Likewise.
31528         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31529         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31530         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31531         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31532         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31533         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31534         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31535         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31536         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
31537         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31538         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31539         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31540         * m4/inttypes.m4 (gl_INTTYPES_H): Define
31541         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
31542         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
31543         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
31544         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
31545         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
31546         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
31547         * lib/float_.h: Likewise.
31548         * lib/inttypes_.h: Likewise.
31549         * lib/math_.h: Likewise.
31550         * lib/search_.h: Likewise.
31551         * lib/signal_.h: Likewise.
31552         * lib/stdint_.h: Likewise.
31553         * lib/stdio_.h: Likewise.
31554         * lib/stdlib_.h: Likewise.
31555         * lib/string_.h: Likewise.
31556         * lib/sys_stat_.h: Likewise.
31557         * lib/sys_time_.h: Likewise.
31558         * lib/time_.h: Likewise.
31559         * lib/unistd_.h: Likewise.
31560         * lib/wchar_.h: Likewise.
31561         * lib/wctype_.h: Likewise.
31562         * lib/dirent_.h: Likewise.
31563         * lib/iconv_.h: Likewise.
31564         * lib/locale_.h: Likewise.
31565         * lib/netinet_in_.h: Likewise.
31566         * lib/sys_select_.h: Likewise.
31567         * lib/sys_socket_.h: Likewise.
31568         * lib/sysexits_.h: Likewise.
31569         * modules/fcntl (Depends-on): Depend on include_next, not
31570         absolute_header.
31571         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
31572         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
31573         * modules/fchdir: Likewise.
31574         * modules/float: Likewise.
31575         * modules/iconv_open: Likewise.
31576         * modules/inttypes: Likewise.
31577         * modules/locale: Likewise.
31578         * modules/math: Likewise.
31579         * modules/netinet_in: Likewise.
31580         * modules/search: Likewise.
31581         * modules/signal: Likewise.
31582         * modules/stdint: Likewise.
31583         * modules/stdio: Likewise.
31584         * modules/stdlib: Likewise.
31585         * modules/string: Likewise.
31586         * modules/sys_select: Likewise.
31587         * modules/sys_socket: Likewise.
31588         * modules/sys_stat: Likewise.
31589         * modules/sys_time: Likewise.
31590         * modules/sysexits: Likewise.
31591         * modules/time: Likewise.
31592         * modules/unistd: Likewise.
31593         * modules/wchar: Likewise.
31594         * modules/wctype: Likewise.
31595         * modules/sys_stat: Change maintainer to "all".
31596         * modules/unistd: Likewise.
31597
31598 2007-06-20  Karl Berry  <karl@gnu.org>
31599
31600         * config/srclist.txt: track www changes in license files.
31601
31602 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
31603
31604         * build-aux/bootstrap: Remove stray dot.
31605         Make sure build_aux settings are honored when linking
31606         gnulib_extra_files.
31607
31608 2007-06-19  Eric Blake  <ebb9@byu.net>
31609
31610         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31611         Allow compilation on cygwin.
31612
31613 2007-06-19  Jim Meyering  <jim@meyering.net>
31614
31615         xreadlink-with-size: Remove module.  No longer used.
31616         Ex-callers now use xreadlink or mreadlink-with-size.
31617         * modules/xreadlink-with-size: Remove module.
31618         * lib/xreadlink-with-size.c: Remove file.
31619         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
31620         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
31621         just before the function definition *is* accurate.
31622
31623         Eliminate one way canonicalize_filename_mode could exit.
31624         * lib/canonicalize.c (canonicalize_filename_mode):
31625         Use mreadlink_with_size, not xreadlink_with_size.
31626
31627 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31628
31629         Detect porting problems to FreeBSD/arm, which has time_t wider than
31630         long int.  Original problem reported for GNU diff by Xin Li in
31631         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
31632         * modules/getdate (Depends-on): Add intprops, verify.
31633         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
31634         is an integer type no wider than long int.
31635
31636 2007-06-18  Jim Meyering  <jim@meyering.net>
31637
31638         New module: mreadlink-with-size.
31639         * MODULES.html.sh: Add mreadlink-with-size.
31640         * modules/mreadlink-with-size: New module
31641         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
31642         not xreadlink-with-size.
31643         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
31644
31645 2007-06-16  Bruno Haible  <bruno@clisp.org>
31646
31647         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
31648         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
31649         Reported by Gary V. Vaughan <gary@gnu.org>.
31650
31651 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31652
31653         Revamp lchown so that it lives in unistd.h where it belongs.
31654         * lib/lchown.h: Remove.
31655         * lib/dirchownmod.c: Don't include lib/lchown.h.
31656         * lib/fchownat.c: Likewise.
31657         * lib/openat.c: Likewise.
31658         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
31659         does not follow symlinks.
31660         (EOPNOTSUPP): Define if not defined.
31661         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
31662         is defined to 0.
31663         (lchown): New decl.
31664         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
31665         Do not check for lchown decl.
31666         Set REPLACE_LCHOWN.
31667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
31668         REPLACE_LCHOWN.
31669         * modules/chown: Make it clear it follows symlinks.
31670         * modules/lchown: Make it clear it doesn't follow symlinks.
31671         (Files): Remove lib/lchown.h
31672         (Depends-on): Add unistd.
31673         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
31674         (Include): Include <unistd.h>, not "lchown.h".
31675         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
31676         REPLACE_LCHOWN.
31677
31678 2007-06-15  Jim Meyering  <jim@meyering.net>
31679
31680         Change license (GPL to LGPL) of fsusage and dependents.
31681         * modules/fsusage (License): Change to LGPL.
31682         * modules/full-read (License): Likewise.
31683         * modules/full-write (License): Likewise.
31684         * modules/safe-read (License): Likewise.
31685         * modules/safe-write (License): Likewise.
31686
31687 2007-06-14  Ben Pfaff  <blp@gnu.org>
31688
31689         Missing part of allocsa -> malloca transition.
31690         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
31691         gl_MALLOCA.
31692
31693 2007-06-12  Bruno Haible  <bruno@clisp.org>
31694
31695         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
31696         to ia64, x86_64, i386.
31697         Reported by Eric Blake.
31698
31699 2007-06-12  Bruno Haible  <bruno@clisp.org>
31700
31701         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
31702         cross-compiling to x86_64.
31703
31704 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
31705
31706         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
31707         glitch reported by Ralf Wildenhues in
31708         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
31709
31710         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
31711         Vin Shelton.
31712
31713 2007-06-11  Bruno Haible  <bruno@clisp.org>
31714
31715         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
31716         replacement string.
31717         Reported by Eric Blake.
31718
31719 2007-06-10  Bruno Haible  <bruno@clisp.org>
31720
31721         Prepare vasnprintf code for use with Unicode strings.
31722         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
31723         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
31724         TYPE_U32_STRING.
31725         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
31726         a_u32_string variants.
31727         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31728         * lib/printf-args.c: Don't include config.h and the specification
31729         header if PRINTF_FETCHARGS is already defined.
31730         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31731         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
31732         TYPE_U16_STRING, TYPE_U32_STRING.
31733         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
31734         u16_directive, u16_directives, u32_directive, u32_directives): New
31735         types.
31736         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
31737         New declarations.
31738         * lib/printf-parse.c: Don't include config.h and the specification
31739         header if PRINTF_PARSE is already defined. Eliminate the set of
31740         parameters for WIDE_CHAR_VERSION; the user of this file must provide
31741         them now. Include c-ctype.h.
31742         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
31743         directive and CHAR_T_ONLY_ASCII.
31744         * lib/vasnprintf.c: Don't include config.h and the specification header
31745         if VASNPRINTF is already defined.
31746         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
31747         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
31748         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
31749         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
31750         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
31751         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
31752         code accordingly.
31753         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
31754         pad_ourselves also in this case, with the 'c' and 's' directives, and
31755         with a different notion of "width".
31756         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
31757
31758 2007-06-10  Bruno Haible  <bruno@clisp.org>
31759
31760         * modules/unistr/u32-mbsnlen: New file.
31761         * lib/unistr/u32-mbsnlen.c: New file.
31762
31763         * modules/unistr/u16-mbsnlen: New file.
31764         * lib/unistr/u16-mbsnlen.c: New file.
31765
31766         * modules/unistr/u8-mbsnlen: New file.
31767         * lib/unistr/u8-mbsnlen.c: New file.
31768
31769         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
31770         declarations.
31771
31772 2007-06-10  Bruno Haible  <bruno@clisp.org>
31773
31774         * lib/string_.h (mbsnlen): New declaration.
31775         * lib/mbsnlen.c: New file.
31776         * m4/mbsnlen.m4: New file.
31777         * modules/mbsnlen: New file.
31778         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
31779         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
31780         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
31781
31782 2007-06-10  Bruno Haible  <bruno@clisp.org>
31783
31784         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
31785
31786 2007-06-10  Bruno Haible  <bruno@clisp.org>
31787
31788         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
31789         * lib/mbuiter.h: Likewise.
31790
31791 2007-06-10  Bruno Haible  <bruno@clisp.org>
31792
31793         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
31794         declaration.
31795
31796 2007-06-10  Karl Berry  <karl@gnu.org>
31797
31798         * config/srclist.txt: remove gettext entries, Bruno prefers
31799         to update individually.
31800
31801 2007-06-10  Bruno Haible  <bruno@clisp.org>
31802
31803         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
31804         'maxlen'. Ensure only length + width bytes are allocated, not
31805         length + 1 + width.
31806
31807 2007-06-09  Bruno Haible  <bruno@clisp.org>
31808
31809         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
31810         (CHAR_T): Remove macro.
31811         (VASNPRINTF): Update.
31812
31813 2007-06-09  Bruno Haible  <bruno@clisp.org>
31814
31815         * MODULES.html.sh (Unicode string functions): Add the new modules.
31816
31817         * modules/uniconv/u32-conv-to-enc: New file.
31818         * lib/uniconv/u32-conv-to-enc.c: New file.
31819         * modules/uniconv/u32-conv-to-enc-tests: New file.
31820         * tests/uniconv/test-u32-conv-to-enc.c: New file.
31821
31822         * modules/uniconv/u16-conv-to-enc: New file.
31823         * lib/uniconv/u16-conv-to-enc.c: New file.
31824         * lib/uniconv/u-conv-to-enc.h: New file.
31825         * modules/uniconv/u16-conv-to-enc-tests: New file.
31826         * tests/uniconv/test-u16-conv-to-enc.c: New file.
31827
31828         * modules/uniconv/u8-conv-to-enc: New file.
31829         * lib/uniconv/u8-conv-to-enc.c: New file.
31830         * modules/uniconv/u8-conv-to-enc-tests: New file.
31831         * tests/uniconv/test-u8-conv-to-enc.c: New file.
31832
31833         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31834         u32_conv_to_encoding): New declarations.
31835
31836 2007-06-09  Bruno Haible  <bruno@clisp.org>
31837
31838         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
31839
31840 2007-06-09  Bruno Haible  <bruno@clisp.org>
31841
31842         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
31843         * modules/malloca: Renamed from modules/allocsa, updated.
31844         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
31845         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
31846         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
31847         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
31848         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
31849         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
31850         * modules/xmalloca: Renamed from modules/xallocsa, updated.
31851         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
31852         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
31853         * modules/c-strcasestr (Depends-on): Update.
31854         * lib/c-strcasestr.c: Update.
31855         * modules/c-strstr (Depends-on): Update.
31856         * lib/c-strstr.c: Update.
31857         * modules/canonicalize-lgpl (Depends-on): Update.
31858         * lib/canonicalize-lgpl.c: Update.
31859         * modules/clean-temp (Depends-on): Update.
31860         * lib/clean-temp.c: Update.
31861         * modules/csharpcomp (Depends-on): Update.
31862         * lib/csharpcomp.c: Update.
31863         * modules/csharpexec (Depends-on): Update.
31864         * lib/csharpexec.c: Update.
31865         * modules/javacomp (Depends-on): Update.
31866         * lib/javacomp.c: Update.
31867         * modules/javaexec (Depends-on): Update.
31868         * lib/javaexec.c: Update.
31869         * modules/mbscasestr (Depends-on): Update.
31870         * lib/mbscasestr.c: Update.
31871         * modules/mbsstr (Depends-on): Update.
31872         * lib/mbsstr.c: Update.
31873         * modules/setenv (Depends-on): Update.
31874         * lib/setenv.c: Update.
31875         * modules/strcasestr (Depends-on): Update.
31876         * lib/strcasestr.c: Update.
31877         * modules/striconveha (Depends-on): Update.
31878         * lib/striconveha.c: Update.
31879         * modules/relocatable-prog-wrapper (Files): Update.
31880         * lib/relocwrapper.c: Update.
31881         * build-aux/install-reloc: Update.
31882         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
31883
31884 2007-06-08  Bruno Haible  <bruno@clisp.org>
31885
31886         Port to uClibc.
31887         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
31888         * lib/fpurge.c (fpurge): Likewise.
31889         * lib/freading.c (freading): Likewise.
31890         * lib/fseeko.c (rpl_fseeko): Likewise.
31891         * lib/fseterr.c (fseterr): Likewise.
31892         * lib/fwriting.c (fwriting): Likewise.
31893         * tests/test-fflush.c (main): Avoid a failure on uClibc.
31894
31895 2007-06-08  Bruno Haible  <bruno@clisp.org>
31896
31897         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
31898         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
31899         * modules/gettext (Files): Add m4/intlmacosx.m4.
31900
31901 2007-06-07  Bruno Haible  <bruno@clisp.org>
31902
31903         * modules/localename-tests: New file.
31904         * tests/test-localename.c: New file.
31905
31906         New module 'localename'.
31907         * lib/localename.h: New file.
31908         * lib/localename.c: New file, from GNU gettext.
31909         * m4/localename.m4: New file.
31910         * modules/localename: New file.
31911
31912 2007-06-07  Bruno Haible  <bruno@clisp.org>
31913
31914         Work around the lack of <wchar.h> on some builds of uClibc.
31915         * doc/headers/wchar.texi: Update.
31916         * lib/wchar_.h: Include <wchar.h> only if it exists.
31917         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
31918         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
31919         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
31920         doesn't exist.
31921         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
31922         * modules/mbfile (Depends-on): Add wchar.
31923         * modules/mbiter (Depends-on): Likewise.
31924         * modules/mbuiter (Depends-on): Likewise.
31925         Reported by Simon Josefsson.
31926
31927 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
31928
31929         Work around problem reported by Steven M. Schweda in
31930         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
31931         Tru64 5.1B with the Compaq compiler environment installed declares
31932         an 'isblank' function but does not define it in the C library.
31933         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
31934         * lib/regex_internal.h (isblank): Likewise.
31935         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
31936         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31937
31938 2007-06-05  Bruno Haible  <bruno@clisp.org>
31939
31940         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
31941         ia64.
31942         * modules/printf-safe: New file.
31943         * modules/fprintf-posix (Depends-on): Add printf-safe.
31944         * modules/printf-posix (Depends-on): Likewise.
31945         * modules/snprintf-posix (Depends-on): Likewise.
31946         * modules/sprintf-posix (Depends-on): Likewise.
31947         * modules/vasnprintf-posix (Depends-on): Likewise.
31948         * modules/vasprintf-posix (Depends-on): Likewise.
31949         * modules/vfprintf-posix (Depends-on): Likewise.
31950         * modules/vprintf-posix (Depends-on): Likewise.
31951         * modules/vsnprintf-posix (Depends-on): Likewise.
31952         * modules/vsprintf-posix (Depends-on): Likewise.
31953         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
31954         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
31955         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
31956         "no" on i386, x86_64, ia64.
31957         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
31958         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31959         on i386, x86_64, ia64.
31960         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
31961         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31962         on i386, x86_64, ia64.
31963         * tests/test-vasnprintf-posix.c: Include float.h.
31964         (LDBL80_WORDS): New macro.
31965         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31966         on i386, x86_64, ia64.
31967         * tests/test-vasprintf-posix.c: Include float.h.
31968         (LDBL80_WORDS): New macro.
31969         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31970         on i386, x86_64, ia64.
31971         * tests/test-snprintf-posix.c: Include float.h.
31972         * tests/test-sprintf-posix.c: Likewise.
31973         * tests/test-vsnprintf-posix.c: Likewise.
31974         * tests/test-vsprintf-posix.c: Likewise.
31975
31976 2007-06-05  Bruno Haible  <bruno@clisp.org>
31977
31978         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
31979         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
31980         non-IEEE numbers on i386, x86_64, ia64.
31981         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
31982         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
31983         * tests/test-isnanl.h: Include float.h.
31984         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
31985
31986 2007-06-05  Bruno Haible  <bruno@clisp.org>
31987
31988         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
31989         also the %a / %A. Handle the %a / %A code before this extra handling.
31990
31991 2007-06-05  Bruno Haible  <bruno@clisp.org>
31992
31993         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
31994         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
31995
31996 2007-06-05  Bruno Haible  <bruno@clisp.org>
31997
31998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
31999         typo in variable name.
32000
32001 2007-06-05  Eric Blake  <ebb9@byu.net>
32002
32003         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32004         Reported by Simon Josefsson.
32005
32006 2007-06-04  Bruno Haible  <bruno@clisp.org>
32007
32008         Avoid test failures on some PowerPC platforms.
32009         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32010         Define differently for PowerPC.
32011         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32012         Reported by Gary V. Vaughan <gary@gnu.org>.
32013
32014 2007-06-02  Bruno Haible  <bruno@clisp.org>
32015
32016         Fix test-stdint failure on FreeBSD/ia64.
32017         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32018         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32019         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32020         * doc/headers/stdint.texi: Update.
32021
32022 2007-06-01  Bruno Haible  <bruno@clisp.org>
32023
32024         * tests/test-binary-io.c (main): Pass a third argument to open().
32025         Reported by Gary V. Vaughan <gary@gnu.org>.
32026
32027 2007-06-01  Bruno Haible  <bruno@clisp.org>
32028
32029         * doc/functions/frexpl.texi: Update for mingw.
32030
32031 2007-06-01  Bruno Haible  <bruno@clisp.org>
32032
32033         * tests/test-lseek.c (main): Disable test of errno for invalid third
32034         argument.
32035         * doc/functions/lseek.texi: Update.
32036         Reported by Gary V. Vaughan <gary@gnu.org>.
32037
32038 2007-05-28  Bruno Haible  <bruno@clisp.org>
32039
32040         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32041
32042 2007-05-31  Eric Blake  <ebb9@byu.net>
32043
32044         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32045         cross compiling.
32046
32047 2007-05-30  Eric Blake  <ebb9@byu.net>
32048         and Bruno Haible  <bruno@clisp.org>
32049
32050         Work around mingw test failures exposed by m4-1.4.9b.
32051         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32052         * tests/test-unistd.c: Disable uid_t and git_t tests for the
32053         moment.
32054
32055 2007-05-30  Bruno Haible  <bruno@clisp.org>
32056
32057         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32058         assuming that they are closed. Needed on HP-UX 11.
32059
32060 2007-05-29  Bruno Haible  <bruno@clisp.org>
32061
32062         Fix a problem with #include_next.
32063         * lib/dirent_.h: Split the double-inclusion guard.
32064         * lib/fcntl_.h: Likewise.
32065         * lib/float_.h: Likewise.
32066         * lib/iconv_.h: Likewise.
32067         * lib/inttypes_.h: Likewise.
32068         * lib/locale_.h: Likewise.
32069         * lib/math_.h: Likewise.
32070         * lib/netinet_in_.h: Likewise.
32071         * lib/search_.h: Likewise.
32072         * lib/signal_.h: Likewise.
32073         * lib/stdint_.h: Likewise.
32074         * lib/stdio_.h: Likewise.
32075         * lib/stdlib_.h: Likewise.
32076         * lib/string_.h: Likewise.
32077         * lib/sys_select_.h: Likewise.
32078         * lib/sys_socket_.h: Likewise.
32079         * lib/sys_stat_.h: Likewise.
32080         * lib/sys_time_.h: Likewise.
32081         * lib/sysexits_.h: Likewise.
32082         * lib/time_.h: Likewise.
32083         * lib/unistd_.h: Likewise.
32084         * lib/wchar_.h: Likewise.
32085         * lib/wctype_.h: Likewise.
32086
32087 2007-05-29  Bruno Haible  <bruno@clisp.org>
32088
32089         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32090         for the moment.
32091
32092 2007-05-29  Bruno Haible  <bruno@clisp.org>
32093
32094         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32095         invocation.
32096         Reported by Eric Blake.
32097
32098 2007-05-29  Bruno Haible  <bruno@clisp.org>
32099
32100         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32101         compiling case.
32102
32103 2007-05-29  Eric Blake  <ebb9@byu.net>
32104             Bruno Haible  <bruno@clisp.org>
32105
32106         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32107         cross compiles.
32108
32109 2007-05-28  Eric Blake  <ebb9@byu.net>
32110
32111         * modules/closein-tests (test_closein_LDADD): Support test on
32112         cygwin with libtool.
32113
32114 2007-05-28  Bruno Haible  <bruno@clisp.org>
32115
32116         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32117         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32118         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32119         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32120         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32121         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32122         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32123         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32124         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32125
32126 2007-05-28  Eric Blake  <ebb9@byu.net>
32127
32128         Unconditionally include <config.h> in unit tests.
32129         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32130         * tests/test-allocsa.c, tests/test-arcfour.c,
32131         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32132         tests/test-array_list.c, tests/test-array_oset.c,
32133         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32134         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32135         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32136         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32137         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32138         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32139         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32140         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32141         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32142         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32143         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32144         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32145         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32146         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32147         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32148         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32149         test-md5.c, test-memmem.c, test-printf-posix.c,
32150         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32151         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32152         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32153         test-strcasestr.c, test-striconv.c, test-striconveh.c,
32154         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32155         test-vasnprintf-posix2.c, test-vasnprintf.c,
32156         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32157         test-vfprintf-posix.c, test-vprintf-posix.c,
32158         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32159         test-xvasprintf.c: Likewise.
32160
32161 2007-05-28  Bruno Haible  <bruno@clisp.org>
32162
32163         * gnulib-tool (func_import): Remember the --with-tests command-line
32164         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32165         Reported by Eric Blake.
32166
32167 2007-05-28  Bruno Haible  <bruno@clisp.org>
32168
32169         * modules/ftell-tests: New file.
32170         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32171         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32172
32173         * lib/ftell.c: New file.
32174         * modules/ftell: New file.
32175         * m4/ftell.m4: New file.
32176         * doc/functions/ftell.texi: Update.
32177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32178         REPLACE_FTELL.
32179         * lib/stdio_.h (rpl_ftell): New declaration.
32180         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32181         REPLACE_FTELL.
32182
32183 2007-05-28  Eric Blake  <ebb9@byu.net>
32184
32185         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32186
32187 2007-05-28  Bruno Haible  <bruno@clisp.org>
32188
32189         * modules/fseek-tests: New file.
32190         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32191         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32192
32193         * lib/fseek.c: New file.
32194         * modules/fseek: New file.
32195         * m4/fseek.m4: New file.
32196         * doc/functions/fseek.texi: Update.
32197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32198         REPLACE_FSEEK.
32199         * lib/stdio_.h (rpl_fseek): New declaration.
32200         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32201         REPLACE_FSEEK.
32202
32203 2007-05-28  Bruno Haible  <bruno@clisp.org>
32204
32205         * lib/stdio_.h (fflush): More comments.
32206
32207 2007-05-28  Bruno Haible  <bruno@clisp.org>
32208
32209         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32210         runtime test.
32211
32212 2007-05-28  Eric Blake  <ebb9@byu.net>
32213
32214         Improve lseek module.
32215         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32216         * lib/unistd_.h (lseek): Scale back link warning message.
32217         * tests/test-lseek.c: Beef up test.
32218         * tests/test-lseek.sh: Exercise more facets of lseek.
32219         Reported by Bruno Haible.
32220
32221 2007-05-28  Bruno Haible  <bruno@clisp.org>
32222
32223         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32224         to define.
32225
32226 2007-05-27  Bruno Haible  <bruno@clisp.org>
32227
32228         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32229
32230 2007-05-27  Bruno Haible  <bruno@clisp.org>
32231
32232         * modules/openmp: New file.
32233         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32234         Noah Misch.
32235
32236 2007-05-26  Bruno Haible  <bruno@clisp.org>
32237
32238         * modules/chdir-long (Depends-on): Add fchdir.
32239         * modules/chdir-safer (Depends-on): Likewise.
32240         * modules/fts (Depends-on): Likewise.
32241         * modules/fts-lgpl (Depends-on): Likewise.
32242         * modules/openat (Depends-on): Likewise.
32243         * modules/savewd (Depends-on): Likewise.
32244
32245 2007-05-24  Eric Blake  <ebb9@byu.net>
32246
32247         Fix lseek on mingw.
32248         * modules/lseek: New module.
32249         * m4/lseek.m4: New file.
32250         * lib/lseek.c: New file.
32251         * modules/lseek-tests: New file.
32252         * tests/test-lseek.c: New file.
32253         * tests/test-lseek.sh: New file.
32254         * MODULES.html.sh: Document lseek module.
32255         * modules/fflush (Depends-on): Add lseek, fseeko.
32256         * modules/fseeko (Depends-on): Likewise.
32257         * modules/ftello (Depends-on): Likewise.
32258         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32259         broken.
32260         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32261         broken.
32262         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32263         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32264         * lib/ftello.c (rpl_ftello): Likewise.
32265         * tests/test-fseeko.c (main): Test this.
32266         * tests/test-fseeko.sh: Likewise.
32267         * tests/test-ftello.c (main): Likewise.
32268         * tests/test-ftello.sh: Likewise.
32269         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32270         implies replacing fseek.
32271         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32272         HAVE_FTELLO.
32273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32274         * modules/unistd (Makefile.am): Likewise.
32275         * lib/unistd_.h (lseek): Declare a replacement.
32276         * doc/functions/lseek.texi (lseek): Document this fix.
32277         * doc/functions/fseek.texi (fseek): Likewise.
32278         * doc/functions/ftell.texi (ftell): Likewise.
32279
32280 2007-05-24  Bruno Haible  <bruno@clisp.org>
32281
32282         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32283         in the printed representation of a NaN.
32284         * tests/test-vasprintf-posix.c (test_function): Likewise.
32285         * tests/test-snprintf-posix.h (test_function): Likewise.
32286         * tests/test-sprintf-posix.h (test_function): Likewise.
32287         Reported by Eric Blake.
32288
32289 2007-05-23  Eric Blake  <ebb9@byu.net>
32290
32291         Fix fseeko/ftello on cygwin 1.5.24.
32292         * doc/functions/fseeko.texi (fseeko): Document the fix.
32293         * doc/functions/ftello.texi (ftello): Document the fix.
32294         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
32295         * doc/functions/stdout.text (stdout): New file.
32296         * doc/functions/stderr.text (stderr): New file.
32297         * doc/gnulib.texi (Function Substitutes): Use new files.
32298         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
32299         prior to 1.7.0.
32300         * tests/test-ftello.c (main): Likewise for ftello.
32301         * tests/test-fseeko.sh: New file.
32302         * tests/test-ftello.sh: New file.
32303         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
32304         with seekable stdin.
32305         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
32306         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
32307         (gl_REPLACE_FSEEKO): New macro.
32308         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
32309         * modules/fseeko (Files): Distribute fseeko.c.
32310         * modules/ftello (Files): Distribute ftello.c.
32311         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
32312         mode.
32313         * lib/ftello.c (rpl_ftello): New file.
32314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
32315         fseeko, ftello.
32316         (gl_STDIN_LARGE_OFFSET): New macro.
32317         * modules/stdio (Makefile.am): Perform the replacement.
32318         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
32319
32320 2007-05-23  Bruno Haible  <bruno@clisp.org>
32321
32322         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
32323         GNULIB_POSIXCHECK is defined.
32324
32325 2007-05-21  Bruno Haible  <bruno@clisp.org>
32326
32327         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
32328         Check also the output for NaN arguments. When cross-compiling, guess
32329         no on IRIX.
32330         * lib/vasnprintf.c: Update comments.
32331         * tests/test-vasnprintf-posix.c (strisnan): New function.
32332         (test_function): Use it.
32333         * tests/test-vasprintf-posix.c (strisnan): New function.
32334         (test_function): Use it.
32335         * tests/test-snprintf-posix.h (strisnan): New function.
32336         (test_function): Use it.
32337         * tests/test-sprintf-posix.h (strisnan): New function.
32338         (test_function): Use it.
32339         Reported by Eric Blake.
32340
32341 2007-05-20  Bruno Haible  <bruno@clisp.org>
32342
32343         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
32344         numbers that fails on BeOS.
32345         * doc/functions/frexpl.texi: Update.
32346
32347 2007-05-20  Jim Meyering  <jim@meyering.net>
32348
32349         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
32350         forced upon us by glibc-2.6.
32351
32352 2007-05-20  Bruno Haible  <bruno@clisp.org>
32353
32354         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
32355         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
32356         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
32357         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
32358         NEED_PRINTF_INFINITE.
32359         (is_infinitel): New function.
32360         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
32361         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
32362         gl_PREREQ_VASNPRINTF_INFINITE.
32363         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
32364         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32365         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
32366         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
32367         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
32368         gl_PREREQ_VASNPRINTF_INFINITE.
32369         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32370         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32371         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32372         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32373         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32375         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32376         * doc/functions/fprintf.texi: Update.
32377         * doc/functions/printf.texi: Update.
32378         * doc/functions/snprintf.texi: Update.
32379         * doc/functions/sprintf.texi: Update.
32380         * doc/functions/vfprintf.texi: Update.
32381         * doc/functions/vprintf.texi: Update.
32382         * doc/functions/vsnprintf.texi: Update.
32383         * doc/functions/vsprintf.texi: Update.
32384
32385 2007-05-20  Bruno Haible  <bruno@clisp.org>
32386
32387         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
32388         was not found in libc.
32389         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32390
32391 2007-05-20  Bruno Haible  <bruno@clisp.org>
32392
32393         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32394         printed as "-nan" instead of "nan".
32395         * tests/test-vasprintf-posix.c (test_function): Likewise.
32396         * tests/test-snprintf-posix.h (test_function): Likewise.
32397         * tests/test-sprintf-posix.h (test_function): Likewise.
32398         Needed for HP-UX 11.
32399
32400 2007-05-20  Jim Meyering  <jim@meyering.net>
32401
32402         Fix buggy test for the fchownat-deref bug.
32403         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
32404         symlink required for the run-test.  Without it, this test would
32405         always declare that fchownat doesn't work, and client code would
32406         unnecessarily use the replacement function with fixed libc.
32407         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
32408         Reported by Greg Schafer.
32409
32410 2007-05-19  Bruno Haible  <bruno@clisp.org>
32411
32412         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
32413         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
32414         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
32415         Needed for IRIX 6.5 and Solaris 2.5.1.
32416
32417 2007-05-19  Bruno Haible  <bruno@clisp.org>
32418
32419         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
32420         (test_function): Skip tests involving -0.0 on platforms where
32421         -0.0 = 0.0.
32422         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
32423         (test_function): Skip tests involving -0.0 on platforms where
32424         -0.0 = 0.0.
32425         * tests/test-snprintf-posix.h (have_minus_zero): New function.
32426         (test_function): Skip tests involving -0.0 on platforms where
32427         -0.0 = 0.0.
32428         * tests/test-sprintf-posix.h (have_minus_zero): New function.
32429         (test_function): Skip tests involving -0.0 on platforms where
32430         -0.0 = 0.0.
32431         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
32432         tests.
32433         * tests/test-printf-posix.h (test_function): Likewise.
32434         * tests/test-printf-posix.output: Remove all -0.0 related results.
32435         Needed for IRIX 6.5.
32436
32437 2007-05-19  Bruno Haible  <bruno@clisp.org>
32438
32439         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32440         printed as "nan0x7fffffff" instead of "nan".
32441         * tests/test-vasprintf-posix.c (test_function): Likewise.
32442         * tests/test-snprintf-posix.h (test_function): Likewise.
32443         * tests/test-sprintf-posix.h (test_function): Likewise.
32444         * tests/test-fprintf-posix.h (NaN): Remove macro.
32445         (test_function): Remove all NaN related tests.
32446         * tests/test-printf-posix.h (NaN): Remove macro.
32447         (test_function): Remove all NaN related tests.
32448         * tests/test-printf-posix.output: Remove all NaN related results.
32449         Needed for IRIX 6.5.
32450
32451 2007-05-19  Bruno Haible  <bruno@clisp.org>
32452
32453         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
32454         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
32455
32456 2007-05-19  Bruno Haible  <bruno@clisp.org>
32457
32458         * lib/float_.h: New file.
32459         * m4/float_h.m4: New file.
32460         * modules/float: New file.
32461         * modules/isnanl (Dependencies): Add float.
32462         * modules/isnanl-nolibm (Dependencies): Likewise.
32463         * modules/mathl (Dependencies): Likewise.
32464         * modules/printf-frexpl (Dependencies): Likewise.
32465         * modules/signbit (Dependencies): Likewise.
32466         * modules/vasnprintf (Dependencies): Likewise.
32467         * doc/headers/float.texi: Update.
32468
32469 2007-05-19  Jim Meyering  <jim@meyering.net>
32470
32471         * lib/utimens.c (gl_futimens): Rename from futimens,
32472         now that glibc-2.6 declares futimens.
32473         * lib/utimens.h: Likewise.
32474
32475 2007-05-19  Bruno Haible  <bruno@clisp.org>
32476
32477         Avoid test failures on mingw.
32478         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
32479         * tests/test-printf-posix.sh: Likewise.
32480         * tests/test-vfprintf-posix.sh: Likewise.
32481         * tests/test-vprintf-posix.sh: Likewise.
32482
32483 2007-05-19  Bruno Haible  <bruno@clisp.org>
32484
32485         Fix *printf result for NaN, Inf, -0.0 on mingw.
32486         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
32487         * lib/vasnprintf.c: Include math.h and isnan.h.
32488         (is_infinite_or_zero): New function.
32489         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
32490         values in the %f, %F, %e, %E, %g, %G directives.
32491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
32492         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32493         gl_PRINTF_INFINITE and test its result. Invoke
32494         gl_PREREQ_VASNPRINTF_INFINITE.
32495         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32496         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32497         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32498         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32499         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32500         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32501         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32502         * doc/functions/fprintf.texi: Update.
32503         * doc/functions/printf.texi: Update.
32504         * doc/functions/snprintf.texi: Update.
32505         * doc/functions/sprintf.texi: Update.
32506         * doc/functions/vfprintf.texi: Update.
32507         * doc/functions/vprintf.texi: Update.
32508         * doc/functions/vsnprintf.texi: Update.
32509         * doc/functions/vsprintf.texi: Update.
32510
32511 2007-05-19  Bruno Haible  <bruno@clisp.org>
32512
32513         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
32514         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
32515         Instead of multiplying with 10^k, set extra_zeroes to k.
32516         (scale10_round_long_double): Remove function.
32517
32518 2007-05-18  Bruno Haible  <bruno@clisp.org>
32519
32520         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
32521         introduced on 2007-05-06.
32522
32523 2007-05-18  Bruno Haible  <bruno@clisp.org>
32524
32525         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
32526         %g directives.
32527         * tests/test-vasprintf-posix.c (test_function): Likewise.
32528         * tests/test-snprintf-posix.h (test_function): Likewise.
32529         * tests/test-sprintf-posix.h (test_function): Likewise.
32530
32531 2007-05-18  Bruno Haible  <bruno@clisp.org>
32532
32533         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
32534         (strmatch): New function.
32535         (test_function): Test the %f directive on numbers of various exponents.
32536         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
32537         (strmatch): New function.
32538         (test_function): Test the %f directive on numbers of various exponents.
32539         * tests/test-snprintf-posix.h (strmatch): New function.
32540         (test_function): Test the %f directive on numbers of various exponents.
32541         * tests/test-sprintf-posix.h (strmatch): New function.
32542         (test_function): Test the %f directive on numbers of various exponents.
32543         * tests/test-snprintf-posix.c (SIZEOF): New macro.
32544         * tests/test-sprintf-posix.c (SIZEOF): New macro.
32545         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
32546         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
32547
32548 2007-05-18  Bruno Haible  <bruno@clisp.org>
32549
32550         Add support for 'long double' number output.
32551         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
32552         * lib/vasnprintf.c: Include math.h and float+.h.
32553         (mp_limb_t): New type.
32554         (GMP_LIMB_BITS): New macro.
32555         (mp_twolimb_t): New type.
32556         (GMP_TWOLIMB_BITS): New macro.
32557         (mpn_t): New type.
32558         (multiply, divide, convert_to_decimal, decode_long_double,
32559         scale10_round_long_double, scale10_round_decimal_long_double,
32560         floorlog10l): New functions.
32561         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
32562         for the %f, %F, %e, %E, %g, %G directives.
32563         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
32564         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32565         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
32566         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
32567         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32568         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32569         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32570         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32571         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32572         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32573         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32574         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
32575         * modules/snprintf-posix (Depends-on): Likewise.
32576         * modules/sprintf-posix (Depends-on): Likewise.
32577         * modules/vasnprintf-posix (Depends-on): Likewise.
32578         * modules/vasprintf-posix (Depends-on): Likewise.
32579         * modules/vfprintf-posix (Depends-on): Likewise.
32580         * modules/vsnprintf-posix (Depends-on): Likewise.
32581         * modules/vsprintf-posix (Depends-on): Likewise.
32582         * modules/vasnprintf (Files): Add lib/float+.h.
32583         * doc/functions/fprintf.texi: Update.
32584         * doc/functions/printf.texi: Update.
32585         * doc/functions/snprintf.texi: Update.
32586         * doc/functions/sprintf.texi: Update.
32587         * doc/functions/vfprintf.texi: Update.
32588         * doc/functions/vprintf.texi: Update.
32589         * doc/functions/vsnprintf.texi: Update.
32590         * doc/functions/vsprintf.texi: Update.
32591
32592 2007-05-18  Bruno Haible  <bruno@clisp.org>
32593
32594         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
32595
32596 2007-05-18  Bruno Haible  <bruno@clisp.org>
32597
32598         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
32599         for printing 64-bit integers. Needed for mingw.
32600
32601 2007-05-18  Bruno Haible  <bruno@clisp.org>
32602
32603         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32604         gl_FUNC_FREXPL_WORKS.
32605         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
32606
32607 2007-05-18  Bruno Haible  <bruno@clisp.org>
32608
32609         * modules/frexpl-nolibm-tests: New file.
32610
32611         * modules/frexpl-nolibm: New file.
32612         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
32613
32614 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32615
32616         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
32617         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32618         GCC 4.2, which otherwise issues a lot of warnings.
32619         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
32620         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
32621         Likewise.
32622         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
32623         * modules/iconv_open (iconv.h): Likewise.
32624         * modules/locale (locale.h): Likewise.
32625         * modules/netinet_in (netinet/in.h): Likewise.
32626         * modules/sys_select (sys_select.h): Likewise.
32627         * modules/sys_socket (sys/socket.h): Likewise.
32628         * modules/sys_stat (sys/stat.h): Likewise.
32629         * modules/sysexits (sysexits.h): Likewise.
32630         * modules/unistd (unistd.h): Likewise.
32631
32632 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32633
32634         * modules/closein-tests (Makefile.am): Distribute
32635         `test-closein.sh'.
32636
32637 2007-05-17  Bruno Haible  <bruno@clisp.org>
32638
32639         * tests/test-printf-posix.output: Renamed from
32640         tests/test-fprintf-posix.out.
32641         * modules/fprintf-posix-tests: Update.
32642         * modules/printf-posix-tests: Update.
32643         * modules/vfprintf-posix-tests: Update.
32644         * modules/vprintf-posix-tests: Update.
32645         * tests/test-fprintf-posix.sh: Update.
32646         * tests/test-printf-posix.sh: Update.
32647         * tests/test-vfprintf-posix.sh: Update.
32648         * tests/test-vprintf-posix.sh: Update.
32649         Reported by Ralf Wildenhues.
32650
32651 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32652
32653         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
32654         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32655         GCC 4.2, which otherwise issues a lot of warnings.
32656         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
32657         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
32658         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
32659         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
32660         it should no longer be needed.
32661         * lib/string_.h: Likewise.
32662         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
32663         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
32664         * modules/inttypes (inttypes.h): Likewise.
32665         * modules/math (math.h): Likewise.
32666         * modules/search (search.h): Likewise.
32667         * modules/signal (signal.h): Likewise.
32668         * modules/stdint (stdint.h): Likewise.
32669         * modules/stdio (stdio.h): Likewise.
32670         * modules/stdlib (stdlib.h): Likewise.
32671         * modules/string (string.h): Likewise.
32672         * modules/sys_time (sys/time.h): Likewise.
32673         * modules/time (time.h): Likewise.
32674         * modules/wchar (wchar.h): Likewise.
32675         * modules/wctype (wtype.h): Likewise.
32676
32677 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32678
32679         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
32680
32681 2007-05-13  Bruno Haible  <bruno@clisp.org>
32682
32683         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
32684         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32685         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
32686         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32687         (gl_PREREQ_STRTOK_R): Don't require it here.
32688
32689 2007-05-13  Bruno Haible  <bruno@clisp.org>
32690
32691         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
32692         when used in C++ mode.
32693
32694 2007-05-12  Bruno Haible  <bruno@clisp.org>
32695
32696         * lib/linebuffer.h: Tweak doc.
32697         * lib/linebuffer.c: Likewise.
32698
32699 2007-05-12  James Youngman  <jay@gnu.org>
32700
32701         * lib/linebuffer.c (readlinebuffer_delim): New function,
32702         like readlinebuffer, but use a caller-specified delimiter.
32703         (readlinebuffer): Just call readlinebuffer_delim with '\n'
32704         as the delimiter.
32705         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
32706
32707 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32708
32709         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
32710         * modules/openat (Files): Remove openat-die.c.
32711         (Depends-on): Add openat-die.
32712         * modules/openat-die: New module.
32713
32714 2007-05-06  Bruno Haible  <bruno@clisp.org>
32715
32716         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
32717         Update with info about Cygwin.
32718         * doc/functions/fprintf.texi: Update.
32719         * doc/functions/printf.texi: Update.
32720         * doc/functions/snprintf.texi: Update.
32721         * doc/functions/sprintf.texi: Update.
32722         * doc/functions/vfprintf.texi: Update.
32723         * doc/functions/vprintf.texi: Update.
32724         * doc/functions/vsnprintf.texi: Update.
32725         * doc/functions/vsprintf.texi: Update.
32726         Reported by Eric Blake.
32727
32728 2007-05-06  Bruno Haible  <bruno@clisp.org>
32729
32730         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
32731         padding ourselves for the floating-point directives.
32732         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
32733         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
32734         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32735         gl_PRINTF_FLAG_ZERO and test its result. Invoke
32736         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
32737         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32738         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32739         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32740         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32741         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32742         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32743         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32744         * tests/test-snprintf-posix.h (test_function): Also check the width
32745         and some flags in the %f directive.
32746         * tests/test-sprintf-posix.h (test_function): Likewise.
32747         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32748         * tests/test-vasprintf-posix.c (test_function): Likewise.
32749         * doc/functions/fprintf.texi: Update.
32750         * doc/functions/printf.texi: Update.
32751         * doc/functions/snprintf.texi: Update.
32752         * doc/functions/sprintf.texi: Update.
32753         * doc/functions/vfprintf.texi: Update.
32754         * doc/functions/vprintf.texi: Update.
32755         * doc/functions/vsnprintf.texi: Update.
32756         * doc/functions/vsprintf.texi: Update.
32757
32758 2007-05-06  Bruno Haible  <bruno@clisp.org>
32759
32760         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
32761         pass the ' flag character to sprintf or snprintf.
32762         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
32763         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
32764         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32765         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
32766         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
32767         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32768         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32769         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32770         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32771         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32772         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32773         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32774         * tests/test-snprintf-posix.h (test_function): Also check the grouping
32775         flag.
32776         * tests/test-sprintf-posix.h (test_function): Likewise.
32777         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32778         * tests/test-vasprintf-posix.c (test_function): Likewise.
32779         * doc/functions/fprintf.texi: Update.
32780         * doc/functions/printf.texi: Update.
32781         * doc/functions/snprintf.texi: Update.
32782         * doc/functions/sprintf.texi: Update.
32783         * doc/functions/vfprintf.texi: Update.
32784         * doc/functions/vprintf.texi: Update.
32785         * doc/functions/vsnprintf.texi: Update.
32786         * doc/functions/vsprintf.texi: Update.
32787
32788 2007-05-01  Bruno Haible  <bruno@clisp.org>
32789
32790         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
32791
32792 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
32793
32794         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
32795         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
32796
32797 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32798
32799         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
32800         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
32801         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
32802
32803 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
32804
32805         * lib/argp-help.c (struct hol_entry): New member `ord'.
32806         (HOL_ENTRY_PTRCMP): Use ord for comparison
32807         (hol_sort): Initialize ord.
32808
32809 2007-05-01  Bruno Haible  <bruno@clisp.org>
32810
32811         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
32812         Reported by Eric Blake.
32813         * doc/gnulib.texi (Function Substitutes): Update.
32814
32815 2007-05-01  Bruno Haible  <bruno@clisp.org>
32816
32817         * doc/functions.texi: Remove file, now redundant through
32818         doc/functions/*.texi.
32819
32820 2007-05-01  Bruno Haible  <bruno@clisp.org>
32821
32822         * modules/argp (Depends-on): Add sleep.
32823
32824 2007-05-01  Bruno Haible  <bruno@clisp.org>
32825
32826         * modules/sleep-tests: New file.
32827         * tests/test-sleep.c: New file.
32828
32829         * modules/sleep: New file.
32830         * lib/sleep.c: New file.
32831         * m4/sleep.m4: New file.
32832         * lib/unistd_.h (sleep): New declaration.
32833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
32834         HAVE_SLEEP.
32835         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
32836         * doc/functions/sleep.texi: Document the sleep module.
32837
32838 2007-05-01  Bruno Haible  <bruno@clisp.org>
32839
32840         * lib/sigprocmask.h: Remove file.
32841         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
32842         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
32843         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
32844         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
32845         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
32846         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
32847         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
32848         HAVE_SIGSET_T as a shell variable.
32849         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
32850         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
32851         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
32852         (Depends-on): Add signal. Remove verify.
32853         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
32854         (Include): Mention <signal.h> instead of sigprocmask.h.
32855         * NEWS: Mention the change.
32856         * lib/fatal-signal.c: Don't include sigprocmask.h.
32857
32858 2007-05-01  Bruno Haible  <bruno@clisp.org>
32859
32860         * modules/signal: New file.
32861         * lib/signal_.h: New file.
32862         * m4/signal_h.m4: New file.
32863
32864 2007-05-01  Bruno Haible  <bruno@clisp.org>
32865
32866         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
32867         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
32868         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
32869         HAVE_WCTYPE_CTMP_BUG into wctype.h.
32870
32871 2007-05-01  Bruno Haible  <bruno@clisp.org>
32872
32873         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
32874         configure time.
32875         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
32876         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
32877         * modules/sys_stat (Makefile.am): Substitute their values into
32878         sys/stat.h.
32879
32880 2007-05-01  Bruno Haible  <bruno@clisp.org>
32881
32882         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
32883         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
32884         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
32885
32886 2007-05-01  Bruno Haible  <bruno@clisp.org>
32887
32888         * doc/header/assert.texi: Undo last change: don't mention the gnulib
32889         'assert' module here.
32890
32891 2007-05-01  Bruno Haible  <bruno@clisp.org>
32892
32893         * doc/functions/*.texi: New files.
32894         * doc/functions/google-ranking.txt: New file.
32895         * doc/gnulib.texi (Function Substitutes): New chapter.
32896         (ctime, inet_ntoa): Remove sections.
32897         * doc/ctime.texi: Remove file.
32898         * doc/inet_ntoa.texi: Remove file.
32899         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
32900         dependencies.
32901         (%.info): New rule, specifying a --reference-limit.
32902
32903 2007-05-01  Bruno Haible  <bruno@clisp.org>
32904
32905         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
32906
32907 2007-05-01  Bruno Haible  <bruno@clisp.org>
32908
32909         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
32910         the portability of 'mkdir' to mingw systems.
32911
32912 2007-05-01  Bruno Haible  <bruno@clisp.org>
32913
32914         * doc/headers/google-ranking.txt: New file.
32915
32916 2007-04-30  Eric Blake  <ebb9@byu.net>
32917
32918         Prefer fseeko to fseek.
32919         * modules/getpass (Depends-on): Add fseeko.
32920         * lib/getpass.c (getpass): Use fseeko, not fseek.
32921
32922 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
32923
32924         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
32925         assumes the sorting is stable, while most qsort implementations
32926         are not.  Use argument addresses to ensure they never compare as
32927         equal.
32928
32929         * tests/test-argp-2.sh (usage-indent test): Fix output
32930         (func_compare): Restore diff options
32931         * tests/test-argp.c: Restore #include "progname.h"
32932
32933 2007-04-29  Bruno Haible  <bruno@clisp.org>
32934
32935         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
32936         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32937         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
32938         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32939         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
32940         (configure.ac): Define CHECK_SNPRINTF_POSIX.
32941         (TESTS, check_PROGRAMS): Add test-snprintf.
32942         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
32943         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
32944         (TESTS, check_PROGRAMS): Add test-vsnprintf.
32945         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
32946         assertions that fail on HP-UX, OSF/1, or IRIX.
32947         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
32948
32949 2007-04-29  Bruno Haible  <bruno@clisp.org>
32950
32951         * MODULES.html.sh (posix_functions): Remove 'contents'.
32952
32953 2007-04-29  Karl Berry  <karl@gnu.org>
32954
32955         * config/srclist.txt (gendocs_template_min): new entry.
32956
32957 2007-04-29  Bruno Haible  <bruno@clisp.org>
32958
32959         Work around fpurge bug on BSD systems.
32960         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
32961         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
32962         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
32963         fpurge to rpl_fpurge if the system already has this function.
32964         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
32965         the case where the system already has this function. Correct invariants
32966         on BSD systems.
32967         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
32968         BSD systems.
32969
32970 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
32971
32972         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
32973         proposed by Sven Verdoolaege.
32974
32975         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
32976         options.
32977         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
32978         (usage and help tests): Update
32979
32980 2007-04-29  Bruno Haible  <bruno@clisp.org>
32981
32982         * tests/test-fflush.c (main): Use a file of size 17, not 10.
32983         Print more information in case of failure. Disable a test on BeOS.
32984
32985 2007-04-29  Bruno Haible  <bruno@clisp.org>
32986
32987         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
32988         This helps debugging on systems on which no gdb is available.
32989
32990 2007-04-29  Bruno Haible  <bruno@clisp.org>
32991
32992         * lib/freading.h: Improve comments.
32993         * lib/fwriting.h: Likewise.
32994         * tests/test-freading.c (main): Don't check freading immediately after
32995         repositioning. Needed for glibc.
32996
32997 2007-04-29  Bruno Haible  <bruno@clisp.org>
32998
32999         * lib/freading.c (freading): Trivial simplification.
33000
33001 2007-04-28  Bruno Haible  <bruno@clisp.org>
33002
33003         * tests/test-fwriting.c (main): Also test the interaction between
33004         fflush and fwriting.
33005         * modules/fwriting-tests (Depends-on): Add fflush.
33006
33007         * tests/test-freading.c (main): Also test the interaction between
33008         fflush and freading.
33009         * modules/freading-tests (Depends-on): Add fflush.
33010
33011 2007-04-28  Bruno Haible  <bruno@clisp.org>
33012
33013         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33014         fseeko and ftello.
33015         Suggested by Eric Blake.
33016
33017 2007-04-28  Jim Meyering  <jim@meyering.net>
33018
33019         Avoid false-negative in gl_STDINT_H's C99 conformance test.
33020         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33021         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33022
33023 2007-04-27  Eric Blake  <ebb9@byu.net>
33024
33025         * doc/headers/assert.texi (assert.h): Document assert module use.
33026
33027 2007-04-27  Bruno Haible  <bruno@clisp.org>
33028
33029         * doc/headers/*.texi: New files.
33030         * doc/gnulib.texi (Header File Substitutes): New chapter.
33031         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33032         dependencies.
33033         (standards.info ,standards.html, standards.dvi): Update dependencies.
33034         (mostlyclean, clean): New targets.
33035
33036 2007-04-27  Bruno Haible  <bruno@clisp.org>
33037
33038         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33039         * modules/sysexits (Files, Makefile.am): Update.
33040
33041         * lib/sys_socket_.h: Renamed from lib/socket_.h.
33042         * modules/sys_socket (Files, Makefile.am): Update.
33043
33044         * lib/sys_stat_.h: Renamed from lib/stat_.h.
33045         * modules/sys_stat (Files, Makefile.am): Update.
33046
33047 2007-04-27  Eric Blake  <ebb9@byu.net>
33048
33049         * lib/freading.h: Improve comments.
33050         * lib/fwriting.h: Likewise.
33051         * lib/fflush.c: Likewise.
33052
33053         Fix closein for mingw.
33054         * modules/closein-tests: Add tests for closein.
33055         * tests/test-closein.c: New file.
33056         * tests/test-closein.sh: Likewise.
33057         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33058         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33059
33060 2007-04-27  Bruno Haible  <bruno@clisp.org>
33061
33062         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33063         version is < 6.
33064         * lib/math_.h [__DECC]: Likewise.
33065         * lib/stdio_.h [__DECC]: Likewise.
33066         * lib/stdlib_.h [__DECC]: Likewise.
33067         * lib/string_.h [__DECC]: Likewise.
33068         * lib/time_.h [__DECC]: Likewise.
33069         * lib/wchar_.h [__DECC]: Likewise.
33070         * lib/wctype_.h [__DECC]: Likewise.
33071
33072 2007-04-27  Bruno Haible  <bruno@clisp.org>
33073
33074         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33075
33076 2007-04-27  Bruno Haible  <bruno@clisp.org>
33077
33078         * lib/fflush.c: Add comments.
33079         * modules/fpurge-tests (Depends-on): Add fflush.
33080         * modules/freadable-tests (Depends-on): Likewise.
33081         * modules/fwritable-tests (Depends-on): Likewise.
33082
33083 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
33084
33085         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33086         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
33087         Report by Bruno Haible <bruno@clisp.org>.
33088
33089 2007-04-26  Eric Blake  <ebb9@byu.net>
33090
33091         Fix fflush on mingw.
33092         * modules/fflush (Depends-on): Add freading.
33093         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33094         but unread data.
33095
33096 2007-04-26  Eric Blake  <ebb9@byu.net>
33097         and Bruno Haible  <bruno@clisp.org>
33098
33099         Implement freading and fwriting.
33100         * lib/freading.c: New file.
33101         * lib/freading.h: Likewise.
33102         * m4/freading.m4: Likewise.
33103         * modules/freading: Likewise.
33104         * modules/freading-tests: Likewise.
33105         * tests/test-freading.c: Likewise.
33106         * lib/fwriting.c: New file.
33107         * lib/fwriting.h: Likewise.
33108         * m4/fwriting.m4: Likewise.
33109         * modules/fwriting: Likewise.
33110         * modules/fwriting-tests: Likewise.
33111         * tests/test-fwriting.c: Likewise.
33112         * MODULES.html.sh (File stream based Input/Output): Mention them.
33113
33114 2007-04-26  Bruno Haible  <bruno@clisp.org>
33115
33116         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33117         'long' when we assume it.
33118         Suggested by Eric Blake.
33119
33120 2007-04-26  Bruno Haible  <bruno@clisp.org>
33121
33122         Ensure fseeko, ftello are declared on glibc systems.
33123         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33124         * modules/fseeko (configure.ac-early): Likewise.
33125         * modules/ftello (configure.ac-early): Likewise.
33126         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33127         AC_FUNC_FSEEKO for this.
33128         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33129         (gl_CHECK_FSEEKO): Remove macro.
33130
33131 2007-04-26  Bruno Haible  <bruno@clisp.org>
33132
33133         * tests/test-fflush.c (main): Also check the ftell result after
33134         fflush and fseek/fseeko.
33135         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33136         file descriptor position cache in the stream.
33137         * lib/fseeko.c (rpl_fseeko): Likewise.
33138
33139 2007-04-26  Bruno Haible  <bruno@clisp.org>
33140
33141         * modules/fflush-tests (Depends-on): Add fseeko.
33142
33143 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
33144             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33145
33146         * lib/argz_.h: ensure error_t definition is obtained in same
33147         mechanism system argz.h would have.
33148         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33149         argz facilities are known bad.  Err on the side of caution if
33150         cross-compiling.
33151
33152 2007-04-25  Eric Blake  <ebb9@byu.net>
33153
33154         * lib/fpurge.c (includes): Use stdlib.h for free.
33155         * tests/test-fflush.c (main): Also test fflush-fseeko.
33156
33157 2007-04-25  Bruno Haible  <bruno@clisp.org>
33158
33159         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33160         * lib/fseeko.c: New file.
33161         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33162         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33163         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33164         gl_FUNC_FSEEKO.
33165         (gl_FUNC_FSEEKO): Invoke it.
33166         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33167         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33168         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33169
33170 2007-04-25  Bruno Haible  <bruno@clisp.org>
33171
33172         * modules/fflush (Depends-on): Add ftello.
33173
33174 2007-04-25  Bruno Haible  <bruno@clisp.org>
33175
33176         * modules/ftello-tests: New file.
33177         * tests/test-ftello.c: New file.
33178
33179         * modules/ftello: New file.
33180         * m4/ftello.m4: New file.
33181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33182         HAVE_FTELLO.
33183         * lib/stdio_.h (ftello): New declaration.
33184         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33185         HAVE_FTELLO.
33186
33187 2007-04-25  Bruno Haible  <bruno@clisp.org>
33188
33189         * modules/fseeko-tests: New file.
33190         * tests/test-fseeko.c: New file.
33191
33192         * modules/fseeko: New file.
33193         * m4/fseeko.m4: New file.
33194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33195         HAVE_FSEEKO.
33196         * lib/stdio_.h (fseeko): New declaration.
33197         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33198         HAVE_FSEEKO.
33199
33200 2007-04-25  Bruno Haible  <bruno@clisp.org>
33201
33202         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33203
33204 2007-04-25  Bruno Haible  <bruno@clisp.org>
33205
33206         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33207         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33208         * tests/test-unistd.c: Likewise.
33209         * tests/test-fcntl.c: Likewise.
33210
33211 2007-04-23  Eric Blake  <ebb9@byu.net>
33212
33213         * lib/fflush.c: Fix missing include.
33214         Reported by Bruno Haible.
33215
33216 2007-04-23  Bruno Haible  <bruno@clisp.org>
33217
33218         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33219         Reported by Eric Blake.
33220
33221 2007-04-23  Bruno Haible  <bruno@clisp.org>
33222
33223         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33224
33225 2007-04-23  Bruno Haible  <bruno@clisp.org>
33226
33227         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33228
33229 2007-04-23  Bruno Haible  <bruno@clisp.org>
33230
33231         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33232         Needed on HP-UX 11.
33233
33234 2007-04-16  Eric Blake  <ebb9@byu.net>
33235
33236         Make fflush rely on fpurge.
33237         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33238         open coding all variants.
33239         * modules/fflush (Depends-on): Add fpurge and unistd.
33240         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33241         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33242
33243         Fix --with-tests compilation on cygwin.
33244         * modules/argmatch-tests (Makefile.am): List gnulib library first
33245         in LDADD.
33246         * modules/argp-tests (Makefile.am): Likewise.
33247         * modules/array-list-tests (Makefile.am): Likewise.
33248         * modules/array-oset-tests (Makefile.am): Likewise.
33249         * modules/avltree-list-tests (Makefile.am): Likewise.
33250         * modules/avltree-oset-tests (Makefile.am): Likewise.
33251         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33252         * modules/carray-list-tests (Makefile.am): Likewise.
33253         * modules/dirname-tests (Makefile.am): Likewise.
33254         * modules/frexp-tests (Makefile.am): Likewise.
33255         * modules/isnanl-tests (Makefile.am): Likewise.
33256         * modules/linked-list-tests (Makefile.am): Likewise.
33257         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33258         * modules/lock-tests (Makefile.am): Likewise.
33259         * modules/rbtree-list-tests (Makefile.am): Likewise.
33260         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33261         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33262         * modules/tls-tests (Makefile.am): Likewise.
33263         * modules/tsearch-tests (Makefile.am): Likewise.
33264         * modules/xvasprintf-tests (Makefile.am): Likewise.
33265
33266         Fix fpurge for cygwin.
33267         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33268         value.
33269         * modules/fpurge-tests (Depends-on): Clean up trash.
33270
33271 2007-04-16  Simon Josefsson  <simon@josefsson.org>
33272
33273         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33274
33275         * m4/autobuild.m4: Re-indent.
33276
33277 2007-04-13  Bruno Haible  <bruno@clisp.org>
33278
33279         * modules/fpurge-tests: New file.
33280         * tests/test-fpurge.c: New file.
33281
33282         * modules/fpurge: New file.
33283         * lib/fpurge.h: New file.
33284         * lib/fpurge.c: New file.
33285         * m4/fpurge.m4: New file.
33286
33287 2007-04-13  Bruno Haible  <bruno@clisp.org>
33288
33289         * modules/fbufmode-tests: New file.
33290         * tests/test-fbufmode.c: New file.
33291
33292         * modules/fbufmode: New file.
33293         * lib/fbufmode.h: New file.
33294         * lib/fbufmode.c: New file.
33295         * m4/fbufmode.m4: New file.
33296
33297 2007-04-13  Bruno Haible  <bruno@clisp.org>
33298
33299         * modules/fwritable-tests: New file.
33300         * tests/test-fwritable.c: New file.
33301
33302         * modules/fwritable: New file.
33303         * lib/fwritable.h: New file.
33304         * lib/fwritable.c: New file.
33305         * m4/fwritable.m4: New file.
33306
33307 2007-04-13  Bruno Haible  <bruno@clisp.org>
33308
33309         * modules/freadable-tests: New file.
33310         * tests/test-freadable.c: New file.
33311
33312         * modules/freadable: New file.
33313         * lib/freadable.h: New file.
33314         * lib/freadable.c: New file.
33315         * m4/freadable.m4: New file.
33316
33317 2007-04-13  Bruno Haible  <bruno@clisp.org>
33318
33319         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
33320         MOSTLYCLEANFILES.
33321
33322 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33323
33324         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
33325         gzip bootstrap.conf to avoid dragging in i18n machinery.
33326         (gnulib_tool_option): Use it.
33327
33328 2007-04-13  Bruno Haible  <bruno@clisp.org>
33329
33330         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
33331         %F directives.
33332         * tests/test-vasprintf-posix.c (test_function): Likewise.
33333         * tests/test-snprintf-posix.h (test_function): Likewise.
33334         * tests/test-sprintf-posix.h (test_function): Likewise.
33335         * tests/test-fprintf-posix.h (test_function): Likewise.
33336         * tests/test-printf-posix.h (test_function): Likewise.
33337         * tests/test-fprintf-posix.out: Likewise.
33338
33339 2007-04-13  Bruno Haible  <bruno@clisp.org>
33340
33341         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
33342         * modules/tls-tests (configure.ac): Likewise.
33343         Reported by Arto C. Nirkko <anirkko@insel.ch>.
33344
33345 2007-04-13  Bruno Haible  <bruno@clisp.org>
33346
33347         * lib/tls.c (glthread_tls_get): Fix return type.
33348         Patch by Arto C. Nirkko <anirkko@insel.ch>.
33349
33350 2007-04-12  Eric Blake  <ebb9@byu.net>
33351
33352         * modules/gettime (Depends-on): Remove gettime.
33353         Reported by Dmitry V. Levin.
33354
33355 2007-04-12  Bruno Haible  <bruno@clisp.org>
33356
33357         * modules/fflush (Include): Mention <stdio.h>.
33358         * modules/strtoimax (Include): Mention <inttypes.h>.
33359         * modules/strtoumax (Include): Likewise.
33360
33361 2007-04-12  Eric Blake  <ebb9@byu.net>
33362
33363         * .cvsignore: New file.
33364         * .gitignore: Likewise.
33365
33366 2007-04-12  Bruno Haible  <bruno@clisp.org>
33367
33368         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
33369         not before, since $(LDADD) often contains libgnu.a.
33370         * modules/striconv-tests (test_striconv_LDADD): Likewise.
33371         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
33372         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
33373         Needed on Cygwin.
33374
33375 2007-04-12  Eric Blake  <ebb9@byu.net>
33376
33377         Work around glibc's failure to flush stdin on fclose.
33378         * lib/closein.c (close_stdin): Flush stdin before closing.
33379
33380         Work around glibc's failure to reset seekable stdin on exit.
33381         * modules/closein: New module.
33382         * lib/closein.c: New file.
33383         * lib/closein.h: Likewise.
33384         * m4/closein.m4: Likewise.
33385         * MODULES.html.sh (File stream based Input/Output): Document it.
33386
33387 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33388
33389         * gnulib-tool: Rename generated 'autobuild' script to
33390         'do-autobuild' in --create-megatestdir output.
33391
33392         * doc/gnulib.texi (Build robot for gnulib): Fix.
33393
33394 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33395
33396         * modules/sysexits (Depends-on): Add absolute-header.
33397
33398 2007-04-12  Eric Blake  <ebb9@byu.net>
33399
33400         No need to preserve errno on success.
33401         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
33402         Reported by Bruno Haible.
33403
33404 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33405
33406         * MODULES.html.sh (Support for maintaining and releasing
33407         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
33408
33409 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33410
33411         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
33412
33413 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33414
33415         * modules/autobuild: New module.
33416
33417         * m4/autobuild.m4: New file.
33418
33419 2007-04-11  Bruno Haible  <bruno@clisp.org>
33420
33421         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
33422         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
33423         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
33424         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
33425         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33426         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33427         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33429         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33430         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33431         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
33432         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33433         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
33435         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33436         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33437         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
33438         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33439         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33440         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
33441         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33442         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33443         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
33444         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33445         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33446         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
33447         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33448         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33449         Reported by Eric Blake.
33450
33451 2007-04-11  Bruno Haible  <bruno@clisp.org>
33452
33453         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
33454
33455 2007-04-10  Bruno Haible  <bruno@clisp.org>
33456
33457         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
33458         for NaN and Infinity. Needed on FreeBSD 6.1.
33459         * tests/test-vasnprintf-posix.c (test_function): Undo last change
33460         regarding results for "%010a" of Infinity and NaN.
33461         * tests/test-vasprintf-posix.c (test_function): Likewise.
33462         * tests/test-snprintf-posix.h (test_function): Likewise.
33463         * tests/test-sprintf-posix.h (test_function): Likewise.
33464         * tests/test-fprintf-posix.h (test_function): Likewise.
33465         * tests/test-printf-posix.h (test_function): Likewise.
33466         * tests/test-fprintf-posix.out: Likewise.
33467
33468 2007-04-10  Bruno Haible  <bruno@clisp.org>
33469
33470         * modules/locale-tests: New file.
33471         * tests/test-locale.c: New file.
33472
33473         * modules/locale: New file.
33474         * lib/locale_.h: New file.
33475         * m4/locale_h.m4: New file.
33476
33477 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
33478             Bruno Haible  <bruno@clisp.org>
33479
33480         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
33481         be determined, test for availability of the copysignf, copysign,
33482         copysignl functions.
33483         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
33484         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
33485         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
33486
33487 2007-04-09  Eric Blake  <ebb9@byu.net>
33488
33489         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
33490         * modules/stdio (Makefile.am): Support fflush.
33491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33492         * modules/fflush: New file.
33493         * lib/fflush.c: Likewise.
33494         * m4/fflush.m4: Likewise.
33495         * modules/fflush-tests: New test.
33496         * tests/test-fflush.c: Likewise.
33497         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
33498
33499 2007-04-06  Bruno Haible  <bruno@clisp.org>
33500
33501         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
33502         (VASNPRINTF): Use signbit for faster determination whether to print a
33503         minus sign.
33504         * modules/vasnprintf (Files): Remove lib/float+.h.
33505         * modules/fprintf-posix (Depends-on): Add signbit.
33506         * modules/snprintf-posix (Depends-on): Likewise.
33507         * modules/sprintf-posix (Depends-on): Likewise.
33508         * modules/vasnprintf-posix (Depends-on): Likewise.
33509         * modules/vasprintf-posix (Depends-on): Likewise.
33510         * modules/vfprintf-posix (Depends-on): Likewise.
33511         * modules/vsnprintf-posix (Depends-on): Likewise.
33512         * modules/vsprintf-posix (Depends-on): Likewise.
33513
33514 2007-04-06  Bruno Haible  <bruno@clisp.org>
33515
33516         * tests/test-frexp.c (main): Test also the sign bit of zero results.
33517         * tests/test-frexpl.c (main): Likewise.
33518         * tests/test-ldexpl.c (main): Likewise.
33519         * modules/frexp-tests (Depends-on): Add signbit.
33520         * modules/frexpl-tests (Depdends-on): Likewise.
33521         * modules/ldexpl-tests (Depdends-on): Likewise.
33522
33523 2007-04-06  Bruno Haible  <bruno@clisp.org>
33524
33525         * modules/signbit-tests: New file.
33526         * tests/test-signbit.c: New file.
33527
33528         * modules/signbit: New file.
33529         * lib/signbitf.c: New file.
33530         * lib/signbitd.c: New file.
33531         * lib/signbitl.c: New file.
33532         * m4/signbit.m4: New file.
33533         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
33534         (signbit): New macro.
33535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
33536         REPLACE_SIGNBIT.
33537         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
33538         REPLACE_FREXPL into math.h.
33539
33540 2007-04-06  Bruno Haible  <bruno@clisp.org>
33541
33542         * modules/isnanf-nolibm-tests: New file.
33543         * tests/test-isnanf.c: New file.
33544
33545         * modules/isnanf-nolibm: New file.
33546         * lib/isnanf.h: New file.
33547         * lib/isnanf.c: New file.
33548         * lib/isnan.c: Consider the USE_FLOAT macro.
33549         * m4/isnanf.m4: New file.
33550
33551 2007-04-06  Bruno Haible  <bruno@clisp.org>
33552
33553         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
33554         (Link): New section.
33555
33556         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
33557
33558 2007-04-06  Bruno Haible  <bruno@clisp.org>
33559
33560         Assume the 'long double' type.
33561         * m4/longdouble.m4: Remove file.
33562         * config/srclist.txt: Don't mention longdouble.m4.
33563         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
33564         * lib/float+.h: Likewise.
33565         * lib/frexp.c: Likewise.
33566         * lib/printf-args.h: Likewise.
33567         * lib/printf-args.c: Likewise.
33568         * lib/printf-frexp.c: Likewise.
33569         * lib/printf-parse.c: Likewise.
33570         * lib/vasnprintf.c: Likewise.
33571         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
33572         * m4/intl.m4: Likewise.
33573         * m4/isnanl.m4: Likewise.
33574         * m4/printf.m4: Likewise.
33575         * m4/printf-frexpl.m4: Likewise.
33576         * m4/vasnprintf.m4: Likewise.
33577         * modules/allocsa (Files): Remove m4/longdouble.m4.
33578         * modules/gettext (Files): Likewise.
33579         * modules/relocatable-prog-wrapper (Files): Likewise.
33580         * modules/vasnprintf (Files): Likewise.
33581         * modules/isnanl (Files): Likewise.
33582         (Include): Simplify.
33583         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
33584         (Include): Simplify.
33585         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
33586         (Include): Simplify.
33587         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
33588         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33589         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
33590         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33591         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33592         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33593         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
33594         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33595         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33596         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33597         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
33598         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33599         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
33600         * tests/test-isnanl.c: Likewise.
33601         * tests/test-snprintf-posix.h: Likewise.
33602         * tests/test-sprintf-posix.h: Likewise.
33603         * tests/test-vasnprintf-posix.c: Likewise.
33604         * tests/test-vasnprintf-posix2.c: Likewise.
33605         * tests/test-vasprintf-posix.c: Likewise.
33606
33607 2007-04-06  Bruno Haible  <bruno@clisp.org>
33608
33609         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
33610         * lib/math_.h [__DECC]: Include the overridden include file through
33611         #include_next, outside the double-inclusion guard.
33612         * lib/stdio_.h [__DECC]: Likewise.
33613         * lib/stdlib_.h [__DECC]: Likewise.
33614         * lib/string_.h [__DECC]: Likewise.
33615         * lib/time_.h [__DECC]: Likewise.
33616         * lib/wchar_.h [__DECC]: Likewise.
33617         * lib/wctype_.h [__DECC]: Likewise.
33618         * lib/inttypes_.h [__DECC]: Likewise.
33619         Reported by Albert Chin <china@thewrittenword.com> in
33620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
33621
33622 2007-04-04  Eric Blake  <ebb9@byu.net>
33623
33624         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
33625         1.5.x.
33626
33627 2007-04-04  Bruno Haible  <bruno@clisp.org>
33628
33629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
33630         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
33631
33632 2007-04-04  Bruno Haible  <bruno@clisp.org>
33633
33634         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
33635         results for "%010a" of Infinity and NaN.
33636         * tests/test-vasprintf-posix.c (test_function): Likewise.
33637         * tests/test-snprintf-posix.h (test_function): Likewise.
33638         * tests/test-sprintf-posix.h (test_function): Likewise.
33639         * tests/test-fprintf-posix.h (test_function): Remove these tests.
33640         * tests/test-printf-posix.h (test_function): Likewise.
33641         * tests/test-fprintf-posix.out: Update.
33642         Needed for FreeBSD 6.1.
33643
33644 2007-04-04  Bruno Haible  <bruno@clisp.org>
33645
33646         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
33647         directly used by the gnulib modules nor by gnulib-tool.
33648
33649 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33650
33651         * DEPENDENCIES: Give overall description of version dependency
33652         desirability.  Use more-typical names for apps.
33653         Add shell, coreutils, diffutils, grep, tar, gzip.
33654
33655 2007-04-04  Simon Josefsson  <simon@josefsson.org>
33656
33657         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
33658
33659 2007-04-04  Karl Berry  <karl@gnu.org>
33660
33661         * MODULES.html.sh (func_module): missing '.
33662
33663 2007-04-03  Bruno Haible  <bruno@clisp.org>
33664
33665         * modules/argmatch-tests (Makefile.am): New variable
33666         test_argmatch_LDADD.
33667         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
33668         * modules/array-list-tests (Makefile.am): New variable
33669         test_array_list_LDADD.
33670         * modules/array-oset-tests (Makefile.am): New variable
33671         test_array_oset_LDADD.
33672         * modules/avltree-list-tests (Makefile.am): New variable
33673         test_avltree_list_LDADD.
33674         * modules/avltree-oset-tests (Makefile.am): New variable
33675         test_avltree_oset_LDADD.
33676         * modules/avltreehash-list-tests (Makefile.am): New variable
33677         test_avltreehash_list_LDADD.
33678         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
33679         test_canonicalize_lgpl_LDADD.
33680         * modules/carray-list-tests (Makefile.am): New variable
33681         test_carray_list_LDADD.
33682         * modules/dirname-tests (Makefile.am): New variable
33683         test_dirname_LDADD.
33684         * modules/linked-list-tests (Makefile.am): New variable
33685         test_linked_list_LDADD.
33686         * modules/linkedhash-list-tests (Makefile.am): New variable
33687         test_linkedhash_list_LDADD.
33688         * modules/rbtree-list-tests (Makefile.am): New variable
33689         test_rbtree_list_LDADD.
33690         * modules/rbtree-oset-tests (Makefile.am): New variable
33691         test_rbtree_oset_LDADD.
33692         * modules/rbtreehash-list-tests (Makefile.am): New variable
33693         test_rbtreehash_list_LDADD.
33694         * modules/xvasprintf-tests (Makefile.am): New variable
33695         test_xvasprintf_LDADD.
33696         Reported by Eric Blake.
33697
33698 2007-04-03  Eric Blake  <ebb9@byu.net>
33699
33700         * DEPENDENCIES: Weaken m4 requirements.
33701
33702 2007-04-03  Bruno Haible  <bruno@clisp.org>
33703
33704         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
33705         * modules/isnanl-tests (configure.ac): Likewise.
33706
33707 2007-04-03  Ben Pfaff  <blp@gnu.org>
33708
33709         * modules/iconv_open: Add $(srcdir)/ to source directory
33710         references in Makefile fragments that call gperf, to fix VPATH
33711         builds.
33712
33713 2007-04-03  Bruno Haible  <bruno@clisp.org>
33714
33715         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
33716         * lib/ldexpl.c: Undo last change.
33717
33718 2007-04-03  Bruno Haible  <bruno@clisp.org>
33719
33720         * modules/printf-frexpl (Depends-on): Undo last change.
33721         (Files): Add m4/ldexpl.m4.
33722
33723 2007-04-03  Bruno Haible  <bruno@clisp.org>
33724
33725         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
33726         * modules/isnanl (Link): New section.
33727
33728         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
33729         * modules/frexp (Link): New section.
33730
33731         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
33732         * modules/frexpl (Link): New section.
33733
33734         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
33735         * modules/ldexpl (Link): New section.
33736
33737 2007-04-03  Bruno Haible  <bruno@clisp.org>
33738
33739         * modules/TEMPLATE-EXTENDED: New file.
33740         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
33741
33742 2007-04-03  Bruno Haible  <bruno@clisp.org>
33743
33744         * DEPENDENCIES: New file.
33745         Suggested by Simon Josefsson.
33746
33747 2007-04-03  Bruno Haible  <bruno@clisp.org>
33748
33749         * doc/gnulib.texi: Escape @.
33750
33751 2007-04-03  James Youngman  <jay@gnu.org>
33752         and Paul Eggert  <eggert@cs.ucla.edu>
33753
33754         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
33755         birthtime on all systems that have birthtime, not just those which
33756         use st_birthtimensec rather than st_birthtim.  Putting zero in
33757         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
33758         that the birth time is not available for files on an NFS mount.
33759
33760 2007-04-03  Simon Josefsson  <simon@josefsson.org>
33761
33762         * modules/memxor: Move back from crypto/, suggested by Bruno.
33763         * modules/crypto/hmac-sha1: Fix memxor dependency.
33764
33765         * modules/crypto/gc: Moved from ../.
33766
33767 2007-04-02  Eric Blake  <ebb9@byu.net>
33768
33769         * lib/ldexpl.c (includes): Avoid libm.
33770
33771         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
33772
33773 2007-04-02  Bruno Haible  <bruno@clisp.org>
33774
33775         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
33776         on IRIX.
33777
33778 2007-04-02  Bruno Haible  <bruno@clisp.org>
33779
33780         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
33781         x86 or x86_64 platforms running MacOS X.
33782         Reported by Ryan Schmidt <@ryandesign.com>.
33783
33784 2007-04-02  Bruno Haible  <bruno@clisp.org>
33785
33786         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
33787         i386.
33788
33789 2007-04-01  Simon Josefsson  <simon@josefsson.org>
33790
33791         * modules/crypto/arcfour: Moved from ../.
33792         * modules/crypto/arcfour-tests: Moved from ../.
33793         * modules/crypto/arctwo: Moved from ../.
33794         * modules/crypto/arctwo-tests: Moved from ../.
33795         * modules/crypto/des: Moved from ../.
33796         * modules/crypto/des-tests: Moved from ../.
33797         * modules/crypto/gc-arcfour: Moved from ../.
33798         * modules/crypto/gc-arcfour-tests: Moved from ../.
33799         * modules/crypto/gc-arctwo: Moved from ../.
33800         * modules/crypto/gc-arctwo-tests: Moved from ../.
33801         * modules/crypto/gc-des: Moved from ../.
33802         * modules/crypto/gc-des-tests: Moved from ../.
33803         * modules/crypto/gc-hmac-md5: Moved from ../.
33804         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
33805         * modules/crypto/gc-hmac-sha1: Moved from ../.
33806         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
33807         * modules/crypto/gc-md2: Moved from ../.
33808         * modules/crypto/gc-md2-tests: Moved from ../.
33809         * modules/crypto/gc-md4: Moved from ../.
33810         * modules/crypto/gc-md4-tests: Moved from ../.
33811         * modules/crypto/gc-md5: Moved from ../.
33812         * modules/crypto/gc-md5-tests: Moved from ../.
33813         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
33814         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
33815         * modules/crypto/gc-random: Moved from ../.
33816         * modules/crypto/gc-rijndael: Moved from ../.
33817         * modules/crypto/gc-rijndael-tests: Moved from ../.
33818         * modules/crypto/gc-sha1: Moved from ../.
33819         * modules/crypto/gc-sha1-tests: Moved from ../.
33820         * modules/crypto/gc-tests: Moved from ../.
33821         * modules/crypto/hmac-md5: Moved from ../.
33822         * modules/crypto/hmac-md5-tests: Moved from ../.
33823         * modules/crypto/hmac-sha1: Moved from ../.
33824         * modules/crypto/hmac-sha1-tests: Moved from ../.
33825         * modules/crypto/md2: Moved from ../.
33826         * modules/crypto/md2-tests: Moved from ../.
33827         * modules/crypto/md4: Moved from ../.
33828         * modules/crypto/md4-tests: Moved from ../.
33829         * modules/crypto/md5: Moved from ../.
33830         * modules/crypto/md5-tests: Moved from ../.
33831         * modules/crypto/memxor: Moved from ../.
33832         * modules/crypto/rijndael: Moved from ../.
33833         * modules/crypto/rijndael-tests: Moved from ../.
33834         * modules/crypto/sha1: Moved from ../.
33835
33836 2007-03-30  James Youngman  <jay@gnu.org>
33837
33838         * tests/test-stat-time.c (prepare_test): use chmod() rather than
33839         rename() to change the ctime of a file (because ctime is unaffected
33840         by rename on jfs2 on AIX 5.1).
33841         (main): Start by doing cleanup, in case a previous run failed leaving
33842         test files behind.
33843
33844 2007-03-31  Bruno Haible  <bruno@clisp.org>
33845
33846         Support old proprietary implementations of iconv.
33847         * modules/iconv_open: New file.
33848         * lib/iconv_.h: New file.
33849         * m4/iconv_h.m4: New file.
33850         * lib/iconv_open.c: New file.
33851         * lib/iconv_open-aix.gperf: New file.
33852         * lib/iconv_open-hpux.gperf: New file.
33853         * lib/iconv_open-irix.gperf: New file.
33854         * lib/iconv_open-osf.gperf: New file.
33855         * m4/iconv_open.m4: New file.
33856         * modules/linebreak (Depends-on): Add iconv_open.
33857         * modules/striconv (Depends-on): Likewise.
33858         * modules/striconveh (Depends-on): Likewise.
33859         * modules/unicodeio (Depends-on): Likewise.
33860         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
33861         (iconv_t)(-1).
33862         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
33863         conversion if cd is (iconv_t)(-1).
33864         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
33865         is not possible.
33866
33867 2007-03-31  Bruno Haible  <bruno@clisp.org>
33868
33869         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33870         work on Solaris either. Protect also second use of "autodetect_jp".
33871
33872 2007-03-31  Bruno Haible  <bruno@clisp.org>
33873
33874         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
33875         the function is not present.
33876
33877 2007-03-31  Bruno Haible  <bruno@clisp.org>
33878
33879         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
33880         the function is not present.
33881
33882 2007-03-31  Bruno Haible  <bruno@clisp.org>
33883
33884         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
33885         a bug in HP-UX iconv_open().
33886
33887 2007-03-31  Bruno Haible  <bruno@clisp.org>
33888
33889         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
33890         (Mathematics <math.h>): New section, add fpieee.
33891         (Input/output <stdio.h>): Add fseterr.
33892         (Mathematics <math.h>): New section, add printf-frexp.
33893         (Container data structures): Add sublist.
33894         (Core language properties): Add fpucw, inline.
33895         (Functions for greatest-width integer types <inttypes.h>): Add
33896         imaxabs, imaxdiv, inttypes.
33897         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
33898         isnanl-nolibm, ldexp.
33899         (Mathematics <math.h>): New section, add printf-frexpl.
33900         (Support for systems lacking POSIX:2001): Add fprintf-posix,
33901         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
33902         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
33903         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
33904         (Unicode string functions): Add unistr/u*-mbtoucr.
33905         (Java): Add javacomp-script, javaexec-script.
33906         (C#): Add csharpcomp-script, csharpexec-script.
33907         (Support for building libraries and executables): Add havelib,
33908         relocatable-*.
33909         (Support for maintaining and releasing projects): Renamed from
33910         'Support for maintaining and release projects'. Add announce-gen.
33911
33912 2007-03-31  Bruno Haible  <bruno@clisp.org>
33913
33914         * README: Talk primarily about git.
33915         (git and CVS): Renamed from CVS.
33916         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
33917         gnulib is available through git.
33918         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
33919
33920 2007-03-30  Bruno Haible  <bruno@clisp.org>
33921
33922         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
33923         * lib/poll_.h: Likewise.
33924         * lib/stat_.h: Likewise.
33925         * lib/sys_time_.h: Likewise.
33926         * lib/sysexit_.h: Likewise.
33927         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
33928         * lib/stdbool_.h: Likewise.
33929         * lib/byteswap_.h: Add double-inclusion guard.
33930
33931 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
33932
33933         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
33934
33935 2007-03-30  Karl Berry  <karl@gnu.org>
33936
33937         * config/srclist-update: double space after USA in the license
33938         substitution, since that's how it's usually (?) written.
33939
33940 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33941
33942         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
33943         reported by Bruno Haible.
33944
33945 2007-03-29  Bruno Haible  <bruno@clisp.org>
33946
33947         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
33948         a bug in AIX iconv().
33949
33950 2007-03-29  Bruno Haible  <bruno@clisp.org>
33951
33952         * modules/ldexpl-tests: New file.
33953         * tests/test-ldexpl.c: New file.
33954
33955 2007-03-29  Bruno Haible  <bruno@clisp.org>
33956
33957         * lib/ldexpl.c: Include fpucw.h.
33958         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
33959         multiplication.
33960         * modules/ldexpl (Depends-on): Add fpucw.
33961
33962 2007-03-29  Bruno Haible  <bruno@clisp.org>
33963
33964         * modules/ldexpl: New file.
33965         * m4/ldexpl.m4: New file.
33966         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
33967         set.
33968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
33969         REPLACE_LDEXPL.
33970         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
33971         REPLACE_LDEXPL.
33972         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33973         gl_FUNC_LDEXPL_WORKS.
33974         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
33975         * modules/mathl (Files): Remove lib/ldexpl.c.
33976         (Depends-on): Add ldexpl.
33977
33978 2007-03-29  Bruno Haible  <bruno@clisp.org>
33979
33980         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
33981
33982 2007-03-29  Bruno Haible  <bruno@clisp.org>
33983
33984         * tests/test-striconveh.c (main): Don't assume that a direct conversion
33985         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
33986         and possibly also HP-UX.
33987         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33988         work on AIX, IRIX, HP-UX, OSF/1.
33989         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33990         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33991         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33992         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33993         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
33994         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33995
33996 2007-03-29  Bruno Haible  <bruno@clisp.org>
33997
33998         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
33999
34000 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34001
34002         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34003         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34004
34005 2007-03-29  Eric Blake  <ebb9@byu.net>
34006
34007         * lib/acl-internal.h: Remove redundant include.
34008         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34009         Cygwin when a file is locked.
34010
34011 2007-03-29  Bruno Haible  <bruno@clisp.org>
34012
34013         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34014         file.
34015         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34016
34017 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34018
34019         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34020         try to remove a parent directory if the child couldn't be removed
34021         (except for the first rmdir, which could fail because the child
34022         doesn't exist).  Problem reported by Jeff Blaine in
34023         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34024
34025 2007-03-28  Bruno Haible  <bruno@clisp.org>
34026
34027         * lib/striconveh.c (utf8conv_carefully): New function.
34028         (mem_cd_iconveh_internal): Invoke it.
34029
34030 2007-03-28  Bruno Haible  <bruno@clisp.org>
34031
34032         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34033         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34034         input.
34035         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34036         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34037         unistr/u8-uctomb.
34038
34039 2007-03-28  Bruno Haible  <bruno@clisp.org>
34040
34041         * modules/unistr/u8-mbtoucr: New file.
34042         * lib/unistr/u8-mbtoucr.c: New file.
34043         * modules/unistr/u16-mbtoucr: New file.
34044         * lib/unistr/u16-mbtoucr.c: New file.
34045         * modules/unistr/u16-mbtoucr: New file.
34046         * lib/unistr/u16-mbtoucr.c: New file.
34047         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34048
34049 2007-03-27  Simon Josefsson  <simon@josefsson.org>
34050             Bruno Haible  <bruno@clisp.org>
34051
34052         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34053         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
34054         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34055
34056         * m4/stdio_h.m4: Add stubs for vasprintf too.
34057
34058         * modules/stdio: Support vasprintf in sed command.
34059
34060         * modules/vasprintf: Depend on stdio for prototypes.  Remove
34061         vasprintf.h.  Add stdio module indicator.
34062
34063         * lib/stdio_.h: Declare asprintf and vasprintf, based on
34064         vasprintf.h.
34065
34066         * lib/vasprintf.h: File removed.
34067
34068         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34069         * lib/vasprintf.c: Ditto.
34070         * lib/xvasprintf.c: Ditto.
34071         * tests/test-vasprintf-posix.c: Ditto.
34072         * tests/test-vasprintf.c: Ditto.
34073
34074 2007-03-27  Bruno Haible  <bruno@clisp.org>
34075
34076         Make vasnprintf multithread-safe.
34077         * lib/vasnprintf.c (decimal_point_char): New function.
34078         (VASNPRINTF): Use it.
34079         Suggested by Simon Josefsson.
34080
34081 2007-03-27  Eric Blake  <ebb9@byu.net>
34082
34083         Support sub-second birthtime on cygwin.
34084         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34085         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34086         (get_stat_birthtime): Also work with st_birthtim.
34087
34088 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34089
34090         * lib/stat-time.h (USE_BIRTHTIME): Remove.
34091         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34092         (get_stat_birthtime_ns): Do not try to use "spare" fields.
34093         (get_stat_birthtime_ns): Simplify compile-time tests.
34094         (get_stat_birthtime): Change the API to look like
34095         get_stat_mtime etc., except return a negative tv_nsec on error.
34096         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34097         Don't check for "spare" fields.
34098         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34099         or for struct stat.st_birthtime, as these tests aren't used.
34100         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34101
34102 2007-03-27  Bruno Haible  <bruno@clisp.org>
34103
34104         * lib/stat-time.h: Include <sys/stat.h>.
34105
34106 2007-03-27  James Youngman  <jay@gnu.org>
34107
34108         * lib/stat-time.h (get_stat_birthtime): New function for
34109           retrieving st_birthtime as provided by UFS2 (hence *BSD).
34110         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34111           and its variants.
34112         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34113         * modules/stat-time-test: New file.
34114         * tests/test-stat-time.c: New test, devised by Bruno Haible.
34115
34116 2007-03-26  Bruno Haible  <bruno@clisp.org>
34117
34118         Better support of signalling NaNs.
34119         * lib/atanl.c: Include isnanl.h.
34120         (atanl): Perform test for NaN at the beginning of the function and
34121         through a call to isnanl.
34122         * lib/cosl.c: Include isnanl.h.
34123         (cosl): Perform test for NaN at the beginning of the function and
34124         through a call to isnanl.
34125         * lib/ldexpl.c: Include isnanl.h.
34126         (ldexpl): Perform test for NaN through a call to isnanl.
34127         * lib/logl.c: Include isnanl.h.
34128         (logl): Perform test for NaN at the beginning of the function and
34129         through a call to isnanl.
34130         * lib/sinl.c: Include isnanl.h.
34131         (sinl): Perform test for NaN at the beginning of the function and
34132         through a call to isnanl.
34133         * lib/sqrtl.c: Include isnanl.h.
34134         (sqrtl): Perform test for NaN at the beginning of the function and
34135         through a call to isnanl.
34136         * lib/tanl.c: Include isnanl.h.
34137         (tanl): Perform test for NaN at the beginning of the function and
34138         through a call to isnanl.
34139         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34140         * modules/mathl (Depends-on): Add isnanl.
34141
34142 2007-03-26  Eric Blake  <ebb9@byu.net>
34143
34144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34145         regression in logic sense of previous patch.
34146
34147 2007-03-26  Bruno Haible  <bruno@clisp.org>
34148
34149         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34150         unportable shell command "if ! ...".
34151         Reported by Ralf Wildenhues.
34152
34153 2007-03-25  Bruno Haible  <bruno@clisp.org>
34154
34155         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34156         <sysexits.h> file, and only add EX_CONFIG.
34157         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34158         absolute file name and whether it is sufficient. Substitute also
34159         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34160         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34161         ABSOLUTE_SYSEXITS_H into sysexits.h.
34162
34163 2007-03-25  Bruno Haible  <bruno@clisp.org>
34164
34165         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34166         hints is NULL.
34167
34168 2007-03-25  Bruno Haible  <bruno@clisp.org>
34169
34170         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34171         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34172
34173 2007-03-25  Bruno Haible  <bruno@clisp.org>
34174
34175         * lib/vasnprintf.c: Include langinfo.h.
34176         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34177         multithread-safe.
34178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34179         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34180         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34181         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34182         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34183         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34184         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34186         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34187         Reported by Simon Josefsson.
34188
34189 2007-03-25  Bruno Haible  <bruno@clisp.org>
34190
34191         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34192         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34193         * modules/vasnprintf (Depends-on): Add stdint.
34194
34195 2007-03-25  Bruno Haible  <bruno@clisp.org>
34196
34197         * modules/fpieee: New file.
34198         * m4/fpieee.m4: New file.
34199         * modules/isnan-nolibm (Depends-on): Add fpieee.
34200         * modules/isnanl-nolibm (Depends-on): Add fpieee.
34201         * modules/isnanl (Depends-on): Add fpieee.
34202
34203 2007-03-25  Bruno Haible  <bruno@clisp.org>
34204
34205         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34206
34207 2007-03-25  Bruno Haible  <bruno@clisp.org>
34208
34209         Avoid test failures on IRIX 6.5.
34210         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34211         (main): Use it.
34212         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34213         macros.
34214         (main): Use them.
34215
34216 2007-03-25  Bruno Haible  <bruno@clisp.org>
34217
34218         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34219         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34220         exists but doesn't work.
34221         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34222         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34224         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34225
34226 2007-03-25  Bruno Haible  <bruno@clisp.org>
34227
34228         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34229         returns inf. Needed on IRIX 6.5.
34230
34231 2007-03-25  Bruno Haible  <bruno@clisp.org>
34232
34233         * tests/test-frexpl.c: Include isnanl-nolibm.h.
34234         (main): Use isnanl instead of x != x idiom.
34235         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34236
34237         * tests/test-frexp.c: Include isnan.h.
34238         (main): Use isnan instead of x != x idiom.
34239         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34240
34241 2007-03-25  Bruno Haible  <bruno@clisp.org>
34242
34243         * tests/test-frexp.c (NaN): New function/macro.
34244         (main): Use it instead of 0.0 / 0.0.
34245         * tests/test-isnan.c (NaN): New function/macro.
34246         (main): Use it instead of 0.0 / 0.0.
34247         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34248         (test_function): Use it instead of 0.0 / 0.0.
34249         * tests/test-vasprintf-posix.c (NaN): New function/macro.
34250         (test_function): Use it instead of 0.0 / 0.0.
34251         * tests/test-snprintf-posix.h (NaN): New function/macro.
34252         (test_function): Use it instead of 0.0 / 0.0.
34253         * tests/test-sprintf-posix.h (NaN): New function/macro.
34254         (test_function): Use it instead of 0.0 / 0.0.
34255         * tests/test-fprintf-posix.h (NaN): New function/macro.
34256         (test_function): Use it instead of 0.0 / 0.0.
34257         * tests/test-printf-posix.h (NaN): New function/macro.
34258         (test_function): Use it instead of 0.0 / 0.0.
34259
34260         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34261
34262 2007-03-25  Bruno Haible  <bruno@clisp.org>
34263
34264         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34265
34266 2007-03-25  Bruno Haible  <bruno@clisp.org>
34267
34268         * lib/regexec.c (merge_state_with_log): Make static.
34269
34270 2007-03-25  Bruno Haible  <bruno@clisp.org>
34271
34272         * lib/trigl.c (kernel_rem_pio2): Make static.
34273
34274 2007-03-25  Bruno Haible  <bruno@clisp.org>
34275
34276         * lib/sincosl.c (sincosl_table): Make static.
34277
34278 2007-03-25  Bruno Haible  <bruno@clisp.org>
34279
34280         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34281         if the compiler does not support C99.
34282
34283 2007-03-25  Bruno Haible  <bruno@clisp.org>
34284
34285         * modules/time (Makefile.am): Ensure all rule action lines start with a
34286         tab.
34287
34288 2007-03-24  Bruno Haible  <bruno@clisp.org>
34289
34290         * modules/tsearch-tests: New file.
34291         * tests/test-tsearch.sh: New file.
34292         * tests/test-tsearch.c: New file, mostly copied from glibc.
34293
34294         * modules/search-tests: New file.
34295         * tests/test-search.c: New file.
34296
34297         * modules/search: New file.
34298         * lib/search_.h: New file, incorporating lib/tsearch.h.
34299         * m4/search_h.m4: New file.
34300         * lib/tsearch.h: Remove file.
34301         * lib/tsearch.c: Include search.h instead of tsearch.h.
34302         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
34303         HAVE_TSEARCH.
34304         * modules/tsearch (Files): Remove lib/tsearch.h.
34305         (Depends-on): Add search.
34306         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
34307         (Include): Change tsearch.h into search.h.
34308
34309 2007-03-24  Bruno Haible  <bruno@clisp.org>
34310
34311         * modules/fpucw: New file.
34312         * lib/fpucw.h: New file.
34313         * lib/frexp.c: Include fpucw.h.
34314         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34315         (FUNC): Use them.
34316         * lib/printf-frexp.c: Include fpucw.h.
34317         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34318         (FUNC): Use them.
34319         * lib/vasnprintf.c: Include fpucw.h.
34320         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
34321         'long double' calculations.
34322         * tests/test-frexpl.c: Include fpucw.h.
34323         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34324         * tests/test-printf-frexpl.c: Include fpucw.h.
34325         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34326         * modules/frexpl (Depends-on): Add fpucw.
34327         * modules/printf-frexpl (Depends-on): Likewise.
34328         * modules/fprintf-posix (Depends-on): Likewise.
34329         * modules/snprintf-posix (Depends-on): Likewise.
34330         * modules/sprintf-posix (Depends-on): Likewise.
34331         * modules/vasnprintf-posix (Depends-on): Likewise.
34332         * modules/vasprintf-posix (Depends-on): Likewise.
34333         * modules/vfprintf-posix (Depends-on): Likewise.
34334         * modules/vsnprintf-posix (Depends-on): Likewise.
34335         * modules/vsprintf-posix (Depends-on): Likewise.
34336         * modules/frexpl-tests (Depends-on): Likewise.
34337         * modules/printf-frexpl-tests (Depends-on): Likewise.
34338
34339 2007-03-24  Bruno Haible  <bruno@clisp.org>
34340
34341         * lib/float+.h: New file.
34342         * lib/isnan.c: Include float+.h.
34343         (SIZE): New macro.
34344         (FUNC): Compare only SIZE bytes of the value.
34345         * lib/vasnprintf.c: Include float+.h.
34346         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
34347         SIZEOF_LDBL or SIZEOF_DBL bytes.
34348         * modules/isnan-nolibm (Files): Add lib/float+.h.
34349         * modules/isnanl-nolibm (Files): Add lib/float+.h.
34350         * modules/isnanl (Files): Add lib/float+.h.
34351         * modules/vasnprintf (Files): Add lib/float+.h.
34352
34353 2007-03-24  Bruno Haible  <bruno@clisp.org>
34354
34355         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
34356         include isnanl-nolibm.h.
34357
34358 2007-03-24  Bruno Haible  <bruno@clisp.org>
34359
34360         * tests/test-read-file.c (main): Don't produce spurious output for
34361         expected situations. Make the test fail if it encountered unexpected
34362         results.
34363
34364 2007-03-24  Bruno Haible  <bruno@clisp.org>
34365
34366         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
34367         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
34368
34369 2007-03-24  Bruno Haible  <bruno@clisp.org>
34370
34371         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
34372
34373 2007-03-24  Bruno Haible  <bruno@clisp.org>
34374
34375         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
34376         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
34377
34378         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
34379         * modules/utf8-ucs4: Turn into a symbolic link to module
34380         unistr/u8-mbtouc.
34381
34382         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
34383         utf8-ucs4-unsafe.
34384         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
34385         unistr/u8-mbtouc-unsafe.
34386
34387         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
34388         * modules/utf16-ucs4: Turn into a symbolic link to module
34389         unistr/u16-mbtouc.
34390
34391         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
34392         utf16-ucs4-unsafe.
34393         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
34394         unistr/u16-mbtouc-unsafe.
34395
34396         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
34397         * modules/ucs4-utf8: Turn into a symbolic link to module
34398         unistr/u8-ubtomb.
34399
34400         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
34401         * modules/ucs4-utf16: Turn into a symbolic link to module
34402         unistr/u16-ubtomb.
34403
34404 2007-03-24  Bruno Haible  <bruno@clisp.org>
34405
34406         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
34407         Enable the function only if HAVE_INLINE.
34408         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
34409         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34410         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
34411         Enable the function only if HAVE_INLINE.
34412         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
34413         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34414         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
34415         Enable the function only if HAVE_INLINE.
34416         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
34417         Enable the function only if HAVE_INLINE.
34418         * modules/utf8-ucs4: Update.
34419         * modules/utf8-ucs4-unsafe: Update.
34420         * modules/utf16-ucs4: Update.
34421         * modules/utf16-ucs4-unsafe: Update.
34422         * modules/ucs4-utf8: Update.
34423         * modules/ucs4-utf16: Update.
34424
34425 2007-03-24  Bruno Haible  <bruno@clisp.org>
34426
34427         * lib/utf8-ucs4.h: Remove file.
34428         * lib/utf8-ucs4-unsafe.h: Remove file.
34429         * lib/utf16-ucs4.h: Remove file.
34430         * lib/utf16-ucs4-unsafe.h: Remove file.
34431         * lib/ucs4-utf8.h: Remove file.
34432         * lib/ucs4-utf16.h: Remove file.
34433         * lib/unistr.h: Include their previous contents.
34434         * m4/utf-ucs4.m4: Remove file.
34435         * m4/ucs4-utf.m4: Remove file.
34436         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
34437         (Depends-on): Add unistr/base.
34438         (configure.ac): Remove gl_UTF_UCS4.
34439         (Makefile.am): Update.
34440         (Include): Change to unistr.h.
34441         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.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/utf16-ucs4 (Files): Remove lib/utf16-ucs4.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-unsafe (Files): Remove lib/utf16-ucs4-unsafe.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/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
34457         (Depends-on): Add unistr/base.
34458         (configure.ac): Remove gl_UCS4_UTF.
34459         (Makefile.am): Update.
34460         (Include): Change to unistr.h.
34461         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.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         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
34467         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
34468         utf8-ucs4-unsafe.h.
34469         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
34470         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
34471         utf16-ucs4-unsafe.h.
34472         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
34473         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
34474         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
34475         * lib/unistr/u8-strchr.c: Likewise.
34476         * lib/unistr/u8-strrchr.c: Likewise.
34477         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
34478         * lib/unistr/u16-strchr.c: Likewise.
34479         * lib/unistr/u16-strrchr.c: Likewise.
34480         * lib/striconveh.c: Update.
34481         * lib/linebreak.c: Update.
34482
34483 2007-03-24  Bruno Haible  <bruno@clisp.org>
34484
34485         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
34486         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
34487
34488 2007-03-22  Bruno Haible  <bruno@clisp.org>
34489
34490         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
34491
34492 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
34493
34494         * MODULES.html.sh (File system functions): New module write-any-file.
34495         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
34496         * m4/write-any-file.m4: New files.
34497
34498 2007-03-23  Eric Blake  <ebb9@byu.net>
34499
34500         * gnulib-tool: Rearrange space-tab sequences, since some editors
34501         like to eat them.
34502
34503 2007-03-23  Eric Blake  <ebb9@byu.net>
34504
34505         * lib/version-etc.c (version_etc_va): Update license wording to
34506         be more concise.  Recommended by Richard Stallman.
34507
34508 2007-03-22  Bruno Haible  <bruno@clisp.org>
34509
34510         * lib/poll.c (MSG_PEEK): New fallback definition.
34511
34512 2007-03-22  Bruno Haible  <bruno@clisp.org>
34513
34514         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
34515         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
34516         (main): Update.
34517         Fixes a compilation error on BeOS.
34518
34519 2007-03-22  Bruno Haible  <bruno@clisp.org>
34520
34521         * modules/frexpl-tests: New file.
34522         * tests/test-frexpl.c: New file.
34523
34524         * modules/frexpl: New file.
34525         * m4/frexpl.m4: New file.
34526         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
34527         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
34528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
34529         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
34530         (Depends-on): Add frexpl. Remove isnanl-nolibm.
34531         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
34532
34533 2007-03-22  Bruno Haible  <bruno@clisp.org>
34534
34535         * lib/frexpl.c: Share code with lib/frexp.c.
34536         * modules/mathl (Files): Add lib/frexp.c.
34537         (Depends-on): Add isnanl-nolibm.
34538
34539 2007-03-22  Bruno Haible  <bruno@clisp.org>
34540
34541         * modules/printf-frexp (Files): Add m4/frexp.m4.
34542         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
34543         only if the found frexp function actually works.
34544
34545 2007-03-22  Bruno Haible  <bruno@clisp.org>
34546
34547         * lib/frexp.c: Remove older implementation that uses divisions.
34548
34549 2007-03-21  Bruno Haible  <bruno@clisp.org>
34550
34551         * modules/frexp-tests: New file.
34552         * tests/test-frexp.c: New file.
34553
34554         * modules/frexp: New file.
34555         * lib/frexp.c: New file.
34556         * m4/frexp.m4: New file.
34557         * lib/math_.h (frexp): New declaration.
34558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
34559         REPLACE_FREXP.
34560         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
34561
34562 2007-03-21  Bruno Haible  <bruno@clisp.org>
34563
34564         * modules/isnanl-tests: New file.
34565         * tests/test-isnanl.c: New file.
34566
34567         * modules/isnanl: New file.
34568         * lib/isnanl.h: New file.
34569         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
34570         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
34571         gl_FUNC_ISNANL_WORKS.
34572         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
34573         New macros.
34574
34575 2007-03-21  Bruno Haible  <bruno@clisp.org>
34576
34577         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
34578         lib/isnanl.h.
34579         (Include): Update.
34580         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
34581         * lib/vasnprintf.c: Update.
34582         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
34583         tests/test-isnanl.h, remove tests/test-isnanl.c.
34584         (Makefile.am): Update.
34585         * tests/test-isnanl-nolibm.c: New file.
34586         * tests/test-isnanl.h: New file.
34587         * tests/test-isnanl.c: Remove file.
34588
34589 2007-03-21  Jim Meyering  <jim@meyering.net>
34590
34591         When trying to open ".", treat ESTALE like EACCES.
34592         * lib/savewd.c (savewd_save): Resort to forking not just upon
34593         failure with EACCES, but also when errno is ESTALE.
34594
34595 2007-03-20  Bruno Haible  <bruno@clisp.org>
34596
34597         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
34598         Needed on AIX 5.1. Reported by Matthew Woehlke.
34599
34600 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34601
34602         Suggestions by Bruno Haible:
34603         * lib/acl-internal.h: Include "gettext.h" rather than rolling
34604         our own.
34605         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
34606         * modules/acl (Depends-on): Add gettext.
34607
34608 2007-03-19  Bruno Haible  <bruno@clisp.org>
34609
34610         * modules/iconvme: Remove file.
34611         * lib/iconvme.h: Remove file.
34612         * lib/iconvme.c: Remove file.
34613         * m4/iconvme.m4: Remove file.
34614
34615 2007-03-19  Bruno Haible  <bruno@clisp.org>
34616
34617         * doc/relocatable-maint.texi: Break long shell script line.
34618         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34619
34620 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34621
34622         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
34623         handle file_has_acl.
34624         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
34625         * lib/acl.c: Move header inclusions and related macro defns into
34626         lib/acl-internal.h.
34627         (S_ISLNK): Remove defn, since that's now done for us.
34628         (file_has_acl): Move to lib/file-has-acl.c.
34629         Call acl_trivial if available.  This is the crucial part of the fix.
34630         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
34631         shared within the library.  Rewrite a bit, partly to make it compatible
34632         with the GNU coding style.
34633         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
34634         Remove unnecessary double-quotes.
34635         Don't test for acl_to_text; the build will catch that.
34636         Replace acl_entries if it doesn't exist and it is needed.
34637         Check for -lsec and acl_trivial (as used on Solaris 10).
34638         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
34639         lib/file-has-acl.c.
34640         (Depends-on): Add sys_stat, for S_ISLNK.
34641
34642 2007-03-19  Ben Pfaff  <blp@gnu.org>
34643
34644         * doc/gnulib.texi: Fix typos.
34645         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34646
34647 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34648
34649         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
34650         If size is zero here, buf must be zero.
34651
34652 2007-03-19  Simon Josefsson  <simon@josefsson.org>
34653
34654         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
34655         <bruno@clisp.org>.
34656
34657 2007-03-18  Bruno Haible  <bruno@clisp.org>
34658
34659         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
34660         Suggested by Eric Blake.
34661
34662 2007-03-18  Ben Pfaff  <blp@gnu.org>
34663
34664         * doc/relocatable.texi: Recommend using as prefix a directory
34665         that does not exist and will never be created.  Based on
34666         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
34667         and others.
34668
34669 2007-03-17  Bruno Haible  <bruno@clisp.org>
34670
34671         * lib/fchownat.c: Include lchown.h.
34672
34673 2007-03-17  Bruno Haible  <bruno@clisp.org>
34674
34675         Fix endless loop when the given allocated size was > INT_MAX.
34676         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
34677         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
34678         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
34679         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
34680         * lib/sprintf.c (sprintf): Likewise.
34681
34682 2007-03-17  Bruno Haible  <bruno@clisp.org>
34683
34684         * tests/test-argp-2.sh (func_compare): Output a context diff.
34685
34686 2007-03-17  Bruno Haible  <bruno@clisp.org>
34687
34688         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
34689         locale's decimal-point character.
34690
34691 2007-03-17  Bruno Haible  <bruno@clisp.org>
34692
34693         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
34694         before comparing it. Needed because on some platforms (e.g. x86) a
34695         'long double' occupies less bytes than sizeof (long double).
34696
34697 2007-03-17  Bruno Haible  <bruno@clisp.org>
34698
34699         * tests/test-crc.c (main): Make printf statements 64-bit clean.
34700         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
34701         * tests/test-getaddrinfo.c (simple): Likewise.
34702         * tests/test-read-file.c (main): Likewise.
34703
34704 2007-03-17  Bruno Haible  <bruno@clisp.org>
34705
34706         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
34707
34708 2007-03-17  Bruno Haible  <bruno@clisp.org>
34709
34710         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
34711         unused variable.
34712
34713 2007-03-17  Bruno Haible  <bruno@clisp.org>
34714
34715         * tests/test-c-strcasecmp.c: Include c-strcase.h.
34716         * tests/test-c-strncasecmp.c: Likewise.
34717
34718 2007-03-17  Bruno Haible  <bruno@clisp.org>
34719
34720         * modules/stdlib (Depends-on): Add unistd.
34721         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
34722         Needed for MacOS X 10.3.
34723
34724 2007-03-17  Bruno Haible  <bruno@clisp.org>
34725
34726         * lib/unistr/u-strdup.h: Include <stdlib.h>.
34727
34728 2007-03-17  Bruno Haible  <bruno@clisp.org>
34729
34730         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
34731
34732 2007-03-17  Bruno Haible  <bruno@clisp.org>
34733
34734         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
34735         to reflect files copied from gnulib (with or without modifications).
34736         Suggested by Jim Meyering.
34737
34738 2007-03-17  Eric Blake  <ebb9@byu.net>
34739
34740         * NEWS: Document stdlib change from 2007-02-18.
34741
34742 2007-03-17  Jim Meyering  <jim@meyering.net>
34743
34744         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
34745         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
34746         someone uses a name containing shell meta-characters.
34747         Reported by Alfred M. Szmidt.
34748
34749         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
34750
34751 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34752
34753         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
34754         and copy gettext configuration files only if configure.ac contains
34755         a use of AM_GNU_GETTEXT_VERSION.
34756
34757 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34758
34759         * build-aux/bootstrap (gnulib_name): New variable.
34760         (gnulib_tool_options): Use it.
34761
34762 2007-03-13  Simon Josefsson  <simon@josefsson.org>
34763
34764         * tests/test-des.c: Use new namespace.
34765
34766 2007-03-15  Bruno Haible  <bruno@clisp.org>
34767
34768         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
34769         Reported by James Youngman <jay@gnu.org>.
34770
34771 2007-03-15  Bruno Haible  <bruno@clisp.org>
34772
34773         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
34774         declared prototype. Needed with cc on OSF/1 5.1.
34775
34776 2007-03-15  Bruno Haible  <bruno@clisp.org>
34777
34778         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
34779         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
34780         (struct gl_list_implementation): Add dispose_fn argument to the
34781         'create_empty', 'create' methods.
34782         (struct gl_list_impl_base): Add field 'dispose_fn'.
34783         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
34784         argument.
34785         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
34786         dispose_fn argument.
34787         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
34788         dispose_fn on the dropped values.
34789         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
34790         dispose_fn argument.
34791         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
34792         dropped values.
34793         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
34794         (gl_tree_remove_node): Call dispose_fn on the dropped value.
34795         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
34796         (gl_tree_remove_node): Call dispose_fn on the dropped value.
34797         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
34798         argument.
34799         (gl_tree_list_free): Call dispose_fn on the dropped values.
34800         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
34801         the dropped values.
34802         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
34803         Add dispose_fn argument.
34804         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
34805         Call dispose_fn on the dropped values.
34806         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
34807         Add dispose_fn argument.
34808         (gl_sublist_create): Initialize the 'dispose_fn' field.
34809         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
34810         * tests/test-array_list.c (main): Update.
34811         * tests/test-carray_list.c (main): Update.
34812         * tests/test-avltree_list.c (main): Update.
34813         * tests/test-rbtree_list.c (main): Update.
34814         * tests/test-avltreehash_list.c (main): Update.
34815         * tests/test-rbtreehash_list.c (main): Update.
34816         * tests/test-linked_list.c (main): Update.
34817         * tests/test-linkedhash_list.c (main): Update.
34818         * tests/test-array_oset.c (main): Update.
34819
34820 2007-03-15  Bruno Haible  <bruno@clisp.org>
34821
34822         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
34823         (gl_oset_create_empty): Add dispose_fn argument.
34824         (struct gl_oset_implementation): Add dispose_fn argument to
34825         'create_empty' method.
34826         (struct gl_oset_impl_base): Add dispose_fn field.
34827         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
34828         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
34829         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
34830         values.
34831         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
34832         (gl_tree_oset_free): Call dispose_fn on the dropped values.
34833         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34834         dropped value.
34835         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34836         dropped value.
34837         * tests/test-array_oset.c (main): Update.
34838         * tests/test-avltree_oset.c (main): Update.
34839         * tests/test-rbtree_oset.c (main): Update.
34840         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
34841
34842 2007-03-13  Bruno Haible  <bruno@clisp.org>
34843
34844         * tests/test-stdbool.c (i): Update after last patch.
34845
34846 2007-03-12  Bruno Haible  <bruno@clisp.org>
34847
34848         * lib/quotearg.c: Include <wctype.h> early, before the definition of
34849         the iswprint macro. Needed on Solaris 2.5.1.
34850
34851 2007-03-12  Bruno Haible  <bruno@clisp.org>
34852
34853         * tests/test-printf-frexp.c (main): Declare x as volatile.
34854
34855 2007-03-12  Simon Josefsson  <simon@josefsson.org>
34856
34857         * doc/gnulib.texi (Build robot for gnulib): New section.
34858
34859 2007-03-12  Jim Meyering  <jim@meyering.net>
34860
34861         * build-aux/bootstrap: New file.
34862         * build-aux/bootstrap.conf: New file, from coreutils.
34863
34864 2007-03-11  Bruno Haible  <bruno@clisp.org>
34865
34866         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
34867
34868 2007-03-12  Simon Josefsson  <simon@josefsson.org>
34869
34870         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
34871         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
34872         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
34873
34874 2007-03-11  Bruno Haible  <bruno@clisp.org>
34875
34876         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
34877         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
34878
34879 2007-03-11  Bruno Haible  <bruno@clisp.org>
34880
34881         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
34882         formula. Needed for SunPRO C 5.0.
34883
34884 2007-03-11  Bruno Haible  <bruno@clisp.org>
34885
34886         * modules/long-options (Depends-on): Add getopt.
34887
34888 2007-03-11  Bruno Haible  <bruno@clisp.org>
34889
34890         * modules/modechange (Depends-on): Add stdbool.
34891
34892 2007-03-11  Bruno Haible  <bruno@clisp.org>
34893
34894         * modules/i-ring (Depends-on): Add stdbool.
34895
34896 2007-03-11  Bruno Haible  <bruno@clisp.org>
34897
34898         * modules/gc-des (Depends-on): Add stdbool.
34899
34900 2007-03-11  Bruno Haible  <bruno@clisp.org>
34901
34902         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
34903
34904 2007-03-11  Bruno Haible  <bruno@clisp.org>
34905
34906         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
34907
34908 2007-03-11  Bruno Haible  <bruno@clisp.org>
34909
34910         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
34911
34912 2007-03-11  Bruno Haible  <bruno@clisp.org>
34913
34914         * lib/vasnprintf.c (sprintf): Undefine.
34915
34916 2007-03-11  Bruno Haible  <bruno@clisp.org>
34917
34918         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
34919         initializers in SunPRO C and Compaq C compilers.
34920
34921 2007-03-11  Bruno Haible  <bruno@clisp.org>
34922
34923         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
34924         decrementing code ANSI C compliant.
34925
34926 2007-03-11  Bruno Haible  <bruno@clisp.org>
34927
34928         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
34929         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
34930
34931 2007-03-11  Bruno Haible  <bruno@clisp.org>
34932
34933         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
34934         <stdbool.h> substitute doesn't pass.
34935
34936 2007-03-11  Bruno Haible  <bruno@clisp.org>
34937
34938         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
34939
34940 2007-03-11  Bruno Haible  <bruno@clisp.org>
34941
34942         * gnulib-tool (func_create_megatestdir): Create also an autobuild
34943         script, for submission to autobuild.josefsson.org.
34944
34945 2007-03-10  Bruno Haible  <bruno@clisp.org>
34946
34947         * modules/canonicalize-lgpl-tests: New file.
34948         * tests/test-canonicalize-lgpl.sh: New file.
34949         * tests/test-canonicalize-lgpl.c: New file.
34950
34951         * modules/c-strcase-tests: New file.
34952         * tests/test-c-strcase.sh: New file.
34953         * tests/test-c-strcasecmp.c: New file.
34954         * tests/test-c-strncasecmp.c: New file.
34955
34956         * modules/atexit-tests: New file.
34957         * tests/test-atexit.sh: New file.
34958         * tests/test-atexit.c: New file.
34959
34960 2007-03-10  Bruno Haible  <bruno@clisp.org>
34961
34962         * tests/test-binary-io.sh: Use temporary filenames that are not so
34963         likely to clash with those of other tests (in a parallel make).
34964         * tests/test-binary-io.c: Likewise.
34965
34966 2007-03-10  Bruno Haible  <bruno@clisp.org>
34967
34968         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
34969         fallback; use #error instead.
34970         Suggested by Simon Josefsson.
34971
34972 2007-03-10  Bruno Haible  <bruno@clisp.org>
34973
34974         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
34975         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
34976         first and the last.
34977
34978 2007-03-10  Bruno Haible  <bruno@clisp.org>
34979
34980         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
34981
34982 2007-03-10  Bruno Haible  <bruno@clisp.org>
34983
34984         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
34985         "make distcheck".
34986         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
34987         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
34988         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
34989
34990 2007-03-10  Bruno Haible  <bruno@clisp.org>
34991
34992         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
34993         variable.
34994         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
34995         variable.
34996
34997 2007-03-09  Eric Blake  <ebb9@byu.net>
34998         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
34999
35000         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35001         types are not being provided by gnulib.
35002         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35003         types are supported.
35004
35005 2007-03-10  Bruno Haible  <bruno@clisp.org>
35006
35007         * lib/stdio_.h (__attribute__): New macro.
35008         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35009         vsprintf): Specify __attribute__ __format__ for GCC.
35010         Suggested by Eric Blake.
35011
35012 2007-03-09  Bruno Haible  <bruno@clisp.org>
35013
35014         * modules/printf-posix-tests: New file.
35015         * tests/test-printf-posix.sh: New file.
35016         * tests/test-printf-posix.c: New file.
35017
35018         * modules/printf-posix: New file.
35019         * lib/printf.c: New file.
35020         * m4/printf-posix-rpl.m4: New file.
35021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35022         REPLACE_PRINTF.
35023         * lib/stdio_.h (printf): New declaration.
35024         (format, __format__, ____printf____, ____scanf____, ____strftime____,
35025         ____strfmon____): New macros.
35026         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35027         REPLACE_PRINTF.
35028
35029 2007-03-09  Bruno Haible  <bruno@clisp.org>
35030
35031         * tests/test-vasnprintf-posix2.sh: New file.
35032         * tests/test-vasnprintf-posix2.c: New file.
35033         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35034         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35035         (Makefile.am): Activate test-vasnprintf-posix2.sh.
35036
35037         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35038         a locale dependent decimal point, rather than always '.'.
35039
35040 2007-03-09  Eric Blake  <ebb9@byu.net>
35041
35042         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35043         spite of platforms like Tandem/NSK that define it to -1.
35044
35045 2007-03-08  Bruno Haible  <bruno@clisp.org>
35046
35047         * modules/vprintf-posix-tests: New file.
35048         * tests/test-vprintf-posix.sh: New file.
35049         * tests/test-vprintf-posix.c: New file.
35050         * tests/test-printf-posix.h: New file.
35051
35052         * modules/vprintf-posix: New file.
35053         * lib/vprintf.c: New file.
35054         * m4/vprintf-posix.m4: New file.
35055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35056         REPLACE_VPRINTF.
35057         * lib/stdio_.h (vprintf): New declaration.
35058         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35059         REPLACE_VPRINTF.
35060
35061 2007-03-08  Bruno Haible  <bruno@clisp.org>
35062
35063         * modules/fprintf-posix-tests: New file.
35064         * tests/test-fprintf-posix.sh: New file.
35065         * tests/test-fprintf-posix.c: New file.
35066
35067         * modules/fprintf-posix: New file.
35068         * lib/fprintf.c: New file.
35069         * m4/fprintf-posix.m4: New file.
35070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35071         REPLACE_FPRINTF.
35072         * lib/stdio_.h (fprintf): New declaration.
35073         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35074         REPLACE_FPRINTF.
35075
35076 2007-03-08  Bruno Haible  <bruno@clisp.org>
35077
35078         * modules/vfprintf-posix-tests: New file.
35079         * tests/test-vfprintf-posix.sh: New file.
35080         * tests/test-vfprintf-posix.c: New file.
35081         * tests/test-fprintf-posix.h: New file.
35082         * tests/test-fprintf-posix.out: New file.
35083
35084         * modules/vfprintf-posix: New file.
35085         * lib/vfprintf.c: New file.
35086         * m4/vfprintf-posix.m4: New file.
35087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35088         REPLACE_VFPRINTF.
35089         * lib/stdio_.h (vfprintf): New declaration.
35090         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35091         REPLACE_VFPRINTF.
35092
35093 2007-03-08  Bruno Haible  <bruno@clisp.org>
35094
35095         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35096
35097 2007-03-08  Bruno Haible  <bruno@clisp.org>
35098
35099         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35100         instead of 'expr' invocations.
35101         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35102         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35103         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35104         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35105         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35106         Suggested by Paul Eggert.
35107
35108 2007-03-08  Bruno Haible  <bruno@clisp.org>
35109
35110         * modules/fseterr-tests: New file.
35111         * tests/test-fseterr.c: New file.
35112
35113         * modules/fseterr: New file.
35114         * lib/fseterr.h: New file.
35115         * lib/fseterr.c: New file.
35116
35117 2007-03-08  Bruno Haible  <bruno@clisp.org>
35118
35119         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35120         * lib/getopt_.h: Likewise.
35121         * lib/mbswidth.h: Likewise.
35122         * lib/setenv.h: Likewise.
35123         * lib/vasnprintf.h: Likewise.
35124         * lib/vasprintf.h: Likewise.
35125         * lib/verror.h: Likewise.
35126         * lib/xsetenv.h: Likewise.
35127         * lib/xvasprintf.h: Likewise.
35128
35129 2007-03-08  Jim Meyering  <jim@meyering.net>
35130
35131         * users.txt: Add parted.
35132
35133         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35134
35135 2007-03-07  Bruno Haible  <bruno@clisp.org>
35136
35137         * m4/printf.m4: Make the shell script snippets copy&pastable.
35138
35139 2007-03-02  Bruno Haible  <bruno@clisp.org>
35140
35141         * lib/netinet_in_.h: New file.
35142         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35143         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35144         * modules/netinet_in (Files): Add lib/netinet_in_.h.
35145         (Depends-on): Add absolute-header.
35146         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35147         into netinet/in.h.
35148
35149 2007-03-03  Bruno Haible  <bruno@clisp.org>
35150
35151         * lib/sys_select_.h: New file.
35152         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35153         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35154         * modules/sys_select (Files): Add lib/sys_select_.h.
35155         (Depends-on): Add absolute-header.
35156         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35157         into sys/select.h.
35158
35159 2007-03-02  Bruno Haible  <bruno@clisp.org>
35160
35161         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35162         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35163         values.
35164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35165         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35166         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35167         * modules/sys_socket (Depends-on): Add absolute-header.
35168         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35169         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35170         (Include): Remove requirement of inclusion of <sys/types.h>.
35171
35172 2007-03-02  Bruno Haible  <bruno@clisp.org>
35173
35174         * lib/byteswap_.h (bswap_32): Fix formula.
35175
35176 2007-03-06  Bruno Haible  <bruno@clisp.org>
35177
35178         * modules/sprintf-posix-tests: New file.
35179         * tests/test-sprintf-posix.c: New file.
35180
35181         * modules/sprintf-posix: New file.
35182         * lib/sprintf.c: New file.
35183         * m4/sprintf-posix.m4: New file.
35184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35185         REPLACE_SPRINTF.
35186         * lib/stdio_.h (sprintf): New declaration.
35187         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35188         REPLACE_SPRINTF.
35189
35190 2007-03-06  Bruno Haible  <bruno@clisp.org>
35191
35192         * modules/vsprintf-posix-tests: New file.
35193         * tests/test-vsprintf-posix.c: New file.
35194         * tests/test-sprintf-posix.h: New file.
35195
35196         * modules/vsprintf-posix: New file.
35197         * lib/vsprintf.c: New file.
35198         * m4/vsprintf-posix.m4: New file.
35199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35200         REPLACE_VSPRINTF.
35201         * lib/stdio_.h (vsprintf): New declaration.
35202         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35203         REPLACE_VSPRINTF.
35204
35205 2007-03-06  Bruno Haible  <bruno@clisp.org>
35206
35207         * modules/vsnprintf (Depend-on): Remove minmax.
35208
35209 2007-03-06  Bruno Haible  <bruno@clisp.org>
35210
35211         * modules/snprintf-posix-tests: New file.
35212         * tests/test-snprintf-posix.c: New file.
35213
35214         * modules/snprintf-posix: New file.
35215         * m4/snprintf-posix.m4: New file.
35216         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35217         gl_FUNC_SNPRINTF.
35218         (gl_FUNC_SNPRINTF): Invoke it.
35219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35220         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35221         is set.
35222         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35223
35224 2007-03-06  Bruno Haible  <bruno@clisp.org>
35225
35226         * modules/vsnprintf-posix-tests: New file.
35227         * tests/test-vsnprintf-posix.c: New file.
35228         * tests/test-snprintf-posix.h: New file.
35229
35230         * modules/vsnprintf-posix: New file.
35231         * m4/vsnprintf-posix.m4: New file.
35232         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35233         gl_FUNC_VSNPRINTF.
35234         (gl_FUNC_VSNPRINTF): Invoke it.
35235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35236         * lib/stdio_.h (vsnprintf): Define as a replacement if
35237         REPLACE_VSNPRINTF is set.
35238         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35239
35240 2007-03-06  Bruno Haible  <bruno@clisp.org>
35241
35242         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35243         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35244
35245 2007-03-06  Bruno Haible  <bruno@clisp.org>
35246
35247         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35248         (asinl): Declare also if HAVE_DECL_ASINL is set.
35249         (atanl): Declare also if HAVE_DECL_ATANL is set.
35250         (ceill): Declare also if HAVE_DECL_CEILL is set.
35251         (cosl): Declare also if HAVE_DECL_COSL is set.
35252         (expl): Declare also if HAVE_DECL_EXPL is set.
35253         (floorl): Declare also if HAVE_DECL_FLOORL is set.
35254         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35255         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35256         (logl): Declare also if HAVE_DECL_LOGL is set.
35257         (sinl): Declare also if HAVE_DECL_SINL is set.
35258         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35259         (tanl): Declare also if HAVE_DECL_TANL is set.
35260         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35262         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35263         declaration of frexpl, ldexpl.
35264         * modules/printf-frexpl (Depends-on): Add math.
35265         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35266
35267 2007-03-05  Bruno Haible  <bruno@clisp.org>
35268
35269         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35270         frexpl and ldexpl are declared.
35271         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35272
35273 2007-03-05  Bruno Haible  <bruno@clisp.org>
35274
35275         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35276         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35277
35278 2007-03-05  Bruno Haible  <bruno@clisp.org>
35279
35280         * lib/stdio_.h: Include <stddef.h>.
35281
35282 2007-03-05  Bruno Haible  <bruno@clisp.org>
35283
35284         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35285
35286 2007-03-05  Bruno Haible  <bruno@clisp.org>
35287
35288         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
35289         NetBSD 4, from Ralf Wildenhues.
35290
35291 2007-03-04  Bruno Haible  <bruno@clisp.org>
35292
35293         * lib/vasprintf.h: Update #if logic for the case when the functions
35294         exist but are overridden.
35295
35296 2007-03-04  Bruno Haible  <bruno@clisp.org>
35297
35298         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
35299         implementations: glibc-2.4 and MacOS X 10.3.
35300         * tests/test-vasnprintf-posix.c (test_function): Test also the case
35301         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
35302         * tests/test-vasprintf-posix.c (test_function): Likewise.
35303
35304 2007-03-04  Bruno Haible  <bruno@clisp.org>
35305
35306         * modules/vasprintf-posix-tests: New file.
35307         * tests/test-vasprintf-posix.c: New file.
35308
35309         * modules/vasprintf-posix: New file.
35310         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
35311         defined.
35312         * m4/vasprintf-posix.m4: New file.
35313         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
35314         gl_FUNC_VASPRINTF.
35315         (gl_FUNC_VASPRINTF): Invoke it.
35316         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
35317         here.
35318         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
35319
35320 2007-03-04  Bruno Haible  <bruno@clisp.org>
35321
35322         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
35323         REPLACE_GETTIMEOFDAY.
35324         * modules/sys_time (Makefile.am): Likewise.
35325         * m4/sys_time_h.m4: Likewise.
35326         * m4/gettimeofday.m4: Likewise.
35327
35328 2007-03-04  Bruno Haible  <bruno@clisp.org>
35329
35330         * modules/vasnprintf-posix-tests: New file.
35331         * tests/test-vasnprintf-posix.c: New file.
35332
35333         * modules/vasnprintf-posix: New file.
35334         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
35335         printf-frexpl.h.
35336         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
35337         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
35338         REPLACE_VASNPRINTF is defined.
35339         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35340         gl_FUNC_VASNPRINTF.
35341         (gl_FUNC_VASNPRINTF): Invoke it.
35342         * m4/vasnprintf-posix.m4: New file.
35343         * m4/printf.m4: New file.
35344
35345 2007-03-04  Bruno Haible  <bruno@clisp.org>
35346
35347         Compile progreloc.c only if --enable-relocatable is specified.
35348         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
35349         if --enable-relocatable was specified.
35350         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
35351         lib_SOURCES.
35352
35353 2007-03-04  Jim Meyering  <jim@meyering.net>
35354
35355         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
35356         Use it consistently, rather than enumerating errno constants.
35357
35358 2007-03-04  Bruno Haible  <bruno@clisp.org>
35359
35360         * modules/xvasprintf-tests: New file.
35361         * tests/test-xvasprintf.c: New file.
35362
35363         * modules/vasprintf-tests: New file.
35364         * tests/test-vasprintf.c: New file.
35365
35366         * modules/vasnprintf-tests: New file.
35367         * tests/test-vasnprintf.c: New file.
35368
35369         * modules/vsnprintf-tests: New file.
35370         * tests/test-vsnprintf.c: New file.
35371
35372         * modules/snprintf-tests: New file.
35373         * tests/test-snprintf.c: New file.
35374
35375 2007-03-04  Bruno Haible  <bruno@clisp.org>
35376
35377         Compile relocatable.c only if --enable-relocatable is specified.
35378         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
35379         gl_RELOCATABLE_LIBRARY.
35380         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
35381         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
35382         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
35383         gl_RELOCATABLE_LIBRARY.
35384         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
35385         (Makefile.am): Remove lib_SOURCES.
35386         * modules/relocatable-lib-lgpl (configure.ac): Invoke
35387         gl_RELOCATABLE_LIBRARY.
35388         (Makefile.am): Remove lib_SOURCES.
35389         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
35390         always.
35391         * modules/relocatable-prog-wrapper (configure.ac): Invoke
35392         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
35393
35394 2007-03-04  Bruno Haible  <bruno@clisp.org>
35395
35396         * modules/argmatch-tests: New file.
35397         * tests/test-argmatch.c: New file.
35398
35399         * tests/test-allocsa.c (main): Halve the number of loop runs.
35400
35401         * modules/alloca-opt-tests: New file.
35402         * tests/test-alloca-opt.c: New file.
35403
35404 2007-03-04  Jim Meyering  <jim@meyering.net>
35405
35406         Work around difference between Linux ACLs and Solaris 10 ZFS.
35407         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
35408         for EINVAL.
35409
35410 2007-03-03  Bruno Haible  <bruno@clisp.org>
35411
35412         * modules/relocatable-prog (Depends-on): Add back progreloc's
35413         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
35414
35415 2007-03-03  Bruno Haible  <bruno@clisp.org>
35416
35417         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
35418         * modules/relocatable-lib: New file.
35419
35420 2007-03-03  Bruno Haible  <bruno@clisp.org>
35421
35422         * modules/relocatable-prog: Renamed from modules/relocatable.
35423         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
35424
35425 2007-03-03  Bruno Haible  <bruno@clisp.org>
35426
35427         * modules/relocatable-script (Files): Add doc/relocatable.texi,
35428         m4/relocatable-lib.m4.
35429         (Depends-on): Remove 'relocatable'.
35430         (configure.ac): Add gl_RELOCATABLE_NOP.
35431
35432 2007-03-03  Bruno Haible  <bruno@clisp.org>
35433
35434         * modules/relocatable-prog-wrapper: New file.
35435         * modules/relocatable (Depends-on): Add it. Remove all other
35436         dependencies except progname.
35437         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
35438
35439         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
35440         (gl_FUNC_STRERROR): Nop.
35441         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
35442
35443         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
35444         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
35445
35446         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
35447         (gl_FUNC_READLINK): Update.
35448
35449         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
35450
35451 2007-03-03  Bruno Haible  <bruno@clisp.org>
35452
35453         * lib/xreadlink.c: Include <unistd.h> unconditionally.
35454         * modules/xreadlink (Depends-on): Add unistd.
35455         * modules/xreadlink-with-size (Depends-on): Likewise.
35456
35457 2007-03-03  Bruno Haible  <bruno@clisp.org>
35458
35459         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
35460         extracted from gt_FUNC_SETENV.
35461         (gt_FUNC_SETENV): Remove macro.
35462         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
35463         remove gt_FUNC_SETENV.
35464
35465 2007-03-03  Bruno Haible  <bruno@clisp.org>
35466
35467         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
35468         ENABLE_RELOCATABLE here.
35469         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
35470
35471 2007-03-03  Bruno Haible  <bruno@clisp.org>
35472
35473         * modules/rbtreehash-list-tests (Depends-on): Add progname.
35474         * tests/test-rbtreehash_list.c: Include progname.h.
35475         (main): Call set_program_name.
35476
35477         * modules/rbtree-oset-tests (Depends-on): Add progname.
35478         * tests/test-rbtree_oset.c: Include progname.h.
35479         (main): Call set_program_name.
35480
35481         * modules/rbtree-list-tests (Depends-on): Add progname.
35482         * tests/test-rbtree_list.c: Include progname.h.
35483         (main): Call set_program_name.
35484
35485         * modules/linked-list-tests (Depends-on): Add progname.
35486         * tests/test-linked_list.c: Include progname.h.
35487         (main): Call set_program_name.
35488
35489 2007-03-03  Bruno Haible  <bruno@clisp.org>
35490
35491         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
35492         All uses of __restrict changed to _Restrict_.
35493         * lib/glob_.h (__restrict): Remove macro.
35494
35495 2007-03-02  Bruno Haible  <bruno@clisp.org>
35496
35497         * modules/gettext (configure.ac): Require gettext infrastructure
35498         from version 0.16.1.
35499
35500 2007-03-02  Bruno Haible  <bruno@clisp.org>
35501
35502         * modules/linkedhash-list-tests (Depends-on): Add progname.
35503         * tests/test-linkedhash_list.c: Include progname.h.
35504         (main): Call set_program_name.
35505
35506         * modules/carray-list-tests (Depends-on): Add progname.
35507         * tests/test-carray_list.c: Include progname.h.
35508         (main): Call set_program_name.
35509
35510         * modules/avltreehash-list-tests (Depends-on): Add progname.
35511         * tests/test-avltreehash_list.c: Include progname.h.
35512         (main): Call set_program_name.
35513
35514         * modules/avltree-oset-tests (Depends-on): Add progname.
35515         * tests/test-avltree_oset.c: Include progname.h.
35516         (main): Call set_program_name.
35517
35518         * modules/avltree-list-tests (Depends-on): Add progname.
35519         * tests/test-avltree_list.c: Include progname.h.
35520         (main): Call set_program_name.
35521
35522         * modules/array-oset-tests (Depends-on): Add progname.
35523         * tests/test-array_oset.c: Include progname.h.
35524         (main): Call set_program_name.
35525
35526         * modules/array-list-tests (Depends-on): Add progname.
35527         * tests/test-array_list.c: Include progname.h.
35528         (main): Call set_program_name.
35529
35530         * modules/argp-tests (Depends-on): Add progname.
35531         * tests/test-argp.c: Include argp.h first. Include progname.h.
35532         (main): Call set_program_name.
35533
35534 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
35535
35536         * doc/gnulib-tool.texi (Initial import): Reword description of
35537         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
35538         limited effect even if defined after the first system include.
35539
35540 2007-03-01  Bruno Haible  <bruno@clisp.org>
35541
35542         * build-aux/config.libpath: Update to libtool-1.5.22.
35543         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35544
35545 2007-03-01  Bruno Haible  <bruno@clisp.org>
35546
35547         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
35548         foo_CFLAGS.
35549         Reported by Ralf Wildenhues.
35550
35551 2007-03-01  Bruno Haible  <bruno@clisp.org>
35552
35553         * build-aux/install-reloc: Remove object files left over by some
35554         compilers.
35555         Reported by Ralf Wildenhues.
35556
35557 2007-03-01  Bruno Haible  <bruno@clisp.org>
35558
35559         * build-aux/install-reloc: Break long lines.
35560
35561 2007-03-01  Bruno Haible  <bruno@clisp.org>
35562
35563         * doc/relocatable.texi: Document that it may not work on OpenBSD.
35564         Reported by Ralf Wildenhues.
35565
35566 2007-03-01  Bruno Haible  <bruno@clisp.org>
35567
35568         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
35569         include ordering constraints.
35570
35571 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35572
35573         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
35574         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
35575         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
35576         as another example.
35577         * lib/time_.h: Fix misspelling.
35578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35579         Require gl_HEADER_TIME_H_DEFAULTS.
35580         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
35581         * m4/time_r.m4 (gl_TIME_R): Likewise.
35582         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
35583
35584 2007-03-01  Bruno Haible  <bruno@clisp.org>
35585
35586         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
35587         * m4/utimens.m4 (gl_UTIMENS): Likewise.
35588
35589 2007-03-01  Jim Meyering  <jim@meyering.net>
35590
35591         * modules/xreadlink (Maintainer): Add my name.
35592         * modules/xreadlink-with-size (Depends-on): Alphabetize.
35593
35594 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
35595             Bruno Haible  <bruno@clisp.org>
35596
35597         * build-aux/install-reloc: Compile also c-ctype.c.
35598         * build-aux/relocatable.sh.in: New file.
35599         * doc/relocatable.texi: New file.
35600         * doc/relocatable-maint.texi: New file.
35601         * doc/gnulib.texi: Include relocatable-maint.texi.
35602         * lib/progreloc.c: Include unistd.h unconditionally.
35603         * lib/relocwrapper.c: Include unistd.h unconditionally.
35604         Include c-ctype.h.
35605         (add_dotbin): Use c_tolower.
35606         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
35607         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
35608         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
35609         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
35610         to m4/relocatable-lib.m4.
35611         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
35612         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
35613         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
35614         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
35615         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
35616         * modules/relocatable: New file.
35617         * modules/relocatable-lib: New file.
35618         * modules/relocatable-script: New file.
35619
35620 2007-02-28  Bruno Haible  <bruno@clisp.org>
35621
35622         Import --enable-relocatable infrastructure.
35623         * build-aux/config.libpath: New file, from GNU gettext.
35624         * build-aux/install-reloc: New file, from GNU gettext.
35625         * build-aux/reloc-ldflags: New file, from GNU gettext.
35626         * lib/relocatable.h: New file, from GNU gettext.
35627         * lib/relocatable.c: New file, from GNU gettext.
35628         * lib/relocwrapper.c: New file, from GNU gettext.
35629         * m4/relocatable.m4: New file, from GNU gettext.
35630
35631 2007-02-28  Bruno Haible  <bruno@clisp.org>
35632
35633         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
35634
35635         * modules/xreadlink: New file, from GNU gettext with modifications.
35636         * lib/xreadlink.c: New file, from GNU gettext.
35637         * lib/xreadlink.h: Add comments.
35638         (xreadlink): New declaration.
35639
35640         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
35641         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
35642         lib/xreadlink-with-size.c.
35643         (configure.ac): Remove gl_XREADLINK invocation.
35644         (Makefile.am): Augment lib_SOURCES.
35645         * m4/xreadlink.m4: Remove file.
35646         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
35647         (xreadlink_with_size): Renamed from xreadink.
35648         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
35649         * modules/canonicalize (Depends-on): Replace xreadlink with
35650         xreadlink-with-size.
35651         * lib/canonicalize.c (canonicalize_filename_mode): Update.
35652
35653 2007-02-25  Jim Meyering  <jim@meyering.net>
35654
35655         * build-aux/announce-gen: When complaining about excess arguments,
35656         list them.
35657
35658 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35659
35660         * README: Document signed integer overflow situation more
35661         accurately.
35662
35663 2007-02-25  Bruno Haible  <bruno@clisp.org>
35664
35665         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
35666         'a' or 'A' conversion.
35667
35668 2007-02-25  Bruno Haible  <bruno@clisp.org>
35669
35670         * modules/filename: Renamed from modules/pathname.
35671         (Files): Replace lib/pathname.h with lib/filename.h. Replace
35672         lib/concatpath.c with lib/concat-filename.c.
35673         (Makefile.am): Update.
35674         (Include): Replace pathname.h with filename.h.
35675         * lib/filename.h: Renamed from lib/pathname.h.
35676         (concatenated_filename): Renamed from concatenated_pathname.
35677         * lib/concat-filename.c: Renamed from lib/concatpath.c.
35678         (concatenated_filename): Renamed from concatenated_pathname.
35679         * lib/findprog.c: Include filename.h instead of pathname.h.
35680         (find_in_path): Update.
35681         * lib/javacomp.c: Include filename.h instead of pathname.h.
35682         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35683         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35684         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35685         is_oldgcj_14_13_usable, is_javac_usable): Update.
35686         * lib/javaexec.c: Include filename.h instead of pathname.h.
35687         (execute_java_class): Update.
35688         * modules/findprog: Update.
35689         * modules/javacomp: Update.
35690         * modules/javaexec: Update.
35691         * MODULES.html.sh (File system functions): Add 'filename', remove
35692         'pathname'.
35693
35694 2007-02-25  Bruno Haible  <bruno@clisp.org>
35695
35696         * modules/printf-frexpl-tests: New file.
35697         * tests/test-printf-frexpl.c: New file.
35698
35699         * modules/printf-frexpl: New file.
35700         * lib/printf-frexpl.h: New file.
35701         * lib/printf-frexpl.c: New file.
35702         * m4/printf-frexpl.m4: New file.
35703
35704 2007-02-25  Bruno Haible  <bruno@clisp.org>
35705
35706         * modules/printf-frexp-tests: New file.
35707         * tests/test-printf-frexp.c: New file.
35708
35709         * modules/printf-frexp: New file.
35710         * lib/printf-frexp.h: New file.
35711         * lib/printf-frexp.c: New file.
35712         * m4/printf-frexp.m4: New file.
35713
35714 2007-02-25  Bruno Haible  <bruno@clisp.org>
35715
35716         Assume automake >= 1.10 for the tests.
35717         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
35718         * modules/arctwo-tests: Likewise.
35719         * modules/argp-tests: Likewise.
35720         * modules/avltree-list-tests: Likewise.
35721         * modules/avltree-oset-tests: Likewise.
35722         * modules/avltreehash-list-tests: Likewise.
35723         * modules/carray-list-tests: Likewise.
35724         * modules/crc-tests: Likewise.
35725         * modules/des-tests: Likewise.
35726         * modules/gc-arcfour-tests: Likewise.
35727         * modules/gc-arctwo-tests: Likewise.
35728         * modules/gc-des-tests: Likewise.
35729         * modules/gc-hmac-md5-tests: Likewise.
35730         * modules/gc-hmac-sha1-tests: Likewise.
35731         * modules/gc-md2-tests: Likewise.
35732         * modules/gc-md4-tests: Likewise.
35733         * modules/gc-md5-tests: Likewise.
35734         * modules/gc-pbkdf2-sha1-tests: Likewise.
35735         * modules/gc-rijndael-tests: Likewise.
35736         * modules/gc-sha1-tests: Likewise.
35737         * modules/gc-tests: Likewise.
35738         * modules/getaddrinfo-tests: Likewise.
35739         * modules/hmac-md5-tests: Likewise.
35740         * modules/hmac-sha1-tests: Likewise.
35741         * modules/linked-list-tests: Likewise.
35742         * modules/linkedhash-list-tests: Likewise.
35743         * modules/lock-tests: Likewise.
35744         * modules/md2-tests: Likewise.
35745         * modules/md4-tests: Likewise.
35746         * modules/md5-tests: Likewise.
35747         * modules/rbtree-list-tests: Likewise.
35748         * modules/rbtree-oset-tests: Likewise.
35749         * modules/rbtreehash-list-tests: Likewise.
35750         * modules/read-file-tests: Likewise.
35751         * modules/rijndael-tests: Likewise.
35752         * modules/stdint-tests: Likewise.
35753         * modules/tls-tests: Likewise.
35754
35755 2007-02-24  Bruno Haible  <bruno@clisp.org>
35756
35757         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
35758         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
35759         function; instead check whether isnan with a double argument links.
35760         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
35761         function; instead check whether isnan with a 'long double' argument
35762         links.
35763         Reported by Eric Blake <ebb9@byu.net>.
35764
35765 2007-02-24  Bruno Haible  <bruno@clisp.org>
35766
35767         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
35768         defined.
35769         * lib/isnanl.c: Remove all code. Just include isnan.c.
35770         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
35771
35772 2007-02-25  Jim Meyering  <jim@meyering.net>
35773
35774         Avoid conflicting types for 'unsetenv' on FreeBSD.
35775         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
35776         conflicting with FreeBSD's (5.0 and 6.1) function declaration
35777         in stdlib.h.
35778
35779 2007-02-24  Bruno Haible  <bruno@clisp.org>
35780
35781         * modules/isnanl-nolibm-tests: New file.
35782         * tests/test-isnanl.c: New file.
35783
35784         * modules/isnanl-nolibm: New file.
35785         * lib/isnanl.h: New file.
35786         * lib/isnanl.c: New file.
35787         * m4/isnanl.m4: New file.
35788
35789 2007-02-24  Bruno Haible  <bruno@clisp.org>
35790
35791         * modules/isnan-nolibm-tests: New file.
35792         * tests/test-isnan.c: New file.
35793
35794         * modules/isnan-nolibm: New file.
35795         * lib/isnan.h: New file.
35796         * lib/isnan.c: New file.
35797         * m4/isnan.m4: New file.
35798
35799 2007-02-24  Bruno Haible  <bruno@clisp.org>
35800
35801         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
35802         assume that an exponent fits in 20 bits.
35803
35804 2007-02-24  Jim Meyering  <jim@meyering.net>
35805
35806         * m4/regex.m4: Update the description of the configure-time option,
35807         --without-included-regex, to state accurately what the defaults are,
35808         and perhaps to give people an idea why using this option is risky.
35809
35810 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
35811
35812         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
35813         loops on small arguments.  This attempts to avoid the problem
35814         Bruno Haible reported for AIX 4.3.2 in
35815         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
35816
35817 2007-02-23  Bruno Haible  <bruno@clisp.org>
35818
35819         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
35820         Needed for help2man.
35821
35822 2007-02-23  Karl Berry  <karl@gnu.org>
35823
35824         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
35825         exists, foo.h should be cvs-ignored, not committed.
35826
35827 2007-02-23  Eric Blake  <ebb9@byu.net>
35828
35829         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
35830         * lib/stat-time.h (includes): Likewise.
35831         * lib/utimecmp.c (includes): Likewise.
35832         * lib/utimens.h (includes): Likewise.
35833         * lib/getdate.y (includes): Also include "timespec.h" for use
35834         internal to the module.
35835         * modules/utimens (Depends-on): Revert yesterday's patch.
35836         * modules/nanosleep (Depends-on): Add missing dependency.
35837
35838 2007-02-22  Bruno Haible  <bruno@clisp.org>
35839
35840         * lib/glob.c: Don't include getlogin_r.h.
35841
35842 2007-02-22  Jim Meyering  <jim@meyering.net>
35843
35844         * modules/utimens (Depends-on): Add timespec, required for
35845         utimens.h's inclusion of timespec.h.
35846
35847 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35848
35849         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
35850         long unreadable paths in GNU/Linux.  Problem reported by Andreas
35851         Schwab in
35852         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
35853         I'll try to think of a better way to fix the Solaris problem.
35854
35855         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
35856         like glibc; on Solaris 10, it fails with errno == EINVAL.
35857         POSIX says the behavior is unspecified if the first argument is NULL,
35858         so play it safe and never pass NULL to the system getcwd.
35859
35860 2007-02-21  Jim Meyering  <jim@meyering.net>
35861
35862         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
35863         of gettimeofday.  It would conflict with the one now always
35864         provided via sys_time_.h.  Reported by Matthew Woehlke, as
35865         an IRIX 6.5 build failure.
35866
35867 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35868
35869         Minor fixups to port to Solaris 10 with Sun C 5.8.
35870         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
35871         * modules/getcwd (Depends-on): Add dirfd.
35872         * lib/putenv.c (putenv): #undef it.
35873         (rpl_putenv): New decl.
35874         (malloc, free): Include <stdlib.h> rather than prototyping separately.
35875
35876 2007-02-20  Bruno Haible  <bruno@clisp.org>
35877
35878         * modules/stdio-tests: New file.
35879         * tests/test-stdio.c: New file.
35880
35881         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
35882         (Depends-on): Add stdio.
35883         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35884         (Include): Use <stdio.h> instead of vsnprintf.h.
35885         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
35886         HAVE_DECL_VSNPRINTF.
35887         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
35888
35889         * modules/snprintf (Files): Remove lib/snprintf.h.
35890         (Depends-on): Add stdio.
35891         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35892         (Include): Use <stdio.h> instead of snprintf.h.
35893         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
35894         HAVE_DECL_SNPRINTF.
35895         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
35896         * lib/getaddrinfo.c: Likewise.
35897
35898         * modules/stdio: New file.
35899         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
35900         * lib/snprintf.h: Remove file.
35901         * lib/vsnprintf.h: Remove file.
35902         * lib/.cppi-disable: Remove snprintf.h.
35903         * m4/stdio_h.m4: New file.
35904         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
35905
35906 2007-02-20  Jim Meyering  <jim@meyering.net>
35907
35908         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
35909         used by e.g., mingw.  From Bruno Haible.
35910
35911 2007-02-19  Bruno Haible  <bruno@clisp.org>
35912
35913         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
35914         warnings.
35915         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35916
35917 2007-02-19  Bruno Haible  <bruno@clisp.org>
35918
35919         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
35920         from mingw users.
35921
35922 2007-02-19  Bruno Haible  <bruno@clisp.org>
35923
35924         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
35925         warnings.
35926         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
35927
35928 2007-02-19  Jim Meyering  <jim@meyering.net>
35929
35930         Don't use FD after a successful "fdopendir (fd)".
35931         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
35932         Reset it by calling dirfd on the just-obtained DIR*.
35933
35934         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
35935         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
35936
35937 2007-02-18  Bruno Haible  <bruno@clisp.org>
35938
35939         * lib/readlink.c: Include <unistd.h>.
35940         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
35941         HAVE_READLINK.
35942         * modules/readlink (Depends-on): Add unistd.
35943         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35944         (Include): Add <unistd.h>.
35945
35946         * lib/getlogin_r.h: Remove file.
35947         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
35948         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
35949         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
35950         HAVE_DECL_GETLOGIN_R.
35951         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
35952         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35953         (Include): Use <unistd.h> instead of getlogin_r.h.
35954
35955         * lib/getcwd.h: Remove file.
35956         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
35957         * lib/xgetcwd.c: Likewise.
35958         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
35959         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
35960         * modules/getcwd (Files): Remove lib/getcwd.h.
35961         (Depends-on): Add unistd.
35962         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35963         (Include): Use <unistd.h> instad of getcwd.h.
35964
35965         * lib/ftruncate.c: Include <unistd.h> first.
35966         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
35967         Set HAVE_FTRUNCATE.
35968         * modules/ftruncate (Depends-on): Add unistd.
35969         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35970
35971         * lib/fchdir.c: Include <unistd.h> first.
35972         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
35973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
35974         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
35975         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35976         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
35977
35978         * lib/dup2.c: Include <unistd.h> first.
35979         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
35980         HAVE_DUP2.
35981         * modules/dup2 (Depends-on): Add unistd.
35982         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35983
35984         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
35985         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
35986         REPLACE_CHOWN. Don't define chown as a macro here.
35987         * modules/chown (Depends-on): Add unistd.
35988         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35989
35990         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
35991         Add definition for GL_LINK_WARNING.
35992         (chown, dup2): New declarations.
35993         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
35994         link warning.
35995         (ftruncate): New declaration.
35996         (getcwd): New declaration, taken from old getcwd.h.
35997         (getlogin_r): New declaration, taken from old getlogin_r.h.
35998         (readlink): New declaration.
35999         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36000         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36001         (gl_PREREQ_UNISTD): Remove macro.
36002         (gl_UNISTD_MODULE_INDICATOR): New macro.
36003         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36004         many new variables. Don't set UNISTD_H.
36005         * modules/unistd (Description): Change.
36006         (Depends-on): Add link-warning.
36007         (configure.ac): Update.
36008         (Makefile.am): Create unistd.h always. Substitute many new variables
36009         into it.
36010
36011 2007-02-18  Bruno Haible  <bruno@clisp.org>
36012
36013         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36014         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36015         HAVE_GETSUBOPT.
36016         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36017         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36018         * lib/getsubopt.h: Remove file.
36019         * modules/getsubopt (Files): Remove lib/getsubopt.h.
36020         (Depends-on): Add stdlib.
36021         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36022         (Includes): Use <stdlib.h> instead of getsubopt.h.
36023         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36024         Set HAVE_GETSUBOPT.
36025         * lib/getsubopt.c: Don't include getsubopt.h.
36026
36027 2007-02-18  Bruno Haible  <bruno@clisp.org>
36028
36029         * modules/fchdir (Depends-on): Add dup2.
36030
36031 2007-02-18  Bruno Haible  <bruno@clisp.org>
36032
36033         * lib/stdlib_.h: Handle glibc's special invocation convention
36034         specially.
36035
36036 2007-02-18  Bruno Haible  <bruno@clisp.org>
36037
36038         * modules/stdlib-tests: New file.
36039         * tests/test-stdlib.c: New file.
36040
36041         * modules/mkstemp (Files): Remove lib/mkstemp.h.
36042         (Depends-on): Add stdlib.
36043         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36044         (Includes): Use <stdlib.h> instead of mkstemp.h.
36045         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36046         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36047         * lib/mkstemp.c: Don't include mkstemp.h.
36048         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36049         * lib/stdlib--.h: Don't include mkstemp.h.
36050
36051         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36052         (Depends-on): Add stdlib.
36053         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36054         (Includes): Use <stdlib.h> instead of mkdtemp.h.
36055         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36056         HAVE_MKDTEMP.
36057         * lib/mkdtemp.c: Don't include mkdtemp.h.
36058         * lib/clean-temp.c: Don't include mkdtemp.h.
36059
36060         * modules/exit (Files): Remove lib/exit.h.
36061         (Depends-on): Add stdlib.
36062         (Makefile.am): Remove lib_SOURCES.
36063         (Include): Use <stdlib.h> instead of exit.h.
36064         * lib/argmatch.c: Don't include exit.h.
36065         * lib/execute.c: Likewise.
36066         * lib/pagealign_alloc.c: Likewise.
36067         * lib/pipe.c: Likewise.
36068         * lib/wait-process.c: Likewise.
36069         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36070         * lib/exitfail.c: Likewise.
36071         * lib/savewd.c: Likewise.
36072         * lib/xsetenv.c: Likewise.
36073
36074         * modules/stdlib: New file.
36075         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36076         and extra comments about mkstemp().
36077         * lib/exit.h: Remove file.
36078         * lib/mkdtemp.h: Remove file.
36079         * lib/mkstemp.h: Remove file.
36080         * m4/stdlib_h.m4: New file.
36081         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36082
36083 2007-02-18  Bruno Haible  <bruno@clisp.org>
36084
36085         * modules/math-tests: New file.
36086         * tests/test-math.c: New file.
36087
36088         * modules/math: New file.
36089         * modules/mathl (Files): Remove lib/mathl.h.
36090         (Depends-on): Add math.
36091         (Makefile.am): Don't mention mathl.h.
36092         (Include): Use <math.h> instead of mathl.h.
36093         * lib/math_.h: New file.
36094         * lib/mathl.h: Remove file.
36095         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36096         mathl.h.
36097         * lib/asinl.c: Likewise.
36098         * lib/atanl.c: Likewise.
36099         * lib/ceill.c: Likewise.
36100         * lib/cosl.c: Likewise.
36101         * lib/expl.c: Likewise.
36102         * lib/floorl.c: Likewise.
36103         * lib/frexpl.c: Likewise.
36104         * lib/ldexpl.c: Likewise.
36105         * lib/logl.c: Likewise.
36106         * lib/sincosl.c: Likewise.
36107         * lib/sinl.c: Likewise.
36108         * lib/sqrtl.c: Likewise.
36109         * lib/tanl.c: Likewise.
36110         * lib/trigl.c: Likewise.
36111         * m4/math_h.m4: New file.
36112         * MODULES.html.sh (Mathematics): Add math.
36113
36114 2007-02-17  Bruno Haible  <bruno@clisp.org>
36115
36116         * modules/wctype-tests: New file.
36117         * tests/test-wctype.c: New file.
36118
36119         * modules/wchar-tests: New file.
36120         * tests/test-wchar.c: New file.
36121
36122         * modules/unistd-tests: New file.
36123         * tests/test-unistd.c: New file.
36124
36125         * modules/time-tests: New file.
36126         * tests/test-time.c: New file.
36127
36128         * modules/sysexits-tests: New file.
36129         * tests/test-sysexits.c: New file.
36130
36131         * modules/sys_time-tests: New file.
36132         * tests/test-sys_time.c: New file.
36133
36134         * modules/sys_stat-tests: New file.
36135         * tests/test-sys_stat.c: New file.
36136
36137         * modules/sys_socket-tests: New file.
36138         * tests/test-sys_socket.c: New file.
36139
36140         * modules/sys_select-tests: New file.
36141         * tests/test-sys_select.c: New file.
36142
36143         * modules/string-tests: New file.
36144         * tests/test-string.c: New file.
36145
36146         * modules/stdbool-tests: New file.
36147         * tests/test-stdbool.c: New file.
36148
36149         * modules/netinet_in-tests: New file.
36150         * tests/test-netinet_in.c: New file.
36151
36152         * modules/inttypes-tests: New file.
36153         * tests/test-inttypes.c: New file.
36154
36155         * modules/fcntl-tests: New file.
36156         * tests/test-fcntl.c: New file.
36157
36158         * modules/byteswap-tests: New file.
36159         * tests/test-byteswap.c: New file.
36160
36161         * modules/arpa_inet-tests: New file.
36162         * tests/test-arpa_inet.c: New file.
36163
36164 2007-02-17  Bruno Haible  <bruno@clisp.org>
36165
36166         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36167         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36168         if the corresponding module is not enabled. Emit link warnings if
36169         the function is used nevertheless.
36170         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36171         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36172         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36173         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36174         * modules/inttypes (Depends-on): Add link-warning.
36175         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36176         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36177         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36178         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36179         * modules/imaxdiv (configure.ac): Likewise.
36180         * modules/strtoimax (configure.ac): Likewise.
36181         * modules/strtoumax (configure.ac): Likewise.
36182
36183 2007-02-17  Bruno Haible  <bruno@clisp.org>
36184
36185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36186         gl_STRING_MODULE_INDICATOR_DEFAULTS.
36187         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36188         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36189
36190 2007-02-17  Bruno Haible  <bruno@clisp.org>
36191
36192         * modules/link-warning: New file.
36193         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36194         * lib/string_.h (GL_LINK_WARNING): Remove definition.
36195         * modules/string (Depends-on): Add link-warning.
36196         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36197         string.h.
36198         * MODULES.html.sh (Support for building libraries and executables): Add
36199         link-warning.
36200
36201 2007-02-17  Bruno Haible  <bruno@clisp.org>
36202
36203         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36204         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36205         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36206         long lines.
36207
36208 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
36209             Bruno Haible  <bruno@clisp.org>
36210
36211         * modules/tmpfile: New file.
36212         * lib/tmpfile.c: New file.
36213         * m4/tmpfile.m4: New file.
36214         * MODULES.html.sh (func_all_modules): New section "Input/output".
36215
36216 2007-02-15  Bruno Haible  <bruno@clisp.org>
36217
36218         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36219         (supports_delete_on_close): New function.
36220         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36221
36222 2007-02-14  Bruno Haible  <bruno@clisp.org>
36223
36224         * modules/mbspcasecmp-tests: New file.
36225         * tests/test-mbspcasecmp.sh: New file.
36226         * tests/test-mbspcasecmp.c: New file.
36227
36228         New module mbspcasecmp.
36229         * modules/mbspcasecmp: New file.
36230         * lib/mbspcasecmp.c: New file.
36231         * lib/string_.h (strncasecmp): Change warning message.
36232         (mbspcasecmp): New declaration.
36233         * m4/mbspcasecmp.m4: New file.
36234         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36235         GNULIB_MBSPCASECMP.
36236         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36237         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36238
36239 2007-02-14  Bruno Haible  <bruno@clisp.org>
36240
36241         * modules/mbsncasecmp-tests: New file.
36242         * tests/test-mbsncasecmp.sh: New file.
36243         * tests/test-mbsncasecmp.c: New file.
36244
36245         New module mbsncasecmp.
36246         * modules/mbsncasecmp: New file.
36247         * lib/mbsncasecmp.c: New file.
36248         * lib/string_.h (mbsncasecmp): New declaration.
36249         * m4/mbsncasecmp.m4: New file.
36250         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36251         GNULIB_MBSNCASECMP.
36252         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36253         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36254
36255 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36256
36257         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36258         Verify that it doesn't overlap with our flags.
36259         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36260         do not have the desired effect in multibyte locales; instead, use
36261         mbscasecmp.
36262         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36263         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
36264         we don't require GNU fnmatch ourselves (if our users require it, they
36265         should do so explicitly).
36266
36267         Fix regex code so it doesn't rely on strcasecmp.
36268         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36269         Otherwise, include gnulib's langinfo.h.
36270         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36271         undesirable behavior in non-C locales.  Instead, rely on localecharset.
36272         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36273         * modules/regex (FILES): Remove m4/codeset.m4.
36274         (Depends-on): Add localcharset.  Remove strcase.
36275
36276 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36277
36278         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36279         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36280
36281 2007-02-13  Bruno Haible  <bruno@clisp.org>
36282
36283         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36284         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36285
36286 2007-02-12  Bruno Haible  <bruno@clisp.org>
36287
36288         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36289         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
36290         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
36291         time warning rather than a link error.
36292
36293 2007-02-12  Bruno Haible  <bruno@clisp.org>
36294
36295         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
36296         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36297         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36298
36299 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36300
36301         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
36302         args, not 2.
36303
36304 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36305
36306         New module 'time', so that apps can include <time.h> as per
36307         POSIX and GNU instead of separate include files like time_r.h
36308         and timegm.h.  This implementation tries out a simpler approach
36309         for replacing decls in standard include files (as compared to
36310         the string module), somewhat as an experiment.
36311
36312         * config/srclist.txt: Comment out mktime.c for now.
36313         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
36314         since it doesn't apply any more.  Use generic wording instead.
36315         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
36316         'time'.
36317         * lib/time_.h, m4/time_h.m4, modules/time: New files.
36318         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
36319         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
36320         Don't include <sys/types.h>; no longer needed since we assume C89.
36321         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
36322         * lib/strftime.c: Likewise.
36323         * lib/time_r.c: Likewise.
36324         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
36325         * lib/nanosleep.c: Include <time.h> first, to check interface.
36326         * lib/strptime.c: Likewise.
36327         * lib/time_r.c: Likewise.
36328         * lib/timegm.c: Likewise.
36329         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
36330         needed.
36331         * lib/timegm.c: Don't include timegm.h; no longer needed.
36332         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
36333         time.h now handles any problems in that area.
36334         (struct timespec, nanosleep): Remove; time.h now arranges for these.
36335         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
36336         that time.h defines struct timespec.
36337         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
36338         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
36339         handles that.
36340         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
36341         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
36342         needed.  Set REPLACE_LOCALTIME.
36343         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
36344         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
36345         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
36346         nanosleep; time_h.m4 now does that.  Don't require
36347         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
36348         module handles this now.
36349         * modules/getdate (Depends-on): Remove timespec.  Add time.
36350         * modules/nanosleep (Depends-on): Likewise.
36351         * modules/stat-time (Depends-on): Likewise.
36352         * modules/nanosleep (Include): Include time.h, not timespec.h.
36353         * modules/strptime (Files): Remove lib/strptime.h.
36354         (Depends-on): Add extensions, time.
36355         (Include): Include time.h, not strptime.h.
36356         * modules/time_r (Files): Remove lib/time_r.h.
36357         (Depends-on): Add time.
36358         (Include): Include time.h, not time_r.h.
36359         * modules/timegm: Likewise.
36360         * modules/timespec (Description): Now does timespec-related decls
36361         of our own, instead of struct timespec itself.
36362         (Depends-on): Add time; remove extensions.
36363         (Maintainer): Add self.
36364         * modules/utimecmp (Depends-on): Add time; remove timespec.
36365         * modules/utimens (Depends-on): Likewise.
36366         * modules/xnanosleep (Depends-on): Likewise.
36367
36368 2007-02-11  Bruno Haible  <bruno@clisp.org>
36369
36370         * lib/c-strstr.c: Include allocsa.h.
36371         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36372         * lib/c-strcasestr.c: Include allocsa.h.
36373         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36374         * lib/strcasestr.c: Include allocsa.h.
36375         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36376         * lib/mbsstr.c: Include allocsa.h.
36377         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36378         allocsa/freesa instead of malloc/free.
36379         * lib/mbscasestr.c: Include allocsa.h.
36380         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36381         allocsa/freesa instead of malloc/free.
36382         * modules/c-strstr (Depends-on): Add allocsa.
36383         * modules/c-strcasestr (Depends-on): Likewise.
36384         * modules/strcasestr (Depends-on): Likewise.
36385         * modules/mbsstr (Depends-on): Likewise.
36386         * modules/mbscasestr (Depends-on): Likewise.
36387
36388 2007-02-11  Bruno Haible  <bruno@clisp.org>
36389
36390         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
36391
36392         * modules/mbsspn-tests: New file.
36393         * tests/test-mbsspn.sh: New file.
36394         * tests/test-mbsspn.c: New file.
36395
36396 2007-02-11  Bruno Haible  <bruno@clisp.org>
36397
36398         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
36399
36400         * modules/mbspbrk-tests: New file.
36401         * tests/test-mbspbrk.sh: New file.
36402         * tests/test-mbspbrk.c: New file.
36403
36404 2007-02-11  Bruno Haible  <bruno@clisp.org>
36405
36406         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
36407         unneeded cast.
36408
36409         * modules/mbscspn-tests: New file.
36410         * tests/test-mbscspn.sh: New file.
36411         * tests/test-mbscspn.c: New file.
36412
36413 2007-02-11  Bruno Haible  <bruno@clisp.org>
36414
36415         * modules/mbscasecmp-tests: New file.
36416         * tests/test-mbscasecmp.sh: New file.
36417         * tests/test-mbscasecmp.c: New file.
36418
36419 2007-02-11  Bruno Haible  <bruno@clisp.org>
36420
36421         Ensure O(n) worst-case complexity of mbscasestr.
36422         * lib/mbscasestr.c: Include stdbool.h.
36423         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36424         functions.
36425         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
36426         the bookkeeping indicates that it's worth it.
36427         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
36428
36429         * modules/mbscasestr-tests: New file.
36430         * tests/test-mbscasestr1.c: New file.
36431         * tests/test-mbscasestr2.sh: New file.
36432         * tests/test-mbscasestr2.c: New file.
36433         * tests/test-mbscasestr3.sh: New file.
36434         * tests/test-mbscasestr3.c: New file.
36435         * tests/test-mbscasestr4.sh: New file.
36436         * tests/test-mbscasestr4.c: New file.
36437         * m4/locale-tr.m4: New file.
36438
36439 2007-02-11  Bruno Haible  <bruno@clisp.org>
36440
36441         Ensure O(n) worst-case complexity of mbsstr.
36442         * lib/mbsstr.c: Include stdbool.h.
36443         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36444         functions.
36445         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
36446         bookkeeping indicates that it's worth it.
36447         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
36448
36449         * modules/mbsstr-tests: New file.
36450         * tests/test-mbsstr1.c: New file.
36451         * tests/test-mbsstr2.sh: New file.
36452         * tests/test-mbsstr2.c: New file.
36453         * tests/test-mbsstr3.sh: New file.
36454         * tests/test-mbsstr3.c: New file.
36455         * m4/locale-fr.m4: New file.
36456
36457 2007-02-11  Bruno Haible  <bruno@clisp.org>
36458
36459         * lib/mbsrchr.c (mbsrchr): Fix bug.
36460
36461         * modules/mbsrchr-tests: New file.
36462         * tests/test-mbsrchr.sh: New file.
36463         * tests/test-mbsrchr.c: New file.
36464
36465 2007-02-11  Bruno Haible  <bruno@clisp.org>
36466
36467         * lib/mbschr.c (mbschr): Fix bug.
36468
36469         * modules/mbschr-tests: New file.
36470         * tests/test-mbschr.sh: New file.
36471         * tests/test-mbschr.c: New file.
36472         * m4/locale-zh.m4: New file.
36473
36474 2007-02-11  Bruno Haible  <bruno@clisp.org>
36475
36476         Support for copying multibyte string iterators.
36477         * lib/mbiter.h: Include <string.h>.
36478         (mbiter_multi_copy): New function.
36479         (mbi_copy): New macro.
36480         * lib/mbuiter.h: Include <string.h>.
36481         (mbuiter_multi_copy): New function.
36482         (mbui_copy): New macro.
36483
36484 2007-02-11  Bruno Haible  <bruno@clisp.org>
36485
36486         New module mbslen.
36487         * modules/mbslen: New file.
36488         * lib/mbslen.c: New file.
36489         * lib/string_.h (mbslen): New declaration.
36490         * m4/mbslen.m4: New file.
36491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36492         GNULIB_MBSLEN.
36493         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
36494         * MODULES.html.sh (Internationalization functions): Add mbslen.
36495
36496 2007-02-11  Bruno Haible  <bruno@clisp.org>
36497
36498         Ensure O(n) worst-case complexity of strcasestr substitute.
36499         * lib/strcasestr.c: Include stdbool.h.
36500         (knuth_morris_pratt): New function.
36501         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36502         bookkeeping indicates that it's worth it.
36503         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
36504
36505         * modules/strcasestr-tests: New file.
36506         * tests/test-strcasestr.c: New file.
36507
36508 2007-02-11  Bruno Haible  <bruno@clisp.org>
36509
36510         Ensure O(n) worst-case complexity of c_strcasestr.
36511         * lib/c-strcasestr.c: Include stdbool.h, string.h.
36512         (knuth_morris_pratt): New function.
36513         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
36514         the bookkeeping indicates that it's worth it.
36515         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
36516
36517         * modules/c-strcasestr-tests: New file.
36518         * tests/test-c-strcasestr.c: New file.
36519
36520 2007-02-11  Bruno Haible  <bruno@clisp.org>
36521
36522         Ensure O(n) worst-case complexity of c_strstr.
36523         * lib/c-strstr.c: Include stdbool.h, string.h.
36524         (knuth_morris_pratt): New function.
36525         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36526         bookkeeping indicates that it's worth it.
36527         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
36528
36529         * lib/c-strstr.c: Complete rewrite for maintainability.
36530
36531         * modules/c-strstr-tests: New file.
36532         * tests/test-c-strstr.c: New file.
36533
36534 2007-02-11  Bruno Haible  <bruno@clisp.org>
36535
36536         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
36537         5.2.1 and earlier, whereby \055 was treated just like the range
36538         delimiter '-'.
36539         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36540
36541 2007-02-08  Bruno Haible  <bruno@clisp.org>
36542
36543         * modules/regex (Depends-on): Add stdbool.
36544         Reported by Dalibor Topic <robilad@kaffe.org>.
36545
36546 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
36547
36548         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
36549         Prefer returning from main to exiting from it.
36550         Remove unnecessary parens after sizeof.
36551
36552 2007-02-05  Bruno Haible  <bruno@clisp.org>
36553
36554         New module mbssep.
36555         * modules/mbssep: New file.
36556         * lib/mbssep.c: New file.
36557         * lib/string_.h (strsep): Add a conditional link warning.
36558         (mbssep): New declaration.
36559         * m4/mbssep.m4: New file.
36560         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36561         GNULIB_MBSSEP.
36562         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
36563         * MODULES.html.sh (Internationalization functions): Add mbssep.
36564
36565 2007-02-05  Bruno Haible  <bruno@clisp.org>
36566
36567         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
36568         Optimize search in case of 1 delimiter.
36569
36570 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36571
36572         * lib/acl.h: Include sys/types.h before sys/acl.h.
36573
36574 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36575
36576         Merge upstream fix for glibc bugzilla #3957:
36577
36578         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
36579
36580         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
36581         bit for RE_HAT_LISTS_NOT_NEWLINE.
36582         (build_charclass_op): Remove bogus comment.
36583
36584 2007-02-05  Simon Josefsson  <simon@josefsson.org>
36585
36586         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
36587
36588 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36589
36590         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
36591         * lib/memmem.c [!defined _LIBC]: Include config.h.
36592
36593 2007-02-04  Bruno Haible  <bruno@clisp.org>
36594
36595         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
36596         warning message.
36597
36598 2007-02-04  Bruno Haible  <bruno@clisp.org>
36599
36600         New module mbstok_r.
36601         * modules/mbstok_r: New file.
36602         * lib/mbstok_r.c: New file.
36603         * lib/string_.h (strtok_r): Change argument names to match the
36604         comments. Add a conditional link warning.
36605         (mbstok_r): New declaration.
36606         * m4/mbstok_r.m4: New file.
36607         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36608         GNULIB_MBSTOK_R.
36609         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
36610         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
36611
36612 2007-02-04  Bruno Haible  <bruno@clisp.org>
36613
36614         New module mbsspn.
36615         * modules/mbsspn: New file.
36616         * lib/mbsspn.c: New file.
36617         * lib/string_.h (strspn): Add a conditional link warning.
36618         (mbsspn): New declaration.
36619         * m4/mbsspn.m4: New file.
36620         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36621         GNULIB_MBSSPN.
36622         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
36623         * MODULES.html.sh (Internationalization functions): Add mbsspn.
36624
36625 2007-02-04  Bruno Haible  <bruno@clisp.org>
36626
36627         New module mbspbrk.
36628         * modules/mbspbrk: New file.
36629         * lib/mbspbrk.c: New file.
36630         * lib/string_.h (strpbrk): Add a conditional link warning.
36631         (mbspbrk): New declaration.
36632         * m4/mbspbrk.m4: New file.
36633         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36634         GNULIB_MBSPBRK.
36635         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
36636         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
36637
36638 2007-02-04  Bruno Haible  <bruno@clisp.org>
36639
36640         New module mbscspn.
36641         * modules/mbscspn: New file.
36642         * lib/mbscspn.c: New file.
36643         * lib/string_.h (strcspn): Add a conditional link warning.
36644         (mbscspn): New declaration.
36645         * m4/mbscspn.m4: New file.
36646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36647         GNULIB_MBSCSPN.
36648         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
36649         * MODULES.html.sh (Internationalization functions): Add mbscspn.
36650
36651 2007-02-04  Bruno Haible  <bruno@clisp.org>
36652
36653         New module mbscasestr, reduced goal of strcasestr.
36654         * modules/mbscasestr: New file.
36655         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
36656         (mbscasestr): Renamed from strcasestr.
36657         * lib/strcasestr.c: Don't include mbuiter.h.
36658         (strcasestr): Remove support for multibyte locales.
36659         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
36660         Change the conditional link warning.
36661         (mbscasestr): New declaration.
36662         * m4/mbscasestr.m4: New file.
36663         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
36664         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
36665         REPLACE_STRCASESTR.
36666         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
36667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36668         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36669         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
36670         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
36671         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36672         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
36673         (Depends-on): Remove mbuiter.
36674         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
36675
36676 2007-02-04  Bruno Haible  <bruno@clisp.org>
36677
36678         Simplify handling of strncasecmp.
36679         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
36680         the conditional link warning.
36681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36682         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
36683         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
36684         * modules/strcase (configure.ac): Don't invoke
36685         gl_STRING_MODULE_INDICATOR.
36686         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
36687
36688 2007-02-04  Bruno Haible  <bruno@clisp.org>
36689
36690         New module mbscasecmp, reduced goal of strcasecmp.
36691         * modules/mbscasecmp: New file.
36692         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
36693         (mbscasecmp): Renamed from strcasecmp.
36694         * lib/strcasecmp.c: Don't include mbuiter.h.
36695         (strcasecmp): Remove support for multibyte locales.
36696         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
36697         Change the conditional link warning.
36698         (mbscasecmp): New declaration.
36699         * m4/mbscasecmp.m4: New file.
36700         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
36701         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
36702         REPLACE_STRCASECMP.
36703         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
36704         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36705         GNULIB_MBSCASECMP.
36706         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
36707         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
36708         * modules/strcase (Files): Remove m4/mbrtowc.m4.
36709         (Depends-on): Remove mbuiter.
36710         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
36711
36712 2007-02-04  Bruno Haible  <bruno@clisp.org>
36713
36714         New module mbsstr. Remove module strstr.
36715         * modules/mbsstr: New file.
36716         * modules/strstr: Remove file.
36717         * lib/mbsstr.c: Renamed from lib/strstr.c.
36718         (mbsstr): Renamed from strstr.
36719         * lib/string_.h (strstr): Remove declaration. Change the conditional
36720         link warning.
36721         (mbsstr): New declaration.
36722         * m4/mbsstr.m4: New file.
36723         * m4/strstr.m4: Remove file.
36724         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
36725         REPLACE_STRSTR.
36726         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
36727         Don't initialize GNULIB_STRSTR.
36728         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
36729         substitute GNULIB_STRSTR and REPLACE_STRSTR.
36730         * MODULES.html.sh (Internationalization functions): Add mbsstr.
36731         (Support for systems lacking ANSI C 89): Remove strstr.
36732
36733 2007-02-04  Bruno Haible  <bruno@clisp.org>
36734
36735         New module mbsrchr.
36736         * modules/mbsrchr: New file.
36737         * lib/mbsrchr.c: New file.
36738         * lib/string_.h (strrchr): Add a conditional link warning.
36739         (mbsrchr): New declaration.
36740         * m4/mbsrchr.m4: New file.
36741         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36742         GNULIB_MBSRCHR.
36743         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
36744         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
36745
36746 2007-02-04  Bruno Haible  <bruno@clisp.org>
36747
36748         New module mbschr.
36749         * modules/mbschr: New file.
36750         * lib/mbschr.c: New file.
36751         * lib/string_.h (strchr): Add a conditional link warning.
36752         (mbschr): New declaration.
36753         * m4/mbschr.m4: New file.
36754         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36755         GNULIB_MBSCHR.
36756         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
36757         * MODULES.html.sh (Internationalization functions): Add mbschr.
36758
36759 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36760
36761         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
36762
36763         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
36764
36765 2007-02-04  Bruno Haible  <bruno@clisp.org>
36766
36767         New module description section 'configure.ac-early'.
36768         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
36769         (func_get_autoconf_early_snippet): New function.
36770         (func_import, func_create_testdir): Use it. Remove special cases for
36771         modules 'extensions' and 'lock'.
36772         * modules/extensions (configure.ac-early): Require
36773         gl_USE_SYSTEM_EXTENSIONS.
36774         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
36775
36776 2007-02-04  Bruno Haible  <bruno@clisp.org>
36777
36778         Make use of gcj-4.3's -fsource and -ftarget option.
36779         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
36780         and if so try the options -fsource and -ftarget.
36781         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
36782         source_version, ftarget_option, target_version arguments.
36783         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
36784         (is_envjavac_oldgcj_14_14_usable): Renamed from
36785         is_envjavac_gcj_14_14_usable.
36786         (is_envjavac_oldgcj_14_13_usable): Renamed from
36787         is_envjavac_gcj_14_13_usable.
36788         (is_gcj_present): Update.
36789         (is_gcj_43, is_gcj43_usable): New functions.
36790         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
36791         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
36792         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
36793         try the options -fsource and -ftarget.
36794
36795 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
36796
36797         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
36798         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
36799         larger value.
36800
36801 2007-02-03  Jim Meyering  <jim@meyering.net>
36802
36803         Give tools a better chance to allocate space for very large buffers.
36804         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
36805
36806         Make pwd and readlink work also when run with an unreadable parent dir
36807         on systems with openat support.
36808         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
36809         provided getcwd function, even when we have openat support.
36810         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
36811
36812 2007-02-02  Bruno Haible  <bruno@clisp.org>
36813
36814         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36815         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
36816         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
36817         portability problems if one of these functions is only used on specific
36818         platforms.
36819         Reported by Paul Eggert.
36820
36821 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
36822
36823         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
36824         is causing more trouble than it's curing.
36825         * lib/regex_internal.h (__mempcpy): Remove.
36826         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
36827         (and make the code a tad smaller to boot).
36828         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
36829
36830 2007-02-02  Jim Meyering  <jim@meyering.net>
36831
36832         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
36833         section, not in the Makefile.am: one.
36834
36835 2007-02-02  Eric Blake  <ebb9@byu.net>
36836
36837         * lib/strchrnul.c: Always include config.h first.
36838
36839         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
36840         gnulib strstr is not necessary here.
36841
36842 2007-02-02  Simon Josefsson  <simon@josefsson.org>
36843
36844         * m4/socklen.m4: Fix typo.
36845
36846 2007-02-02  Eric Blake  <ebb9@byu.net>
36847
36848         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
36849         * modules/netinet_in (Makefile.am): Likewise.
36850
36851 2007-02-01  Bruno Haible  <bruno@clisp.org>
36852
36853         * lib/string_.h (GL_LINK_WARNING): New macro.
36854         (strcasecmp, strstr, strcasestr): If provided by the system,
36855         conditionally define as a macro that leads to a warning instead of to
36856         an error.
36857         (strncasecmp): Conditionally define as a macro that leads to a warning.
36858
36859 2007-02-01  Karl Berry  <karl@gnu.org>
36860
36861         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
36862
36863 2007-02-01  Bruno Haible  <bruno@clisp.org>
36864
36865         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
36866         renamings.
36867
36868 2007-02-01  Eric Blake  <ebb9@byu.net>
36869
36870         * modules/regex (Depends-on): Revert dependence on mempcpy.
36871         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
36872         module's definition of mempcpy.
36873         Reported by Paul Eggert.
36874
36875 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
36876
36877         * lib/string_.h: If the gnulib module XYZ is not present, undefine
36878         the symbol XYZ before redefining it.  This fixes a problem with
36879         programs that don't use XYZ, when compiled on systems that define
36880         XYZ to something else.
36881
36882 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
36883
36884         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
36885         occurs when "mkdir -m foo" creates a setgid directory that is (1)
36886         writeable to group or other and (2) is intended to have a special
36887         mode bit that is set or cleared.  In such a case, the directory
36888         should be neither group- nor other-writeable until the special
36889         mode bits are right.
36890
36891 2007-01-31  Eric Blake  <ebb9@byu.net>
36892
36893         * modules/mountlist (Depends-on): Add strstr.
36894
36895         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
36896         bug.
36897         * modules/string (Makefile.am): Remove redundant replacement.
36898         * modules/regex (Depends-on): Add mempcpy.
36899
36900 2007-01-31  Bruno Haible  <bruno@clisp.org>
36901
36902         New module description field 'Link'.
36903         * gnulib-tool (func_usage): Document --extract-link-directive.
36904         (sed_extract_prog): Recognize 'Link' directive.
36905         (func_get_link_directive): New function.
36906         (func_import): Show summary of link directives.
36907         Handle --extract-link-directive option.
36908         * modules/acl (Link): New section.
36909         * modules/clock-time (Link): New section.
36910         * modules/euidaccess (Link): New section.
36911         * modules/gettext (Link): New section.
36912         * modules/iconv (Link): New section.
36913         * modules/lock (Link): New section.
36914         * modules/nanosleep (Link): New section.
36915         * modules/readline (Link): New section.
36916
36917 2007-01-27  Bruno Haible  <bruno@clisp.org>
36918
36919         Enforce the use of gnulib modules for unportable <string.h> functions.
36920         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
36921         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
36922         (gl_HEADER_STRING_H_BODY): Require it.
36923         * lib/string_.h: If the gnulib module XYZ is not present, redefine
36924         the symbol XYZ to one that gives a link error.
36925         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
36926         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
36927         * modules/mempcpy (configure.ac): Likewise.
36928         * modules/memrchr (configure.ac): Likewise.
36929         * modules/stpcpy (configure.ac): Likewise.
36930         * modules/stpncpy (configure.ac): Likewise.
36931         * modules/strcase (configure.ac): Likewise.
36932         * modules/strcasestr (configure.ac): Likewise.
36933         * modules/strchrnul (configure.ac): Likewise.
36934         * modules/strdup (configure.ac): Likewise.
36935         * modules/strndup (configure.ac): Likewise.
36936         * modules/strnlen (configure.ac): Likewise.
36937         * modules/strpbrk (configure.ac): Likewise.
36938         * modules/strsep (configure.ac): Likewise.
36939         * modules/strstr (configure.ac): Likewise.
36940         * modules/strtok_r (configure.ac): Likewise.
36941
36942 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
36943
36944         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
36945
36946 2007-01-30  Jim Meyering  <jim@meyering.net>
36947
36948         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
36949
36950 2007-01-29  Bruno Haible  <bruno@clisp.org>
36951
36952         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
36953         * lib/execute.c: Likewise.
36954         * lib/pipe.c: Likewise.
36955         * lib/printf-args.h: Likewise.
36956         * lib/printf-args.c: Likewise.
36957         * lib/printf-parse.c: Likewise.
36958         * lib/vasnprintf.c: Likewise.
36959
36960 2007-01-29  Eric Blake  <ebb9@byu.net>
36961
36962         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
36963         declaration.
36964
36965 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36966
36967         * lib/strptime.h (strptime): Use 'restrict' for args where
36968         POSIX requires this.
36969         * lib/strptime.c (strptime): Likewise.
36970         Change license notice from LGPL to GPL, since gnulib-tool will
36971         change this as needed.
36972         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
36973         defined.
36974         Include "strptime.h" first, to check interface.
36975         Do not #undef _LIBC and _NL_CURRENT.
36976         Do not include <stdlib.h>; no longer needed.
36977         Include "time_r.h" and declare ptime_locale_status
36978         only if _LIBC is not defined.
36979         (__P): Remove unused macro.
36980         (match_string): Bring back glibc version, but use it only if _LIBC
36981         is defined.
36982         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
36983         Remove unnecessary assertion and abort() call.
36984         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
36985         * m4/strptime.m4: Fix serial number comment.
36986         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
36987         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
36988         (Depends-on): Add time_r.
36989
36990 2007-01-29  Bruno Haible  <bruno@clisp.org>
36991
36992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36993         strptime.
36994         * modules/strptime (Depends-on): Add stdbool.
36995         * lib/strptime.h: Include <time.h> always. Add comments.
36996
36997 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36998
36999         * modules/strptime: New file.
37000         * lib/strptime.h: New file.
37001         * lib/strptime.c: New file.
37002         * m4/strptime.m4: New file.
37003
37004 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37005
37006         * MODULES.html.sh: New module mpsort.
37007         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37008
37009         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37010         a circularity problem with HP-UX ia64 reported by Bob Proulx in
37011         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37012         All uses changed.
37013         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37014         All uses changed.
37015         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37016         to _Restrict_.
37017         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37018         the parameter matches the prototype.
37019
37020 2007-01-28  Jim Meyering  <jim@meyering.net>
37021
37022         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37023         sys/time.h here, reverting that part of the previous patch:
37024         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37025
37026 2007-01-28  Bruno Haible  <bruno@clisp.org>
37027
37028         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37029         value of $(SYS_TIME_H).
37030         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37031         remove it conditionally, too. [added by Jim Meyering]
37032         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37033         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37034         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37035         GETTIMEOFDAY_REPLACEMENT to 1.
37036
37037 2007-01-28  Bruno Haible  <bruno@clisp.org>
37038
37039         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37040         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37041         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37042         Set UNISTD_H instead of UNISTD_H2.
37043         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37044
37045 2007-01-28  Bruno Haible  <bruno@clisp.org>
37046
37047         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37048         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37049
37050 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37051
37052         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37053         (func_create_testdir): Ensure C locale for `grep' and `tr'
37054         character ranges.
37055         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
37056         ACLOCAL_AMFLAGS parsing state machine.
37057
37058 2007-01-27  Bruno Haible  <bruno@clisp.org>
37059
37060         * modules/unistr/base: Update.
37061
37062 2007-01-27  Bruno Haible  <bruno@clisp.org>
37063
37064         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37065         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37066         * modules/unistr/u32-mbtouc-unsafe: Renamed from
37067         modules/unistr/u32-mbtouc.
37068         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37069         * lib/unistr.h: Update.
37070         * lib/linebreak.c: Update.
37071         * modules/unistr/u32-mbtouc: Renamed from
37072         modules/unistr/u32-mbtouc-safe.
37073         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37074         * lib/unistr.h: Update.
37075         * lib/unistr/u32-to-u8.c: Update.
37076         * lib/unistr/u32-to-u16.c: Update.
37077
37078 2007-01-27  Bruno Haible  <bruno@clisp.org>
37079
37080         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37081         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37082         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37083         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37084         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37085         * modules/unistr/u16-mbtouc-unsafe: Renamed from
37086         modules/unistr/u16-mbtouc.
37087         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37088         * lib/unistr.h: Update.
37089         * lib/linebreak.c: Update.
37090         * modules/linebreak: Update.
37091         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37092         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37093         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37094         * modules/unistr/u16-mbtouc: Renamed from
37095         modules/unistr/u16-mbtouc-safe.
37096         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37097         * lib/unistr.h: Update.
37098         * lib/unistr/u16-to-u8.c: Update.
37099         * modules/unistr/u16-to-u8: Update.
37100         * lib/unistr/u16-to-u32.c: Update.
37101         * modules/unistr/u16-to-u32: Update.
37102
37103 2007-01-27  Bruno Haible  <bruno@clisp.org>
37104
37105         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37106         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37107         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37108         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37109         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37110         * modules/unistr/u8-mbtouc-unsafe: Renamed from
37111         modules/unistr/u8-mbtouc.
37112         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37113         * lib/unistr.h: Update.
37114         * lib/striconveh.c: Update.
37115         * modules/striconveh: Update.
37116         * lib/linebreak.c: Update.
37117         * modules/linebreak: Update.
37118         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37119         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37120         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37121         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37122         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37123         * lib/unistr.h: Update.
37124         * lib/striconveh.c: Update.
37125         * modules/striconveh: Update.
37126         * lib/unistr/u8-to-u16.c: Update.
37127         * modules/unistr/u8-to-u16: Update.
37128         * lib/unistr/u8-to-u32.c: Update.
37129         * modules/unistr/u8-to-u32: Update.
37130
37131 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37132
37133         Sync from Libtool.
37134         * lib/argz.c: Do not include strings.h nor memory.h, include
37135         string.h unconditionally.  Patch by Simon Josefsson.
37136
37137 2007-01-27  Bruno Haible  <bruno@clisp.org>
37138
37139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37140         from gl_HEADER_STRING_H_BODY.
37141         (gl_HEADER_STRING_H_BODY): Require it.
37142         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37143         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37144         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37145         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37146         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37147         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37148         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37149         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37150         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37151         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37152         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37153         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37154         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37155         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37156         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37157
37158 2007-01-27  Bruno Haible  <bruno@clisp.org>
37159
37160         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37161         check_PROGRAMS into noinst_PROGRAMS.
37162         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37163         check_PROGRAMS in this case.
37164         (func_import): Set for_test to false.
37165         (func_create_testdir): Set for_test to true.
37166
37167 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37168             Bruno Haible  <bruno@clisp.org>
37169
37170         * modules/strcasestr (Files): Remove lib/strcasestr.h.
37171         (Depends-on): Add string.
37172         (Includes): Use <string.h> instead of strcasestr.h.
37173         * modules/string (Makefile.am): Also substitute the value of
37174         REPLACE_STRCASESTR.
37175         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37176         assume strcasestr is declared in <string.h> not <strings.h>. Also
37177         set REPLACE_STRCASESTR.
37178         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37179         REPLACE_STRCASESTR.
37180         * lib/strcasestr.h: Remove file.
37181         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37182         * lib/string_.h (strcasestr): New declaration.
37183
37184 2007-01-27  Bruno Haible  <bruno@clisp.org>
37185
37186         * lib/string_.h: Use 'extern'.
37187
37188 2007-01-27  Jim Meyering  <jim@meyering.net>
37189
37190         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37191         of set-but-not-used local, "q".
37192
37193         * lib/mempcpy.c: Include <config.h> before <string.h>.
37194         This fixes a compilation error on HP-UX, due to the system's
37195         "restrict"-using mempcpy prototype.
37196
37197 2007-01-26  Bruno Haible  <bruno@clisp.org>
37198
37199         Small optimization.
37200         * lib/javacomp.c: Include c-strstr.h.
37201          (is_envjavac_gcj): Use c_strstr instead of strstr.
37202         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37203
37204 2007-01-26  Bruno Haible  <bruno@clisp.org>
37205
37206         * MODULES.html.sh (Unicode string functions): Add the new modules.
37207
37208         * modules/uniconv/u32-strconv-to-locale: New file.
37209         * lib/uniconv/u32-strconv-to-locale.c: New file.
37210
37211         * modules/uniconv/u16-strconv-to-locale: New file.
37212         * lib/uniconv/u16-strconv-to-locale.c: New file.
37213
37214         * modules/uniconv/u8-strconv-to-locale: New file.
37215         * lib/uniconv/u8-strconv-to-locale.c: New file.
37216
37217         * modules/uniconv/u32-strconv-from-locale: New file.
37218         * lib/uniconv/u32-strconv-from-locale.c: New file.
37219
37220         * modules/uniconv/u16-strconv-from-locale: New file.
37221         * lib/uniconv/u16-strconv-from-locale.c: New file.
37222
37223         * modules/uniconv/u8-strconv-from-locale: New file.
37224         * lib/uniconv/u8-strconv-from-locale.c: New file.
37225
37226         * modules/uniconv/u32-strconv-to-enc: New file.
37227         * lib/uniconv/u32-strconv-to-enc.c: New file.
37228         * modules/uniconv/u32-strconv-to-enc-tests: New file.
37229         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37230
37231         * modules/uniconv/u16-strconv-to-enc: New file.
37232         * lib/uniconv/u16-strconv-to-enc.c: New file.
37233         * lib/uniconv/u-strconv-to-enc.h: New file.
37234         * modules/uniconv/u16-strconv-to-enc-tests: New file.
37235         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37236
37237         * modules/uniconv/u8-strconv-to-enc: New file.
37238         * lib/uniconv/u8-strconv-to-enc.c: New file.
37239         * modules/uniconv/u8-strconv-to-enc-tests: New file.
37240         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37241
37242         * modules/uniconv/u32-strconv-from-enc: New file.
37243         * lib/uniconv/u32-strconv-from-enc.c: New file.
37244         * modules/uniconv/u32-strconv-from-enc-tests: New file.
37245         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37246
37247         * modules/uniconv/u16-strconv-from-enc: New file.
37248         * lib/uniconv/u16-strconv-from-enc.c: New file.
37249         * modules/uniconv/u16-strconv-from-enc-tests: New file.
37250         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37251
37252         * modules/uniconv/u8-strconv-from-enc: New file.
37253         * lib/uniconv/u8-strconv-from-enc.c: New file.
37254         * lib/uniconv/u-strconv-from-enc.h: New file.
37255         * modules/uniconv/u8-strconv-from-enc-tests: New file.
37256         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37257
37258         * modules/uniconv/u32-conv-from-enc: New file.
37259         * lib/uniconv/u32-conv-from-enc.c: New file.
37260         * modules/uniconv/u32-conv-from-enc-tests: New file.
37261         * tests/uniconv/test-u32-conv-from-enc.c: New file.
37262
37263         * modules/uniconv/u16-conv-from-enc: New file.
37264         * lib/uniconv/u16-conv-from-enc.c: New file.
37265         * lib/uniconv/u-conv-from-enc.h: New file.
37266         * modules/uniconv/u16-conv-from-enc-tests: New file.
37267         * tests/uniconv/test-u16-conv-from-enc.c: New file.
37268
37269         * modules/uniconv/u8-conv-from-enc: New file.
37270         * lib/uniconv/u8-conv-from-enc.c: New file.
37271         * modules/uniconv/u8-conv-from-enc-tests: New file.
37272         * tests/uniconv/test-u8-conv-from-enc.c: New file.
37273
37274         * modules/uniconv/base: New file.
37275         * lib/uniconv.h: New file.
37276
37277 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37278
37279         * doc/gnulib-tool.texi (Initial import): Update to match current
37280         behavior with strdup module.
37281         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37282         * lib/memmem.h: Remove; all uses removed.  This is now done
37283         by <string.h>.
37284         * lib/mempcpy.h: Likewise.
37285         * lib/memrchr.h: Likewise.
37286         * lib/stpcpy.h: Likewise.
37287         * lib/stpncpy.h: Likewise.
37288         * lib/strcase.h: Likewise.
37289         * lib/strchrnul.h: Likewise.
37290         * lib/strdup.h: Likewise.
37291         * lib/strndup.h: Likewise.
37292         * lib/strnlen.h: Likewise.
37293         * lib/strpbrk.h: Likewise.
37294         * lib/strsep.h: Likewise.
37295         * lib/strstr.h: Likewise.
37296         * lib/strtok_r.h: Likewise.
37297         * lib/string_.h: New file.
37298         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
37299         Rely on <string.h> instead.
37300         * lib/canon-host.c: Likewise.
37301         * lib/chdir-long.c: Likewise.
37302         * lib/concatpath.c: Likewise.
37303         * lib/exclude.c: Likewise.
37304         * lib/fchdir.c: Likewise.
37305         * lib/getaddrinfo.c: Likewise.
37306         * lib/getcwd.c: Likewise.
37307         * lib/getsubopt.c: Likewise.
37308         * lib/glob.c: Likewise.
37309         * lib/hard-locale.c: Likewise.
37310         * lib/iconvme.c: Likewise.
37311         * lib/javacomp.c: Likewise.
37312         * lib/mempcpy.c: Likewise.
37313         * lib/memrchr.c: Likewise.
37314         * lib/regex_internal.h: Likewise.
37315         * lib/stpncpy.c: Likewise.
37316         * lib/strcasecmp.c: Likewise.
37317         * lib/strchrnul.c: Likewise.
37318         * lib/strdup.c: Likewise.
37319         * lib/striconv.c: Likewise.
37320         * lib/striconveh.c: Likewise.
37321         * lib/striconveha.c: Likewise.
37322         * lib/strncasecmp.c: Likewise.
37323         * lib/strndup.c: Likewise.
37324         * lib/strnlen.c: Likewise.
37325         * lib/strsep.c: Likewise.
37326         * lib/strstr.c: Likewise.
37327         * lib/strtok_r.c: Likewise.
37328         * lib/userspec.c: Likewise.
37329         * lib/w32spawn.h: Likewise.
37330         * lib/xstrndup.c: Likewise.
37331         * lib/mountlist.c (strstr): Remove decl.
37332         * m4/string_h.m4: New file.
37333         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
37334         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
37335         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
37336         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
37337         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
37338         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
37339         Set REPLACE_STRCASECMP if necessary.
37340         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
37341         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
37342         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
37343         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
37344         HAVE_DECL_STRDUP if necessary.
37345         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
37346         since gl_FUNC_STRNDUP does that now.
37347         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
37348         Check for decl here...
37349         (gl_PREREQ_STRNLEN): ... not here.
37350         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
37351         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
37352         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
37353         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
37354         necessary.
37355         * modules/string: New file.
37356         * modules/memmem (Files): Remove special-purpose include file.
37357         (Depends-on): Add string.
37358         (Include): Include <string.h>, not the removed file.
37359         * modules/mempcpy: Likewise.
37360         * modules/memrchr: Likewise.
37361         * modules/stpcpy: Likewise.
37362         * modules/stpncpy: Likewise.
37363         * modules/strcase: Likewise.
37364         * modules/strchrnul: Likewise.
37365         * modules/strdup: Likewise.
37366         * modules/strndup: Likewise.
37367         * modules/strnlen: Likewise.
37368         * modules/strpbrk: Likewise.
37369         * modules/strsep: Likewise.
37370         * modules/strstr: Likewise.
37371         * modules/strtok_r: Likewise.
37372         * tests/test-dirname.c: Don't include "strdup.h", since
37373         <string.h> now suffices.
37374         * tests/test-memmem.c: Don't include "memmem.h", since
37375         <string.h> now suffices.
37376
37377 2007-01-25  Bruno Haible  <bruno@clisp.org>
37378
37379         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
37380         *resultp is 0.
37381
37382         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
37383         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
37384         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
37385         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
37386
37387         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
37388         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
37389         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
37390         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
37391         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
37392         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
37393
37394 2007-01-24  Bruno Haible  <bruno@clisp.org>
37395
37396         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
37397         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
37398         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
37399         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
37400         gl_FUNC_FTS_CORE.
37401         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
37402         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
37403         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37404         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
37405         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
37406         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
37407         gl_FUNC_FCHOWNAT.
37408         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
37409         gl_FUNC_STRFTIME.
37410         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
37411         Reported by Ralf Wildenhues.
37412
37413 2007-01-24  Bruno Haible  <bruno@clisp.org>
37414
37415         Drop AC_REQUIRE calls that are redundant with the module dependencies.
37416         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
37417         gl_GETADDRINFO.
37418         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
37419         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
37420         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
37421
37422 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
37423
37424         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
37425         Don't use 'exit'; just return from 'main'.
37426         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
37427
37428         * lib/fnmatch_.h: Readjust white space and comments to match
37429         glibc, to avoid spurious diffs.
37430
37431 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37432
37433         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
37434         2004-12-01 change by Jakub Jelinek, since this code won't compile
37435         if !LIBC.  Problem reported by Bob Proulx.
37436
37437 2007-01-23  Bruno Haible  <bruno@clisp.org>
37438
37439         * lib/striconveh.c: Include c-strcaseeq.h.
37440         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
37441         * modules/striconveh (Depends-on): Add c-strcaseeq.
37442
37443 2007-01-23  Bruno Haible  <bruno@clisp.org>
37444
37445         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
37446
37447         * modules/c-strcaseeq: New file.
37448         * lib/c-strcaseeq.h: New file.
37449
37450         * modules/streq: New file.
37451         * lib/streq.h: New file.
37452
37453 2007-01-23  Bruno Haible  <bruno@clisp.org>
37454
37455         * modules/striconveha-tests: New file.
37456         * tests/test-striconveha.c: New file.
37457
37458         * lib/striconveha.h: Include <stdbool.h>.
37459         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
37460         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
37461         (mem_iconveha_notranslit): Renamed from mem_iconveha.
37462         (mem_iconveha): New function.
37463         (str_iconveha_notranslit): Renamed from str_iconveha.
37464         (str_iconveha): New function.
37465         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
37466         c-strcase.
37467
37468 2007-01-23  Bruno Haible  <bruno@clisp.org>
37469
37470         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
37471         encodings without forgiving before trying any encoding with handler.
37472         (str_iconveha): Try all encodings without forgiving before trying any
37473         encoding with handler.
37474
37475 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37476
37477         Import the following changes from libc.
37478
37479         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
37480
37481         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
37482
37483         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
37484
37485         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
37486         normal_bracket label.
37487
37488         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
37489
37490         [BZ #361]
37491         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
37492         to normal_bracket after fetching the next character.
37493
37494 2007-01-22  Bruno Haible  <bruno@clisp.org>
37495
37496         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
37497         argument.
37498         * lib/striconveh.c (iconv_carefully_1): New function.
37499         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
37500         argument.
37501         (str_cd_iconveh): Update.
37502         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
37503         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
37504         * tests/test-striconveh.c (MAGIC): New macro.
37505         (new_offsets): New function.
37506         (main): Test call with and without offsets.
37507
37508 2007-01-22  Bruno Haible  <bruno@clisp.org>
37509
37510         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
37511         * modules/sys_select (Makefile.am): Likewise.
37512         * modules/sys_socket (Makefile.am): Likewise.
37513         * modules/sys_time (Makefile.am): Likewise.
37514
37515 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
37516
37517         * modules/gettimeofday (License): Change from GPL to LGPL, since
37518         gettimeofday is a library function.
37519
37520 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37521
37522         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
37523
37524 2007-01-21  Bruno Haible  <bruno@clisp.org>
37525
37526         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
37527
37528 2007-01-21  Bruno Haible  <bruno@clisp.org>
37529
37530         * modules/striconveha: New file.
37531         * lib/striconveha.h: New file.
37532         * lib/striconveha.c: New file.
37533         * MODULES.html.sh (Internationalization functions): Add striconveha.
37534         * lib/striconv.c (str_iconv): Optimize the case of an empty input
37535         string.
37536         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
37537
37538 2007-01-21  Bruno Haible  <bruno@clisp.org>
37539
37540         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
37541         * lib/striconveh.c (str_iconveh): Likewise.
37542
37543 2007-01-21  Bruno Haible  <bruno@clisp.org>
37544
37545         * lib/striconveh.h (mem_iconveh): New declaration.
37546         * lib/striconveh.c (mem_iconveh): New function.
37547         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
37548
37549 2007-01-21  Bruno Haible  <bruno@clisp.org>
37550
37551         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
37552
37553         * lib/striconveh.h (mem_cd_iconveh): Change specification.
37554         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
37555         original result buffer.
37556         (str_cd_iconveh): Update.
37557         * tests/test-striconveh.c (main): Update.
37558
37559         * lib/striconv.h (mem_cd_iconv): Change specification.
37560         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
37561         result buffer.
37562         (str_cd_iconv): Update.
37563         * tests/test-striconv.c (main): Update.
37564
37565 2007-01-21  Bruno Haible  <bruno@clisp.org>
37566
37567         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
37568
37569 2007-01-20  Jim Meyering  <jim@meyering.net>
37570
37571         * lib/userspec.c (parse_with_separator): If a user or group string
37572         starts with "+", skip the corresponding name-to-ID look-up, since
37573         such a look-up must fail: user and group names may not include "+".
37574
37575 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
37576
37577         * lib/poll.c: Include sys/time.h and time.h unconditionally,
37578         since we now assume the sys_time module.
37579         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
37580         check for sys/time.h; no longer needed.
37581         * modules/poll (Depends-on): Depend on sys_time.
37582
37583 2007-01-18  Bruno Haible  <bruno@clisp.org>
37584
37585         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
37586         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37587
37588         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
37589         gettimeofday.
37590
37591         * tests/test-gettimeofday.c: Include <time.h>.
37592         (dummy): Remove variable.
37593
37594         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
37595         gl_HEADER_SYS_TIME_H.
37596         (gl_HEADER_SYS_TIME_H): New macro.
37597
37598         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
37599         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37600         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37601         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
37602         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37603         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
37604         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
37605         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37606         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
37607         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
37608         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37609
37610         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
37611         last change; it caused a compilation error when cross-compiling to
37612         Cygwin.
37613
37614 2007-01-18  Jim Meyering  <jim@meyering.net>
37615
37616         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
37617         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
37618         than the race-prone "test -d sys || mkdir sys".
37619         (configure.ac): Use AC_PROG_MKDIR_P.
37620         * modules/sys_select: Likewise.
37621         * modules/sys_socket: Likewise.
37622         * modules/sys_time: Likewise.
37623
37624 2007-01-18  Eric Blake  <ebb9@byu.net>
37625
37626         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
37627         replace gettimeofday.
37628         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
37629         name, to avoid infinite recursion.
37630
37631 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
37632
37633         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
37634         module sys_time.
37635         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
37636         assume timespec.h defines struct timeval.
37637         * lib/settime.c: Likewise.
37638         * lib/utimens.c: Likewise.
37639         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
37640         since we now assume the gettimeofday module.
37641         * lib/tempname.c (__gen_tempname): Likewise.
37642         * lib/gettimeofday.h: Remove.
37643         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
37644         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
37645         Include <time.h>, for 'time()'.
37646         (localtime_buffer_addr): Also use this workaround if
37647         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
37648         to simplify the uses.  All uses changed.
37649         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
37650         that #undef is inside {}, and 'const' follows type name consistently.
37651         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
37652         (gettimeofday): Do not use the maximum possible value for
37653         tv->tv_usec, since that might break usages other than ls.c.
37654         Instead, we'll leave ls.c alone.  This undoes today's patch
37655         by Bruno.  Add a compile-time warning for 1s-clock resolution;
37656         we've never observed the problem but might as well keep the
37657         canary.
37658         * lib/nanosleep.c: Include timespec.h first, for interface check.
37659         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
37660         now assume the sys_time module.
37661         * lib/tempname.c: Likewise.
37662         * lib/timespec.h: Likewise.
37663         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
37664         needed.
37665         * lib/strftime.c: Likewise.
37666         * lib/timespec.h: Likewise.
37667         * lib/posixtm.c: Include posixtm.h first, for interface check.
37668         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
37669         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
37670         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
37671         * lib/sys_time_.h: New file.
37672         * lib/timespec.h (struct timespec): Use long int, not long.
37673         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37674         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
37675         Remove obsolescent call to AC_HEADER_TIME.
37676         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37678         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37679         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
37680         Likewise.
37681         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
37682         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
37683         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
37684         into the sys_time module.  Check for gettimeofday just once.
37685         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
37686         for gettimeofday signature to just check the signature.  Merely
37687         compile it, since linking doesn't test signature.  Improve test for
37688         whether gettimeofday.o is actually needed.
37689         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
37690         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
37691         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
37692         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37693         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
37694         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
37695         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
37696         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
37697         than worrying about sys/time.h.
37698         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37699         Don't bother worrying about TIME_WITH_SYS_TIME.
37700         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37701         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
37702         * m4/sys_time_h.m4: New file.
37703         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
37704         Don't include sys/time.h.  Return from main rather than exiting.
37705         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
37706         all uses changed.
37707         * modules/gethrxtime (Depends-on): Add sys_time.
37708         * modules/gettime (Depends-on): Likewise.
37709         * modules/gettimeofday (Depends-on): Likewise.
37710         * modules/nanosleep (Depends-on): Likewise.
37711         * modules/settime (Depends-on): Likewise.
37712         * modules/tempname (Depends-on): Likewise.
37713         * modules/utimens (Depends-on): Likewise.
37714         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
37715         (Include:) Change back to <sys/time.h>.
37716         (Maintainer:) Add self.
37717         * modules/sys_time: New file.
37718         * modules/tempname (Depends-on): Add gettimeofday.
37719         * tests/test-gettimeofday.c: Include <sys/time.h>
37720         rather than gettimeofday.h.
37721
37722 2007-01-17  Bruno Haible  <bruno@clisp.org>
37723
37724         * gnulib-tool (func_get_license): Revert last patch. Instead, let
37725         the license default to GPL.
37726         (func_create_testdir): Don't complain if a module is LGPL and its
37727         tests module depends on GPLed modules.
37728
37729 2007-01-17  Bruno Haible  <bruno@clisp.org>
37730
37731         * lib/gettimeofday.c (gettimeofday): Add code for the case
37732         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
37733         maximum possible value for tv->tv_usec, rather than the minimum one.
37734
37735 2005-10-08  Martin Lambers  <marlam@marlam.de>
37736 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37737 2007-01-16  Bruno Haible  <bruno@clisp.org>
37738
37739         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
37740         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
37741         gl_FUNC_GETTIMEOFDAY.
37742         (Include): Add gettimeofday.h.
37743         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
37744         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
37745         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
37746         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
37747         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
37748         * lib/gettimeofday.h: New file.
37749         * lib/gettimeofday.c: Include <sys/timeb.h>.
37750         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
37751         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37752         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
37753         fall back on time().
37754
37755         * tests/test-gettimeofday.c: New file.
37756         * modules/gettimeofday-tests: New file.
37757
37758 2007-01-16  Eric Blake  <ebb9@byu.net>
37759
37760         * modules/fnmatch (Depends-on): Depend on wchar.
37761         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
37762         * m4/fnmatch.m4: Likewise.
37763         * modules/mbchar (Makefile.am): Assume <wchar.h>.
37764         * m4/mbchar.m4: Likewise.
37765         * modules/mbswidth (Depends-on): Depend on wchar.
37766         * lib/mbswidth.c: Assume <wchar.h>.
37767         * m4/mbswidth.m4: Likewise.
37768         * modules/quotearg (Depends-on): Depend on wchar.
37769         * lib/quotearg.c: Assume <wchar.h>.
37770         * m4/quotearg.m4: Likewise.
37771         * modules/regex (Depends-on): Depend on wchar.
37772         * lib/regex_internal.h: Assume <wchar.h>.
37773         * m4/regex.m4: Likewise.
37774         * modules/stdint (Depends-on): Depend on wchar.
37775         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
37776         * m4/stdint.m4: Likewise.
37777         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
37778         * modules/strftime (Depends-on): Depend on wchar.
37779         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
37780         * modules/strtol (Depends-on): Depend on wchar.
37781         * lib/strtol.c: Assume <wchar.h>.
37782         * modules/wcwidth (Depends-on): Depend on wchar.
37783         * lib/wcwidth.h: Assume <wchar.h>.
37784         * m4/wcwidth.m4: Likewise.
37785
37786 2007-01-16  Bruno Haible  <bruno@clisp.org>
37787
37788         * modules/csharpexec-script: New, created from...
37789         * modules/csharpexec: ... this.
37790
37791 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37792
37793         * modules/javaexec-script: New, created from...
37794         * modules/javaexec: ... this.
37795
37796 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37797
37798         * modules/poll (Dependencies): Add sys_select.
37799
37800 2007-01-15  Jim Meyering  <jim@meyering.net>
37801
37802         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
37803         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
37804         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
37805         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
37806
37807 2007-01-15  Bruno Haible  <bruno@clisp.org>
37808
37809         * modules/striconveh: New file.
37810         * lib/striconveh.h: New file.
37811         * lib/striconveh.c: New file.
37812         * MODULES.html.sh (Internationalization functions): Add striconveh.
37813
37814         * modules/striconveh-tests: New file.
37815         * tests/test-striconveh.c: New file.
37816
37817 2007-01-15  Bruno Haible  <bruno@clisp.org>
37818
37819         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
37820         not from GNU libiconv or GNU libc.
37821
37822 2007-01-15  Bruno Haible  <bruno@clisp.org>
37823
37824         * doc/gnulib-intro.texi (Copyright): Explain the different license
37825         terms for module descriptions, autoconf macros, tests, documentation.
37826
37827 2007-01-14  Bruno Haible  <bruno@clisp.org>
37828
37829         * modules/striconv-tests: New file.
37830         * tests/test-striconv.c: New file.
37831
37832 2007-01-14  Bruno Haible  <bruno@clisp.org>
37833
37834         * modules/iconv-tests: New file.
37835         * tests/test-iconv.c: New file.
37836
37837 2007-01-14  Bruno Haible  <bruno@clisp.org>
37838
37839         * gnulib-tool (func_get_license): For test modules, use the license of
37840         the main module.
37841
37842 2007-01-14  Bruno Haible  <bruno@clisp.org>
37843
37844         * modules/iconv (Include): Clarify that <iconv.h> can only be included
37845         if iconv is found to exist.
37846
37847 2007-01-14  Bruno Haible  <bruno@clisp.org>
37848
37849         * modules/c-ctype-tests: New file.
37850         * tests/test-c-ctype.c: New file.
37851
37852 2007-01-14  Bruno Haible  <bruno@clisp.org>
37853
37854         * modules/binary-io-tests: New file.
37855         * tests/test-binary-io.sh: New file.
37856         * tests/test-binary-io.c: New file.
37857
37858 2007-01-14  Bruno Haible  <bruno@clisp.org>
37859
37860         * modules/array-oset-tests: New file.
37861         * tests/test-array_oset.c: New file.
37862
37863 2007-01-14  Bruno Haible  <bruno@clisp.org>
37864
37865         * modules/array-list-tests: New file.
37866         * tests/test-array_list.c: New file.
37867
37868 2007-01-14  Bruno Haible  <bruno@clisp.org>
37869
37870         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
37871         and make.
37872         Reported by Simon Josefsson in
37873         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
37874
37875 2007-01-14  Bruno Haible  <bruno@clisp.org>
37876
37877         * modules/allocsa-tests: New file.
37878         * tests/test-allocsa.c: New file.
37879
37880 2007-01-14  Bruno Haible  <bruno@clisp.org>
37881
37882         * modules/fchdir (Depends-on): Add absolute-header.
37883         * modules/unistd (Depends-on): Likewise.
37884
37885 2006-12-30  Bruno Haible  <bruno@clisp.org>
37886
37887         * modules/fchdir: New file.
37888         * modules/unistd (Files): Add lib/unistd_.h.
37889         (Makefile.am): Generate unistd.h from unistd_.h.
37890         * lib/fchdir.c: New file.
37891         * lib/dirent_.h: New file.
37892         * lib/unistd_.h: New file.
37893         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
37894         * m4/fchdir.m4: New file.
37895         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
37896         (gl_HEADER_UNISTD): Invoke it.
37897         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
37898         function.
37899         * lib/backupfile.c (opendir, closedir): Undefine.
37900         * lib/chown.c (open, close): Undefine.
37901         * lib/clean-temp.c (open, close): Undefine.
37902         * lib/copy-file.c (open, close): Undefine.
37903         * lib/execute.c (open, close): Undefine.
37904         * lib/fsusage.c (open, close): Undefine.
37905         * lib/gc-gnulib.c (open, close): Undefine.
37906         * lib/getcwd.c (opendir, closedir): Undefine.
37907         * lib/glob.c (opendir, closedir): Undefine.
37908         * lib/javacomp.c (open, close): Undefine.
37909         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
37910         * lib/openat-proc.c (open, close): Undefine.
37911         * lib/pagealign_alloc.c (open, close): Undefine.
37912         * lib/pipe.c (open, close): Undefine.
37913         * lib/progreloc.c (open, close): Undefine.
37914         * lib/savedir.c (opendir, closedir): Undefine.
37915         * lib/utime.c (open, close): Undefine.
37916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
37917
37918 2007-01-10  Bruno Haible  <bruno@clisp.org>
37919
37920         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
37921
37922 2007-01-12  Eric Blake  <ebb9@byu.net>
37923
37924         Provide a robust <wchar.h>.  Further simplifications are now
37925         possible in other modules, but not included here.
37926         * modules/wchar: New module.
37927         * m4/wchar.m4: New file.
37928         * lib/wchar_.h: Likewise.
37929         * modules/mbchar (Depends-on): Depend on wchar, as the first use
37930         of the new module.
37931         * MODULES.html.sh (Extended multibyte and wide character utilities):
37932         New section.
37933
37934 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
37935
37936         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
37937         to a reasonable default for memory allocation.
37938         (xreadlink): Don't allocate a huge buffer, to work around a buggy
37939         file system that reports garbage st_size values for symlinks.
37940         Problem reported by Liyang Hu.
37941
37942 2007-01-11  Simon Josefsson  <simon@josefsson.org>
37943
37944         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
37945         Emacs .#* auto-save files).
37946
37947 2007-01-11  Bruno Haible  <bruno@clisp.org>
37948
37949         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
37950         directory.
37951
37952 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37953
37954         Use @...@ consistently in lib/wctype_.h.
37955         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
37956         on it being set to 1 or 0.
37957         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
37958         go back to AC_SUBSTing it.
37959         * modules/wctype (Makefile.am): Undo previous change.
37960
37961 2007-01-10  Eric Blake  <ebb9@byu.net>
37962
37963         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
37964         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
37965         * modules/wctype (Makefile.am): Likewise.
37966         Reported by Chris McGuire.
37967
37968 2007-01-10  Jim Meyering  <jim@meyering.net>
37969
37970         fts.c: a small readability/maintainability improvement
37971         * lib/fts.c (fts_read): Make this code slightly more readable and
37972         maintainable by hoisting the "sp->fts_cur = p" assignments to
37973         immediately follow the statements that set P.  Derived from
37974         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
37975
37976 2007-01-10  Eric Blake  <ebb9@byu.net>
37977
37978         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
37979         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
37980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37981         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37982         Reported by Chris McGuire.
37983
37984 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37985
37986         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
37987         in sed script.
37988
37989 2007-01-09  Bruno Haible  <bruno@clisp.org>
37990
37991         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
37992         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
37993         variables.
37994         (func_module): Use them.
37995
37996 2007-01-09  Bruno Haible  <bruno@clisp.org>
37997
37998         * modules/unistr/base: New file.
37999         * lib/unistr.h: New file.
38000
38001         * modules/unistr/u8-to-u16: New file.
38002         * lib/unistr/u8-to-u16.c: New file.
38003
38004         * modules/unistr/u8-to-u32: New file.
38005         * lib/unistr/u8-to-u32.c: New file.
38006
38007         * modules/unistr/u16-to-u8: New file.
38008         * lib/unistr/u16-to-u8.c: New file.
38009
38010         * modules/unistr/u16-to-u32: New file.
38011         * lib/unistr/u16-to-u32.c: New file.
38012
38013         * modules/unistr/u32-to-u8: New file.
38014         * lib/unistr/u32-to-u8.c: New file.
38015
38016         * modules/unistr/u32-to-u16: New file.
38017         * lib/unistr/u32-to-u16.c: New file.
38018
38019         * modules/unistr/u8-check: New file.
38020         * modules/unistr/u16-check: New file.
38021         * modules/unistr/u32-check: New file.
38022         * lib/unistr/u8-check.c: New file.
38023         * lib/unistr/u16-check.c: New file.
38024         * lib/unistr/u32-check.c: New file.
38025
38026         * modules/unistr/u8-chr: New file.
38027         * modules/unistr/u16-chr: New file.
38028         * modules/unistr/u32-chr: New file.
38029         * lib/unistr/u8-chr.c: New file.
38030         * lib/unistr/u16-chr.c: New file.
38031         * lib/unistr/u32-chr.c: New file.
38032
38033         * modules/unistr/u8-cmp: New file.
38034         * modules/unistr/u16-cmp: New file.
38035         * modules/unistr/u32-cmp: New file.
38036         * lib/unistr/u8-cmp.c: New file.
38037         * lib/unistr/u16-cmp.c: New file.
38038         * lib/unistr/u32-cmp.c: New file.
38039
38040         * modules/unistr/u8-cpy: New file.
38041         * modules/unistr/u16-cpy: New file.
38042         * modules/unistr/u32-cpy: New file.
38043         * lib/unistr/u8-cpy.c: New file.
38044         * lib/unistr/u16-cpy.c: New file.
38045         * lib/unistr/u32-cpy.c: New file.
38046         * lib/unistr/u-cpy.h: New file.
38047
38048         * modules/unistr/u8-cpy-alloc: New file.
38049         * modules/unistr/u16-cpy-alloc: New file.
38050         * modules/unistr/u32-cpy-alloc: New file.
38051         * lib/unistr/u8-cpy-alloc.c: New file.
38052         * lib/unistr/u16-cpy-alloc.c: New file.
38053         * lib/unistr/u32-cpy-alloc.c: New file.
38054         * lib/unistr/u-cpy-alloc.h: New file.
38055
38056         * modules/unistr/u8-endswith: New file.
38057         * modules/unistr/u16-endswith: New file.
38058         * modules/unistr/u32-endswith: New file.
38059         * lib/unistr/u8-endswith.c: New file.
38060         * lib/unistr/u16-endswith.c: New file.
38061         * lib/unistr/u32-endswith.c: New file.
38062         * lib/unistr/u-endswith.h: New file.
38063
38064         * modules/unistr/u8-mblen: New file.
38065         * modules/unistr/u16-mblen: New file.
38066         * modules/unistr/u32-mblen: New file.
38067         * lib/unistr/u8-mblen.c: New file.
38068         * lib/unistr/u16-mblen.c: New file.
38069         * lib/unistr/u32-mblen.c: New file.
38070
38071         * modules/unistr/u8-mbtouc: New file.
38072         * modules/unistr/u16-mbtouc: New file.
38073         * modules/unistr/u32-mbtouc: New file.
38074         * lib/unistr/u8-mbtouc.c: New file.
38075         * lib/unistr/u16-mbtouc.c: New file.
38076         * lib/unistr/u32-mbtouc.c: New file.
38077
38078         * modules/unistr/u8-mbtouc-safe: New file.
38079         * modules/unistr/u16-mbtouc-safe: New file.
38080         * modules/unistr/u32-mbtouc-safe: New file.
38081         * lib/unistr/u8-mbtouc-safe.c: New file.
38082         * lib/unistr/u16-mbtouc-safe.c: New file.
38083         * lib/unistr/u32-mbtouc-safe.c: New file.
38084
38085         * modules/unistr/u8-move: New file.
38086         * modules/unistr/u16-move: New file.
38087         * modules/unistr/u32-move: New file.
38088         * lib/unistr/u8-move.c: New file.
38089         * lib/unistr/u16-move.c: New file.
38090         * lib/unistr/u32-move.c: New file.
38091         * lib/unistr/u-move.h: New file.
38092
38093         * modules/unistr/u8-next: New file.
38094         * modules/unistr/u16-next: New file.
38095         * modules/unistr/u32-next: New file.
38096         * lib/unistr/u8-next.c: New file.
38097         * lib/unistr/u16-next.c: New file.
38098         * lib/unistr/u32-next.c: New file.
38099
38100         * modules/unistr/u8-prev: New file.
38101         * modules/unistr/u16-prev: New file.
38102         * modules/unistr/u32-prev: New file.
38103         * lib/unistr/u8-prev.c: New file.
38104         * lib/unistr/u16-prev.c: New file.
38105         * lib/unistr/u32-prev.c: New file.
38106
38107         * modules/unistr/u8-set: New file.
38108         * modules/unistr/u16-set: New file.
38109         * modules/unistr/u32-set: New file.
38110         * lib/unistr/u8-set.c: New file.
38111         * lib/unistr/u16-set.c: New file.
38112         * lib/unistr/u32-set.c: New file.
38113         * lib/unistr/u-set.h: New file.
38114
38115         * modules/unistr/u8-startswith: New file.
38116         * modules/unistr/u16-startswith: New file.
38117         * modules/unistr/u32-startswith: New file.
38118         * lib/unistr/u8-startswith.c: New file.
38119         * lib/unistr/u16-startswith.c: New file.
38120         * lib/unistr/u32-startswith.c: New file.
38121         * lib/unistr/u-startswith.h: New file.
38122
38123         * modules/unistr/u8-stpcpy: New file.
38124         * modules/unistr/u16-stpcpy: New file.
38125         * modules/unistr/u32-stpcpy: New file.
38126         * lib/unistr/u8-stpcpy.c: New file.
38127         * lib/unistr/u16-stpcpy.c: New file.
38128         * lib/unistr/u32-stpcpy.c: New file.
38129         * lib/unistr/u-stpcpy.h: New file.
38130
38131         * modules/unistr/u8-stpncpy: New file.
38132         * modules/unistr/u16-stpncpy: New file.
38133         * modules/unistr/u32-stpncpy: New file.
38134         * lib/unistr/u8-stpncpy.c: New file.
38135         * lib/unistr/u16-stpncpy.c: New file.
38136         * lib/unistr/u32-stpncpy.c: New file.
38137         * lib/unistr/u-stpncpy.h: New file.
38138
38139         * modules/unistr/u8-strcat: New file.
38140         * modules/unistr/u16-strcat: New file.
38141         * modules/unistr/u32-strcat: New file.
38142         * lib/unistr/u8-strcat.c: New file.
38143         * lib/unistr/u16-strcat.c: New file.
38144         * lib/unistr/u32-strcat.c: New file.
38145         * lib/unistr/u-strcat.h: New file.
38146
38147         * modules/unistr/u8-strchr: New file.
38148         * modules/unistr/u16-strchr: New file.
38149         * modules/unistr/u32-strchr: New file.
38150         * lib/unistr/u8-strchr.c: New file.
38151         * lib/unistr/u16-strchr.c: New file.
38152         * lib/unistr/u32-strchr.c: New file.
38153
38154         * modules/unistr/u8-strcmp: New file.
38155         * modules/unistr/u16-strcmp: New file.
38156         * modules/unistr/u32-strcmp: New file.
38157         * lib/unistr/u8-strcmp.c: New file.
38158         * lib/unistr/u16-strcmp.c: New file.
38159         * lib/unistr/u32-strcmp.c: New file.
38160
38161         * modules/unistr/u8-strcpy: New file.
38162         * modules/unistr/u16-strcpy: New file.
38163         * modules/unistr/u32-strcpy: New file.
38164         * lib/unistr/u8-strcpy.c: New file.
38165         * lib/unistr/u16-strcpy.c: New file.
38166         * lib/unistr/u32-strcpy.c: New file.
38167         * lib/unistr/u-strcpy.h: New file.
38168
38169         * modules/unistr/u8-strcspn: New file.
38170         * modules/unistr/u16-strcspn: New file.
38171         * modules/unistr/u32-strcspn: New file.
38172         * lib/unistr/u8-strcspn.c: New file.
38173         * lib/unistr/u16-strcspn.c: New file.
38174         * lib/unistr/u32-strcspn.c: New file.
38175         * lib/unistr/u-strcspn.h: New file.
38176
38177         * modules/unistr/u8-strdup: New file.
38178         * modules/unistr/u16-strdup: New file.
38179         * modules/unistr/u32-strdup: New file.
38180         * lib/unistr/u8-strdup.c: New file.
38181         * lib/unistr/u16-strdup.c: New file.
38182         * lib/unistr/u32-strdup.c: New file.
38183         * lib/unistr/u-strdup.h: New file.
38184
38185         * modules/unistr/u8-strlen: New file.
38186         * modules/unistr/u16-strlen: New file.
38187         * modules/unistr/u32-strlen: New file.
38188         * lib/unistr/u8-strlen.c: New file.
38189         * lib/unistr/u16-strlen.c: New file.
38190         * lib/unistr/u32-strlen.c: New file.
38191         * lib/unistr/u-strlen.h: New file.
38192
38193         * modules/unistr/u8-strmblen: New file.
38194         * modules/unistr/u16-strmblen: New file.
38195         * modules/unistr/u32-strmblen: New file.
38196         * lib/unistr/u8-strmblen.c: New file.
38197         * lib/unistr/u16-strmblen.c: New file.
38198         * lib/unistr/u32-strmblen.c: New file.
38199
38200         * modules/unistr/u8-strmbtouc: New file.
38201         * modules/unistr/u16-strmbtouc: New file.
38202         * modules/unistr/u32-strmbtouc: New file.
38203         * lib/unistr/u8-strmbtouc.c: New file.
38204         * lib/unistr/u16-strmbtouc.c: New file.
38205         * lib/unistr/u32-strmbtouc.c: New file.
38206
38207         * modules/unistr/u8-strncat: New file.
38208         * modules/unistr/u16-strncat: New file.
38209         * modules/unistr/u32-strncat: New file.
38210         * lib/unistr/u8-strncat.c: New file.
38211         * lib/unistr/u16-strncat.c: New file.
38212         * lib/unistr/u32-strncat.c: New file.
38213         * lib/unistr/u-strncat.h: New file.
38214
38215         * modules/unistr/u8-strncmp: New file.
38216         * modules/unistr/u16-strncmp: New file.
38217         * modules/unistr/u32-strncmp: New file.
38218         * lib/unistr/u8-strncmp.c: New file.
38219         * lib/unistr/u16-strncmp.c: New file.
38220         * lib/unistr/u32-strncmp.c: New file.
38221
38222         * modules/unistr/u8-strncpy: New file.
38223         * modules/unistr/u16-strncpy: New file.
38224         * modules/unistr/u32-strncpy: New file.
38225         * lib/unistr/u8-strncpy.c: New file.
38226         * lib/unistr/u16-strncpy.c: New file.
38227         * lib/unistr/u32-strncpy.c: New file.
38228         * lib/unistr/u-strncpy.h: New file.
38229
38230         * modules/unistr/u8-strnlen: New file.
38231         * modules/unistr/u16-strnlen: New file.
38232         * modules/unistr/u32-strnlen: New file.
38233         * lib/unistr/u8-strnlen.c: New file.
38234         * lib/unistr/u16-strnlen.c: New file.
38235         * lib/unistr/u32-strnlen.c: New file.
38236         * lib/unistr/u-strnlen.h: New file.
38237
38238         * modules/unistr/u8-strpbrk: New file.
38239         * modules/unistr/u16-strpbrk: New file.
38240         * modules/unistr/u32-strpbrk: New file.
38241         * lib/unistr/u8-strpbrk.c: New file.
38242         * lib/unistr/u16-strpbrk.c: New file.
38243         * lib/unistr/u32-strpbrk.c: New file.
38244         * lib/unistr/u-strpbrk.h: New file.
38245
38246         * modules/unistr/u8-strrchr: New file.
38247         * modules/unistr/u16-strrchr: New file.
38248         * modules/unistr/u32-strrchr: New file.
38249         * lib/unistr/u8-strrchr.c: New file.
38250         * lib/unistr/u16-strrchr.c: New file.
38251         * lib/unistr/u32-strrchr.c: New file.
38252
38253         * modules/unistr/u8-strspn: New file.
38254         * modules/unistr/u16-strspn: New file.
38255         * modules/unistr/u32-strspn: New file.
38256         * lib/unistr/u8-strspn.c: New file.
38257         * lib/unistr/u16-strspn.c: New file.
38258         * lib/unistr/u32-strspn.c: New file.
38259         * lib/unistr/u-strspn.h: New file.
38260
38261         * modules/unistr/u8-strstr: New file.
38262         * modules/unistr/u16-strstr: New file.
38263         * modules/unistr/u32-strstr: New file.
38264         * lib/unistr/u8-strstr.c: New file.
38265         * lib/unistr/u16-strstr.c: New file.
38266         * lib/unistr/u32-strstr.c: New file.
38267         * lib/unistr/u-strstr.h: New file.
38268
38269         * modules/unistr/u8-strtok: New file.
38270         * modules/unistr/u16-strtok: New file.
38271         * modules/unistr/u32-strtok: New file.
38272         * lib/unistr/u8-strtok.c: New file.
38273         * lib/unistr/u16-strtok.c: New file.
38274         * lib/unistr/u32-strtok.c: New file.
38275         * lib/unistr/u-strtok.h: New file.
38276
38277         * modules/unistr/u8-uctomb: New file.
38278         * modules/unistr/u16-uctomb: New file.
38279         * modules/unistr/u32-uctomb: New file.
38280         * lib/unistr/u8-uctomb.c: New file.
38281         * lib/unistr/u16-uctomb.c: New file.
38282         * lib/unistr/u32-uctomb.c: New file.
38283
38284         * MODULES.html.sh (Unicode string functions): Add the new modules.
38285
38286 2007-01-08  Bruno Haible  <bruno@clisp.org>
38287
38288         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
38289         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
38290         subdirectories.
38291
38292 2007-01-08  Karl Berry  <karl@gnu.org>
38293
38294         * doc/error.texi: mention that main() fns must set program_name
38295         when progname is used.
38296
38297 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
38298
38299         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
38300         WCTYPE_H is empty, for the benefit of builds from non-distclean
38301         directories.  Problem reported by Eric Blake in
38302         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
38303
38304 2007-01-08  Bruno Haible  <bruno@clisp.org>
38305
38306         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
38307         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
38308         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
38309         PROVIDE_CANONICALIZE_FILENAME_MODE.
38310         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
38311
38312 2007-01-08  Bruno Haible  <bruno@clisp.org>
38313
38314         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
38315         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
38316         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
38317         * lib/fts.c: Likewise.
38318         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
38319
38320 2006-12-25  Bruno Haible  <bruno@clisp.org>
38321
38322         * modules/utf8-ucs4-safe: New file.
38323         * lib/utf8-ucs4-safe.h: New file.
38324         * lib/unistr/utf8-ucs4-safe.c: New file.
38325
38326         * modules/utf16-ucs4-safe: New file.
38327         * lib/utf16-ucs4-safe.h: New file.
38328         * lib/unistr/utf16-ucs4-safe.c: New file.
38329
38330         * MODULES.html.sh (Unicode string functions): Add the new modules.
38331
38332 2007-01-08  Bruno Haible  <bruno@clisp.org>
38333
38334         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
38335         (Depends-on): Add unitypes.
38336         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38337         (u8_mbtouc_aux): Move out to separate file.
38338         (u8_mbtouc): Use ucs4_t, uint8_t types.
38339         * lib/unistr/utf8-ucs4.c: New file.
38340
38341         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
38342         (Depends-on): Add unitypes.
38343         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38344         (u16_mbtouc_aux): Move out to separate file.
38345         (u16_mbtouc): Use ucs4_t, uint16_t types.
38346         * lib/unistr/utf16-ucs4.c: New file.
38347
38348         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
38349         (Depends-on): Add unitypes.
38350         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
38351         (u8_uctomb_aux): Move out to separate file.
38352         (u8_uctomb): Use ucs4_t, uint8_t types.
38353         * lib/unistr/ucs4-utf8.c: New file.
38354
38355         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
38356         (Depends-on): Add unitypes.
38357         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
38358         (u16_uctomb_aux): Move out to separate file.
38359         (u16_uctomb): Use ucs4_t, uint16_t types.
38360         * lib/unistr/ucs4-utf16.c: New file.
38361
38362 2006-12-25  Bruno Haible  <bruno@clisp.org>
38363
38364         * modules/unitypes: New file.
38365         * lib/unitypes.h: New file.
38366         * MODULES.html.sh (func_all_modules): New section "Unicode string
38367         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
38368         this section. Add unitypes.
38369
38370 2007-01-08  Bruno Haible  <bruno@clisp.org>
38371
38372         Avoid variable names that conflict with those from libtool.
38373         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
38374         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
38375         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
38376         library_names_spec to acl_library_names_spec, hardcode_* to
38377         acl_hardcode_*.
38378         Reported by Ralf Wildenhues.
38379
38380 2007-01-08  Bruno Haible  <bruno@clisp.org>
38381
38382         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
38383         definition.
38384         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
38385         definition.
38386         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
38387         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
38388         definition.
38389         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
38390         definition.
38391         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
38392         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
38393         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
38394         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
38395         definition.
38396         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
38397         definition.
38398         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
38399         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
38400         GC_USE_<algorithm>.
38401         * lib/gc-libgcrypt.c: Likewise.
38402         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
38403         * modules/gc-arctwo (configure.ac): Likewise.
38404         * modules/gc-des (configure.ac): Likewise.
38405         * modules/gc-hmac-md5 (configure.ac): Likewise.
38406         * modules/gc-hmac-sha1 (configure.ac): Likewise.
38407         * modules/gc-md2 (configure.ac): Likewise.
38408         * modules/gc-md4 (configure.ac): Likewise.
38409         * modules/gc-md5 (configure.ac): Likewise.
38410         * modules/gc-random (configure.ac): Likewise.
38411         * modules/gc-rijndael (configure.ac): Likewise.
38412         * modules/gc-sha1 (configure.ac): Likewise.
38413
38414 2007-01-08  Bruno Haible  <bruno@clisp.org>
38415
38416         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
38417         macro definition.
38418         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
38419         definition.
38420         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
38421         definition.
38422         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
38423         * modules/fcntl-safer (configure.ac): Likewise.
38424         * modules/fopen-safer (configure.ac): Likewise.
38425         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
38426         GNULIB_FWRITEERROR macro definition.
38427
38428 2007-01-08  Bruno Haible  <bruno@clisp.org>
38429
38430         * m4/gnulib-common.m4: New file.
38431         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
38432         (func_get_filelist): Add m4/gnulib-common.m4.
38433
38434 2007-01-08  Bruno Haible  <bruno@clisp.org>
38435
38436         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
38437         command.
38438
38439 2007-01-08  Jim Meyering  <jim@meyering.net>
38440
38441         Use a more robust test for a "can't happen" condition.
38442         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
38443         narrowed the st_size value.  Presuming the "can't happen" condition
38444         is true, that narrowing could conceivably convert an invalid st_size
38445         value into a valid one.  Instead, use a change based on Matthew
38446         Woehlke's original patch.
38447
38448         Slight readability improvement: use an assert-like macro
38449         in place of literal "abort ()" uses.
38450         * lib/fts.c (fts_assert): Define.
38451         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
38452         Use this macro instead of a bare 'abort'.
38453
38454 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
38455
38456         Don't worry about using IRIX 5.3's wctype.h broken definitions;
38457         simply work around them.
38458         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
38459         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
38460         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
38461         declaring.
38462         Don't bother to define as macros, since the standard doesn't require it.
38463         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
38464         longer worry about IRIX 5.3.
38465         (HAVE_WCTYPE_CTMP_BUG): Remove.
38466
38467 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38468
38469         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
38470         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
38471         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38472         Problems reported by Georg Schwarz for IRIX 5.3.
38473
38474         * gnulib-tool (autoconf_minversion): Take the maximum version number
38475         found, not the minimum.  Problem reported by James Youngman.
38476
38477 2007-01-03  Karl Berry  <karl@gnu.org>
38478
38479         * doc/error.texi: new file, explaining interaction with progname.
38480         * doc/gnulib.texi: include it.  Update copyright.
38481
38482 2007-01-03  Simon Josefsson  <simon@josefsson.org>
38483
38484         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
38485         AC_CANONICAL_HOST, to improve autobuild outputs.
38486
38487 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
38488             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38489
38490         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
38491         sockets, server sockets, and other file descriptors.  Count errors
38492         to compute the return value.  Reorder the code a bit to be easier
38493         to follow.  Don't set event bits that were not requested (except
38494         POLLERR and POLLHUP).
38495
38496 2007-01-01  Bruno Haible  <bruno@clisp.org>
38497
38498         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
38499
38500 2007-01-03  Jim Meyering  <jim@meyering.net>
38501
38502         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
38503
38504 2007-01-02  Bruno Haible  <bruno@clisp.org>
38505
38506         * modules/settime (Include): Require timespec.h.
38507         * modules/nanosleep (Include): Likewise.
38508
38509 2007-01-01  Bruno Haible  <bruno@clisp.org>
38510
38511         * gnulib-tool (func_emit_copyright_notice): Bump year.
38512         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
38513
38514 2007-01-01  Bruno Haible  <bruno@clisp.org>
38515
38516         Improve support for OpenBSD.
38517         * build-aux/config.rpath (libname_spec): Export.
38518         (library_names_spec): New variable. Export.
38519         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
38520         library_names_spec from the config.rpath output. Locate shared library
38521         through the name pattern in library_names_spec.
38522
38523 2007-01-01  Eric Blake  <ebb9@byu.net>
38524
38525         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
38526
38527 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
38528
38529         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
38530         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
38531         assume the C locale, and avoid an "eval" that could cause trouble.
38532         Problem with SORT reported by Bob Proulx.
38533
38534         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
38535         Define.  Trivial patch from Henning Nielsen Lund, originally
38536         sent to bug-grep@gnu.org today.
38537
38538 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38539
38540         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
38541         struct stat.  Problem reported by Henning Nielsen Lund.
38542         * lib/acl.c: Include acl.h first, to check interface.  Don't
38543         bother to include sys/types.h and sys/stat.h again.
38544
38545 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38546
38547         Import the following change from libc; problem reported by
38548         Sven Verdoolaege.
38549
38550         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
38551
38552         [BZ #1373]
38553         * lib/argp.h: Remove __NTH for __argp_usage inline function.
38554
38555 2006-12-28  Jim Meyering  <jim@meyering.net>
38556
38557         * build-aux/announce-gen: Do not assume that the package
38558         builds any of tar.gz, tar.bz2, and .xdelta files.
38559         Suggestion from Simon Josefsson.
38560
38561 2006-12-28  Simon Josefsson  <simon@josefsson.org>
38562
38563         * modules/announce-gen: New file.
38564
38565 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
38566
38567         * lib/mbchar.h: Just include <wctype.h>; the wctype module
38568         handles its gotchas now.
38569         * lib/mbswidth.c: Likewise.
38570         * lib/wcwidth.h: Likewise.
38571         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
38572         and iswcntrl; the wctype module does this stuff now.
38573         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38574         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38575         * modules/mbchar (Depends-on): Add wctype.
38576         * modules/mbswidth (Depends-on): Likewise.
38577         * modules/wcwidth (Depends-on): Likewise.
38578
38579 2006-12-27  Eric Blake  <ebb9@byu.net>
38580
38581         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
38582         module uses more than what <wctype.h> is required to provide.
38583
38584 2006-12-26  Eric Blake  <ebb9@byu.net>
38585
38586         * gnulib-tool (sed_extract_prog): Avoid space-tab.
38587
38588 2006-12-26  Eric Blake  <ebb9@byu.net>
38589
38590         * modules/absolute-header: New module.
38591         * modules/fcntl (Depends-on): Depend on it.
38592         * modules/inttypes (Depends-on): Likewise.
38593         * modules/stdint (Depends-on): Likewise.
38594         * modules/sys_stat (Depends-on): Likewise.
38595         * modules/wctype (Depends-on): Likewise.
38596         * MODULES.html.sh (Support for building libraries and
38597         executables): Document it.
38598
38599 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38600
38601         * gnulib-tool (SED): Remove, undoing previous change.
38602         The problem was that it broke coreutils on Solaris, because
38603         "sed --posix" leaked into a makefile.
38604         (sed): New alias, if 'alias' and GNU sed.
38605
38606 2006-12-24  Jim Meyering  <jim@meyering.net>
38607
38608         Work around an fchownat bug in glibc-2.4:
38609         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
38610         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
38611         in spite of the -P option.
38612         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
38613         New macros.
38614         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
38615         * modules/openat (Files): Add lib/fchownat.c.
38616         * lib/openat.c (fchownat): Don't define here.  Move to...
38617         * lib/fchownat.c: ...this new file.
38618
38619 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38620
38621         Fix bug reported by Bruno Haible in
38622         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
38623         where quotearg.c didn't compile on Mac OS X 10.2 because it
38624         lacks <wchar.h> and wint_t.
38625         * lib/wctype_.h (__wctype_wint_t): New type.
38626         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
38627         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
38628         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
38629         Arg is now of type __wctype_wint_t, not wint_t.
38630         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
38631         substitute HAVE_WINT_T.
38632         * modules/wctype (Files): Add m4/wint_t.m4.
38633         (wctype.h): Substitute HAVE_WINT_T.
38634
38635 2006-12-23  Bruno Haible  <bruno@clisp.org>
38636
38637         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
38638
38639 2006-12-23  Bruno Haible  <bruno@clisp.org>
38640
38641         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
38642         S_ISLNK.
38643         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
38644         mingw.
38645
38646 2006-12-22  Bruno Haible  <bruno@clisp.org>
38647
38648         * lib/copy-file.c: Include acl.h.
38649         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
38650         Close the file descriptors only after being done with copy_acl.
38651         * modules/copy-file (Depends-on): Add acl.
38652
38653 2006-12-22  Bruno Haible  <bruno@clisp.org>
38654
38655         * gnulib-tool (SED): New variable.
38656         Use $SED instead of sed everywhere.
38657
38658 2006-12-22  Bruno Haible  <bruno@clisp.org>
38659
38660         * modules/no-c++: New file.
38661         * m4/no-c++.m4: New file.
38662         * MODULES.html.sh (Support for building libraries and executables):
38663         Add no-c++.
38664
38665 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
38666
38667         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
38668         Include <limits.h>, and use its INT_MAX to rewrite the
38669         j loop so that it does not overflow 'int'.  Problem reported by
38670         Ralf Wildenhues in
38671         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
38672         Play it safe by shifting left by 1 rather than multiplying by 2,
38673         as GCC is less likely to optimize this away when the value
38674         is signed (when it assumes overflow leads to undefined behavior).
38675         Also, don't assume time_t uses two's complement.
38676
38677 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
38678
38679         * MODULES.html.sh: New module wctype.
38680         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
38681         * lib/fnmatch.c: Don't bother to include <wchar.h> before
38682         <wctype.h>, since the new wctype module should fix this.
38683         * lib/quotearg.c: Include <wctype.h> unconditionally, since
38684         the wctype module should arrange for it.
38685         * lib/regex_internal.h: Likewise.
38686         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
38687         since the wctype module should handle this now.
38688         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
38689         * modules/fnmatch (Depends-on): Add wctype.
38690         * modules/quotearg (Depends-on): Likewise.
38691         * modules/regex (Depends-on): Likewise.
38692
38693 2006-12-19  Bruno Haible  <bruno@clisp.org>
38694
38695         * lib/strdup.h [C++]: Wrap definitions in extern "C".
38696         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
38697
38698 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38699
38700         * modules/savewd (Depends-on): Fix dependency on fcntl.
38701
38702 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38703
38704         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
38705         conforms to C99, rather than relying on the user's environment
38706         setting of STDINT_H.
38707
38708 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38709         and Eric Blake  <ebb9@byu.net>
38710
38711         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
38712         This is more consistent with the other defines here.
38713         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
38714         Port to z/OS.  Problem reported by Paul Gilmartin.
38715         Change local vars to use gl_ prefix rather than ac_.
38716         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
38717         with other defines.
38718         * modules/double-slash-root: New module.
38719         * modules/dirname (Files): Remove m4/double-slash-root.m4.
38720         (Depends-on): Add double-slash-root.
38721         * MODULES.html.sh (File system functions): Mention new module.
38722
38723 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
38724
38725         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
38726         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
38727         This is for the benefit of gzip, which doesn't do i18n.
38728
38729 2006-12-12  Jim Meyering  <jim@meyering.net>
38730
38731         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
38732         Reported by Andreas Schwab <schwab@suse.de>.
38733
38734 2006-12-12  Bruno Haible  <bruno@clisp.org>
38735
38736         Merge these changes.
38737         2006-09-05  Bruno Haible  <bruno@clisp.org>
38738         * lib/iconvme.c (iconv_string): No need to save and restore errno when
38739         iconv_alloc succeeded.
38740         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
38741         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
38742         test for " && dest " at the end - dest is always != NULL there. Call
38743         iconv with 4xNULL arguments initially, to reset the state. Call iconv
38744         with 2xNULL arguments, also to flush the state storage. Handle the
38745         IRIX iconv behaviour. Realloc the final result, to throw away unused
38746         memory.
38747
38748 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
38749
38750         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
38751         and fchmodat unconditionally, since glibc 2.4 has them.
38752         Problem reported by Arkadiusz Miskiewicz.
38753
38754 2006-12-10  Bruno Haible  <bruno@clisp.org>
38755
38756         * gnulib-tool (func_import): Show the include files only for those
38757         modules that are copied and specified.
38758         Reported by Karl Berry.
38759
38760 2006-12-08  Jim Meyering  <jim@meyering.net>
38761
38762         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
38763         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
38764
38765         * build-aux/announce-gen: Add two new options, both optional:
38766         --bootstrap-tools=TOOL_LIST
38767               a comma-separated list of tools, e.g.,
38768               autoconf,automake,bison,gnulib
38769         --gnulib-snapshot-date=DATE
38770               if gnulib is in the bootstrap tool list,
38771               then report this as the snapshot date.
38772               If not specified, use the current date/time.
38773               If you specify a date here, be sure it's UTC.
38774
38775 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38776
38777         * tests/test-argp-2.sh: Fix test to match actual output.
38778         (func_compare): Fix sed script to be portable.
38779
38780 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
38781
38782         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
38783         workaround for this case.  It is not autoconfigured now; offhand
38784         it's hard to see how to autoconfigure it.
38785
38786 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38787
38788         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
38789         a directory that is about to be chowned.  Such a directory's
38790         initial file permissions should permit the owner only and this
38791         should not be changed until after the chown, since the group and
38792         other bits would be incorrect if they granted permission before
38793         the chown.
38794
38795         Fix porting problem for iswctype reported by Georg Schwarz in:
38796         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
38797         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
38798         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
38799         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
38800         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38801
38802 2006-12-03  Jim Meyering  <jim@meyering.net>
38803
38804         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
38805         p->fts_statp may not yet be defined.
38806         (fts_read): Instead, set it in the caller, once p->fts_statp is
38807         sure to be defined, and corresponds to a top-level directory.
38808         This bug made du -x fail.  Here's the coreutils test case:
38809         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
38810         Reported by Mike Frysinger.
38811
38812 2006-12-01  Jim Meyering  <jim@meyering.net>
38813
38814         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
38815         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
38816         Reported by Simon Josefsson.
38817
38818 2006-11-30  Jim Meyering  <jim@meyering.net>
38819
38820         * m4/warning.m4: Use the all-permissive copyright notice
38821         recommended by RMS (rather than LGPL).
38822         * m4/vararrays.m4: Likewise.
38823         * m4/flexmember.m4: Likewise.
38824
38825 2006-11-29  Bruno Haible  <bruno@clisp.org>
38826
38827         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38828         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
38829         using +=.
38830         Reported by Simon Josefsson <simon@josefsson.org>.
38831
38832 2006-11-28  James Youngman <jay@gnu.org>
38833
38834         * README: Advise users that they might find the bug-gnulib@gnu.org
38835         and autotools-announce@gnu.org mailing lists useful.
38836
38837 2006-11-28  Bruno Haible  <bruno@clisp.org>
38838
38839         * m4/ptrdiff_max.m4: Remove file.
38840
38841 2006-11-21  Bruno Haible  <bruno@clisp.org>
38842
38843         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
38844         _AC_COMPUTE_INT.
38845         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38846         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
38847         _AC_COMPUTE_INT.
38848         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38849         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
38850         _AC_COMPUTE_INT.
38851         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38852
38853 2006-11-28  Jim Meyering  <jim@meyering.net>
38854
38855         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
38856         warning from "gcc -Wshadow" about shadowing the builtin.
38857
38858 2006-11-27  Bruno Haible  <bruno@clisp.org>
38859
38860         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
38861         _AC_COMPUTE_INT.
38862         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38863
38864 2006-11-27  Bruno Haible  <bruno@clisp.org>
38865             Paul Eggert  <eggert@cs.ucla.edu>
38866
38867         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
38868
38869 2006-11-26  Bruno Haible  <bruno@clisp.org>
38870
38871         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38872         noinst_LTLIBRARIES.
38873
38874 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
38875             Bruno Haible  <bruno@clisp.org>
38876
38877         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
38878         if compiling with "gcc -ansi".
38879
38880 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
38881
38882         Fix some incompatibilities with gcc -ansi -pedantic.
38883         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
38884         if compiling pedantically with GCC, unless it's C99 or later.
38885         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
38886         it mishandles gcc -ansi -pedantic as well.
38887         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
38888         if gcc -pedantic.
38889         * lib/regexec.c (check_node_accept_bytes): Don't use auto
38890         initializers for struct if -pedantic, unless it's C99 or later.
38891
38892 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
38893
38894         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
38895         Don't close an fd more than once. Identical atimes indicate
38896         success, not failure.
38897
38898 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
38899
38900         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
38901
38902 2006-11-23  Jim Meyering  <jim@meyering.net>
38903
38904         * build-aux/announce-gen: New file.  From coreutils.
38905
38906 2006-11-22  Jim Meyering  <jim@meyering.net>
38907
38908         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
38909         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
38910         (fts_read): Use a temporary to narrow the overused st_size member
38911         before using it in a switch statement.  Reported by Matthew Woehlke.
38912
38913         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
38914         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38915
38916 2006-11-20  Bruno Haible  <bruno@clisp.org>
38917
38918         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
38919         changequote instead of pairs of brackets.
38920         Reported by Andreas Schwab <schwab@suse.de>.
38921
38922 2006-11-21  Jim Meyering  <jim@meyering.net>
38923
38924         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
38925         so as to remain compatible with older compilers.
38926         Patch from Michael Deutschmann.
38927
38928 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
38929
38930         * MODULES.html.sh (File system functions): Add openat.
38931
38932         * lib/openat.h (rpl_fstatat): New macro, if
38933         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
38934         (fstatat): Define to rpl_fstatat under the same conditions,
38935         unless COMPILING_FSTATAT.
38936         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
38937         seems to have the bug.
38938         * lib/fstatat.c: New file.
38939         * modules/openat (Files): Add it.
38940
38941 2006-11-20  Bruno Haible  <bruno@clisp.org>
38942
38943         * Makefile: New file.
38944
38945 2006-11-20  Jim Meyering  <jim@meyering.net>
38946
38947         The beginnings of syntax-related checks for gnulib.
38948         * lib/Makefile: New file.
38949         * lib/t-idcache: New script.  Ensure that the two halves of
38950         idcache.c stay in sync.
38951
38952         * lib/idcache.c: Adjust comments in user- and group- portions to
38953         be more accurate, and to be consistent with one another.
38954
38955 2006-11-20  Jim Meyering  <jim@meyering.net>
38956
38957         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
38958         continue using the flexible array member (thus, this module performs
38959         half as many malloc calls), with the addition that...
38960         (getgroup, getuser): Consistently record a non-match via an empty
38961         "name" string, and map an empty string match to a NULL return value.
38962         * modules/idcache (Depends-on): Re-add flexmember.
38963
38964         * lib/idcache.c (getuser): Remove all uses of the register keyword.
38965         (getuidbyname, getgroup, getgidbyname): Likewise.
38966
38967         Use cleaner syntax: NULL rather than 0.
38968         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
38969
38970 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
38971
38972         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
38973         It mishandled the case where the group was missing.
38974         Problem reported by Greg Schafer.
38975         * modules/idcache: Likewise.
38976
38977 2006-11-18  Jim Meyering  <jim@meyering.net>
38978
38979         * check-module (%exempt_header): Add exception for some
38980         conditionally-included headers.
38981
38982         * modules/i-ring (Depends-on): Add verify.
38983         (License): Change to LGPL.
38984
38985 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38986
38987         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
38988         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
38989         and inttostr.h.  Use snprintf rather than uinttostr, so that
38990         LGPLed code doesn't depend on GPLed.
38991
38992 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
38993
38994         * modules/inline (License): Change from GPL to LGPL.
38995
38996 2006-11-17  Jim Meyering  <jim@meyering.net>
38997
38998         * modules/d-type (License): Switch to LGPL.
38999
39000 2006-11-15  Bruno Haible  <bruno@clisp.org>
39001
39002         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39003
39004 2006-11-15  Eric Blake  <ebb9@byu.net>
39005
39006         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39007         the module dependency.
39008
39009 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39010             Bruno Haible  <bruno@clisp.org>
39011
39012         * gnulib-tool (func_create_testdir): Add license consistency check.
39013
39014 2006-11-15  Eric Blake  <ebb9@byu.net>
39015
39016         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39017         random "(cached)" in configure output.
39018
39019 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39020
39021         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39022         test for conforming inttypes.h is both announced and cached.
39023
39024         * MODULES.html.sh (seen_modules, seen_files): New variables.
39025         (func_module): Rewrite to use a few less gnulib-tool and sed
39026         invocations.  Avoid a couple of quadratic algorithms for ...
39027         (missed_modules, missed_files): ... these, with ...
39028         (func_append, func_tmpdir): ... these new functions, from
39029         gnulib-tool.  Analogously, install traps for cleanup.
39030
39031         * tests/test-gc.c (main): Remove unused variables.
39032         * tests/test-read-file.c: Include stdlib.h, for 'free'.
39033
39034 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
39035
39036         * modules/inttostr (License): Change to LGPL.
39037
39038 2006-11-14  Eric Blake  <ebb9@byu.net>
39039
39040         * modules/tempname (License): Change to LGPL.
39041
39042 2006-11-14  Eric Blake  <ebb9@byu.net>
39043
39044         * doc/functions.texi (Function Portability): *printf functions on
39045         Cygwin now understand all POSIX size specifiers.
39046
39047 2006-11-14  Bruno Haible  <bruno@clisp.org>
39048
39049         * modules/c-ctype (License): Change to LGPL.
39050
39051 2006-11-12  Bruno Haible  <bruno@clisp.org>
39052
39053         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39054         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39055         for GNOME libraries, for which the include files are installed in
39056         subdirectories of $prefix/include.
39057
39058 2006-11-12  Bruno Haible  <bruno@clisp.org>
39059
39060         * m4/lib-link.m4: Require at least autoconf-2.54.
39061         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39062         name to underscores for the --with option.
39063
39064 2006-11-13  Bruno Haible  <bruno@clisp.org>
39065
39066         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39067         the tests directory.
39068         Reported by Ralf Wildenhues.
39069
39070 2006-11-13  Bruno Haible  <bruno@clisp.org>
39071
39072         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39073         (func_emit_initmacro_end): Undo the override here.
39074         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39075         Works around the famous automake error in coreutils.
39076
39077 2006-11-13  Eric Blake  <ebb9@byu.net>
39078
39079         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39080         element, not its node.
39081
39082 2006-11-12  Bruno Haible  <bruno@clisp.org>
39083
39084         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39085         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39086
39087 2006-11-12  Bruno Haible  <bruno@clisp.org>
39088
39089         * gnulib-tool: New option --local-symlink.
39090         (func_usage): Document it.
39091         (lsymbolic): New variable.
39092         (func_import, func_create_testdir): If --symlink was not specified,
39093         test whether --local-symlink was specified and the file comes from
39094         the local_gnulib_dir.
39095
39096 2006-11-12  Bruno Haible  <bruno@clisp.org>
39097
39098         * gnulib-tool (func_ln): New function.
39099         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39100
39101 2006-11-12  Bruno Haible  <bruno@clisp.org>
39102
39103         Finish support for source files in subdirectories.
39104         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39105         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39106         AUTOMAKE_OPTIONS.
39107         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39108
39109 2006-11-12  Bruno Haible  <bruno@clisp.org>
39110
39111         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39112         EXTRA_lib_SOURCES augmentation.
39113         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39114
39115 2006-11-12  Jim Meyering  <jim@meyering.net>
39116
39117         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39118         file descriptors.  This also averts a failure on systems with
39119         native openat support when a traversed directory lacks "x" access.
39120         * lib/fts_.h: Include "i-ring.h"
39121         (struct FTS) [fts_fd_ring]: New member.
39122         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39123         (FCHDIR): Add parentheses.
39124         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39125         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
39126         When descending, rather than simply closing the previous
39127         fts_cwd_fd value, push that file descriptor onto the ring.
39128         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39129         (fts_open): Initialize the new fd_ring member.
39130         (fts_close): Clear the ring.
39131         (fts_safe_changedir): When possible, use our new fd_ring to skip
39132         the diropen and fstat and dev/ino comparison that would normally
39133         accompany a virtual `chdir ("..")'.
39134
39135         * modules/fts (Depends-on): Add i-ring.
39136         * modules/i-ring: New module.
39137         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39138         * m4/i-ring.m4: New file.
39139
39140 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39141
39142         * gnulib-tool (func_create_testdir): Fix replacement of
39143         `build-aux' in configure.ac.  Run autotools in gltests
39144         subdirectory.
39145         (func_create_testdir, func_create_megatestdir, test): There is
39146         no need for '--force' in most autotool invocations in a new
39147         tree.  Actually fail the whole test if any of the tools, or the
39148         configure or make stages fail.
39149
39150         Sync from Automake.
39151         * build-aux/gnupload: Revert last change.  Add pointer to upload
39152         instructions of the GNU Maintenance Instructions.
39153         Suggestion by Karl Berry.
39154
39155 2006-11-10  Jim Meyering  <jim@meyering.net>
39156
39157         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39158
39159 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39160
39161         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39162         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39163         (bind_textdomain_codeset) [! ENABLE_NLS]:
39164         Evaluate all the arguments.  That way, callers get compatible behavior
39165         if the arguments have side effects.  Also, it avoids some GCC
39166         diagnostics in some cases; Joel E. Denny reported problems when Bison
39167         was configured with --enable-gcc-warnigs.
39168
39169 2006-11-10  Jim Meyering  <jim@meyering.net>
39170
39171         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39172         relevant options in CFLAGS (like -O, -fno-inline) are taken into
39173         account.
39174
39175 2006-11-10  Jim Meyering  <jim@meyering.net>
39176
39177         * modules/inline: New file/module.
39178         * modules/xalloc (Files): Remove m4/inline.m4.
39179         (Depends-on): Add inline, instead.
39180         * modules/oset: Likewise.
39181         * modules/list: Likewise.
39182
39183 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39184
39185         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39186         Problem reported by Matthew Woehlke.
39187
39188 2006-11-09  Bruno Haible  <bruno@clisp.org>
39189
39190         * lib/tempname.c (gen_tempname): Remove variant that invokes
39191         __gen_tempname.
39192         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39193         __gen_tempname.
39194
39195 2006-11-08  Bruno Haible  <bruno@clisp.org>
39196
39197         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39198         to 'yes' instead of 'cross-compiling'.
39199
39200 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
39201
39202         * lib/quotearg.h (quotearg_free): New decl.
39203         * lib/quotearg.c (quotearg_free): New function.
39204         (slot0, nslots, slotvec0, slotvec):
39205         Now file-scope so that quotearg_free can get at them.
39206
39207 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39208
39209         Sync from Automake.
39210         * build-aux/gnupload: Add missing 'gnu' to example URL.
39211         Report by Karl Berry.
39212
39213 2006-11-08  Bruno Haible  <bruno@clisp.org>
39214
39215         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39216         Suggested by Paul Eggert.
39217
39218 2006-11-08  Jim Meyering  <jim@meyering.net>
39219
39220         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39221         It's already included if !_LIBC.
39222         (fts_safe_changedir): Add a comment.
39223
39224 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39225
39226         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39227         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39228         Matthew Woehlke.
39229
39230         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39231         definitions up, to avoid colliding with change below.
39232         (static_inline) [HAVE_INLINE]: New macro.
39233         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39234         Provide extern decls when !HAVE_INLINE.  Do not define unless
39235         static_inline is defined, either by us or by xmalloc.c.  Use
39236         static_inline rather than static inline.
39237         (XCALLOC): Optimize sizeof(T) = 1 case.
39238         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39239
39240 2006-11-07  Bruno Haible  <bruno@clisp.org>
39241
39242         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39243         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39244         AC_C_INLINE.
39245         * modules/xalloc (Files): Add m4/inline.m4.
39246
39247 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39248
39249         * README: Fix typo.
39250         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39251         (Miscellanous Notes): ...from this.
39252
39253 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39254
39255         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39256         Mention that offsetof should be used instead of sizeof.
39257         From Bruno Haible.
39258
39259 2006-11-07  Bruno Haible  <bruno@clisp.org>
39260
39261         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39262
39263 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39264
39265         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39266         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39267         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39268         (gl_tree_add_before, gl_tree_add_after):
39269         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39270         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39271         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39272         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39273         (gl_linked_add_after, gl_linked_add_at): Likewise.
39274         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39275         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39276         (gl_tree_add_before, gl_tree_add_after): Likewise.
39277         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39278         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39279         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39280
39281 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39282
39283         * lib/gl_oset.h: Use C comment style, not C++ comment style.
39284
39285 2006-11-06  Bruno Haible  <bruno@clisp.org>
39286
39287         * m4/inline.m4: New file.
39288         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
39289         * modules/list (Files): Add m4/inline.m4.
39290         * modules/oset (Files): Likewise.
39291
39292 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39293
39294         * lib/idcache.c: Include <stddef.h>, for offsetof.
39295         (struct userid.name): Change from char * to a flexible array member.
39296         All uses changed.
39297         * modules/idcache (Depends-on): Add flexmember.
39298
39299         * MODULES.html.sh (Core language properties): New module flexmember.
39300         * modules/flexmember, m4/flexmember.m4: New files.
39301
39302         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
39303         inline functions that are identical with the old xnmalloc_inline,
39304         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
39305         that we can avoid some unnecessary integer multiplications and
39306         divisions in the common case where the element size is known at
39307         compile time.
39308         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
39309         needed.
39310         (xnboundedmalloc): Remove.
39311         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
39312         arguments, for consistency with rest of this header.
39313         (xcharalloc): Rewrite using XNMALLOC.
39314         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
39315         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
39316         versions have been moved to lib/xalloc.h and renamed to be the
39317         non-*_inline versions.
39318         (xmalloc, xrealloc): Implement without reference to the xnmalloc
39319         and xnrealloc functions, since those functions are now inline and
39320         now call us.
39321         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
39322         renaming described above.
39323         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
39324         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
39325         captures the dependency in AC_C_INLINE.
39326
39327         New module canonicalize-lgpl, proposed by Charles Wilson in
39328         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
39329         with a few small changes afterwards.
39330         * MODULES.html.sh (File system functions): New module
39331         canonicalize-lgpl.
39332         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
39333         and canonicalize_file_name.
39334         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
39335         * modules/canonicalize-lgpl: New files.
39336
39337 2006-11-05  Bruno Haible  <bruno@clisp.org>
39338
39339         * gnulib-tool (func_import, func_create_testdir): Create directories
39340         also for files in subdirectories of lib/.
39341
39342 2006-11-05  Bruno Haible  <bruno@clisp.org>
39343
39344         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
39345         ANSI C compliant.
39346
39347 2006-11-03  Bruno Haible  <bruno@clisp.org>
39348
39349         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39350         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
39351         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
39352         (xnboundedmalloc): New inline function.
39353         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
39354         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
39355         xmalloc.
39356         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
39357         xmalloc.
39358         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
39359         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
39360         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
39361         xmalloc.
39362         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39363         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
39364         xmalloc.
39365         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
39366         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39367         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
39368         xmalloc.
39369         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39370         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
39371         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39372         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
39373         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
39374         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
39375         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
39376
39377 2006-11-03  Bruno Haible  <bruno@clisp.org>
39378
39379         * lib/c-ctype.h [C++]: Define functions without name mangling.
39380         * lib/fwriteerror.h [C++]: Likewise.
39381         * lib/gcd.h [C++]: Likewise.
39382         * lib/linebreak.h [C++]: Likewise.
39383
39384 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39385
39386         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
39387         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
39388         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
39389         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
39390         Check for functions and headers just once.
39391         Check for declaration of canonicalize_file_name.
39392         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
39393
39394 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39395
39396         * gnulib-tool (func_import): Fix typo in actioncmd.
39397
39398 2006-11-02  Bruno Haible  <bruno@clisp.org>
39399
39400         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
39401         newline sequence in the Makefile.am snippet as a space, like "make"
39402         does.
39403         Reported by Roger Persson <perrog@gmail.com>.
39404
39405 2006-11-01  Bruno Haible  <bruno@clisp.org>
39406
39407         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
39408         already declared in <string.h>.
39409         * lib/strcase.h (strncasecmp): Don't declare it if yes.
39410
39411 2006-11-01  Bruno Haible  <bruno@clisp.org>
39412
39413         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
39414         * lib/strcase.h: Include <string.h>.
39415         (strcasecmp): Define to rpl_strcasecmp here.
39416
39417 2006-11-01  Bruno Haible  <bruno@clisp.org>
39418
39419         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
39420
39421 2006-11-01  Eric Blake  <ebb9@byu.net>
39422
39423         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
39424
39425         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
39426
39427 2006-10-29  Bruno Haible  <bruno@clisp.org>
39428
39429         Make it compile in C++ mode.
39430         * lib/full-write.c (full_rw): Add a cast.
39431
39432 2006-11-01  Bruno Haible  <bruno@clisp.org>
39433
39434         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
39435         be POSIX compliant.
39436         Reported by Roger Persson <perrog@gmail.com>.
39437
39438 2006-11-01  Eric Blake  <ebb9@byu.net>
39439
39440         * lib/getopt_.h: Fix comments.
39441
39442 2006-10-31  Eric Blake  <ebb9@byu.net>
39443
39444         * modules/tmpdir (Depends-on): Add sys_stat.
39445         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
39446         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
39447         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
39448         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
39449         tempname.
39450
39451 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
39452
39453         Avoid some C++ diagnostics reported by Bruno Haible.
39454         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
39455         xmalloc.
39456         (quotearg_alloc): Use xcharalloc rather than xmalloc.
39457         (struct slotvec): Move to top level.
39458         (quotearg_n_options): Rewrite to avoid xmalloc.
39459         * lib/xalloc.h (xcharalloc): New function.
39460         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
39461         [defined __cplusplus]: Add function template that provides result
39462         type propagation.  This part of the change is from Bruno Haible.
39463
39464 2006-10-29  Bruno Haible  <bruno@clisp.org>
39465
39466         Make it compile in C++ mode.
39467         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
39468         * lib/strnlen1.c (strnlen1): Cast memchr result.
39469         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
39470         * lib/clean-temp.c (string_equals, string_hash): Add casts.
39471         (create_temp_dir): Rename local variable 'template'.
39472         (compile_csharp_using_sscli): Add cast.
39473         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
39474         * lib/findprog.c (find_in_path): Likewise.
39475         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
39476         * lib/wait-process.c (register_slave_subprocess): Likewise.
39477
39478 2006-10-22  Bruno Haible  <bruno@clisp.org>
39479
39480         * modules/tsearch: New file.
39481         * lib/tsearch.h: New file.
39482         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
39483         * m4/tsearch.m4: New file.
39484         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
39485
39486 2006-10-29  Eric Blake  <ebb9@byu.net>
39487
39488         * lib/arcfour.c: Assume config.h.
39489         * lib/arctwo.c: Likewise.
39490         * lib/base64.c: Likewise.
39491         * lib/check-version.c: Likewise.
39492         * lib/crc.c: Likewise.
39493         * lib/des.c: Likewise.
39494         * lib/gc-gnulib.c: Likewise.
39495         * lib/gc-libgcrypt.c: Likewise.
39496         * lib/gc-pbkdf2-sha1.c: Likewise.
39497         * lib/getaddrinfo.c: Likewise.
39498         * lib/getdelim.c: Likewise.
39499         * lib/getline.c: Likewise.
39500         * lib/hmac-md5.c: Likewise.
39501         * lib/hmac-sha1.c: Likewise.
39502         * lib/iconvme.c: Likewise.
39503         * lib/md2.c: Likewise.
39504         * lib/md4.c: Likewise.
39505         * lib/memxor.c: Likewise.
39506         * lib/read-file.c: Likewise.
39507         * lib/readline.c: Likewise.
39508         * lib/rijndael-alg-fst.c: Likewise.
39509         * lib/rijndael-api-fst.c: Likewise.
39510         * lib/xgetdomainname.c: Likewise.
39511
39512 2006-10-28  Eric Blake  <ebb9@byu.net>
39513
39514         * lib/xstrndup.c: Assume config.h.
39515
39516 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
39517
39518         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
39519         stat-macros.h is now for our own macros, whereas stat_h is for
39520         macros in the <sys/stat.h> name space.
39521         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
39522         (STAT_MACROS_H): Remove.
39523         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
39524         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
39525         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
39526         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
39527         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
39528         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
39529         Move these macros to ...
39530         * lib/stat_.h: here.  Don't include stat-macros.h.
39531         * lib/canonicalize.c: Don't include stat-macros.h.
39532         * lib/chown.c: Likewise.
39533         * lib/euidaccess.c: Likewise.
39534         * lib/file-type.c: Likewise.
39535         * lib/filemode.c: Likewise.
39536         * lib/glob.c: Likewise.
39537         * lib/isapipe.c: Likewise.
39538         * lib/lchown.c: Likewise.
39539         * lib/lstat.c: Likewise.
39540         * lib/mkdir-p.c: Likewise.
39541         * lib/rmdir.c: Likewise.
39542         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
39543         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
39544         unless mkdir isn't declared, to speed up 'configure'.
39545         Always create sys/stat.h, since it's unlikely any real sys/stat.h
39546         would define all the S_* symbols.
39547         * modules/canonicalize (Depends-on):
39548         Depend on sys_stat, not stat-macros.
39549         * modules/chown: Likewise.
39550         * modules/euidaccess: Likewise.
39551         * modules/filemode: Likewise.
39552         * modules/file-type: Likewise.
39553         * modules/glob: Likewise.
39554         * modules/isapipe: Likewise.
39555         * modules/lchown: Likewise.
39556         * modules/lstat: Likewise.
39557         * modules/mkancesdirs: Likewise.
39558         * modules/rmdir: Likewise.
39559         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
39560         * modules/modechange: Likewise.
39561         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
39562         (configure.ac): Remove gl_STAT_MACROS.
39563         * modules/sys_stat (Depends-on): Remove stat-macros.
39564
39565 2006-10-27  Bruno Haible  <bruno@clisp.org>
39566
39567         * m4/signed.m4: Remove file.
39568         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
39569         invocation.
39570         * modules/vasnprintf (Files): Remove m4/signed.m4.
39571
39572 2006-10-27  Bruno Haible  <bruno@clisp.org>
39573
39574         Update to GNU gettext 0.16.
39575         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
39576         m4/inttypes-h.m4, m4/signed.m4.
39577         * m4/gettext.m4: Update to GNU gettext 0.16.
39578         * m4/intl.m4: New file, from GNU gettext.
39579         * m4/intldir.m4: New file, from GNU gettext.
39580         * config/srclist.txt: Update
39581
39582 2006-10-27  Eric Blake  <ebb9@byu.net>
39583
39584         * MODULES.html.sh: Document tempname.
39585         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
39586         dependencies.
39587         (Files): Move lib/tempname.c...
39588         * modules/tempname: ...to this new module.
39589         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
39590         (gl_PREREQ_TEMPNAME): Move...
39591         * m4/tempname.m4: ...to this new file.
39592         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
39593         * modules/sys_stat (Depends-on): Add stat-macros.
39594         * lib/stat_.h (includes): Pick up stat macros.
39595         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
39596         if stat macros are broken.
39597         * lib/tempname.c (includes): No need to include "stat-macros.h".
39598         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
39599         (direxists, __path_search) [!_LIBC]: Don't compile these in
39600         gnulib; the tmpdir module covers that.
39601         * lib/tempname.h: New file.
39602
39603 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
39604
39605         * COPYING: Explain how gnulib-tool converts licence headers.
39606         Almost all wording by Eric Blake.
39607
39608 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
39609
39610         * lib/mbchar.h (is_basic_table): Make read-only.
39611         * lib/mbchar.c (is_basic_table): Likewise.
39612         Reported by John Darrington.
39613
39614 2006-10-25  Bruno Haible  <bruno@clisp.org>
39615
39616         * lib/progname.h (set_program_name): Undefine before defining.
39617
39618 2006-10-25  Bruno Haible  <bruno@clisp.org>
39619
39620         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
39621         false for non-gcc C++ compilers.
39622         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39623
39624 2006-10-24  Bruno Haible  <bruno@clisp.org>
39625
39626         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
39627         iconv implementations like Irix iconv.
39628
39629 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39630
39631         * modules/vararrays: New file.
39632         * m4/vararrays.m4: New file, taken from diffutils.
39633         * MODULES.html.sh: New module vararrays.
39634
39635 2006-10-24  Karl Berry  <karl@gnu.org>
39636
39637         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
39638         Don't call GNU Unix.
39639
39640 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39641
39642         * users.txt: Add Libtool.
39643
39644         Sync from Libtool:
39645
39646         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39647
39648         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
39649         to gnulib's policy of including config.h unconditionally.
39650
39651 2006-10-24  Bruno Haible  <bruno@clisp.org>
39652
39653         * modules/wcwidth (Files): Add m4/wint_t.m4.
39654         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
39655         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
39656
39657 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39658
39659         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
39660         to pacify GCC with some -W flags enabled.  Problem reported by
39661         Bruno Haible.
39662
39663 2006-10-24  Jim Meyering  <jim@meyering.net>
39664
39665         * MODULES.html.sh: Remove uinttostr.  It's not a module.
39666         Reported by Karl Berry.
39667
39668 2006-10-23  Bruno Haible  <bruno@clisp.org>
39669
39670         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
39671
39672 2006-10-24  Bruno Haible  <bruno@clisp.org>
39673
39674         * lib/gl_list.h: Use C comment style, not C++ comment style.
39675
39676 2006-10-23  Eric Blake  <ebb9@byu.net>
39677
39678         * lib/getaddrinfo.c (includes): Add missing include.
39679
39680 2006-10-23  Bruno Haible  <bruno@clisp.org>
39681             Paul Eggert  <eggert@cs.ucla.edu>
39682
39683         Ability to rename obstack_free.
39684         * lib/obstack.h (__obstack_free): New macro. Declare instead of
39685         obstack_free.
39686         (obstack_free): Invoke the __obstack_free macro.
39687         * lib/obstack.c (obstack_free): Use __obstack_free macro.
39688
39689 2006-10-23  Bruno Haible  <bruno@clisp.org>
39690             Paul Eggert  <eggert@cs.ucla.edu>
39691
39692         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
39693         __argc, __argv from the declaration. (They are defined as macros on
39694         mingw.)
39695
39696 2006-10-22  Bruno Haible  <bruno@clisp.org>
39697
39698         * doc/gnulib-intro.texi: New file.
39699         * doc/gnulib.texi: Include it.
39700
39701 2006-10-21  Bruno Haible  <bruno@clisp.org>
39702
39703         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
39704         "Introduction", "Miscellanous Notes", "Particular Modules".
39705
39706 2006-10-21  Bruno Haible  <bruno@clisp.org>
39707
39708         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39709         Change mostlyclean-local rule to avoid sh syntax error from bash
39710         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
39711
39712 2006-10-23  Jim Meyering  <jim@meyering.net>
39713
39714         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
39715         in place of snprintf.
39716
39717         * modules/inttostr (Files): Add lib/uinttostr.c.
39718         * lib/uinttostr.c (inttostr): New file/function.
39719         * lib/inttostr.h (uinttostr): Declare.
39720         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
39721         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
39722         Add uinttostr.
39723         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
39724
39725 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39726
39727         * lib/canonicalize.c (ELOOP): Define if not already defined.
39728         Problem reported by Bruno Haible in
39729         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
39730
39731 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39732
39733         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
39734         Problem reported by Perry Smith and Ville Laurikari.
39735
39736         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
39737         uses.
39738
39739 2006-10-19  Bruno Haible  <bruno@clisp.org>
39740
39741         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
39742         for mingw.
39743
39744 2006-10-19  Bruno Haible  <bruno@clisp.org>
39745
39746         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
39747         Needed for mingw.
39748
39749 2006-10-19  Bruno Haible  <bruno@clisp.org>
39750
39751         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
39752
39753 2006-10-19  Bruno Haible  <bruno@clisp.org>
39754
39755         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
39756         it.
39757
39758 2006-10-19  Bruno Haible  <bruno@clisp.org>
39759
39760         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
39761         invocation.
39762
39763 2006-10-19  Bruno Haible  <bruno@clisp.org>
39764
39765         * gnulib-tool (func_create_testdir): Don't include ftruncate and
39766         mountlist by default.
39767
39768 2006-10-16  Bruno Haible  <bruno@clisp.org>
39769
39770         * lib/c-strstr.c: Include c-strstr.h.
39771
39772 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39773
39774         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
39775         in a slash.
39776
39777 2006-10-18  Bruno Haible  <bruno@clisp.org>
39778
39779         * lib/lock.h [C++]: Wrap definitions in extern "C".
39780
39781 2006-10-18  Bruno Haible  <bruno@clisp.org>
39782
39783         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
39784         gl_LIBOBJS list.
39785
39786 2006-10-18  Bruno Haible  <bruno@clisp.org>
39787
39788         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
39789
39790 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
39791
39792         * lib/xstrtol.h: Include gettext.h.
39793         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
39794         Problem reported by Eric Blake.
39795         * modules/xstrtol (Depends-on): Add gettext-h.
39796
39797 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
39798
39799         * lib/strftime.c (advance): New macro.
39800         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
39801         incomplete type, so you can't add 0 to it.  Problem and patch
39802         reported by Eelco Dolstra for dietlibc.
39803
39804 2006-10-18  Jim Meyering  <jim@meyering.net>
39805
39806         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
39807         type for a local, and rename it: s/up/user_proc/.
39808
39809 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
39810
39811         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
39812         READ_UTMP_USER_PROCESS.
39813         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
39814
39815 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39816
39817         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
39818         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
39819
39820 2006-10-17  Eric Blake  <ebb9@byu.net>
39821
39822         * lib/sigprocmask.c (sigprocmask): Fix typo.
39823
39824         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
39825
39826         * modules/clean-temp (Makefile.am): Don't add to make output...
39827         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
39828         config.h.
39829
39830 2006-10-17  Bruno Haible  <bruno@clisp.org>
39831
39832         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
39833         differently if DEFAULT_TEXT_DOMAIN is set.
39834
39835 2006-10-16  Bruno Haible  <bruno@clisp.org>
39836
39837         * lib/clean-temp.c: Include fwriteerror.h.
39838
39839 2006-10-16  Bruno Haible  <bruno@clisp.org>
39840
39841         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
39842
39843 2006-10-16  Bruno Haible  <bruno@clisp.org>
39844
39845         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
39846         * lib/sigprocmask.h: Include <sys/types.h>.
39847         (sigset_t): Use the system's definition if present.
39848
39849 2006-10-17  Eric Blake  <ebb9@byu.net>
39850
39851         * lib/xvasprintf.c (includes): Assume config.h.
39852         * lib/xasprintf.c (includes): Likewise.
39853
39854 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39855
39856         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
39857         at least as wide as intmax_t.
39858
39859 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
39860
39861         (Imported from Automake.)
39862         * build-aux/gnupload: Update to version 1.1 of directive file.
39863
39864 2006-10-16  Eric Blake  <ebb9@byu.net>
39865
39866         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
39867         match Automake 1.10a.
39868
39869 2006-10-14  Bruno Haible  <bruno@clisp.org>
39870
39871         * modules/sigprocmask: New file.
39872         * lib/sigprocmask.h: New file.
39873         * lib/sigprocmask.c: New file.
39874         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
39875         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
39876         request sigprocmask.o.
39877         (gl_PREREQ_SIGPROCMASK): New macro.
39878         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
39879         (Depends-on): Add sigprocmask.
39880         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
39881         gt_SIGNALBLOCKING. Test for 'raise' only once.
39882         * lib/fatal-signal.c: Include sigprocmask.h.
39883         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
39884         unblock_fatal_signals): Define always.
39885         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39886         sigprocmask.
39887
39888 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
39889
39890         Sync from Automake.
39891         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
39892         which incorrectly sets the mode of an existing destination
39893         directory.  In some cases the unpatched install-sh could do the
39894         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
39895         system.  We hope this is rare in practice, but it's clearly worth
39896         fixing.  Problem reported by Alex Unleashed in
39897         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
39898         Also, don't bother to check for -m bugs unless we're using -m;
39899         suggested by Stepan Kasal.
39900
39901 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39902
39903         Sync from Automake.
39904         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
39905         `-c' flag, so they appear at the same position as in %FASTDEP%
39906         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
39907         which ignores unknown options only after the first non-option.
39908         Bug report against M4 by Nelson H. F. Beebe.
39909
39910 2006-10-13  Jim Meyering  <jim@meyering.net>
39911
39912         Fix a bug in yesterday's change.
39913         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
39914         p->fts_statp->st_dev would be used uninitialized.
39915         Ensures that we always call fts_stat on the very first entry.
39916         Miklos Szeredi reported that find -xdev stopped working.
39917
39918 2006-10-12  Bruno Haible  <bruno@clisp.org>
39919
39920         * gnulib-tool (func_get_automake_snippet): Append an automatically
39921         computed EXTRA_DIST augmentation.
39922         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
39923         * modules/alloca-opt (Makefile.am): Likewise.
39924         * modules/allocsa (Makefile.am): Likewise.
39925         * modules/arcfour (Makefile.am): Likewise.
39926         * modules/arctwo (Makefile.am): Likewise.
39927         * modules/argmatch (Makefile.am): Likewise.
39928         * modules/argz (Makefile.am): Likewise.
39929         * modules/atexit (Makefile.am): Likewise.
39930         * modules/backupfile (Makefile.am): Likewise.
39931         * modules/byteswap (Makefile.am): Likewise.
39932         * modules/c-strtod (Makefile.am): Likewise.
39933         * modules/c-strtold (Makefile.am): Likewise.
39934         * modules/calloc (Makefile.am): Likewise.
39935         * modules/canon-host (Makefile.am): Likewise.
39936         * modules/canonicalize (Makefile.am): Likewise.
39937         * modules/chdir-long (Makefile.am): Likewise.
39938         * modules/chdir-safer (Makefile.am): Likewise.
39939         * modules/check-version (Makefile.am): Likewise.
39940         * modules/chown (Makefile.am): Likewise.
39941         * modules/cloexec (Makefile.am): Likewise.
39942         * modules/close-stream (Makefile.am): Likewise.
39943         * modules/closeout (Makefile.am): Likewise.
39944         * modules/crc (Makefile.am): Likewise.
39945         * modules/csharpexec (Makefile.am): Likewise.
39946         * modules/cycle-check (Makefile.am): Likewise.
39947         * modules/des (Makefile.am): Likewise.
39948         * modules/dev-ino (Makefile.am): Likewise.
39949         * modules/dirfd (Makefile.am): Likewise.
39950         * modules/dirname (Makefile.am): Likewise.
39951         * modules/dup2 (Makefile.am): Likewise.
39952         * modules/eealloc (Makefile.am): Likewise.
39953         * modules/error (Makefile.am): Likewise.
39954         * modules/euidaccess (Makefile.am): Likewise.
39955         * modules/exclude (Makefile.am): Likewise.
39956         * modules/exitfail (Makefile.am): Likewise.
39957         * modules/fcntl-safer (Makefile.am): Likewise.
39958         * modules/fcntl (Makefile.am): Likewise.
39959         * modules/file-type (Makefile.am): Likewise.
39960         * modules/fileblocks (Makefile.am): Likewise.
39961         * modules/filemode (Makefile.am): Likewise.
39962         * modules/filenamecat (Makefile.am): Likewise.
39963         * modules/fnmatch (Makefile.am): Likewise.
39964         * modules/fopen-safer (Makefile.am): Likewise.
39965         * modules/fpending (Makefile.am): Likewise.
39966         * modules/fprintftime (Makefile.am): Likewise.
39967         * modules/free (Makefile.am): Likewise.
39968         * modules/fsusage (Makefile.am): Likewise.
39969         * modules/ftruncate (Makefile.am): Likewise.
39970         * modules/fts (Makefile.am): Likewise.
39971         * modules/gc-arcfour (Makefile.am): Likewise.
39972         * modules/gc-des (Makefile.am): Likewise.
39973         * modules/gc-hmac-md5 (Makefile.am): Likewise.
39974         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
39975         * modules/gc-md4 (Makefile.am): Likewise.
39976         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
39977         * modules/gc-sha1 (Makefile.am): Likewise.
39978         * modules/gc (Makefile.am): Likewise.
39979         * modules/getaddrinfo (Makefile.am): Likewise.
39980         * modules/getcwd (Makefile.am): Likewise.
39981         * modules/getdelim (Makefile.am): Likewise.
39982         * modules/getdomainname (Makefile.am): Likewise.
39983         * modules/getgroups (Makefile.am): Likewise.
39984         * modules/gethostname (Makefile.am): Likewise.
39985         * modules/gethrxtime (Makefile.am): Likewise.
39986         * modules/getline (Makefile.am): Likewise.
39987         * modules/getloadavg (Makefile.am): Likewise.
39988         * modules/getlogin_r (Makefile.am): Likewise.
39989         * modules/getndelim2 (Makefile.am): Likewise.
39990         * modules/getopt (Makefile.am): Likewise.
39991         * modules/getpagesize (Makefile.am): Likewise.
39992         * modules/getpass-gnu (Makefile.am): Likewise.
39993         * modules/getpass (Makefile.am): Likewise.
39994         * modules/getsubopt (Makefile.am): Likewise.
39995         * modules/gettime (Makefile.am): Likewise.
39996         * modules/gettimeofday (Makefile.am): Likewise.
39997         * modules/getugroups (Makefile.am): Likewise.
39998         * modules/getusershell (Makefile.am): Likewise.
39999         * modules/glob (Makefile.am): Likewise.
40000         * modules/group-member (Makefile.am): Likewise.
40001         * modules/hard-locale (Makefile.am): Likewise.
40002         * modules/hash (Makefile.am): Likewise.
40003         * modules/hmac-md5 (Makefile.am): Likewise.
40004         * modules/hmac-sha1 (Makefile.am): Likewise.
40005         * modules/human (Makefile.am): Likewise.
40006         * modules/idcache (Makefile.am): Likewise.
40007         * modules/imaxabs (Makefile.am): Likewise.
40008         * modules/imaxdiv (Makefile.am): Likewise.
40009         * modules/inet_ntop (Makefile.am): Likewise.
40010         * modules/inet_pton (Makefile.am): Likewise.
40011         * modules/intprops (Makefile.am): Likewise.
40012         * modules/inttostr (Makefile.am): Likewise.
40013         * modules/inttypes (Makefile.am): Likewise.
40014         * modules/isapipe (Makefile.am): Likewise.
40015         * modules/javaversion (Makefile.am): Likewise.
40016         * modules/lchmod (Makefile.am): Likewise.
40017         * modules/lchown (Makefile.am): Likewise.
40018         * modules/localcharset (Makefile.am): Likewise.
40019         * modules/long-options (Makefile.am): Likewise.
40020         * modules/lstat (Makefile.am): Likewise.
40021         * modules/malloc (Makefile.am): Likewise.
40022         * modules/mathl (Makefile.am): Likewise.
40023         * modules/mbchar (Makefile.am): Likewise.
40024         * modules/md2 (Makefile.am): Likewise.
40025         * modules/md4 (Makefile.am): Likewise.
40026         * modules/md5 (Makefile.am): Likewise.
40027         * modules/memcasecmp (Makefile.am): Likewise.
40028         * modules/memchr (Makefile.am): Likewise.
40029         * modules/memcmp (Makefile.am): Likewise.
40030         * modules/memcoll (Makefile.am): Likewise.
40031         * modules/memcpy (Makefile.am): Likewise.
40032         * modules/memmem (Makefile.am): Likewise.
40033         * modules/memmove (Makefile.am): Likewise.
40034         * modules/mempcpy (Makefile.am): Likewise.
40035         * modules/memrchr (Makefile.am): Likewise.
40036         * modules/memset (Makefile.am): Likewise.
40037         * modules/memxor (Makefile.am): Likewise.
40038         * modules/mkancesdirs (Makefile.am): Likewise.
40039         * modules/mkdir-p (Makefile.am): Likewise.
40040         * modules/mkdir (Makefile.am): Likewise.
40041         * modules/mkdtemp (Makefile.am): Likewise.
40042         * modules/mkstemp (Makefile.am): Likewise.
40043         * modules/mktime (Makefile.am): Likewise.
40044         * modules/modechange (Makefile.am): Likewise.
40045         * modules/mountlist (Makefile.am): Likewise.
40046         * modules/nanosleep (Makefile.am): Likewise.
40047         * modules/obstack (Makefile.am): Likewise.
40048         * modules/openat (Makefile.am): Likewise.
40049         * modules/pagealign_alloc (Makefile.am): Likewise.
40050         * modules/pathmax (Makefile.am): Likewise.
40051         * modules/physmem (Makefile.am): Likewise.
40052         * modules/poll (Makefile.am): Likewise.
40053         * modules/posixtm (Makefile.am): Likewise.
40054         * modules/posixver (Makefile.am): Likewise.
40055         * modules/putenv (Makefile.am): Likewise.
40056         * modules/quote (Makefile.am): Likewise.
40057         * modules/quotearg (Makefile.am): Likewise.
40058         * modules/raise (Makefile.am): Likewise.
40059         * modules/read-file (Makefile.am): Likewise.
40060         * modules/readline (Makefile.am): Likewise.
40061         * modules/readlink (Makefile.am): Likewise.
40062         * modules/readtokens (Makefile.am): Likewise.
40063         * modules/readutmp (Makefile.am): Likewise.
40064         * modules/realloc (Makefile.am): Likewise.
40065         * modules/regex (Makefile.am): Likewise.
40066         * modules/rename-dest-slash (Makefile.am): Likewise.
40067         * modules/rename (Makefile.am): Likewise.
40068         * modules/rijndael (Makefile.am): Likewise.
40069         * modules/rmdir (Makefile.am): Likewise.
40070         * modules/rpmatch (Makefile.am): Likewise.
40071         * modules/safe-read (Makefile.am): Likewise.
40072         * modules/safe-write (Makefile.am): Likewise.
40073         * modules/same-inode (Makefile.am): Likewise.
40074         * modules/same (Makefile.am): Likewise.
40075         * modules/save-cwd (Makefile.am): Likewise.
40076         * modules/savedir (Makefile.am): Likewise.
40077         * modules/setenv (Makefile.am): Likewise.
40078         * modules/settime (Makefile.am): Likewise.
40079         * modules/sha1 (Makefile.am): Likewise.
40080         * modules/sig2str (Makefile.am): Likewise.
40081         * modules/snprintf (Makefile.am): Likewise.
40082         * modules/stat-macros (Makefile.am): Likewise.
40083         * modules/stat-time (Makefile.am): Likewise.
40084         * modules/stdbool (Makefile.am): Likewise.
40085         * modules/stdint (Makefile.am): Likewise.
40086         * modules/stdlib-safer (Makefile.am): Likewise.
40087         * modules/stpcpy (Makefile.am): Likewise.
40088         * modules/stpncpy (Makefile.am): Likewise.
40089         * modules/strcase (Makefile.am): Likewise.
40090         * modules/strcasestr (Makefile.am): Likewise.
40091         * modules/strchrnul (Makefile.am): Likewise.
40092         * modules/strcspn (Makefile.am): Likewise.
40093         * modules/strdup (Makefile.am): Likewise.
40094         * modules/strerror (Makefile.am): Likewise.
40095         * modules/strftime (Makefile.am): Likewise.
40096         * modules/strndup (Makefile.am): Likewise.
40097         * modules/strnlen (Makefile.am): Likewise.
40098         * modules/strpbrk (Makefile.am): Likewise.
40099         * modules/strsep (Makefile.am): Likewise.
40100         * modules/strstr (Makefile.am): Likewise.
40101         * modules/strtod (Makefile.am): Likewise.
40102         * modules/strtoimax (Makefile.am): Likewise.
40103         * modules/strtok_r (Makefile.am): Likewise.
40104         * modules/strtol (Makefile.am): Likewise.
40105         * modules/strtoll (Makefile.am): Likewise.
40106         * modules/strtoul (Makefile.am): Likewise.
40107         * modules/strtoull (Makefile.am): Likewise.
40108         * modules/strtoumax (Makefile.am): Likewise.
40109         * modules/strverscmp (Makefile.am): Likewise.
40110         * modules/sys_socket (Makefile.am): Likewise.
40111         * modules/sys_stat (Makefile.am): Likewise.
40112         * modules/sysexits (Makefile.am): Likewise.
40113         * modules/time_r (Makefile.am): Likewise.
40114         * modules/timegm (Makefile.am): Likewise.
40115         * modules/timespec (Makefile.am): Likewise.
40116         * modules/tmpfile-safer (Makefile.am): Likewise.
40117         * modules/trim (Makefile.am): Likewise.
40118         * modules/unistd-safer (Makefile.am): Likewise.
40119         * modules/unlinkdir (Makefile.am): Likewise.
40120         * modules/unlocked-io (Makefile.am): Likewise.
40121         * modules/userspec (Makefile.am): Likewise.
40122         * modules/utime (Makefile.am): Likewise.
40123         * modules/utimecmp (Makefile.am): Likewise.
40124         * modules/utimens (Makefile.am): Likewise.
40125         * modules/vasnprintf (Makefile.am): Likewise.
40126         * modules/vasprintf (Makefile.am): Likewise.
40127         * modules/vsnprintf (Makefile.am): Likewise.
40128         * modules/xalloc (Makefile.am): Likewise.
40129         * modules/xgetcwd (Makefile.am): Likewise.
40130         * modules/xnanosleep (Makefile.am): Likewise.
40131         * modules/xreadlink (Makefile.am): Likewise.
40132         * modules/xstrtod (Makefile.am): Likewise.
40133         * modules/xstrtol (Makefile.am): Likewise.
40134         * modules/xstrtold (Makefile.am): Likewise.
40135         * modules/yesno (Makefile.am): Likewise.
40136         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40137
40138 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40139
40140         * modules/error (Makefile.am): Distribute files through
40141         EXTRA_DIST, not lib_SOURCES.
40142
40143 2006-10-12  Eric Blake  <ebb9@byu.net>
40144
40145         * modules/error (Makefile.am): Distribute files in /lib.
40146         * modules/obstack (Makefile.am): Likewise.
40147
40148 2006-10-12  Bruno Haible  <bruno@clisp.org>
40149
40150         * modules/acl (Makefile.am): Distribute all files in lib/ through
40151         EXTRA_DIST.
40152         * modules/arcfour (Makefile.am): Likewise.
40153         * modules/arctwo (Makefile.am): Likewise.
40154         * modules/argmatch (Makefile.am): Likewise.
40155         * modules/argz (Makefile.am): Likewise.
40156         * modules/atexit (Makefile.am): Likewise.
40157         * modules/backupfile (Makefile.am): Likewise.
40158         * modules/c-strtod (Makefile.am): Likewise.
40159         * modules/c-strtold (Makefile.am): Likewise.
40160         * modules/calloc (Makefile.am): Likewise.
40161         * modules/canon-host (Makefile.am): Likewise.
40162         * modules/canonicalize (Makefile.am): Likewise.
40163         * modules/chdir-long (Makefile.am): Likewise.
40164         * modules/chdir-safer (Makefile.am): Likewise.
40165         * modules/check-version (Makefile.am): Likewise.
40166         * modules/chown (Makefile.am): Likewise.
40167         * modules/cloexec (Makefile.am): Likewise.
40168         * modules/close-stream (Makefile.am): Likewise.
40169         * modules/closeout (Makefile.am): Likewise.
40170         * modules/crc (Makefile.am): Likewise.
40171         * modules/cycle-check (Makefile.am): Likewise.
40172         * modules/des (Makefile.am): Likewise.
40173         * modules/dirfd (Makefile.am): Likewise.
40174         * modules/dirname (Makefile.am): Likewise.
40175         * modules/dup2 (Makefile.am): Likewise.
40176         * modules/euidaccess (Makefile.am): Likewise.
40177         * modules/exclude (Makefile.am): Likewise.
40178         * modules/exitfail (Makefile.am): Likewise.
40179         * modules/fcntl-safer (Makefile.am): Likewise.
40180         * modules/file-type (Makefile.am): Likewise.
40181         * modules/fileblocks (Makefile.am): Likewise.
40182         * modules/filemode (Makefile.am): Likewise.
40183         * modules/filenamecat (Makefile.am): Likewise.
40184         * modules/fnmatch (Makefile.am): Likewise.
40185         * modules/fopen-safer (Makefile.am): Likewise.
40186         * modules/fpending (Makefile.am): Likewise.
40187         * modules/fprintftime (Makefile.am): Likewise.
40188         * modules/free (Makefile.am): Likewise.
40189         * modules/fsusage (Makefile.am): Likewise.
40190         * modules/ftruncate (Makefile.am): Likewise.
40191         * modules/fts (Makefile.am): Likewise.
40192         * modules/gc (Makefile.am): Likewise.
40193         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40194         * modules/getaddrinfo (Makefile.am): Likewise.
40195         * modules/getcwd (Makefile.am): Likewise.
40196         * modules/getdelim (Makefile.am): Likewise.
40197         * modules/getdomainname (Makefile.am): Likewise.
40198         * modules/getgroups (Makefile.am): Likewise.
40199         * modules/gethostname (Makefile.am): Likewise.
40200         * modules/gethrxtime (Makefile.am): Likewise.
40201         * modules/getline (Makefile.am): Likewise.
40202         * modules/getloadavg (Makefile.am): Likewise.
40203         * modules/getlogin_r (Makefile.am): Likewise.
40204         * modules/getopt (Makefile.am): Likewise.
40205         * modules/getpass (Makefile.am): Likewise.
40206         * modules/getpass-gnu (Makefile.am): Likewise.
40207         * modules/getsubopt (Makefile.am): Likewise.
40208         * modules/gettime (Makefile.am): Likewise.
40209         * modules/gettimeofday (Makefile.am): Likewise.
40210         * modules/getugroups (Makefile.am): Likewise.
40211         * modules/getusershell (Makefile.am): Likewise.
40212         * modules/glob (Makefile.am): Likewise.
40213         * modules/group-member (Makefile.am): Likewise.
40214         * modules/hard-locale (Makefile.am): Likewise.
40215         * modules/hash (Makefile.am): Likewise.
40216         * modules/hmac-md5 (Makefile.am): Likewise.
40217         * modules/hmac-sha1 (Makefile.am): Likewise.
40218         * modules/human (Makefile.am): Likewise.
40219         * modules/idcache (Makefile.am): Likewise.
40220         * modules/imaxabs (Makefile.am): Likewise.
40221         * modules/imaxdiv (Makefile.am): Likewise.
40222         * modules/inet_ntop (Makefile.am): Likewise.
40223         * modules/inet_pton (Makefile.am): Likewise.
40224         * modules/inttostr (Makefile.am): Likewise.
40225         * modules/isapipe (Makefile.am): Likewise.
40226         * modules/lchown (Makefile.am): Likewise.
40227         * modules/long-options (Makefile.am): Likewise.
40228         * modules/lstat (Makefile.am): Likewise.
40229         * modules/malloc (Makefile.am): Likewise.
40230         * modules/mathl (Makefile.am): Likewise.
40231         * modules/mbchar (Makefile.am): Likewise.
40232         * modules/md2 (Makefile.am): Likewise.
40233         * modules/md4 (Makefile.am): Likewise.
40234         * modules/md5 (Makefile.am): Likewise.
40235         * modules/memcasecmp (Makefile.am): Likewise.
40236         * modules/memchr (Makefile.am): Likewise.
40237         * modules/memcmp (Makefile.am): Likewise.
40238         * modules/memcoll (Makefile.am): Likewise.
40239         * modules/memcpy (Makefile.am): Likewise.
40240         * modules/memmem (Makefile.am): Likewise.
40241         * modules/memmove (Makefile.am): Likewise.
40242         * modules/mempcpy (Makefile.am): Likewise.
40243         * modules/memrchr (Makefile.am): Likewise.
40244         * modules/memset (Makefile.am): Likewise.
40245         * modules/memxor (Makefile.am): Likewise.
40246         * modules/mkancesdirs (Makefile.am): Likewise.
40247         * modules/mkdir (Makefile.am): Likewise.
40248         * modules/mkdir-p (Makefile.am): Likewise.
40249         * modules/mkdtemp (Makefile.am): Likewise.
40250         * modules/mkstemp (Makefile.am): Likewise.
40251         * modules/mktime (Makefile.am): Likewise.
40252         * modules/modechange (Makefile.am): Likewise.
40253         * modules/mountlist (Makefile.am): Likewise.
40254         * modules/nanosleep (Makefile.am): Likewise.
40255         * modules/openat (Makefile.am): Likewise.
40256         * modules/pagealign_alloc (Makefile.am): Likewise.
40257         * modules/physmem (Makefile.am): Likewise.
40258         * modules/poll (Makefile.am): Likewise.
40259         * modules/posixtm (Makefile.am): Likewise.
40260         * modules/posixver (Makefile.am): Likewise.
40261         * modules/putenv (Makefile.am): Likewise.
40262         * modules/quote (Makefile.am): Likewise.
40263         * modules/quotearg (Makefile.am): Likewise.
40264         * modules/raise (Makefile.am): Likewise.
40265         * modules/read-file (Makefile.am): Likewise.
40266         * modules/readline (Makefile.am): Likewise.
40267         * modules/readlink (Makefile.am): Likewise.
40268         * modules/readtokens (Makefile.am): Likewise.
40269         * modules/readutmp (Makefile.am): Likewise.
40270         * modules/realloc (Makefile.am): Likewise.
40271         * modules/regex (Makefile.am): Likewise.
40272         * modules/rename (Makefile.am): Likewise.
40273         * modules/rename-dest-slash (Makefile.am): Likewise.
40274         * modules/rijndael (Makefile.am): Likewise.
40275         * modules/rmdir (Makefile.am): Likewise.
40276         * modules/rpmatch (Makefile.am): Likewise.
40277         * modules/safe-read (Makefile.am): Likewise.
40278         * modules/safe-write (Makefile.am): Likewise.
40279         * modules/same (Makefile.am): Likewise.
40280         * modules/save-cwd (Makefile.am): Likewise.
40281         * modules/savedir (Makefile.am): Likewise.
40282         * modules/setenv (Makefile.am): Likewise.
40283         * modules/settime (Makefile.am): Likewise.
40284         * modules/sha1 (Makefile.am): Likewise.
40285         * modules/sig2str (Makefile.am): Likewise.
40286         * modules/snprintf (Makefile.am): Likewise.
40287         * modules/stdlib-safer (Makefile.am): Likewise.
40288         * modules/stpcpy (Makefile.am): Likewise.
40289         * modules/stpncpy (Makefile.am): Likewise.
40290         * modules/strcase (Makefile.am): Likewise.
40291         * modules/strcasestr (Makefile.am): Likewise.
40292         * modules/strchrnul (Makefile.am): Likewise.
40293         * modules/strcspn (Makefile.am): Likewise.
40294         * modules/strdup (Makefile.am): Likewise.
40295         * modules/strerror (Makefile.am): Likewise.
40296         * modules/strftime (Makefile.am): Likewise.
40297         * modules/strndup (Makefile.am): Likewise.
40298         * modules/strnlen (Makefile.am): Likewise.
40299         * modules/strpbrk (Makefile.am): Likewise.
40300         * modules/strsep (Makefile.am): Likewise.
40301         * modules/strstr (Makefile.am): Likewise.
40302         * modules/strtod (Makefile.am): Likewise.
40303         * modules/strtoimax (Makefile.am): Likewise.
40304         * modules/strtok_r (Makefile.am): Likewise.
40305         * modules/strtol (Makefile.am): Likewise.
40306         * modules/strtoll (Makefile.am): Likewise.
40307         * modules/strtoul (Makefile.am): Likewise.
40308         * modules/strtoull (Makefile.am): Likewise.
40309         * modules/strtoumax (Makefile.am): Likewise.
40310         * modules/strverscmp (Makefile.am): Likewise.
40311         * modules/time_r (Makefile.am): Likewise.
40312         * modules/timegm (Makefile.am): Likewise.
40313         * modules/tmpfile-safer (Makefile.am): Likewise.
40314         * modules/unistd-safer (Makefile.am): Likewise.
40315         * modules/unlinkdir (Makefile.am): Likewise.
40316         * modules/userspec (Makefile.am): Likewise.
40317         * modules/utime (Makefile.am): Likewise.
40318         * modules/utimecmp (Makefile.am): Likewise.
40319         * modules/utimens (Makefile.am): Likewise.
40320         * modules/vasnprintf (Makefile.am): Likewise.
40321         * modules/vasprintf (Makefile.am): Likewise.
40322         * modules/vsnprintf (Makefile.am): Likewise.
40323         * modules/xalloc (Makefile.am): Likewise.
40324         * modules/xgetcwd (Makefile.am): Likewise.
40325         * modules/xnanosleep (Makefile.am): Likewise.
40326         * modules/xreadlink (Makefile.am): Likewise.
40327         * modules/xstrtod (Makefile.am): Likewise.
40328         * modules/xstrtol (Makefile.am): Likewise.
40329         * modules/xstrtold (Makefile.am): Likewise.
40330         * modules/yesno (Makefile.am): Likewise.
40331
40332 2006-10-12  Jim Meyering  <jim@meyering.net>
40333
40334         * m4/getloadavg.m4: Revert the change below.
40335
40336         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
40337         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
40338         fail with a symlink, which is what coreutils' ./bootstrap now
40339         creates by default.
40340
40341 2006-10-12  Bruno Haible  <bruno@clisp.org>
40342
40343         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
40344         mingw.
40345         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
40346         MSVC and mingw explicitly.
40347
40348 2006-10-11  Simon Josefsson  <jas@extundo.com>
40349             Bruno Haible  <bruno@clisp.org>
40350
40351         Add support for multiple gnulib-tool invocations in the scope of a
40352         single configure.ac file.
40353         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
40354         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
40355         with the same contents as the _LIBADD variable.
40356         (func_emit_initmacro_start, func_emit_initmacro_end,
40357         func_emit_initmacro_done): New functions.
40358         (func_import, func_create_testdir): Invoke them. Allow the identifiers
40359         gl_LIBOBJS and gl_LTLIBOBJS.
40360
40361 2006-10-11  Bruno Haible  <bruno@clisp.org>
40362
40363         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
40364         (func_create_testdir): Don't create po/Makefile.am, don't invoke
40365         autoreconf. Instead, invoke autopoint explicitly but move back the
40366         *.m4 files from gnulib.
40367
40368 2006-10-11  Bruno Haible  <bruno@clisp.org>
40369
40370         * gnulib-tool (func_usage): Make module names after --create-testdir
40371         optional.
40372         (func_create_testdir): If no module was specified, use nearly all
40373         modules.
40374
40375 2006-10-12  Jim Meyering  <jim@meyering.net>
40376
40377         Big performance improvement for fts-based tools that use FTS_NOSTAT.
40378         Avoid spurious inode-mismatch problems on non-POSIX file systems.
40379         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
40380         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
40381         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
40382         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
40383         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
40384         (fts_set_stat_required): New function.
40385         (fts_open): Defer the calls to fts_stat, if possible or requested.
40386         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
40387         into fts_stat itself.
40388         (fts_read): Perform any required (deferred) fts_stat call.
40389         (fts_build): Likewise, for the directory we're about to open and read.
40390         In the readdir loop, carefully decide whether each entry will require
40391         an eventual call to fts_stat, using dirent.d_type info if available.
40392         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
40393         a command line argument into this function.  Update all callers.
40394         Map a return value of FTS_DOT to FTS_D for a command line argument.
40395         * modules/fts (Depends-on): Add d-type.  Alphabetize.
40396         Thanks to Miklos Szeredi for his tenacity and for the initial
40397         bug report about "find" failing on a FUSE-based file system.
40398
40399         * lib/fts.c (fts_open): Use consistent indentation.
40400
40401 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40402
40403         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
40404         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
40405         reported by Jim Meyering.  All uses of cache variables renamed
40406         to match Autoconf's.
40407         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
40408         the other one.
40409
40410         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40411         Fix misspelling in diagnostic.
40412
40413 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40414
40415         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
40416         defined.  Problem reported by Matthew Woehlke.
40417
40418         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
40419         Add support for Tandem NonStop R series.
40420         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
40421         Use new macro.
40422
40423         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
40424         (has_trailing_slash): Omit size arg; all callers changed.
40425         Omit 'inline', since it doesn't help performance and we'd
40426         need to configure it.
40427         Don't count //, ///, etc. as having a trailing slash.
40428         As a side effect, this removes a C99ism reported by Matthew Woehlke.
40429         (rpl_rename_dest_slash): On failure, use rename's errno rather
40430         than (in some cases) an incorrect or junk errno.
40431         Simplify code by removing need to compute length; this does
40432         cause it to make two passes instead of one over the file name,
40433         but it's worth it.
40434
40435         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
40436         change, since Autoconf's version may no longer be appropriate now
40437         that we are using CVS Autoconf's version.  Add support for Tandem.
40438
40439 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40440             Bruno Haible  <bruno@clisp.org>
40441
40442         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
40443         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
40444         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
40445         gl_AC_TYPE_LONG_LONG.
40446
40447         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
40448         instead of HAVE_LONG_LONG.
40449         * lib/printf-args.c (printf_fetchargs): Likewise.
40450         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
40451         * lib/vasnprintf.c (VASNPRINTF): Likewise.
40452         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
40453         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
40454         gl_AC_TYPE_LONG_LONG.
40455
40456 2006-10-11  Bruno Haible  <bruno@clisp.org>
40457
40458         * m4/longlong.m4: Add comments.
40459         * m4/ulonglong.m4: Likewise.
40460
40461 2006-10-10  Bruno Haible  <bruno@clisp.org>
40462
40463         Make it possible to #define stpcpy, strdup to aliases.
40464         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
40465         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
40466
40467 2006-10-10  Bruno Haible  <bruno@clisp.org>
40468
40469         Make it possible to #define gcd to an alias.
40470         * lib/gcd.c: Include config.h.
40471
40472 2006-10-10  Bruno Haible  <bruno@clisp.org>
40473
40474         Make it possible to #define c_isascii to an alias.
40475         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
40476         defined. Undefine the macros before defining them, to avoid gcc
40477         warnings.
40478         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
40479         define NO_C_CTYPE_MACROS early.
40480
40481 2006-10-10  Bruno Haible  <bruno@clisp.org>
40482
40483         Make it possible to #define set_program_name to an alias.
40484         * lib/progname.c: Don't undefine set_program_name; instead, undefine
40485         ENABLE_RELOCATABLE early.
40486
40487 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40488
40489         Port to Tandem NSK OSS, which has 64-bit signed int but at most
40490         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
40491         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
40492         More generally, don't assume that 64-bit signed int is available
40493         if unsigned int is, and vice versa.
40494         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
40495         unsigned symbols, not on their signed counterparts.
40496         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
40497         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
40498         (UINT64_C, UINTMAX_C):
40499         Likewise.
40500         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
40501         unsigned counterparts.
40502         (Have_long_long, Unsigned): New macros.
40503         (Int): Renamed from INT.
40504         (strtoimax): Use the new macros.
40505         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
40506         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
40507         * modules/inttypes (inttypes.h): Substitute
40508         HAVE_UNSIGNED_LONG_LONG_INT.
40509         * modules/stdint (stdint.h): Likewise.
40510         (Files): Add m4/ulonglong.m4.
40511
40512 2006-10-10  Bruno Haible  <bruno@clisp.org>
40513
40514         Fix a gcc -Wshadow warning.
40515         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
40516         to 'bucket'.
40517         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
40518         gl_linked_indexof_from_to): Likewise.
40519         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
40520         Likewise.
40521         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
40522         Likewise.
40523         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
40524         Reported by Eric Blake.
40525
40526 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
40527
40528         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
40529         for NetBSD.  Problem reported by Bruno Haible.
40530
40531 2006-10-09  Jim Meyering  <jim@meyering.net>
40532
40533         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
40534         Patch from Bruno Haible.
40535
40536 2006-10-09  Jim Meyering  <jim@meyering.net>
40537
40538         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
40539         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
40540         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
40541
40542 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40543
40544         Don't include <config.h> twice; this doesn't work in some cases,
40545         e.g., when config.h has "#define intmax_t long long int" and
40546         we include <config.h>, <inttypes.h>, <config.h> in that order.
40547         Problem reported by Matthew Woehlke in:
40548         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
40549         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
40550         * lib/fts-cycle.c: Don't include config.h.
40551         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
40552         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
40553         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
40554         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
40555         inttypes.h.
40556         * lib/xstrtoumax.c: Likewise.
40557         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
40558         __strtol and the like, so that this module is more like its siblings.
40559         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
40560         Remove; no longer needed now that we assume gnulib inttypes.h.
40561
40562 2006-10-08  Bruno Haible  <bruno@clisp.org>
40563
40564         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
40565         option.
40566
40567 2006-10-07  Jim Meyering  <jim@meyering.net>
40568
40569         * modules/inttypes (inttypes.h): Revert what seems to have been
40570         an inadvertent part of today's change: use "|", not "/" in the
40571         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
40572
40573 2006-10-07  Bruno Haible  <bruno@clisp.org>
40574
40575         * modules/sublist: New file.
40576
40577 2006-10-07  Bruno Haible  <bruno@clisp.org>
40578
40579         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
40580         * modules/argz (argz.h): Likewise.
40581         * modules/arpa_inet (arpa/inet.h): Likewise.
40582         * modules/byteswap (byteswap.h): Likewise.
40583         * modules/configmake (configmake.h): Likewise.
40584         * modules/fcntl (fcntl.h): Likewise.
40585         * modules/fnmatch (fnmatch.h): Likewise.
40586         * modules/getopt (getopt.h): Likewise.
40587         * modules/glob (glob.h): Likewise.
40588         * modules/inttypes (inttypes.h): Likewise.
40589         * modules/netinet_in (netinet/in.h): Likewise.
40590         * modules/poll (poll.h): Likewise.
40591         * modules/stdbool (stdbool.h): Likewise.
40592         * modules/stdint (stdint.h): Likewise.
40593         * modules/sys_select (sys/select.h): Likewise.
40594         * modules/sys_socket (sys/socket.h): Likewise.
40595         * modules/sys_stat (sys/stat.h): Likewise.
40596         * modules/sysexits (sysexits.h): Likewise.
40597         * modules/unistd (unistd.h): Likewise.
40598         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40599         Add a "DO NOT EDIT" comment to the generated file.
40600         (func_import): Likewise for gnulib-comp.m4.
40601
40602 2006-10-07  Bruno Haible  <bruno@clisp.org>
40603
40604         * lib/gl_sublist.h: New file.
40605         * lib/gl_sublist.c: New file.
40606
40607 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40608
40609         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
40610         name (relative to the original working directory) and the file
40611         name component (relative to the temporary working directory).  All
40612         callers changed.
40613         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
40614         * lib/mkdir-p.c (make_dir_parents): Likewise.
40615         * lib/mkdir-p.h (make_dir_parents): Likewise.
40616
40617 2006-10-06  Eric Blake  <ebb9@byu.net>
40618
40619         Define several macros for use by the clean-temp module.
40620         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
40621         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
40622         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
40623
40624         * lib/clean-temp.h (close_stream_temp): New declaration.
40625         * lib/clean-temp.c (includes): Pull in headers according to what
40626         other modules are in use.
40627         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
40628
40629 2006-10-06  Bruno Haible  <bruno@clisp.org>
40630
40631         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
40632         instead of fopen, fwriteerror.
40633
40634 2006-10-06  Bruno Haible  <bruno@clisp.org>
40635
40636         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
40637         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
40638         int.
40639         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
40640         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
40641         Return an error indicator.
40642         Suggested by Eric Blake.
40643
40644 2006-10-06  Bruno Haible  <bruno@clisp.org>
40645
40646         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
40647         Reported by Eric Blake.
40648
40649 2006-10-06  Bruno Haible  <bruno@clisp.org>
40650
40651         * modules/closeout (Description): Mention stderr too.
40652
40653 2006-10-06  Bruno Haible  <bruno@clisp.org>
40654         and Paul Eggert  <eggert@cs.ucla.edu>
40655
40656         * lib/closeout.c (close_stdout): Also close stderr.
40657         * lib/closeout.h: Update comment.
40658
40659 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40660
40661         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
40662         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
40663         * lib/dirchownmod.c: Include lchown.h.
40664         * lib/lchown.c: Don't include files that lchown.h now includes.
40665         Don't declare chown, since lchown.h now does that.
40666         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
40667         (lchown): Define to rpl_chown if lchown is declared but
40668         does not exist.  Declare using a prototype if lchown is not
40669         declared.  Add a copyright notice.
40670         * lib/mkstemp.h: Include <unistd.h>.
40671         * lib/openat.c: Include lchown.h.
40672
40673         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
40674         we now test for that separately.
40675         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
40676         rather than O_NOFOLLOW, when testing whether it's possible to
40677         avoid a race condition reliably.
40678         * lib/savewd.c (savewd_chdir): Likewise.
40679
40680         Remove macros that are no longer needed now that stdint.h is
40681         reliable.
40682         * lib/fsusage.c (UINTMAX_MAX): Remove.
40683         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
40684         * lib/utimecmp.c (SIZE_MAX): Remove.
40685
40686         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
40687
40688         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
40689         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
40690         O_NOATIME works.
40691
40692 2006-10-05  Bruno Haible  <bruno@clisp.org>
40693
40694         * lib/gl_list.h (gl_sortedlist_search_from_to,
40695         gl_sortedlist_indexof_from_to): New declarations.
40696         (gl_list_implementation): New fields sortedlist_search_from_to,
40697         sortedlist_indexof_from_to.
40698         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
40699         inline functions.
40700         * lib/gl_list.c (gl_sortedlist_search_from_to,
40701         gl_sortedlist_indexof_from_to): New functions.
40702         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
40703         function.
40704         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
40705         (gl_array_sortedlist_search_from_to): New function.
40706         (gl_array_list_implementation): Update.
40707         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
40708         function.
40709         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
40710         (gl_carray_sortedlist_search_from_to): New function.
40711         (gl_carray_list_implementation): Update.
40712         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
40713         gl_linked_sortedlist_indexof_from_to): New functions.
40714         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40715         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40716         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
40717         gl_tree_sortedlist_indexof_from_to): New functions.
40718         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40719         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40720         Update.
40721         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40722         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
40723         Update.
40724
40725 2006-10-05  Bruno Haible  <bruno@clisp.org>
40726
40727         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
40728         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
40729         (struct gl_list_implementation): Add fields search_from_to,
40730         indexof_from_to. Remove fields search, indexof.
40731         (gl_list_search): Use the search_from_to method.
40732         (gl_list_search_from, gl_list_search_from_to): New functions.
40733         (gl_list_indexof): Use the indexof_from_to method.
40734         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40735         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
40736         (gl_list_search_from, gl_list_search_from_to): New functions.
40737         (gl_list_indexof): Use the indexof_from_to method.
40738         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40739         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
40740         gl_array_indexof. Add start_index, end_index arguments.
40741         (gl_array_search_from_to): Renamed from gl_array_search. Add
40742         start_index, end_index arguments.
40743         (gl_array_remove, gl_array_list_implementation): Update.
40744         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
40745         gl_carray_indexof. Add start_index, end_index arguments.
40746         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
40747         start_index, end_index arguments.
40748         (gl_carray_remove, gl_carray_list_implementation): Update.
40749         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
40750         gl_linked_search. Add start_index, end_index arguments.
40751         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
40752         start_index, end_index arguments.
40753         (gl_linked_remove): Update.
40754         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40755         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40756         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
40757         field to 'size_t'.
40758         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
40759         gl_tree_search. Add start_index, end_index arguments.
40760         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40761         start_index, end_index arguments.
40762         (gl_tree_remove): Update.
40763         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40764         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40765         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
40766         function.
40767         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
40768         gl_tree_search. Add start_index, end_index arguments.
40769         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40770         start_index, end_index arguments.
40771         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40772         Update.
40773         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40774
40775 2006-10-05  Bruno Haible  <bruno@clisp.org>
40776
40777         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
40778
40779         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
40780         fwriteerror_temp): New declarations.
40781         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
40782         (descriptors): New variable.
40783         (cleanup): First, close the descriptors.
40784         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
40785         fclose_temp, fwriteerror_temp): New functions.
40786
40787 2006-10-04  Jim Meyering  <jim@meyering.net>
40788
40789         * lib/fts.c (fts_open): Tiny comment change.
40790
40791 2006-10-04  Bruno Haible  <bruno@clisp.org>
40792
40793         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
40794         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
40795         gl_LOCK_BODY.
40796         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
40797         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
40798         gl_LOCK_EARLY_BODY.
40799         (gl_LOCK): Require gl_LOCK_BODY.
40800
40801 2006-10-04  Bruno Haible  <bruno@clisp.org>
40802
40803         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
40804         (gl_oset_search_atleast): New declaration.
40805         (struct gl_oset_implementation): Add field 'search_atleast'.
40806         (gl_oset_search_atleast): New inline function.
40807         * lib/gl_oset.c (gl_oset_search_atleast): New function.
40808         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
40809         (gl_array_oset_implementation): Update.
40810         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
40811         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
40812         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
40813
40814 2006-10-04  Bruno Haible  <bruno@clisp.org>
40815
40816         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
40817
40818 2006-10-03  Bruno Haible  <bruno@clisp.org>
40819
40820         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
40821         from gl_avltreehash_list_implementation.
40822
40823 2006-10-03  Bruno Haible  <bruno@clisp.org>
40824
40825         * lib/gl_oset.c (gl_oset_add): Fix return type.
40826
40827 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
40828
40829         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
40830
40831 2006-10-02  Eric Blake  <ebb9@byu.net>
40832
40833         * modules/strnlen (Depends-on): Add extensions.
40834
40835 2006-10-02  Eric Blake  <ebb9@byu.net>
40836
40837         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
40838         definition in 2.60+.
40839
40840 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
40841
40842         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
40843         checks.
40844
40845 2006-10-02  Bruno Haible  <bruno@clisp.org>
40846
40847         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
40848         to the AUTOMAKE_OPTIONS.
40849         Reported by Jim Meyering.
40850
40851 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
40852
40853         Work around bug in Solaris 10 /proc file system:
40854         /proc/self/fd/NNN/.. isn't the parent directory of
40855         the directory whose file descriptor is NNN.  This needs to
40856         be worked around at run time, not compile time, since a
40857         program might be built on Solaris 8, where things work, and
40858         run on Solaris 10.
40859         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
40860         to use the following interface instead:
40861         (OPENAT_BUFFER_SIZE): New macro.
40862         (openat_proc_name): New function.
40863         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
40864         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
40865         Likewise.
40866         * lib/openat-proc.c: New file.
40867         * modules/openat (Files): Add lib/openat-proc.c.
40868         (Depends-on): Add same-inode, stdbool.
40869         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
40870
40871 2006-09-29  Bruno Haible  <bruno@clisp.org>
40872
40873         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
40874         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
40875         argument. Set stdout_closed before testing for ferror, not after.
40876         (fwriteerror, fwriteerror_no_ebadf): New functions.
40877
40878 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40879
40880         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
40881
40882 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
40883
40884         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
40885         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
40886
40887 2006-09-28  Jim Meyering  <jim@meyering.net>
40888
40889         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
40890         Include <unistd.h>.
40891
40892 2006-09-28  Bruno Haible  <bruno@clisp.org>
40893
40894         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
40895         * modules/linkedhash-list (Depends-on): Likewise.
40896         * modules/rbtreehash-list (Depends-on): Likewise.
40897
40898 2006-09-28  Bruno Haible  <bruno@clisp.org>
40899
40900         * lib/strndup.h: Simplify the redefinition of strndup.
40901         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
40902         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
40903
40904 2006-09-28  Bruno Haible  <bruno@clisp.org>
40905
40906         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
40907         * lib/gl_linkedhash_list.c: Likewise.
40908         * lib/gl_rbtreehash_list.c: Likewise.
40909
40910 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
40911
40912         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
40913         getaddrinfo.
40914
40915         * lib/__fpending.h: Don't include <stdio_ext.h> unless
40916         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
40917         it causes <stdio_ext.h> to cause a compile-time error.
40918         Problem reported by Nelson H. F. Beebe.
40919         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
40920         of HAVE_DECL___PENDING.
40921
40922         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
40923         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
40924         declaration.
40925
40926 2006-09-27  Jim Meyering  <jim@meyering.net>
40927
40928         This file could end up with a definition for a function
40929         named __strndup, rather than rpl_strndup on a system with
40930         incomplete weak_alias support.
40931         * lib/strndup.c (strndup): Rename from __strndup.
40932         Remove #defines that used to map __strndup to strndup.
40933         Don't use K&R prototypes.
40934         Remove LIBC-related code, since this file is not sync'd with glibc.
40935         * lib/strndup.h: Revamp, accordingly.
40936         * m4/strndup.m4: Modernize.
40937
40938 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
40939
40940         * modules/savewd (Depends-on): Add 'raise'.
40941         * lib/savewd.c: Include <signal.h>, for 'raise'.
40942
40943 2006-09-26  Jim Meyering  <jim@meyering.net>
40944
40945         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
40946         when we detect Darwin 8.7.0's acl_get_file bug.
40947         Rearrange to perform the new (below) run-test while $LIBS
40948         contains any acl-related library.  Set USE_ACL at the end.
40949         (gl_ACL_GET_FILE): New function.
40950
40951 2006-09-26  Eric Blake  <ebb9@byu.net>
40952
40953         * lib/verror.c: Include <config.h> unconditionally.
40954
40955 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
40956
40957         * modules/clock-time (Maintainer): Add self.
40958         * modules/getlogin_r (Depends-on): Add extensions.
40959
40960 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40961
40962         * modules/clock-time: New module.
40963         * modules/nanosleep (Depends-on): Add clock-time.
40964         * modules/gethrxtime (Depends-on): Likewise.
40965         * modules/gettime (Depends-on): Likewise.
40966         * modules/settime (Depends-on): Likewise.
40967
40968         * modules/fts-lgpl: Depend on openat.
40969         * modules/mkancesdirs: Depend on savewd.
40970         * modules/mkdir-p: Likewise.
40971
40972 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40973
40974         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
40975
40976         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
40977         `gl_have_arbitrary_file_name_length_limit' to
40978         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
40979         actually works between configure runs.
40980
40981 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40982             Bruno Haible  <bruno@clisp.org>
40983
40984         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
40985
40986 2006-09-25  Jim Meyering  <jim@meyering.net>
40987
40988         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
40989         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
40990
40991 2006-09-25  Eric Blake  <ebb9@byu.net>
40992
40993         * gnulib-tool (func_import, func_create_testdir): Fix typos in
40994         exec's in 2006-09-18 patch when shuffling fds.
40995
40996 2006-09-25  Bruno Haible  <bruno@clisp.org>
40997
40998         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
40999         Reported by Jim Meyering.
41000
41001 2006-09-24  Jim Meyering  <jim@meyering.net>
41002
41003         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41004         compare a pointer against a literal "0".  That caused failures with
41005         at least HP-UX's hpcc.
41006
41007 2006-09-22  Simon Josefsson  <jas@extundo.com>
41008
41009         * modules/gc-sha1:
41010         * modules/gc-md4:
41011         * modules/gc-hmac-sha1:
41012         * modules/gc-hmac-md5:
41013         * modules/gc-des:
41014         * modules/gc-arcfour: Distribute more files.
41015
41016 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41017
41018         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41019         (gl_linked_iterator_from_to): Initialize struct completely.
41020         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41021         (gl_tree_iterator_from_to): Likewise
41022         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41023         * lib/gl_array_list.c [lint] (gl_array_iterator)
41024         (gl_array_iterator_from_to): Likewise.
41025         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41026         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41027         (gl_carray_iterator_from_to): Likewise.
41028
41029         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41030         * lib/md4.c (md4_process_block): Remove unused variable.
41031         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41032         parentheses for clarity.
41033
41034 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41035
41036         * modules/bison-i18n (Depends-on): Add gettext.
41037
41038 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41039
41040         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41041         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41042         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41043         also add missing comma that caused broken test.
41044         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41045         stdlib.h, for `abort'.
41046         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41047         variables.
41048         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41049         include unistd.h if present, for `rmdir'.
41050         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41051         variables.
41052         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41053         in the process include standard headers for prototypes.
41054         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41055         gets declared on GNU/Linux.
41056         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41057         unistd.h, for `rmdir'.
41058         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41059
41060         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41061         always true.
41062         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41063
41064         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41065
41066 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41067
41068         * gnulib-tool (func_version): Create output all at once.  This
41069         may help avoid triggering unnecessary SIGPIPEs, and at any
41070         rate it doesn't hurt.
41071
41072 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41073             Bruno Haible  <bruno@clisp.org>
41074
41075         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41076         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41077         * m4/signed.m4 (bh_C_SIGNED): Likewise.
41078
41079         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41080         (gl_FUNC_VASPRINTF): Invoke it.
41081
41082 2006-09-22  Bruno Haible  <bruno@clisp.org>
41083
41084         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41085         getloadavg.c as first argument.
41086
41087 2006-09-22  Bruno Haible  <bruno@clisp.org>
41088
41089         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41090         at the beginning of the gl_INIT macro.
41091         * modules/getloadavg (configure.ac): Pass $gl_source_base to
41092         gl_GETLOADAVG.
41093
41094 2006-09-22  Bruno Haible  <bruno@clisp.org>
41095
41096         * gnulib-tool (func_create_megatestdir): Don't include the config-h
41097         module.
41098         Suggested by Ralf Wildenhues.
41099
41100 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
41101
41102         Import this patch from libc:
41103
41104         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
41105
41106         * lib/regex_internal.c (re_string_reconstruct): Handle
41107         offset < pstr->valid_raw_len && pstr->offsets_needed case.
41108         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
41109         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41110         re_string_context_at.
41111
41112         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41113         now requires it.
41114         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41115         gl_REGEX now does it for us.
41116         (gl_REGEX): Add test taken from
41117         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41118
41119         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41120         Check that large offsets work.  Modernize Autoconf usages.
41121         Prefer "yes" to mean a good thing rather than a bad.
41122         Don't put "#define mkstemp" in config.h, as this might interfere
41123         with standard system headers that "#define mkstemp mkstemp64".
41124
41125         * modules/mkstemp (Depends-on): Add extensions, so that
41126         mkstemp is visible on some platforms.
41127         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41128         (Include): Change to "mkstemp.h" from <stdlib.h>.
41129         (Files): Add mkstemp.h.
41130
41131         * lib/mkstemp.h: New file, since some standard headers
41132         #define mkstemp.
41133         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41134         Include "mkstemp.h".
41135         Make the _LIBC code resemble glibc original more,
41136         e.g., use K&R style.
41137         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41138         (mkstemp): Remove, since mkstemp.h does this for us.
41139         * lib/stdlib--.h: Include mkstemp.h.
41140
41141         Import this patch from libc:
41142
41143         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41144
41145         * lib/tempname.c (__gen_tempname): Change attempts_min
41146         into a macro.  Use preprocessor to decide how to initialize
41147         attempts [Coverity CID 67].
41148
41149 2006-09-20  Bruno Haible  <bruno@clisp.org>
41150
41151         * lib/mkdtemp.c: Import from libc.
41152         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41153                 * sysdeps/posix/tempname.c (__gen_tempname): Change
41154                 attempts_min into a macro.  Use preprocessor to decide how to
41155                 initialize attempts [Coverity CID 67].
41156         2001-11-27  Paul Eggert  <eggert@twinsun.com>
41157                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41158                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41159
41160 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41161
41162         * gnulib-tool (func_exit): New function, to allow to pass the
41163         exit status portably through the trap.  Use everywhere.
41164         (--help, --version): Signal a write error.
41165         (trap): catch SIGPIPE, for write errors.
41166         Exit at the end of the trap, with the correct exit status.
41167
41168 2006-09-19  Karl Berry  <karl@gnu.org>
41169
41170         * doc/gnulib.texi: note about the license texinfo files.
41171
41172 2006-09-19  Eric Blake  <ebb9@byu.net>
41173
41174         * gnulib-tool: Avoid space-tab.
41175
41176 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41177
41178         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41179         that prevented coreutils 6.1 from building.  Problem reported
41180         by Petter Reinholdtsen.
41181
41182 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41183
41184         * gnulib-tool (avoidlist): Fix typo that broke options like
41185         --avoid=lock that are used by coreutils bootstrap.
41186
41187 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
41188
41189         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41190         more systematically.
41191
41192 2006-09-18  Jim Meyering  <jim@meyering.net>
41193
41194         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41195
41196 2006-09-18  Bruno Haible  <bruno@clisp.org>
41197
41198         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41199
41200 2006-09-18  Bruno Haible  <bruno@clisp.org>
41201
41202         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41203         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41204         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41205         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41206         * m4/gettext.m4: Require autoconf >= 2.52.
41207         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41208         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41209         of gl_cv_header_inttypes_h.
41210
41211 2006-09-18  Bruno Haible  <bruno@clisp.org>
41212
41213         * lib/javaversion.c: Include configmake.h.
41214
41215 2006-09-18  Bruno Haible  <bruno@clisp.org>
41216
41217         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41218         avoid that the while loops be executed in a subshell.
41219
41220 2006-09-18  Bruno Haible  <bruno@clisp.org>
41221
41222         * MODULES.html.sh (func_module): Break long lines.
41223         Suggested by Bruce Korb <bkorb@gnu.org>.
41224
41225 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41226
41227         Speed up by a factor of 1.12.
41228         * gnulib-tool (nl): New variable.
41229         (func_import): Rewrite include directive extraction to only read each
41230         directive once.
41231
41232 2006-09-17  Bruno Haible  <bruno@clisp.org>
41233
41234         * modules/javaversion (Makefile.am): Remove DEFS setting.
41235         (Depends-on): Add configmake, for PKGDATADIR definition.
41236
41237 2006-09-17  Bruno Haible  <bruno@clisp.org>
41238
41239         * gnulib-tool (func_create_testdir): Rewrite all files at once.
41240
41241 2006-09-17  Bruno Haible  <bruno@clisp.org>
41242
41243         * gnulib-tool (func_append): New function, stolen from libtool.m4.
41244         (func_modules_transitive_closure, func_modules_add_dummy,
41245         func_modules_to_filelist, func_import, func_create_testdir,
41246         func_create_megatestdir, ...): Use it wherever possible.
41247         Suggested by Ralf Wildenhues.
41248
41249 2006-09-16  Karl Berry  <karl@gnu.org>
41250
41251         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41252         to avoid sectioning errors.
41253         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41254         [ifinfo]: blank line after @center-ed titles.
41255         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41256         Spell FSF address consistently with others.
41257         (These changes approved by rms.)
41258
41259 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41260
41261         Speed up by a factor of 1.61.
41262         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41263         already checked module names again.
41264
41265 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41266
41267         Speed up by a factor of 1.13.
41268         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41269         for new_files, and the input to func_add_or_update.
41270
41271 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41272
41273         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41274         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41275
41276 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41277
41278         * modules/mkancesdirs (Depends-on): Add fcntl.
41279         * modules/savewd: New file.
41280         * MODULES.html.sh (File system functions): Add savewd.
41281
41282         * modules/configmake (Makefile.am): Add support for the
41283         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41284
41285 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41286
41287         * m4/savewd.m4: New file.
41288
41289 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41290
41291         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
41292         (dirchownmod): New arg FD.  All callers changed.
41293         Use FD rather than opening the directory ourself, as opening is
41294         now the caller's responsibility.
41295         * lib/dirchownmod.h: Likewise.
41296         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
41297         hosts that require <sys/types.h> before <sys/stat.h>.  Include
41298         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
41299         (test_dir): Remove.
41300         (mkancesdirs): Return length of prefix of FILE that has already
41301         been made, or -2 if there is a child doing the work.  Redo
41302         algorithm so that it is O(N) rather than O(N**2).  Optimize away
41303         ".", and treat ".." specially since it might stray back into
41304         already-created areas.  Use a subprocess if necessary.  New arg
41305         WD; all users changed.  MAKE_DIR function should now return 1
41306         if it creates a directory that is not readable.  Return -2 if
41307         a child process is spun off.
41308         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
41309         Adjust signature to match code.
41310         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
41311         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
41312         all users changed.
41313         * lib/savewd.c, lib/savewd.h: New files.
41314
41315 2006-09-15  Jim Meyering  <jim@meyering.net>
41316
41317         * modules/rename-dest-slash: New module.
41318         * MODULES.html.sh (posix_compat): Add it here.
41319
41320         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
41321
41322 2006-09-15  Jim Meyering  <jim@meyering.net>
41323
41324         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
41325         file.
41326
41327         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
41328
41329 2006-09-15  Jim Meyering  <jim@meyering.net>
41330
41331         * lib/rename-dest-slash.c (has_trailing_slash): Use
41332         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
41333         (rpl_rename_dest_slash): Perform the cheaper trailing slash
41334         test before testing whether SRC is a directory.
41335         Suggestions from Bruno Haible.
41336
41337         Avoid a warning about an unused variable.
41338         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
41339         into the #ifdef block where it's used.
41340
41341         * lib/rename-dest-slash.c: New file.
41342
41343 2006-09-14  Bruno Haible  <bruno@clisp.org>
41344
41345         * lib/allocsa.c: Include <config.h> unconditionally.
41346         * lib/asnprintf.c: Likewise.
41347         * lib/asprintf.c: Likewise.
41348         * lib/c-strcasecmp.c: Likewise.
41349         * lib/c-strcasestr.c: Likewise.
41350         * lib/c-strncasecmp.c: Likewise.
41351         * lib/c-strstr.c: Likewise.
41352         * lib/classpath.c: Likewise.
41353         * lib/clean-temp.c: Likewise.
41354         * lib/concatpath.c: Likewise.
41355         * lib/copy-file.c: Likewise.
41356         * lib/csharpcomp.c: Likewise.
41357         * lib/csharpexec.c: Likewise.
41358         * lib/execute.c: Likewise.
41359         * lib/fatal-signal.c: Likewise.
41360         * lib/findprog.c: Likewise.
41361         * lib/fwriteerror.c: Likewise.
41362         * lib/gl_array_list.c: Likewise.
41363         * lib/gl_array_oset.c: Likewise.
41364         * lib/gl_avltree_list.c: Likewise.
41365         * lib/gl_avltree_oset.c: Likewise.
41366         * lib/gl_avltreehash_list.c: Likewise.
41367         * lib/gl_carray_list.c: Likewise.
41368         * lib/gl_linked_list.c: Likewise.
41369         * lib/gl_linkedhash_list.c: Likewise.
41370         * lib/gl_list.c: Likewise.
41371         * lib/gl_oset.c: Likewise.
41372         * lib/gl_rbtree_list.c: Likewise.
41373         * lib/gl_rbtree_oset.c: Likewise.
41374         * lib/gl_rbtreehash_list.c: Likewise.
41375         * lib/imaxabs.c: Likewise.
41376         * lib/imaxdiv.c: Likewise.
41377         * lib/javacomp.c: Likewise.
41378         * lib/javaexec.c: Likewise.
41379         * lib/javaversion.c: Likewise.
41380         * lib/linebreak.c: Likewise.
41381         * lib/localcharset.c: Likewise.
41382         * lib/lock.c: Likewise.
41383         * lib/mbchar.c: Likewise.
41384         * lib/mbswidth.c: Likewise.
41385         * lib/mkdtemp.c: Likewise.
41386         * lib/pipe.c: Likewise.
41387         * lib/printf-args.c: Likewise.
41388         * lib/printf-parse.c: Likewise.
41389         * lib/progname.c: Likewise.
41390         * lib/progreloc.c: Likewise.
41391         * lib/readlink.c: Likewise.
41392         * lib/sh-quote.c: Likewise.
41393         * lib/stpcpy.c: Likewise.
41394         * lib/stpncpy.c: Likewise.
41395         * lib/strcasecmp.c: Likewise.
41396         * lib/strcasestr.c: Likewise.
41397         * lib/strcspn.c: Likewise.
41398         * lib/striconv.c: Likewise.
41399         * lib/strncasecmp.c: Likewise.
41400         * lib/strnlen1.c: Likewise.
41401         * lib/strstr.c: Likewise.
41402         * lib/strtok_r.c: Likewise.
41403         * lib/tls.c: Likewise.
41404         * lib/tmpdir.c: Likewise.
41405         * lib/unicodeio.c: Likewise.
41406         * lib/unsetenv.c: Likewise.
41407         * lib/vasnprintf.c: Likewise.
41408         * lib/vasprintf.c: Likewise.
41409         * lib/wait-process.c: Likewise.
41410         * lib/xallocsa.c: Likewise.
41411         * lib/xsetenv.c: Likewise.
41412         * lib/xstriconv.c: Likewise.
41413
41414 2006-09-13  Simon Josefsson  <jas@extundo.com>
41415
41416         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
41417         that internally, suggested by Ralf Wildenhues
41418         <Ralf.Wildenhues@gmx.de>.
41419
41420 2006-09-13  Simon Josefsson  <jas@extundo.com>
41421
41422         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
41423         @LIBOBJS@.
41424         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41425
41426 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
41427
41428         * lib/_fpending.c: Include <config.h> unconditionally, since we no
41429         longer worry about uses that don't define HAVE_CONFIG_H.
41430         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
41431         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
41432         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
41433         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
41434         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
41435         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
41436         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
41437         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
41438         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
41439         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
41440         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
41441         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
41442         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
41443         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
41444         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
41445         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
41446         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
41447         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
41448         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
41449         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
41450         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
41451         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
41452         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
41453         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
41454         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
41455         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
41456         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
41457         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
41458         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
41459         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
41460         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
41461         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
41462         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
41463         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
41464         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
41465         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
41466         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
41467         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
41468         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
41469         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
41470         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
41471         Likewise.
41472
41473 2006-09-13  Eric Blake  <ebb9@byu.net>
41474
41475         * lib/getopt.c: Fix typo in last commit.
41476
41477 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41478
41479         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
41480         dgettext.
41481
41482 2006-09-12  Jim Meyering  <jim@meyering.net>
41483
41484         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
41485         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
41486         Reported by Nelson H. F. Beebe.
41487
41488 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
41489
41490         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
41491         program_invocation_name and program_invocation_short_name are
41492         initialized.
41493         * lib/argp-namefrob.h: Move declarations of program_invocation_name
41494         and program_invocation_short_name to argp.h, so they are visible
41495         to user programs.
41496         * lib/argp.h: Likewise
41497
41498 2006-09-10  Bruno Haible  <bruno@clisp.org>
41499
41500         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41501         m4/inttypes_h.m4, m4/uintmax_t.m4.
41502
41503 2006-09-10  Bruno Haible  <bruno@clisp.org>
41504
41505         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
41506         gl_AC_TYPE_UINTMAX_T.
41507
41508 2006-09-10  Bruno Haible  <bruno@clisp.org>
41509
41510         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
41511
41512 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41513
41514         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
41515         convention.  Text proposed by Bruno Haible.
41516         (struct argp_option): Document the use of N_() wrappers.
41517
41518         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
41519         '\v', and translate the two parts separately, instead of feeding
41520         the whole string to gettext.  This allows to exclude
41521         '\v' from the strings visible to the translator by writing doc
41522         strings as N_("..") "\v" N_("..").
41523
41524 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
41525
41526         * config/srclist.txt: Undo latest change; the bug was fixed.
41527
41528 2006-09-09  Bruno Haible  <bruno@clisp.org>
41529
41530         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
41531         assignments if building a library without libtool.
41532         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
41533         in func_emit_lib_Makefile_am.
41534         (func_import): When building a static library libfoo.a, arrange to
41535         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
41536         (func_create_testdir): Likewise.
41537         * modules/gc (configure.ac, Makefile.am): If building statically,
41538         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
41539         * modules/iconvme (configure.ac, Makefile.am): Likewise.
41540         * modules/striconv (configure.ac, Makefile.am): Likewise.
41541         Based on a suggestion by Ralf Wildenhues.
41542
41543 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41544
41545         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41546         Check for unistd.h too, since Autoconf doesn't assume POSIX.
41547         Also:
41548
41549         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41550         Add year_2050_test to catch glibc bug 2821
41551         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41552
41553         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41554         Prefer #ifdef to #if.
41555
41556         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
41557         Return from 'main' instead of calling 'exit'.
41558
41559 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41560
41561         * lib/mktime.c (guess_time_tm): Fix bug where mktime
41562         returned the maximum time_t value rather than (time_t) -1.
41563         Problem originally reported by William Bardwell
41564         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41565
41566         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41567         Moved to here ...
41568         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41569         ... from here.
41570
41571 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41572
41573         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
41574         2821 is fixed.
41575
41576 2006-09-08  Jim Meyering  <jim@meyering.net>
41577
41578         Don't make generated files read-only.  That would bother too many
41579         people.  However, do retain the ability to work when targets are
41580         read-only: remove the destination and temporary files before writing
41581         them (when generated via sed or echo), or by using the -f option for
41582         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
41583         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41584         * modules/byteswap, modules/configmake, modules/fcntl:
41585         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41586         * modules/localcharset, modules/netinet_in, modules/poll:
41587         * modules/stdbool, modules/stdint, modules/sys_select:
41588         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41589
41590 2006-09-08  Jim Meyering  <jim@meyering.net>
41591
41592         Avoid new build failure on FreeBSD 6.0.
41593         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
41594         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
41595         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
41596
41597 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41598
41599         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
41600
41601 2006-09-07  Jim Meyering  <jim@meyering.net>
41602
41603         Fix global typo in last change: use chmod u-w, not chmod u-x.
41604         Spotted by Paul Eggert and Bruce Korb.
41605         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41606         * modules/byteswap, modules/configmake, modules/fcntl:
41607         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41608         * modules/localcharset, modules/netinet_in, modules/poll:
41609         * modules/stdbool, modules/stdint, modules/sys_select:
41610         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41611
41612 2006-09-06  Jim Meyering  <jim@meyering.net>
41613
41614         Make generated files be read-only.
41615         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
41616         Ensure that each generated file is now read-only.
41617         * modules/argz: Likewise.
41618         * modules/arpa_inet: Likewise.
41619         * modules/byteswap: Likewise.
41620         * modules/configmake: Likewise.
41621         * modules/fcntl: Likewise.
41622         * modules/fnmatch: Likewise.
41623         * modules/getopt: Likewise.
41624         * modules/glob: Likewise.
41625         * modules/inttypes: Likewise.
41626         * modules/netinet_in: Likewise.
41627         * modules/poll: Likewise.
41628         * modules/stdbool: Likewise.
41629         * modules/stdint: Likewise.
41630         * modules/sys_select: Likewise.
41631         * modules/sys_socket: Likewise.
41632         * modules/sys_stat: Likewise.
41633         * modules/sysexits: Likewise.
41634         * modules/localcharset: Same as above, but continue using temporary
41635         file named "t-$@" (why different?) rather than the "$@-t" used
41636         everywhere else.
41637
41638         * modules/sysexits (Makefile.am): Replace literal occurrences
41639         of "sysexit.h" more readable, and more consistent, "$@".
41640
41641 2006-09-06  Bruno Haible  <bruno@clisp.org>
41642
41643         * modules/striconv: New file.
41644         * modules/xstriconv: New file.
41645         * MODULES.html.sh (Internationalization functions): Add striconv,
41646         xstriconv.
41647
41648 2006-09-06  Bruno Haible  <bruno@clisp.org>
41649
41650         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
41651         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
41652         not using libtool correctly.
41653
41654 2006-09-06  Bruno Haible  <bruno@clisp.org>
41655
41656         * lib/striconv.h: New file.
41657         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
41658         iconvstring.c.
41659         * lib/xstriconv.h: New file.
41660         * lib/xstriconv.c: New file.
41661
41662 2006-09-06  Bruno Haible  <bruno@clisp.org>
41663
41664         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41665         lib_..._LDFLAGS.
41666
41667 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41668
41669         * lib/argz_.h: Sync from Libtool.
41670
41671         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
41672                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41673
41674         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
41675
41676 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41677
41678         * modules/trim: New file.
41679
41680 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41681
41682         * lib/trim.h: New file.
41683         * lib/trim.c: New file.
41684
41685 2006-09-05  Bruno Haible  <bruno@clisp.org>
41686
41687         * MODULES.html.sh (String handling): Add trim.
41688
41689 2006-09-04  Karl Berry  <karl@gnu.org>
41690
41691         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
41692         until next release.
41693
41694 2006-09-03  Bruno Haible  <bruno@clisp.org>
41695
41696         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
41697         correctly.
41698
41699 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41700
41701         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
41702         not gl_GETLOADAVG.  Omit unneeded semicolons.
41703         Problems reported by Ralf Wildenhues in
41704         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41705         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
41706         at the end, which is the usual gnulib style.
41707
41708         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
41709         of doing all the work ourselves.
41710         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
41711         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
41712
41713 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41714
41715         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
41716         Problem reported by Ralf Wildenhues in
41717         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41718
41719         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
41720         HAVE_STRUCT_STATFS_F_FSTYPENAME.
41721
41722 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41723
41724         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
41725         yesterday's patch by changing test -n to test -z.
41726
41727 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41728
41729         * modules/getloadavg (Files): Add m4/getloadavg.m4.
41730         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
41731         the former is now obsolescent.
41732
41733         * modules/chdir-long (Depends-on): Add fcntl.
41734
41735 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41736
41737         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
41738         obsolescent, and programs should use gnulib instead.
41739         * m4/getloadavg.m4: New file, with contents taken from Autoconf
41740         but with prefixes changed.
41741
41742 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41743
41744         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
41745         or stdbool.h, because they might not exist while configuring.
41746
41747         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
41748         Don't include unistd.h or limits.h; not needed, since chdir-long.h
41749         does that for us.
41750         (O_DIRECTORY): Remove.
41751
41752 2006-08-31  Eric Blake  <ebb9@byu.net>
41753
41754         * gnulib-tool: Don't let emacs change spaces to TAB.
41755
41756 2006-08-31  Bruno Haible  <bruno@clisp.org>
41757
41758         * gnulib-tool: When calling func_import more than once, do it in a
41759         subshell.
41760         Reported by Eric Blake <ebb9@byu.net>.
41761
41762 2006-08-31  Bruno Haible  <bruno@clisp.org>
41763
41764         * gnulib-tool (nl): Remove variable.
41765         (sed_transform_lib_file): Use more robust test for config-h module.
41766         (func_import): Fix typo in 2006-08-25 patch.
41767
41768 2006-08-31  Bruno Haible  <bruno@clisp.org>
41769
41770         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
41771         specified, augment Makefile.am variables instead of assigning them.
41772
41773 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41774
41775         Work around a bug in both the Linux and SunOS 64-bit kernels:
41776         nanosleep mishandles sleeps for longer than 2**31 seconds.
41777         Problem reported by Frank v Waveren in
41778         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
41780         Check for nanosleep bug.
41781         (LIB_NANOSLEEP): Append clock_gettime library if needed.
41782
41783 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41784
41785         Work around a bug in both the Linux and SunOS 64-bit kernels:
41786         nanosleep mishandles sleeps for longer than 2**31 seconds.
41787         Problem reported by Frank v Waveren in
41788         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41789         * lib/nanosleep.c (BILLION): New constant.
41790         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
41791         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
41792         implementation.
41793
41794 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41795
41796         * modules/nanosleep (Depends-on): Add gettime.
41797
41798 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41799         and Simon Josefsson  <jas@extundo.com>
41800         and Oskar Liljeblad  <oskar@osk.mine.nu>
41801
41802         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
41803         * gnulib-tool (func_import): New license type 'unmodifiable license
41804         text'.
41805         * modules/fdl: Use it.  Longer description.
41806         * module/gpl, module/lgpl: New files.
41807
41808 2006-08-30  Jim Meyering  <jim@meyering.net>
41809
41810         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
41811         shadowing the parameter.
41812
41813 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41814
41815         Sync from Libtool:
41816
41817         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41818
41819         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
41820         sharing with gnulib.  Report by Eric Blake.
41821
41822 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41823
41824         * modules/isapipe: New file.
41825         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
41826
41827 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41828
41829         * modules/configmake (Makefile.am): Add a comment, and omit
41830         the CONFIGMAKE_ prefix from generated macro names.  Suggested
41831         by Bruno Haible.
41832
41833 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41834
41835         * m4/isapipe.m4: New file.
41836
41837 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41838
41839         * lib/isapipe.c, lib/isapipe.h: New files.
41840
41841 2006-08-29  Jim Meyering  <jim@meyering.net>
41842
41843         * modules/configmake (Makefile.am): Make configmake.h depend on
41844         Makefile.  Otherwise, a stale configmake.h could hang around.
41845
41846 2006-08-29  Eric Blake  <ebb9@byu.net>
41847
41848         * lib/error.c (error_at_line, print_errno_message): Match libc, after
41849         resolution of upstream bug 3044.
41850
41851 2006-08-29  Bruno Haible  <bruno@clisp.org>
41852
41853         * modules/localcharset (Depends-on): Add configmake.
41854         (Makefile.am): Remove setting of LIBDIR through DEFS.
41855
41856 2006-08-29  Bruno Haible  <bruno@clisp.org>
41857
41858         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
41859         defined.
41860
41861 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41862
41863         * modules/fcntl: New file.
41864         * modules/chdir-safer (Depends-on): Add fcntl.
41865         * modules/fts: Likewise.
41866         * modules/mkdir-p: Likewise.
41867
41868         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
41869         This undoes the most recent change, since we're now addressing the
41870         problem in a different way.
41871
41872         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
41873         into output, since the output might be called Makefile.am even
41874         if $makefile_name is something different.
41875         (func_import): Use $makefile_am rather than
41876         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
41877         empty.
41878
41879         * modules/inttypes (Files): Add m4/inttypes-h.m4.
41880
41881 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41882
41883         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
41884         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
41885         recent change to stdint.m4, since we're now addressing the problem in a
41886         different way.
41887
41888 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41889
41890         * m4/fcntl_h.m4: New file.
41891
41892 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41893
41894         * lib/fcntl_.h: New file.
41895         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
41896         the fcntl module.
41897         * lib/dirchownmod.c: Likewise.
41898         * lib/fts.c: Likewise.
41899
41900         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
41901         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
41902         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
41903         just before including <inttypes.h>, to avoid circular inclusion.
41904
41905 2006-08-28  Jim Meyering  <jim@meyering.net>
41906
41907         * doc/visibility.texi: Actually read and correct the grammar of the
41908         sentence affected by yesterday's change.
41909
41910 2006-08-28  Eric Blake  <ebb9@byu.net>
41911
41912         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
41913         needs wrapper.
41914
41915 2006-08-28  Eric Blake  <ebb9@byu.net>
41916
41917         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
41918
41919 2006-08-28  Eric Blake  <ebb9@byu.net>
41920
41921         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
41922
41923 2006-08-28  Bruno Haible  <bruno@clisp.org>
41924
41925         * modules/c-strstr: New file, from GNU gettext.
41926         * MODULES.html.sh (String handling): Add c-strstr.
41927
41928 2006-08-28  Bruno Haible  <bruno@clisp.org>
41929
41930         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
41931         macros.
41932         Reported by Eric Blake.
41933
41934 2006-08-28  Bruno Haible  <bruno@clisp.org>
41935
41936         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
41937         (VASNPRINTF): Return a string of length > INT_MAX without failing.
41938         * lib/vasprintf.c: Include errno.h, limits.h.
41939         (EOVERFLOW): New fallback definition.
41940         (vasprintf): Test here whether the string length is > INT_MAX.
41941         * lib/vsnprintf.c: Include errno.h, limits.h.
41942         (EOVERFLOW): New fallback definition.
41943         (vsnprintf): Fix bug when generated string was too long for the buffer.
41944         Test here whether the string length is > INT_MAX.
41945
41946 2006-08-28  Bruno Haible  <bruno@clisp.org>
41947
41948         * lib/inttypes_.h (SCNX*): Remove definitions.
41949         Reported by Eric Blake.
41950
41951 2006-08-28  Bruno Haible  <bruno@clisp.org>
41952
41953         * lib/c-strstr.h: New file, from GNU gettext.
41954         * lib/c-strstr.c: New file, from GNU gettext.
41955
41956 2006-08-28  Bruno Haible  <bruno@clisp.org>
41957
41958         * gnulib-tool: Reorder some statements.
41959
41960 2006-08-28  Bruno Haible  <bruno@clisp.org>
41961
41962         * gnulib-tool: New option --makefile-name.
41963         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
41964         $makefile_name.
41965         (func_import): Write $makefile_name to the cache file, and read it from
41966         there unless explicitly specified. Use $makefile_name as file name
41967         instead of Makefile.am. Adjust the recommendations accordingly.
41968
41969 2006-08-28  Bruno Haible  <bruno@clisp.org>
41970
41971         * gnulib-tool (func_verify_module): Check against misapplying patch.
41972
41973 2006-08-28  Bruno Haible  <bruno@clisp.org>
41974
41975         * gnulib-tool (func_relativize, func_relconcat): New functions.
41976         Give an error if --local-dir is given with --update.
41977         Remove trailing slashes from $local_gnulib_dir.
41978         (func_import): Store the relativized $local_gnulib_dir in
41979         gnulib-cache.m4, and read it from there if not specified explicitly.
41980
41981 2006-08-28  Bruno Haible  <bruno@clisp.org>
41982
41983         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
41984         is the current directory. Respect also $local_gnulib_dir.
41985
41986 2006-08-28  Bruno Haible  <bruno@clisp.org>
41987             Simon Josefsson  <jas@extundo.com>
41988
41989         BeOS portability.
41990         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
41991
41992 2006-08-27  Jim Meyering  <jim@meyering.net>
41993
41994         * doc/visibility.texi: Remove duplicate word: "pointer".
41995
41996 2006-08-26  Bruno Haible  <bruno@clisp.org>
41997
41998         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
41999         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42000         (Makefile.am): Create inttypes.h from inttypes_.h.
42001         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42002
42003         * modules/imaxabs: New file.
42004
42005         * modules/imaxdiv: New file.
42006
42007 2006-08-26  Bruno Haible  <bruno@clisp.org>
42008
42009         * m4/inttypes.m4: New file.
42010         * m4/_inttypes_h.m4: Remove file.
42011         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42012         PRI_MACROS_BROKEN.
42013         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42014
42015         * m4/imaxabs.m4: New file.
42016
42017         * m4/imaxdiv.m4: New file.
42018
42019 2006-08-26  Bruno Haible  <bruno@clisp.org>
42020
42021         * lib/inttypes_.h: New file.
42022         * lib/inttypes.h: Remove file.
42023         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42024
42025         * lib/imaxabs.c: New file.
42026
42027         * lib/imaxdiv.c: New file.
42028
42029 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42030
42031         New config-h module, so that "make" output needn't be cluttered
42032         by -DHAVE_CONFIG_H.
42033         * MODULES.html.sh (Support for building libraries and executables):
42034         Add config-h.
42035         * modules/config-h: New file.
42036         * gnulib-tool (nl, sed_transform_lib_file): New vars.
42037         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42038         the config-h module is used.
42039
42040         New configmake module, so that "make" output needn't be cluttered
42041         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42042         * MODULES.html.sh (Support for building libraries and executables):
42043         Add configmake.
42044         * modules/configmake: New file.
42045
42046 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42047
42048         * m4/config-h.m4: New file.
42049
42050 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42051
42052         * config/srclist.txt: Add elisp-comp.
42053
42054 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42055
42056         * MODULES.html.sh (Support for building libraries and executables):
42057         Add elisp-comp.
42058         * build-aux/elisp-comp: New file.
42059         * modules/elisp-comp: New file.
42060
42061 2006-08-24  Bruno Haible  <bruno@clisp.org>
42062
42063         * gnulib-tool (func_create_testdir): Use non-default values of
42064         sourcebase and m4base.
42065
42066 2006-08-24  Bruno Haible  <bruno@clisp.org>
42067
42068         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42069         HTML structure.
42070
42071 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42072
42073         * modules/openat (Depends-on): Add lchown.
42074
42075 2006-08-23  Bruno Haible  <bruno@clisp.org>
42076
42077         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42078         of gl_LOCK_EARLY instead of gl_LOCK.
42079
42080 2006-08-23  Bruno Haible  <bruno@clisp.org>
42081
42082         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42083         on OSF/1 to no.
42084         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42085
42086 2006-08-23  Bruno Haible  <bruno@clisp.org>
42087
42088         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42089         as unusable.
42090
42091         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42092         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42093         (gl_LOCK): New macro.
42094
42095 2006-08-22  Simon Josefsson  <jas@extundo.com>
42096
42097         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42098         to md5 module.
42099
42100 2006-08-22  Simon Josefsson  <jas@extundo.com>
42101
42102         * MODULES.html.sh: Add "Support for maintaining and release
42103         projects".
42104
42105         * build-aux/gnupload: New file, from coreutils.
42106
42107 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42108
42109         Avoid the need for AC_LIBSOURCES in m4 macros.
42110         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42111         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42112         * modules/check-version (EXTRA_DIST): Add check-version.h.
42113         * modules/crc (EXTRA_DIST): Add crc.h.
42114         * modules/des (EXTRA_DIST): Add des.h.
42115         * modules/gc (EXTRA_DIST): Add gc.h.
42116         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42117         * modules/getline (EXTRA_DIST): Add getline.h.
42118         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42119         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42120         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42121         * modules/md2 (EXTRA_DIST): Add md2.h.
42122         * modules/md4 (EXTRA_DIST): Add md4.h.
42123         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42124         * modules/read-file (EXTRA_DIST): Add read-file.h.
42125         * modules/readline (EXTRA_DIST): Add readline.h.
42126         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42127         rijndael-api-fst.h.
42128
42129 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42130
42131         * m4/rijndael.m4 (gl_ARCFOUR):
42132         * m4/arctwo.m4 (gl_ARCTWO):
42133         * m4/check-version.m4 (gl_CHECK_VERSION):
42134         * m4/crc.m4 (gl_CRC):
42135         * m4/des.m4 (gl_DES):
42136         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42137         * m4/gc.m4 (gl_GC):
42138         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42139         * m4/getline.m4 (gl_FUNC_GETLINE):
42140         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42141         * m4/hmac-md5.m4 (gl_HMAC_MD5):
42142         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42143         * m4/md2.m4 (gl_MD2):
42144         * m4/md4.m4 (gl_MD4):
42145         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42146         * m4/read-file.m4 (gl_FUNC_READ_FILE):
42147         * m4/readline.m4 (gl_FUNC_READLINE):
42148         * m4/rijndael.m4 (gl_RIJNDAEL):
42149         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42150         to get the necessary .h files and whatnot.
42151
42152 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42153
42154         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42155         gnulib rather than the other way around.
42156         * config/srclistvars.sh (COREUTILS): Remove.
42157
42158 2006-08-22  Jim Meyering  <jim@meyering.net>
42159
42160         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42161
42162         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42163
42164 2006-08-22  Eric Blake  <ebb9@byu.net>
42165
42166         * modules/regexprops-generic: New file.
42167         * MODULES.html.sh (Support for building documentation): List it.
42168
42169 2006-08-22  Eric Blake  <ebb9@byu.net>
42170
42171         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42172         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42173         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42174         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42175
42176 2006-08-22  Bruno Haible  <bruno@clisp.org>
42177
42178         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42179         and lib_LTLIBRARIES like the other lib_* variables.
42180
42181 2006-08-22  Bruno Haible  <bruno@clisp.org>
42182
42183         * build-aux/x-to-1.in: New file, from GNU gettext.
42184
42185 2006-08-22  Bruno Haible  <bruno@clisp.org>
42186
42187         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42188         <utmpx.h> exists.
42189
42190 2006-08-22  Bruno Haible  <bruno@clisp.org>
42191
42192         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42193         <utmpx.h> exists.
42194
42195 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42196
42197         BeOS portability.
42198         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42199         exist.
42200         Problem reported by Bruno Haible.
42201
42202 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42203
42204         Avoid the need for AC_LIBSOURCES in m4 macros.
42205         * modules/acl (EXTRA_DIST): Add acl.h.
42206         * modules/argmatch (Files): Add m4/argmatch.m4.
42207         (configure.ac): Add gl_ARGMATCH.
42208         (EXTRA_DIST): Renamed from lib_SOURCES, for
42209         consistency with the other modules.  Remove argmatch.c.
42210         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42211         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42212         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42213         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42214         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42215         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42216         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42217         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42218         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42219         * modules/closeout (EXTRA_DIST): Add closeout.h.
42220         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42221         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42222         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42223         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
42224         dirname.h; remove basename.c and stripslash.c.
42225         * modules/exclude (EXTRA_DIST): Add exclude.h.
42226         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42227         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42228         * modules/file-type (EXTRA_DIST): Add file-type.h.
42229         * modules/filemode (EXTRA_DIST): Add filemode.h.
42230         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42231         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42232         * modules/fpending (EXTRA_DIST): Add __fpending.h.
42233         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42234         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42235         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42236         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42237         * modules/getdate (EXTRA_DIST): Add getdate.c.
42238         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42239         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42240         * modules/getpass (EXTRA_DIST): Add getpass.h.
42241         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42242         * modules/group-member (EXTRA_DIST): Add group-member.h.
42243         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42244         * modules/hash (EXTRA_DIST): Add hash.h.
42245         * modules/human (EXTRA_DIST): Add human.h.
42246         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42247         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42248         * modules/lchown (EXTRA_DIST): Add lchown.h.
42249         * modules/long-options (EXTRA_DIST): Add long-options.h.
42250         * modules/lstat (EXTRA_DIST): Add lstat.h.
42251         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42252         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42253         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42254         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42255         * modules/memxor (EXTRA_DIST): Add memxor.h.
42256         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42257         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42258         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42259         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42260         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42261         * modules/physmem (EXTRA_DIST): Add physmem.h.
42262         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42263         * modules/posixver (EXTRA_DIST): Add posixver.h.
42264         * modules/quote (EXTRA_DIST): Add quote.h.
42265         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42266         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42267         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42268         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42269         regex_internal.h regexec.c.
42270         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42271         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42272         * modules/same (EXTRA_DIST): Add same.h.
42273         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42274         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42275         * modules/savedir (EXTRA_DIST): Add savedir.h.
42276         * modules/sha1 (EXTRA_DIST): Add sha1.h.
42277         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42278         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42279         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42280         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42281         * modules/strdup (EXTRA_DIST): Add strdup.h.
42282         * modules/strftime (EXTRA_DIST): Add strftime.h.
42283         * modules/strndup (EXTRA_DIST): Add strndup.h.
42284         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42285         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42286         * modules/time_r (EXTRA_DIST): Add time_r.h.
42287         * modules/timespec (EXTRA_DIST): Add timespec.h.
42288         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42289         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
42290         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
42291         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
42292         * modules/userspec (EXTRA_DIST): Add userspec.h.
42293         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
42294         * modules/utimens (EXTRA_DIST): Add utimens.h.
42295         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
42296         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
42297         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
42298         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
42299         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
42300         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
42301         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
42302         * modules/yesno (EXTRA_DIST): Add yesno.h.
42303
42304 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42305
42306         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
42307
42308         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
42309         * m4/dev-ino.m4, same-inode.m4: Remove.
42310
42311         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
42312         * m4/acl.m4 (AC_FUNC_ACL):
42313         * m4/backupfile.m4 (gl_BACKUPFILE):
42314         * m4/c-strtod.m4 (gl_C99_STRTOLD):
42315         * m4/canon-host.m4 (gl_CANON_HOST):
42316         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42317         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
42318         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
42319         * m4/cloexec.m4 (gl_CLOEXEC):
42320         * m4/close-stream.m4 (gl_CLOSE_STREAM):
42321         * m4/closeout.m4 (gl_CLOSEOUT):
42322         * m4/dirfd.m4 (gl_FUNC_DIRFD):
42323         * m4/dirname.m4 (gl_DIRNAME):
42324         * m4/exclude.m4 (gl_EXCLUDE):
42325         * m4/exitfail.m4 (gl_EXITFAIL):
42326         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
42327         * m4/file-type.m4 (gl_FILE_TYPE):
42328         * m4/filemode.m4 (gl_FILEMODE):
42329         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
42330         * m4/fpending.m4 (gl_FUNC_FPENDING):
42331         * m4/fprintftime.m4 (gl_FPRINTFTIME):
42332         * m4/fts.m4 (gl_FUNC_FTS):
42333         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
42334         * m4/getdate.m4 (gl_GETDATE):
42335         * m4/gethrxtime.m4 (gl_GETHRXTIME):
42336         * m4/getpagesize.m4 (gl_GETPAGESIZE):
42337         * m4/getpass.m4 (gl_FUNC_GETPASS):
42338         * m4/gettime.m4 (gl_GETTIME):
42339         * m4/getugroups.m4 (gl_GETUGROUPS):
42340         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
42341         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
42342         * m4/hard-locale.m4 (gl_HARD_LOCALE):
42343         * m4/hash.m4 (gl_HASH):
42344         * m4/idcache.m4 (gl_IDCACHE):
42345         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
42346         * m4/lchown.m4 (gl_FUNC_LCHOWN):
42347         * m4/long-options.m4 (gl_LONG_OPTIONS):
42348         * m4/lstat.m4 (gl_FUNC_LSTAT):
42349         * m4/md5.m4 (gl_MD5):
42350         * m4/memcasecmp.m4 (gl_MEMCASECMP):
42351         * m4/memcoll.m4 (gl_MEMCOLL):
42352         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
42353         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
42354         * m4/memxor.m4 (gl_MEMXOR):
42355         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
42356         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
42357         * m4/modechange.m4 (gl_MODECHANGE):
42358         * m4/mountlist.m4 (gl_MOUNTLIST):
42359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42360         * m4/openat.m4 (gl_FUNC_OPENAT):
42361         * m4/pathmax.m4 (gl_PATHMAX):
42362         * m4/physmem.m4 (gl_PHYSMEM):
42363         * m4/posixtm.m4 (gl_POSIXTM):
42364         * m4/posixver.m4 (gl_POSIXVER):
42365         * m4/quote.m4 (gl_QUOTE):
42366         * m4/quotearg.m4 (gl_QUOTEARG):
42367         * m4/readtokens.m4 (gl_READTOKENS):
42368         * m4/readutmp.m4 (gl_READUTMP):
42369         * m4/regex.m4 (gl_REGEX):
42370         * m4/safe-read.m4 (gl_SAFE_READ):
42371         * m4/safe-write.m4 (gl_SAFE_WRITE):
42372         * m4/same.m4 (gl_SAME):
42373         * m4/save-cwd.m4 (gl_SAVE_CWD):
42374         * m4/savedir.m4 (gl_SAVEDIR):
42375         * m4/settime.m4 (gl_SETTIME):
42376         * m4/sha1.m4 (gl_SHA1):
42377         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
42378         * m4/stat-macros.m4 (gl_STAT_MACROS):
42379         * m4/stat-time.m4 (gl_STAT_TIME):
42380         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
42381         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
42382         * m4/strdup.m4 (gl_FUNC_STRDUP):
42383         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
42384         * m4/strndup.m4 (gl_FUNC_STRNDUP):
42385         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
42386         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
42387         * m4/time_r.m4 (gl_TIME_R):
42388         * m4/timespec.m4 (gl_TIMESPEC):
42389         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
42390         * m4/unlinkdir.m4 (gl_UNLINKDIR):
42391         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
42392         * m4/userspec.m4 (gl_USERSPEC):
42393         * m4/utimecmp.m4 (gl_UTIMECMP):
42394         * m4/utimens.m4 (gl_UTIMENS):
42395         * m4/xalloc.m4 (gl_XALLOC):
42396         * m4/xgetcwd.m4 (gl_XGETCWD):
42397         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
42398         * m4/xreadlink.m4 (gl_XREADLINK):
42399         * m4/xstrtod.m4 (gl_XSTRTOD):
42400         * m4/yesno.m4 (gl_YESNO):
42401         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42402         to get the necessary .h files and whatnot.
42403
42404 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
42405             Bruno Haible  <bruno@clisp.org>
42406
42407         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
42408         /bin/sh understanding of '!' conditional negation.
42409
42410 2006-08-21  Jim Meyering  <jim@meyering.net>
42411
42412         * modules/openat (Depends-on): Really alphabetize.
42413
42414         * modules/acl (Depends-on): Add error and quote.
42415
42416         * check-module (find_included_lib_files): Add at-func.c to the
42417         ok-to-include-more-than-once white list.
42418
42419         * modules/openat (Depends-on): Add lstat.  Alphabetize.
42420
42421 2006-08-21  Bruno Haible  <bruno@clisp.org>
42422
42423         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42424         Emit a pkgdata_DATA variable only if some snippets add contents to it.
42425         Reported by Martin Lambers <marlam@marlam.de>.
42426
42427 2006-08-21  Bruno Haible  <bruno@clisp.org>
42428
42429         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
42430         specify an installation location, don't emit a noinst_LIBRARIES or
42431         noinst_LTLIBRARIES assignment.
42432
42433 2006-08-21  Bruno Haible  <bruno@clisp.org>
42434
42435         BeOS portability.
42436         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
42437         BeOS has mbrtowc() but no <wctype.h>.
42438
42439 2006-08-21  Bruno Haible  <bruno@clisp.org>
42440
42441         BeOS portability.
42442         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
42443         exist.
42444
42445 2006-08-21  Bruno Haible  <bruno@clisp.org>
42446
42447         BeOS portability.
42448         * lib/mbchar.h: Include <wctype.h> only if it exists.
42449
42450 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42451
42452         Remove files that are no longer needed by their respective modules.
42453         * m4/obstack.m4: Remove.
42454         * m4/strerror_r.m4: Remove.
42455         * m4/uint32_t.m4: Remove.
42456         * m4/uintptr_t.m4: Remove.
42457         * m4/ullong_max.m4: Remove.
42458         * m4/xstrtoimax.m4: Remove.
42459         * m4/xstrtoumax.m4: Remove.
42460
42461         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
42462         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
42463         dependencies now capture this.
42464
42465         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
42466         Do not use AC_LIBSOURCES, since gnulib modules now do this.
42467         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
42468         * m4/human.m4 (gl_HUMAN): Likewise.
42469         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
42470         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
42471
42472         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
42473
42474         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
42475         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
42476         stdint.
42477         * m4/human.m4 (gl_HUMAN): Likewise.
42478         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
42479         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
42480         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42481         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42482         * m4/xstrtol (gl_XSTRTOL): Likewise.
42483
42484         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
42485         AC_TYPE_LONG_LONG_INT.
42486         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42487         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
42488         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
42489         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42490
42491         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
42492         on stdbool.
42493
42494         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
42495         (gl_PREREQ_XSTRTOUL): Remove.
42496
42497         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
42498
42499         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
42500         mode.
42501
42502 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42503
42504         Add and change modules to make it easier for coreutils to use
42505         gnulib-tool.
42506         * modules/backupfile (Files): Remove m4/d-ino.m4.
42507         (Depends-on): Add d-ino.
42508         * modules/cycle-check (Depends-on): Add stdint.
42509         (lib_SOURCES): Add cycle-check.h.
42510         * modules/d-ino: New module.
42511         * modules/d-type: New module.
42512         * modules/error (Files): Remove m4/strerror_r.m4.
42513         * modules/filemode (Files): Add m4/st_dm_mode.m4.
42514         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42515         m4/inttypes_h.m4, m4/uintmax_t.m4.
42516         (Depends-on): Add stdint.
42517         (lib_SOURCES): Add fsusage.h.
42518         * modules/getcwd (Files): Remove d-ino.m4.
42519         (Depends-on): Add d-ino.
42520         * modules/getndelim2 (Depends-on): Add stdint.
42521         * modules/glob (Files): Remove m4/d-type.m4.
42522         (Depends-on): Add d-type.
42523         * modules/host-os: New module.
42524         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
42525         m4/inttypes_h.m4, m4/uintmax_t.m4.
42526         * Depends-on: Add stdint.
42527         (lib_SOURCES): Add human.h.
42528         * modules/inttostr (Files): Remove m4/intmax_t.m4,
42529         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
42530         m4/uintmax_t.m4, m4/ulonglong.m4.
42531         (Depends-on): Add stdint.
42532         (EXTRA_DIST): Add inttostr.h.
42533         * modules/lchmod: New module.
42534         * modules/link-follow: New module.
42535         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
42536         (Depends-on): Add lchmod.
42537         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
42538         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
42539         (Depends-on): Add stdint.
42540         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
42541         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
42542         (Depends-on): Add stdint.
42543         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
42544         * modules/perl: New module.
42545         * modules/regex (Depends-on): Add stdint.
42546         * modules/rmdir-errno: New module.
42547         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42548         m4/intmax_t.m4.
42549         (Depends-on): Add stdint.
42550         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42551         m4/uintmax_t.m4.
42552         (Depends-on): Add stdint.
42553         * modules/unlink-busy: New module.
42554         * modules/utimecmp (Depends-on): Add stdint.
42555         * modules/uptime: New module.
42556         * modules/winsz-ioctl: New module.
42557         * modules/winsz-termios: New module.
42558         * modules/xnanosleep (Depends-on): Add nanosleep.
42559         * modules/ullong_max: Remove.
42560         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
42561         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
42562         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
42563         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
42564         (Depends-on): Add inttypes.
42565         (lib_SOURCES): Add xstrtol.h.
42566         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
42567         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
42568         * MODULES.html.sh: Move 'assert' into the assert section.
42569         Move 'dummy' into the linking section.
42570         Remove ullong_max.
42571         Add section for compatibility checks for POSIX:2001 functions,
42572         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
42573         winsz-ioctl, and winsz-termios into it.
42574         Add lchmod.
42575         Add top-level Misc section and put host-os, perl, and uptime
42576         into it.
42577
42578 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42579
42580         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
42581         now assume the stdint module.  Do not include inttypes.h.
42582         * lib/fsusage.h: Likewise.
42583         * lib/getndelim2.c: Likewise.
42584         * lib/human.h: Likewise.
42585         * lib/inttostr.h: Likewise.
42586         * lib/obstack.c: Likewise.
42587         * lib/regex_internal.h: Likewise.
42588         * lib/tempname.c: Likewise.
42589         * lib/utimecmp.c: Likewise.
42590         * lib/xstrtol.h: Likewise.
42591
42592         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
42593
42594         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
42595         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
42596         * lib/xtime.h: Likewise.
42597
42598 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42599
42600         * modules/openat (Files): Add lib/fchmodat.c.
42601         Fixes problem reported by Jay Youngman.
42602
42603 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42604
42605         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
42606         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
42607
42608 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
42609             Bruno Haible  <bruno@clisp.org>
42610
42611         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
42612         and is a script that invokes bison. Tighten the code. Add comments.
42613
42614 2006-08-18  Jim Meyering  <jim@meyering.net>
42615
42616         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
42617         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
42618         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
42619         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
42620
42621 2006-08-18  Bruno Haible  <bruno@clisp.org>
42622
42623         * modules/bison-i18n: New file.
42624         * MODULES.html.sh (Internationalization functions): Add it.
42625
42626 2006-08-18  Bruno Haible  <bruno@clisp.org>
42627
42628         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
42629         sys/statvfs.h. When getmntinfo was found, check its declaration and
42630         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
42631
42632 2006-08-18  Bruno Haible  <bruno@clisp.org>
42633
42634         * m4/bison-i18n.m4: New file, from bison.
42635
42636 2006-08-18  Bruno Haible  <bruno@clisp.org>
42637
42638         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
42639         (ME_DUMMY): Treat "kernfs" as a dummy.
42640         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
42641
42642 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42643
42644         Update from coreutils.
42645
42646         2006-08-15  Jim Meyering  <jim@meyering.net>
42647
42648         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
42649
42650         2006-01-17  Jim Meyering  <jim@meyering.net>
42651
42652         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
42653
42654         2006-01-11  Jim Meyering  <jim@meyering.net>
42655
42656         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
42657         Check for the lchmod function.
42658
42659 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42660
42661         Update from coreutils.
42662
42663         * lib/__fpending.h: Add copyright notice.
42664         * lib/fprintftime.h: Likewise.
42665         * lib/savedir.c: Use (C) in copyright notice.
42666         * lib/savedir.h: Likewise.
42667
42668         2006-08-15  Jim Meyering  <jim@meyering.net>
42669
42670         * lib/at-func.c: New file, with the logic of all emulated at-functions.
42671         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
42672         in support of the EXPECTED_ERRNO macro.
42673         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
42674         definitions.  Instead, define the appropriate symbols and include
42675         "at-func.c".
42676         * lib/mkdirat.c (mkdirat): Likewise.
42677         * lib/fchmodat.c (fchmodat): Likewise.
42678         (ENOSYS): Remove definition.
42679         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
42680         it.  Don't include "unistd--.h" -- it wasn't ever used.
42681
42682         2006-01-17  Jim Meyering  <jim@meyering.net>
42683
42684         Rewrite fts.c not to change the current working directory,
42685         by using openat, fstatat, fdopendir, etc..
42686
42687         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
42688         (HAVE_OPENAT_SUPPORT): Define.
42689         [_LIBC] (fchdir): Don't undef or define; no longer used.
42690         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
42691         Now, this `function' always succeeds, and consumes its file descriptor
42692         parameter -- so callers must not close such FDs.  Update callers.
42693         (diropen_fd, opendirat, cwd_advance_fd): New functions.
42694         (diropen): Add parameter, SP.  Adjust all callers.
42695         Implement using diropen_fd, rather than open.
42696         (fts_open): Initialize new member, fts_cwd_fd.
42697         Remove fts_rft-setting code.
42698         (fts_close): Close fts_cwd_fd, if necessary.
42699         (__opendir2): Define in terms of opendir or opendirat,
42700         depending on whether the FST_NOCHDIR flag is set.
42701         (fts_build): Since fts_safe_changedir consumes its FD, and since
42702         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
42703         and close the dup'd file descriptor upon failure.
42704         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
42705         (fts_safe_changedir): Tweak semantics to reflect that this function
42706         now calls cwd_advance_fd and hence consumes its FD argument.
42707         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
42708         [struct FTS] (fts_rft): Remove now-unused member.
42709         [struct FTS] (fts_cycle.state): Improve comment.
42710
42711         * lib/openat.c (openat_needs_fchdir): New function.
42712         * lib/openat.h (openat_needs_fchdir): Declare it.
42713
42714 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
42715
42716         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
42717         Problem and fix reported by Pádraig Brady in
42718         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
42719
42720 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42721
42722         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
42723
42724 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42725
42726         * lib/memcoll.c (memcoll): Optimize for the common case where the
42727         arguments are bytewise equal.
42728
42729 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42730
42731         * doc/regexprops-generic.texi: Add a copyright notice.
42732
42733 2006-08-15  Bruno Haible  <bruno@clisp.org>
42734
42735         * modules/tmpdir (License): Change to LGPL.
42736
42737 2006-08-15  Bruno Haible  <bruno@clisp.org>
42738
42739         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
42740         module.
42741
42742 2006-08-14  Simon Josefsson  <jas@extundo.com>
42743
42744         * config/srclist.txt: Add gnupload.
42745
42746 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42747
42748         Change copyright notice from LGPL 2 to GPL 2, since that's the
42749         standard form used in the gnulib repository.
42750         * tests/test-lock.c: Likewise.
42751         * tests/test-stdint.c: Likewise.
42752         * tests/test-tls.c: Likewise.
42753
42754         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
42755         prelude-manager.  User shorter URLs for GNU projects, without '?'.
42756         Add copyright notice.
42757
42758         * check-module: Add copyright notice.  Output a copyright
42759         notice if "--version" is specified.
42760         * modules/COPYING: New file.
42761         * tests/test-getaddrinfo.c: Add copyright notice.
42762         * tests/test-verify.c: Likewise.
42763
42764 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42765
42766         Change copyright notice from LGPL 2 to GPL 2, since that's the
42767         standard form used in the gnulib repository.
42768         * lib/lock.c: LGPL -> GPL.
42769         * lib/lock.h: Likewise.
42770         * lib/strnlen1.c: Likewise.
42771         * lib/strnlen1.h: Likewise.
42772         * lib/tls.c: Likewise.
42773         * lib/tls.h: Likewise.
42774         * lib/tmpdir.c: Likewise.
42775
42776         * lib/TODO: Remove; this belongs only in coreutils.
42777
42778 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42779
42780         Add copyright notices to long-enough files that lack them, since
42781         otherwise the files aren't clearly free.  Use the same notice that
42782         getdate.texi already uses.
42783         * doc/alloca-opt.texi: Add copyright notice.
42784         * doc/alloca.texi: Likewise.
42785         * doc/ctime.texi: Likewise.
42786         * doc/functions.texi: Likewise.
42787         * doc/gcd.texi: Likewise.
42788         * doc/gnulib-tool.texi: Likewise.
42789         * doc/inet_ntoa.texi: Likewise.
42790         * doc/visibility.texi: Likewise.
42791
42792         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
42793         * doc/quote.texi: Add copyright notice.
42794
42795         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
42796         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
42797         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
42798         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
42799         is now obsolete, and give a pointer to the Sun list.
42800         Add copyright notice.
42801
42802 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42803
42804         * config/srclistvars.sh: Add copyright notice.
42805
42806 2006-08-14  Eric Blake  <ebb9@byu.net>
42807
42808         Import the following change from libc:
42809
42810         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
42811
42812         Upstream bug 2997.
42813         * lib/misc/error.c: Add space between program name and message if file
42814         name is missing.
42815
42816 2006-08-12  Karl Berry  <karl@gnu.org>
42817
42818         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
42819         remove, these originate in gnulib now.
42820
42821 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42822
42823         * doc/Makefile (standards.info standards.html standards.dvi):
42824         Also depend on make-stds.texi.
42825
42826 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42827
42828         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
42829         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
42830
42831         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
42832         in wchar_t.  Problem reported by Eric Blake.
42833
42834         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
42835         LEN is smaller than SIZE.  Suggested by Bruno Haible.
42836         Also, help the compiler to keep LEN in a register.
42837
42838 2006-08-11  Eric Blake  <ebb9@byu.net>
42839
42840         * users.txt: Sort.  Add tar.
42841
42842 2006-08-11  Bruno Haible  <bruno@clisp.org>
42843
42844         * users.txt: New file.
42845
42846 2006-08-11  Bruno Haible  <bruno@clisp.org>
42847
42848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
42849         before <wchar.h>. Needed for OSF/1 and BSD/OS.
42850
42851 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42852
42853         * modules/snprintf (Depends-on): Remove minmax.
42854         (Maintainer): Add self and Bruno.
42855
42856 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42857
42858         * lib/.cppi-disable: Add snprintf.h, socket_.h.
42859         * lib/snprintf.c: Include <errno.h> and <limits.h>.
42860         (EOVERFLOW): Define if the system does not.
42861         Do not include "minmax.h"; it wasn't used.
42862         (snprintf): Don't assume size_t promotes to an unsigned type.
42863         Fix bug when generated string was too long for the buffer: the
42864         buffer's contents are supposed to be the initial prefix of the
42865         output.  Don't assume vasnprintf returns EOVERFLOW if the size
42866         exceeds INT_MAX; do the check ourselves.
42867
42868         Import the following changes from libc:
42869
42870         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
42871
42872         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
42873         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
42874         set wc to the byte which couldn't be converted.
42875         (re_string_reconstruct): Don't clear valid_raw_len before calling
42876         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
42877         tip_context using re_string_context_at.
42878
42879         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
42880
42881         * lib/posix/regex.h: g++ still cannot handled [restrict].
42882
42883         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
42884
42885         * lib/posix/regex.h: Remove special handling for VMS.
42886
42887 2006-08-10  Jim Meyering  <jim@meyering.net>
42888
42889         * modules/same-inode: New module.
42890         * modules/dev-ino: New module.
42891         * modules/cycle-check: Depend on these modules, rather than simply
42892         including their .h files.
42893         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
42894         required via m4/cycle-check.m4.
42895         * modules/same: Depend on new same-inode module, rather than
42896         including same-inode.h.
42897         * modules/chdir-safer: New file.
42898
42899         * modules/chown (Depends-on): Add stat-macros.
42900
42901 2006-08-10  Jim Meyering  <jim@meyering.net>
42902
42903         * m4/cycle-check.m4: New file.
42904         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
42905         * m4/dev-ino.m4, m4/same-inode.m4: New files.
42906
42907 2006-08-10  Eric Blake  <ebb9@byu.net>
42908
42909         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
42910         in from original proposal.
42911
42912 2006-08-10  Eric Blake  <ebb9@byu.net>
42913         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42914
42915         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
42916         namespace.
42917
42918 2006-08-10  Bruno Haible  <bruno@clisp.org>
42919
42920         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
42921         as well.
42922
42923 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42924
42925         Sync from coreutils.
42926
42927         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
42928
42929         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
42930         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
42931
42932 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42933
42934         * modules/restrict: Remove; no longer needed now that we assume
42935         Autoconf 2.59 or later.
42936         * MODULES.html.sh: Remove 'restrict'.
42937         * modules/argp (Depends-on): Remove 'restrict'.
42938         * modules/base64 (Depends-on): Likewise.
42939         * modules/gc (Depends-on): Likewise.
42940         * modules/getaddrinfo (Depends-on): Likewise.
42941         * modules/glob (Depends-on): Likewise.
42942         * modules/inet_ntop (Depends-on): Likewise.
42943         * modules/inet_pton (Depends-on): Likewise.
42944         * modules/memxor (Depends-on): Likewise.
42945         * modules/regex (Depends-on): Likewise.
42946         * modules/strtok_r (Depends-on): Likewise.
42947         * modules/time_r (Depends-on): Likewise.
42948
42949 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42950
42951         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
42952         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
42953         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42954         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
42955         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
42956         * m4/memxor.m4 (gl_MEMXOR): Likewise.
42957         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
42958         gl_C_RESTRICT replaced by AC_C_RESTRICT.
42959
42960         Merge from coreutils.
42961         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
42962         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
42963         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42964         * m4/time_r.m4 (gl_TIME_R): Likewise.
42965
42966 2006-08-09  Karl Berry  <karl@gnu.org>
42967
42968         * config/srclist.txt: no more gettext-tools, per Bruno.
42969
42970 2006-08-08  Eric Blake  <ebb9@byu.net>
42971
42972         * modules/verror: New module.
42973         * MODULES.html.sh: Document it.
42974
42975 2006-08-08  Eric Blake  <ebb9@byu.net>
42976
42977         * lib/verror.h, lib/verror.c: New files.
42978
42979 2006-08-08  Eric Blake  <ebb9@byu.net>
42980
42981         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
42982         verror_at_line output complies with GNU Coding Standards even when
42983         file is NULL.
42984
42985 2006-08-07  Bruno Haible  <bruno@clisp.org>
42986
42987         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
42988         versions of AIX.
42989         Reported by Ralf Wildenhues.
42990
42991 2006-08-07  Bruno Haible  <bruno@clisp.org>
42992
42993         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
42994         in an AC_DEFUN. Needed so that the autoconf snippets can use
42995         AC_REQUIRE.
42996
42997 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42998
42999         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43000         Initialize pkgdata_DATA.
43001         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43002         overriding it.
43003
43004 2006-08-06  Eric Blake  <ebb9@byu.net>
43005
43006         * lib/error.h: Fold in some upstream changes from glibc.
43007         * lib/error.c: Likewise.
43008
43009 2006-08-04  Bruno Haible  <bruno@clisp.org>
43010
43011         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43012         Make the mostlyclean-local rule depend on mostlyclean-generic.
43013         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43014
43015 2006-07-31  Bruno Haible  <bruno@clisp.org>
43016
43017         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43018         <stdlib.h>, <string.h>.
43019
43020 2006-07-30  Bruno Haible  <bruno@clisp.org>
43021
43022         * modules/readlink (License): Change to LGPL.
43023
43024 2006-07-30  Bruno Haible  <bruno@clisp.org>
43025
43026         * modules/javaversion (Makefile.am): Distribute javaversion.java and
43027         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43028         set PKGDATADIR to point to it.
43029
43030 2006-07-30  Bruno Haible  <bruno@clisp.org>
43031
43032         * modules/csharpexec (configure.ac): Comment out macro invocation.
43033         * modules/javaexec (configure.ac): Likewise.
43034         * modules/javacomp-script (configure.ac): Likewise.
43035
43036         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43037
43038 2006-07-30  Bruno Haible  <bruno@clisp.org>
43039
43040         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43041         linked-list.
43042
43043 2006-07-30  Bruno Haible  <bruno@clisp.org>
43044
43045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43046
43047 2006-07-30  Bruno Haible  <bruno@clisp.org>
43048
43049         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43050         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43051         get removed.
43052
43053 2006-07-29  Bruno Haible  <bruno@clisp.org>
43054
43055         Make it possible for gnulib-tool to work with locally modified or
43056         augmented gnulib repositories.
43057         * gnulib-tool (func_usage): Document --local-dir option.
43058         (local_gnulib_dir): New variable.
43059         Handle --local-dir option.
43060         (func_lookup_file): New function.
43061         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43062         (func_get_description, func_get_filelist, func_get_description,
43063         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43064         func_get_automake_snippet, func_get_include_directive,
43065         func_get_license, func_get_maintainer): Use func_lookup_file.
43066         (func_import, func_create_testdir): Use func_lookup_file.
43067
43068 2006-07-29  Bruno Haible  <bruno@clisp.org>
43069
43070         * modules/setenv (Depends-on): Add unistd.
43071
43072 2006-07-29  Bruno Haible  <bruno@clisp.org>
43073
43074         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43075
43076 2006-07-29  Bruno Haible  <bruno@clisp.org>
43077
43078         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43079
43080 2006-07-29  Bruno Haible  <bruno@clisp.org>
43081
43082         * gnulib-tool (import, update): If there is no Makefile.am, look at
43083         aclocal.m4, instead of bailing out.
43084
43085 2006-07-29  Bruno Haible  <bruno@clisp.org>
43086
43087         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43088         Categorize the options by when they are useful.
43089
43090 2006-07-29  Bruno Haible  <bruno@clisp.org>
43091
43092         * gnulib-tool (func_usage): Document option --no-libtool.
43093         Handle option --no-libtool.
43094         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43095         for changed semantics of $libtool variable.
43096         (func_import): Likewise. If libtool is not used, show this through
43097         an option --no-libtool.
43098         (func_create_testdir): Update.
43099
43100 2006-07-29  Bruno Haible  <bruno@clisp.org>
43101
43102         * gnulib-tool (func_import): Extend error message about missing
43103         --doc-base.
43104
43105 2006-07-29  Bruno Haible  <bruno@clisp.org>
43106
43107         * gnulib-tool (func_import): Don't create the $docbase directory if
43108         there is no file to store there.
43109
43110 2006-07-29  Bruno Haible  <bruno@clisp.org>
43111
43112         * gnulib-tool (autoconf_minversion): If a --dir option is given and
43113         relevant, look for configure.ac there, not in the current directory.
43114         Also use a simple search for AC_PREREQ, not "autoconf --trace".
43115
43116 2006-07-29  Bruno Haible  <bruno@clisp.org>
43117
43118         * gnulib-tool (SORT): New variable.
43119         (func_usage): Undocument --assume-autoconf option.
43120         Remove --assume-autoconf option handling.
43121         (autoconf_minversion): Determine from the contents of configure.ac.
43122         (func_import): Remove autoconf_minversion handling.
43123         Suggested by Eric Blake.
43124
43125 2006-07-29  Bruno Haible  <bruno@clisp.org>
43126
43127         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43128
43129 2006-07-29  Bruno Haible  <bruno@clisp.org>
43130
43131         * config/srclist.txt (*setenv.[ch]): Remove rules.
43132
43133 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43134
43135         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43136
43137 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43138
43139         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43140         arpa/inet.h.
43141
43142 2006-07-28  Simon Josefsson  <jas@extundo.com>
43143
43144         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43145         * modules/inet_pton (Depends-on): Likewise.
43146
43147 2006-07-28  Simon Josefsson  <jas@extundo.com>
43148
43149         * m4/netinet_in_h.m4: New file.
43150
43151 2006-07-28  Simon Josefsson  <jas@extundo.com>
43152
43153         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43154         #include's.
43155
43156 2006-07-28  Simon Josefsson  <jas@extundo.com>
43157
43158         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43159         #include's.
43160
43161 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
43162
43163         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43164         setgid on directories only if they set these bits.
43165         * lib/modechange.h: Remove obsolete comment about masks.
43166
43167 2006-07-28  Eric Blake  <ebb9@byu.net>
43168
43169         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43170         macro expansion.
43171
43172 2006-07-28  Bruno Haible  <bruno@clisp.org>
43173
43174         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43175
43176 2006-07-28  Bruno Haible  <bruno@clisp.org>
43177
43178         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43179
43180 2006-07-28  Bruno Haible  <bruno@clisp.org>
43181
43182         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43183         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43184         Define fallbacks.
43185         Avoids link error on FreeBSD 4.x.
43186         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43187
43188         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43189         encoding.
43190         * lib/mbswidth.c (iswcntrl): Likewise.
43191
43192 2006-07-27  Bruno Haible  <bruno@clisp.org>
43193
43194         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43195         test.
43196
43197 2006-07-27  Bruno Haible  <bruno@clisp.org>
43198
43199         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43200         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43201         defined.
43202
43203 2006-07-26  Eric Blake  <ebb9@byu.net>
43204
43205         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43206
43207 2006-07-26  Eric Blake  <ebb9@byu.net>
43208
43209         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43210         like mingw that lack mkstemp.
43211         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43212         avoid compilation warning on mingw.
43213
43214 2006-07-26  Bruno Haible  <bruno@clisp.org>
43215
43216         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43217         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43218         INT_FAST*_MIN, INTPTR_MIN.
43219
43220 2006-07-25  Bruno Haible  <bruno@clisp.org>
43221
43222         * modules/version-etc (Depends-on): Add stdarg.
43223
43224 2006-07-25  Bruno Haible  <bruno@clisp.org>
43225
43226         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43227         complex commands.
43228
43229 2006-07-25  Bruno Haible  <bruno@clisp.org>
43230
43231         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43232         defined in <stdarg.h> or config.h.
43233
43234 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43235
43236         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43237         (gl_STDIO_SAFER): Remove.
43238
43239 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43240
43241         * MODULES.html.sh (File stream based Input/Output):
43242         Add fopen-safer, tmpfile-safer; remove stdio-safer.
43243         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43244         * modules/fopen-safer, modules/tmpfile-safer: New files.
43245         * modules/stdio-safer: Remove.
43246
43247 2006-07-24  Bruno Haible  <bruno@clisp.org>
43248
43249         * modules/tmpdir: New file.
43250         * MODULES.html.sh (File system functions): Add it.
43251
43252 2006-07-24  Bruno Haible  <bruno@clisp.org>
43253
43254         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43255         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43256
43257 2006-07-24  Bruno Haible  <bruno@clisp.org>
43258
43259         * modules/clean-temp: New file.
43260
43261 2006-07-24  Bruno Haible  <bruno@clisp.org>
43262
43263         * m4/tmpdir.m4: New file, from GNU gettext.
43264
43265 2006-07-24  Bruno Haible  <bruno@clisp.org>
43266
43267         * lib/tmpdir.h: New file, from GNU gettext.
43268         * lib/tmpdir.c: New file, from GNU gettext.
43269
43270 2006-07-24  Bruno Haible  <bruno@clisp.org>
43271
43272         * lib/clean-temp.h: New file, from GNU gettext.
43273         * lib/clean-temp.c: New file, from GNU gettext.
43274
43275 2006-07-23  Eric Blake  <ebb9@byu.net>
43276
43277         * modules/stdio-safer (Files): Add tmpfile-safer.c.
43278         (Depends-on): Add binary-io.
43279
43280 2006-07-23  Eric Blake  <ebb9@byu.net>
43281
43282         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43283
43284 2006-07-23  Eric Blake  <ebb9@byu.net>
43285
43286         * lib/tmpfile-safer.c: New file.
43287         * lib/stdio-safer.h (fopen_safer): Add prototype.
43288         * lib/stdio--.h (tmpfile): Make safer.
43289
43290 2006-07-23  Bruno Haible  <bruno@clisp.org>
43291
43292         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
43293         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
43294         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
43295         gl_linked_remove_at): Use it.
43296
43297 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43298         and Simon Josefsson <jas@extundo.com>
43299
43300         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
43301
43302         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
43303
43304 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43305
43306         * modules/close-stream: New file.
43307         * modules/closeout (Description): Make it clear that it exits
43308         with a diagnostic on error.
43309         (Depends-on): Add close-stream.  Remove fpending, stdbool.
43310         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
43311
43312 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43313
43314         * m4/close-stream.m4: New file.
43315
43316 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43317
43318         * lib/close-stream.c, lib/close-stream.h: New files.
43319
43320 2006-07-22  Bruno Haible  <bruno@clisp.org>
43321
43322         Merge from GNU gettext 0.15.
43323
43324         2006-05-01  Bruno Haible  <bruno@clisp.org>
43325
43326                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
43327
43328         2006-07-22  Bruno Haible  <bruno@clisp.org>
43329
43330                 * modules/javaversion: New file.
43331                 * MODULES.html.sh (Java): Add javaversion.
43332
43333         2006-03-12  Bruno Haible  <bruno@clisp.org>
43334
43335                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
43336
43337         2005-12-04  Bruno Haible  <bruno@clisp.org>
43338
43339                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
43340                 (untested).
43341
43342         2006-06-21  Bruno Haible  <bruno@clisp.org>
43343
43344                 Avoid warnings from recent versions of mcs.
43345                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
43346                 -o, -L, -r any more. Use options documented since mcs-1.0
43347                 instead. Similarly for -g.
43348
43349         2005-12-04  Bruno Haible  <bruno@clisp.org>
43350
43351                 * build-aux/csharpcomp.sh.in: Suffix for resources is
43352                 .resources, not .resource.
43353
43354         2005-07-09  Bruno Haible  <bruno@clisp.org>
43355
43356                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
43357                 add a .dll suffix.
43358                 Reported by Mark Junker <mjscod@gmx.de>.
43359
43360         2006-07-22  Bruno Haible  <bruno@clisp.org>
43361
43362                 * modules/gettext: Upgrade to gettext-0.15.
43363                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
43364                 m4/visibility.m4.
43365                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
43366
43367 2006-07-22  Bruno Haible  <bruno@clisp.org>
43368
43369         Merge from GNU gettext 0.15.
43370
43371         2006-03-25  Bruno Haible  <bruno@clisp.org>
43372
43373                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
43374
43375         2006-07-21  Bruno Haible  <bruno@clisp.org>
43376
43377                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
43378                 "1.1".
43379
43380         2006-05-09  Bruno Haible  <bruno@clisp.org>
43381
43382                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
43383                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
43384                 for the conftestver execution.
43385
43386         2006-05-01  Bruno Haible  <bruno@clisp.org>
43387
43388                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
43389                 optional target-version argument. Verify that the compiler
43390                 groks source of the specified source-version, or add -source
43391                 option as necessary. Verify that the compiler produces
43392                 bytecode in the specified target-version, or add -target and
43393                 -source options as necessary. Make the result of the test
43394                 available as variable CONF_JAVAC. Also log error output in
43395                 config.log.
43396
43397         2006-03-11  Bruno Haible  <bruno@clisp.org>
43398
43399                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
43400
43401         2006-05-09  Bruno Haible  <bruno@clisp.org>
43402
43403                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
43404                 CLASSPATH_SEPARATOR to a semicolon.
43405
43406         2006-03-12  Bruno Haible  <bruno@clisp.org>
43407
43408                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
43409                 available as variable CONF_JAVA, for subsequent autoconf
43410                 tests. Also log error output in config.log.
43411
43412         2006-07-19  Bruno Haible  <bruno@clisp.org>
43413
43414                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
43415                 that getline works on glibc2 systems. Needed to avoid trouble
43416                 in relocatable.c.
43417                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
43418
43419         2005-12-04  Bruno Haible  <bruno@clisp.org>
43420
43421                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
43422                 launcher (untested).
43423
43424         2005-12-04  Bruno Haible  <bruno@clisp.org>
43425
43426                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
43427
43428         2006-07-22  Bruno Haible  <bruno@clisp.org>
43429
43430                 * gettext.m4: Update from GNU gettext-0.15.
43431                 * nls.m4: Likewise.
43432                 * po.m4: Likewise.
43433                 * inttypes-pri.m4: Likewise.
43434                 * inttypes-h.m4: Renamed from inttypes.m4.
43435                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
43436
43437 2006-07-22  Bruno Haible  <bruno@clisp.org>
43438
43439         Merge from GNU gettext 0.15.
43440
43441         2005-07-05  Bruno Haible  <bruno@clisp.org>
43442
43443                 * printf-args.c (printf_fetchargs): Work around broken
43444                 definition of wint_t on mingw.
43445
43446         2005-02-12  Bruno Haible  <bruno@clisp.org>
43447
43448                 * xallocsa.h: Add extern "C" for C++.
43449
43450         2006-05-17  Bruno Haible  <bruno@clisp.org>
43451
43452                 Cygwin portability.
43453                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
43454
43455         2006-04-30  Bruno Haible  <bruno@clisp.org>
43456
43457                 * progreloc.c: Include <mach-o/dyld.h> if available.
43458                 (find_executable): Use _NSGetExecutablePath when possible.
43459
43460         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
43461
43462                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
43463                 function.
43464
43465         2005-12-29  Bruno Haible  <bruno@clisp.org>
43466
43467                 * progreloc.c (set_program_name_and_installdir): Fix
43468                 compilation error.
43469
43470         2005-12-04  Bruno Haible  <bruno@clisp.org>
43471
43472                 Cygwin portability.
43473                 * progreloc.c: Include <windows.h> also on Cygwin.
43474                 (find_executable): Add support for Cygwin.
43475                 (set_program_name_and_installdir): Handle also platforms with
43476                 nonempty EXEEXT.
43477
43478         2006-07-11  Bruno Haible  <bruno@clisp.org>
43479
43480                 * javacomp.c: Fix a comment.
43481                 Reported by Jim Meyering.
43482
43483         2006-04-30  Bruno Haible  <bruno@clisp.org>
43484
43485                 * javacomp.h (compile_java_class): Add source_version,
43486                 target_version arguments.
43487                 * javacomp.c: Rewritten to choose only a compiler that
43488                 respects the specified source_version and target_version.
43489
43490         2006-06-27  Bruno Haible  <bruno@clisp.org>
43491
43492                 Assume correct S_ISDIR macro.
43493                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
43494
43495         2006-07-22  Bruno Haible  <bruno@clisp.org>
43496
43497                 * javaversion.h: New file, from GNU gettext.
43498                 * javaversion.c: New file, from GNU gettext.
43499                 * javaversion.java: New file, from GNU gettext.
43500                 * javaversion.class: New file, from GNU gettext.
43501
43502         2006-05-17  Bruno Haible  <bruno@clisp.org>
43503
43504                 Cygwin portability.
43505                 * javaexec.c (execute_java_class): Test for jview program
43506                 also on Cygwin.
43507
43508         2006-04-09  Bruno Haible  <bruno@clisp.org>
43509
43510                 * fatal-signal.c: Don't include string.h.
43511                 (at_fatal_signal): Use a copying loop instead of memcpy.
43512
43513         2005-12-04  Bruno Haible  <bruno@clisp.org>
43514
43515                 * csharpexec.c: Add support for 'clix' launcher (untested).
43516                 (execute_csharp_using_sscli): New function.
43517                 (execute_csharp_program): Call it.
43518
43519         2006-06-21  Bruno Haible  <bruno@clisp.org>
43520
43521                 Avoid warnings from recent versions of mcs.
43522                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
43523                 -o, -L, -r any more. Use options documented since mcs-1.0
43524                 instead. Similarly for -g.
43525
43526         2005-07-09  Bruno Haible  <bruno@clisp.org>
43527
43528                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
43529                 add a .dll suffix.
43530                 Reported by Mark Junker <mjscod@gmx.de>.
43531
43532         2006-06-17  Bruno Haible  <bruno@clisp.org>
43533
43534                 * config.charset: Update for NetBSD 3.0.
43535
43536         2006-05-17  Bruno Haible  <bruno@clisp.org>
43537
43538                 Cygwin portability.
43539                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
43540
43541         2006-05-16  Bruno Haible  <bruno@clisp.org>
43542
43543                 * localcharset.c [CYGWIN]: Include <windows.h>.
43544                 (get_charset_aliases): For Cygwin, return the same CPxxx
43545                 aliases list as under WIN32.
43546                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
43547                 the environment variables. Fall back to GetACP().
43548
43549         2006-04-05  Bruno Haible  <bruno@clisp.org>
43550
43551                 * config.charset: Update Juan Manuel Guerrero's address.
43552
43553         2005-02-12  Bruno Haible  <bruno@clisp.org>
43554
43555                 * allocsa.h: Add extern "C" for C++.
43556
43557         2005-02-10  Bruno Haible  <bruno@clisp.org>
43558
43559                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
43560                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
43561
43562         2006-07-22  Bruno Haible  <bruno@clisp.org>
43563
43564                 * gettext.h: Update to GNU gettext-0.15.
43565
43566 2006-07-22  Bruno Haible  <bruno@clisp.org>
43567
43568         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
43569         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
43570         lib-prefix.m4, longdouble.m4, ssize_t.m4.
43571
43572 2006-07-21  Eric Blake  <ebb9@byu.net>
43573
43574         * modules/stdlib-safer: New file.
43575         * MODULES.html.sh (File stream based Input/Output): Add
43576         stdlib-safer.
43577
43578 2006-07-21  Eric Blake  <ebb9@byu.net>
43579
43580         * lib/stdlib-safer.h: New file from coreutils, required by
43581         stdlib--.h.
43582
43583 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
43584
43585         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
43586
43587 2006-07-20  Bruno Haible  <bruno@clisp.org>
43588
43589         * gnulib-tool: Recognize new option --assume-autoconf.
43590         (autoconf_minversion): New variable.
43591         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
43592
43593 2006-07-20  Bruno Haible  <bruno@clisp.org>
43594
43595         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
43596
43597 2006-07-19  Derek R. Price  <derek@ximbiot.com>
43598
43599         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
43600         Reindent and repaginate.
43601
43602 2006-07-19  Derek Price  <derek@ximbiot.com>
43603
43604         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
43605         Correct grammar.
43606
43607 2006-07-17  Bruno Haible  <bruno@clisp.org>
43608
43609         * modules/list: New file.
43610         * modules/array-list: New file.
43611         * modules/carray-list, modules/carray-list-tests: New files.
43612         * modules/linked-list, modules/linked-list-tests: New files.
43613         * modules/avltree-list, modules/avltree-list-tests: New files.
43614         * modules/rbtree-list, modules/rbtree-list-tests: New files.
43615         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
43616         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
43617         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
43618         * modules/oset: New file.
43619         * modules/array-oset: New file.
43620         * modules/avltree-oset, modules/avltree-oset-tests: New files.
43621         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
43622         * tests/test-carray_list.c: New file.
43623         * tests/test-linked_list.c: New file.
43624         * tests/test-avltree_list.c: New file.
43625         * tests/test-rbtree_list.c: New file.
43626         * tests/test-linkedhash_list.c: New file.
43627         * tests/test-avltreehash_list.c: New file.
43628         * tests/test-rbtreehash_list.c: New file.
43629         * tests/test-avltree_oset.c: New file.
43630         * tests/test-rbtree_oset.c: New file.
43631         * MODULES.html.sh (Container data structures): New section.
43632
43633 2006-07-17  Bruno Haible  <bruno@clisp.org>
43634
43635         * m4/gl_list.m4: New file.
43636
43637 2006-07-17  Bruno Haible  <bruno@clisp.org>
43638
43639         * lib/gl_list.h: New file.
43640         * lib/gl_list.c: New file.
43641         * lib/gl_array_list.h: New file.
43642         * lib/gl_array_list.c: New file.
43643         * lib/gl_carray_list.h: New file.
43644         * lib/gl_carray_list.c: New file.
43645         * lib/gl_linked_list.h: New file.
43646         * lib/gl_linked_list.c: New file.
43647         * lib/gl_anylinked_list1.h: New file.
43648         * lib/gl_anylinked_list2.h: New file.
43649         * lib/gl_avltree_list.h: New file.
43650         * lib/gl_avltree_list.c: New file.
43651         * lib/gl_anyavltree_list1.h: New file.
43652         * lib/gl_anyavltree_list2.h: New file.
43653         * lib/gl_rbtree_list.h: New file.
43654         * lib/gl_rbtree_list.c: New file.
43655         * lib/gl_anyrbtree_list1.h: New file.
43656         * lib/gl_anyrbtree_list2.h: New file.
43657         * lib/gl_anytree_list1.h: New file.
43658         * lib/gl_anytree_list2.h: New file.
43659         * lib/gl_linkedhash_list.h: New file.
43660         * lib/gl_linkedhash_list.c: New file.
43661         * lib/gl_anyhash_list1.h: New file.
43662         * lib/gl_anyhash_list2.h: New file.
43663         * lib/gl_avltreehash_list.h: New file.
43664         * lib/gl_avltreehash_list.c: New file.
43665         * lib/gl_rbtreehash_list.h: New file.
43666         * lib/gl_rbtreehash_list.c: New file.
43667         * lib/gl_anytreehash_list1.h: New file.
43668         * lib/gl_anytreehash_list2.h: New file.
43669
43670         * lib/gl_oset.h: New file.
43671         * lib/gl_oset.c: New file.
43672         * lib/gl_array_oset.h: New file.
43673         * lib/gl_array_oset.c: New file.
43674         * lib/gl_avltree_oset.h: New file.
43675         * lib/gl_avltree_oset.c: New file.
43676         * lib/gl_rbtree_oset.h: New file.
43677         * lib/gl_rbtree_oset.c: New file.
43678         * lib/gl_anytree_oset.h: New file.
43679
43680 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43681
43682         * m4/mkancesdirs.m4: New file.
43683         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
43684         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
43685         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
43686         it.
43687
43688 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43689
43690         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
43691         * lib/mkancesdirs.h: New files.
43692         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
43693         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
43694         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
43695         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
43696         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
43697         callers changed.  Revamp internals significantly, by not
43698         attempting to create directories that are temporarily more
43699         permissive than the final results.  Do not attempt to use
43700         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
43701         This removes some race conditions, fixes some bugs, and simplifies
43702         things.  Use new dirchownmod function to do owner and mode changes.
43703         * lib/mkdir-p.h: Likewise.
43704         * lib/modechange.c (octal_to_mode): New function.
43705         (struct mode_change): New member mentioned.
43706         (make_node_op_equals): New arg mentioned.  All callers changed.
43707         (mode_compile): Keep track of which mode bits the user has explicitly
43708         mentioned.
43709         (mode_adjust): New arg DIR, so that we implement the X op correctly.
43710         New arg PMODE_BITS, to keep track of which mode bits the user
43711         mentioned; it treats S_ISUID and S_ISGID speciall.
43712         All callers changed.
43713         * lib/modechange.h: Likewise.
43714
43715 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43716
43717         * MODULES.html.sh: Add mkancestors.
43718         * modules/mkancesdirs: New module.
43719         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
43720         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
43721         The chdir-safer and afs files are now orphans; I'll remove them
43722         unless someone speaks up.
43723         Add lib/dirchownmod.c, lib/dirchownmod.h.
43724         (Depends-on): Remove alloca, chown, save-cwd, dirname.
43725         Add lchown, mkancesdirs.
43726         (Maintainer): Add self.
43727
43728 2006-07-15  Karl Berry  <karl@gnu.org>
43729
43730         * gnulib-tool: help message wording/arrangement.
43731
43732 2006-07-14  Simon Josefsson  <jas@extundo.com>
43733
43734         * doc/gnulib.texi (Libtool and Windows): New section.
43735
43736 2006-07-12  Simon Josefsson  <jas@extundo.com>
43737
43738         * modules/gendocs (License): Fix license, approved by Karl.
43739
43740 2006-07-12  Eric Blake  <ebb9@byu.net>
43741
43742         * MODULES.html.sh: Add gendocs.
43743
43744 2006-07-11  Eric Blake  <ebb9@byu.net>
43745
43746         * modules/fdl: New module, to install doc/fdl.texi.
43747         * MODULES.html.sh: Add new section for documentation modules.
43748         * gnulib-tool: Avoid space-tab.
43749         (--doc-base): New option, to manage files from doc.
43750
43751 2006-07-11  Eric Blake  <ebb9@byu.net>
43752
43753         * m4/absolute-header.m4: Fix comments to match recent change.
43754
43755 2006-07-11  Eric Blake  <ebb9@byu.net>
43756
43757         * gnulib-tool: List --doc-base before --tests-base.
43758
43759 2006-07-11  Derek R. Price  <derek@ximbiot.com>
43760
43761         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
43762
43763 2006-07-11  Bruno Haible  <bruno@clisp.org>
43764
43765         * README: Mention where to put documentation.
43766
43767 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43768
43769         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
43770
43771 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43772
43773         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
43774         to stdint.m4.
43775
43776 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43777
43778         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
43779         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
43780         "no/such/file/stdint.h" when there is no such file, so that
43781         the resulting C code can be parsed by dodgy compilers.
43782         Problems reported by Bob Proulx.
43783
43784 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43785
43786         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
43787         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43788         macros into the GNU _D_EXACT_NAMLEN.
43789         * lib/savedir.c:  Likewise.
43790         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
43791
43792 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43793         and Paul Eggert  <eggert@cs.ucla.edu>
43794
43795         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
43796         * m4/savedir.m4:
43797         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43798         macros into the GNU _D_EXACT_NAMLEN.
43799
43800 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43801
43802         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
43803         around the absolute name, to work around a problem with the HP-UX
43804         11.23 native C compiler, reported by Bob Proulx.
43805
43806 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43807
43808         * doc/maintain.texi, make-stds.texi: Sync from
43809         <http://savannah.gnu.org/projects/gnustandards>.
43810
43811 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43812
43813         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
43814
43815 2006-07-09  Jim Meyering  <jim@meyering.net>
43816
43817         * m4/glob.m4: Remove a doubled word in a comment.
43818
43819 2006-07-09  Jim Meyering  <jim@meyering.net>
43820
43821         * lib/argp-pv.c: Remove a doubled word in a comment.
43822         * lib/check-version.c (check_version): Likewise.
43823         * lib/javacomp.c (compile_java_class): Likewise.
43824
43825 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
43826
43827         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
43828         for the benefit of people using Autoconf 2.60.  If you want to
43829         support older Autoconf versions you can copy m4/onceonly_2_57.m4
43830         (or m4/onceonly.m4, if pre-2.57) manually.
43831
43832 2006-07-08  Jim Meyering  <jim@meyering.net>
43833
43834         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
43835         comment.
43836         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
43837         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
43838         comment.
43839
43840 2006-07-08  Jim Meyering  <jim@meyering.net>
43841
43842         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
43843
43844 2006-07-07  Simon Josefsson  <jas@extundo.com>
43845
43846         * tests/test-crc.c: Change expected crc value, the test vector
43847         were probably computed using the old broken crc.c?
43848
43849 2006-07-06  Simon Josefsson  <jas@extundo.com>
43850
43851         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
43852         now the canonical place for the M4 file).
43853
43854         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
43855         from the sys_socket dependency now.
43856
43857         * modules/inet_pton (Files): Ditto.
43858
43859         * modules/inet_ntop (Files): Ditto.
43860
43861 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
43862
43863         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
43864         not gl_PREREQ_GETUSERSHELL.
43865
43866 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43867
43868         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
43869         with only one argument, for Autoconf 2.60.
43870         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
43871         expand to nothing, so add a shell command to avoid syntax error.
43872         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43873
43874 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43875
43876         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
43877
43878 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43879
43880         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
43881         no longer needed.  Check for isblank decl.
43882         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
43883         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
43884         of existence.
43885
43886 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43887
43888         * lib/getloadavg.c: Use __VMS, not VMS.
43889         * lib/getopt.c: Likewise.
43890         * lib/getpagesize.h: Likewise.
43891         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
43892         and probably does not work.
43893
43894 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43895
43896         * lib/.cppi-disable: Add wcwidth.
43897         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
43898         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
43899         (ISGRAPH): Remove.  All uses changed to isgraph.
43900         (FOLD) [!defined _LIBC]: Remove special case.
43901         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
43902         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
43903         HAVE_ISBLANK.
43904         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
43905         case.
43906
43907 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
43908
43909         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
43910         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
43911         brackets.  Other minor changes to suppress some compiler
43912         warnings.
43913
43914 2006-07-06  Derek R. Price  <derek@ximbiot.com>
43915         and Paul Eggert  <eggert@cs.ucla.edu>
43916
43917         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
43918         of invoking obsolescent AC_HEADER_DIRENT macro.
43919         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
43920         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
43921         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43922         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
43923         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
43924         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43925         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
43926         * m4/readdir.m4: Remove; no longer needed.
43927
43928 2006-07-06  Derek R. Price  <derek@ximbiot.com>
43929         and Paul Eggert  <eggert@cs.ucla.edu>
43930
43931         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
43932         Don't worry about this obsolete case any more.
43933         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
43934         directories.
43935         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
43936         worry about this obsolete case any more.
43937         * lib/fts.c: Likewise.
43938         * lib/getcwd.c: Likewise.
43939         * lib/glob.h: Likewise.
43940         * lib/savedir.c: Likewise.
43941
43942 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43943
43944         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
43945         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
43946         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
43947         needed.
43948         All uses removed.
43949         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43950         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
43951         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
43952         needed.
43953         * m4/getdate.m4 (gl_GETDATE): Likewise.
43954         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
43955         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
43956         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43957         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43958         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
43959         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43960         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
43961         needed.
43962
43963 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43964
43965         * lib/memcasecmp.c: Include <limits.h>.
43966         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
43967         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
43968         Don't assume isdigit succeeds only on '0' through '9'.
43969
43970 2006-07-05  Eric Blake  <ebb9@byu.net>
43971
43972         * modules/getaddrinfo (Depends-on): Add snprintf.
43973
43974 2006-07-05  Eric Blake  <ebb9@byu.net>
43975
43976         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
43977         to avoid 'header present but could not be compiled' on cygwin.
43978
43979 2006-07-05  Eric Blake  <ebb9@byu.net>
43980
43981         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
43982         missing from netdb.h.
43983         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
43984
43985 2006-07-05  Derek R. Price  <derek@ximbiot.com>
43986
43987         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
43988         no longer needed.
43989         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
43990         * m4/getdate.m4 (gl_GETDATE): Likewise.
43991         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
43992         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
43993         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43994         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43995         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43996
43997 2006-07-05  Derek R. Price  <derek@ximbiot.com>
43998
43999         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44000         All uses of is_space replaced by isspace.
44001         * lib/exit.h: Don't talk about STDC_HEADERS.
44002         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
44003         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44004         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
44005         replaced by isprint etc.
44006         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44007         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44008         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44009         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44010         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44011         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44012
44013 2006-07-05  Bruno Haible  <bruno@clisp.org>
44014
44015         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44016         the function exists, before testing against AIX.
44017         Reported by Martin Lambers <marlam@marlam.de>.
44018
44019 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44020
44021         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44022         From Mark D. Baushke.
44023
44024 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44025
44026         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44027         to the absolute name, not just one, to bypass Sun C 5.8's
44028         "warning: #include of /usr/include/... may be non-portable".
44029
44030 2006-07-04  Eric Blake  <ebb9@byu.net>
44031
44032         * modules/dirname-tests: New test module.
44033         * tests/test-dirname.c: New file, replacing dirname.c
44034         TEST_DIRNAME section that was recently deleted.
44035
44036 2006-07-04  Bruno Haible  <bruno@clisp.org>
44037
44038         Assume ANSI C header files and <ctype.h> functions.
44039         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44040         (mbsnwidth): Use isprint, iscntrl instead.
44041
44042 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44043
44044         Merge from coreutils.
44045         * MODULES.html.sh: Add xstrtold.
44046         * modules/xstrtold: New file.
44047         * modules/cycle-check (Files): Add lib/same-inode.h.
44048         * modules/dirname (Files): Add m4/double-slash-root.m4.
44049         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44050         * modules/mkdir-p (Files): Add lib/same-inode.h.
44051         * modules/same (Files): Add lib/same-inode.h.
44052
44053 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44054
44055         * m4/absolute-header.m4: Renamed from full-header-path.m4.
44056         This is to keep the terminology clean; POSIX talks about
44057         "absolute pathnames", not "full pathnames", but the GNU
44058         Coding Standards say to use "path" for something else;
44059         so use "absolute" to keep both sides happy.
44060         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44061         Set gl_absolute_header, not gl_full_header_path.
44062         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44063         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44064         All uses changed.
44065
44066         Merge from coreutils.
44067
44068         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44069
44070         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44071         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44072         want to require the building of c-strtod.o.
44073         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44074         needs -lm directly.
44075         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44076
44077         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44078
44079         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44080         --as-needed option if available.  Problem reported by Albert Chin in
44081         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44082         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44083         cc merely issues a bunch of annoying warnings for --as-needed
44084         (this problem was reported by Bob Proulx).  Also, try linking with
44085         -lm to detect a bug in binutils 2.16 (this problem was reported
44086         by Ralf Wildenhues).
44087
44088         2006-06-18  Jim Meyering  <jim@meyering.net>
44089
44090         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44091         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44092         macro.
44093         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44094         also check for glibc-2.4's abort-inducing bug.
44095
44096         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44097         Low-probability clean-up should be to use rmdir to get rid of
44098         the just-created directory, not unlink.
44099
44100         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44101         configure fail, and request a bug report to inform us about it.
44102         Add a comment that, barring reports to the contrary, in 2007 we'll
44103         assume ftruncate is universally available.
44104
44105         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44106
44107         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44108
44109         2006-03-12  Jim Meyering  <jim@meyering.net>
44110
44111         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44112         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44113         * m4/same.m4 (gl_SAME): Likewise.
44114         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44115
44116         2006-03-11  Eric Blake  <ebb9@byu.net>
44117
44118         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44119         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44120         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44121         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44122
44123 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44124
44125         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44126         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
44127         reported by Mark D. Baushke, one in
44128         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44129
44130         Merge from coreutils.
44131
44132         * lib/.cppi-disable: Add stdint_.h.
44133         * lib/.cvsignore: Add stdint.h.
44134
44135         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44136
44137         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44138         both double and long double versions.
44139         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
44140         * lib/xstrtold.c: New file.
44141         * lib/xstrtod.h (xstrtold): New decl.
44142
44143         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44144
44145         * lib/filemode.c (setst): Remove.
44146         (strmode): Rewrite to avoid setst.  This makes the code shorter,
44147         (arguably) clearer, and the generated code is a bit smaller on my
44148         Debian GNU/Linux stable x86 host.
44149
44150         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44151
44152         * lib/filemode.c: Include "filemode.h" first, to test the interface.
44153         Assume that filemode.h includes sys/types.h and sys/stat.h.
44154         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44155         (ftypelet): Reorder to put common cases first, for efficiency.
44156         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
44157         to do 'M'.
44158         (strmode): Renamed from mode_string, and now stores 12 bytes instead
44159         of 10, for compatibility with FreeBSD.  All callers changed.
44160         (filemodestring): Now stores 12 bytes instead of 10, and sets file
44161         types that can't be deduced solely from st_mode.  First arg is now a
44162         const pointer.
44163         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44164         (strmode): Renamed from mode_string.
44165         (filemodestring): New decl.
44166         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44167         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44168         needed.
44169         (S_ISPORT, S_ISWHT): New macros, if not already defined.
44170
44171         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
44172
44173         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44174         fsusage.h now does that.  Include fsusage.h first, to test interface.
44175         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
44176         at most one method (the old code could have generated decls that
44177         didn't conform to C89, not that this was ever exercised).
44178         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44179
44180         2006-03-19  Jim Meyering  <jim@meyering.net>
44181
44182         Work even in a chroot where d_ino values for entries in "/"
44183         don't match the stat.st_ino values for the same names.
44184         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44185         number, iterate through all entries again, using lstat instead.
44186         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44187         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44188
44189         * lib/getcwd.c (__getcwd): Clarify a comment.
44190         Use memcpy in place of a call to strcpy.
44191
44192         2006-03-12  Jim Meyering  <jim@meyering.net>
44193
44194         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44195         matches that of the current directory (which we're about to chdir ".."
44196         out of), then save the dev-ino of the parent, instead.
44197
44198         * lib/same-inode.h (SAME_INODE): New file/macro.
44199         * lib/chdir-safer.c (SAME_INODE): Remove definition.
44200         Include "same-inode.h", instead.
44201         * lib/same.c: Likewise.
44202         * lib/cycle-check.h: Include "same-inode.h".
44203         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44204         * lib/cycle-check.c (SAME_INODE): Remove definition.
44205         * lib/root-dev-ino.h: Include "same-inode.h".
44206
44207         2006-03-11  Eric Blake  <ebb9@byu.net>
44208
44209         * lib/same.c (same_name): s/base_name/last_component/
44210         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44211         * lib/filenamecat.c (file_name_concat): Likewise.
44212
44213         2006-03-11  Eric Blake  <ebb9@byu.net>,
44214                     Paul Eggert  <eggert@cs.ucla.edu>
44215
44216         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44217         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44218         drive prefix.
44219         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44220         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44221         (last_component): New method.
44222         * lib/dirname.c (dir_len): Determine when drive letters need a
44223         subsequent slash.  Preserve // when it is special.
44224         (dir_name): Don't append dot when drive letter is absolute.
44225         [TEST_DIRNAME]: Move into a full-blown gnulib test.
44226         * lib/basename.c (base_name): New semantics - malloc the result.
44227         Preserve // when it is special.  Preserve relative files that look
44228         like drive letters.
44229         (base_len): Preserve // when it is special.
44230         (last_component): New method, similar to old base_name semantics.
44231         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44232         base_name.  Strip redundant slashes from ///.
44233
44234 2006-07-03  Jim Meyering  <jim@meyering.net>
44235
44236         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44237         macro is used before the first cycle_check call.
44238
44239 2006-07-03  Eric Blake  <ebb9@byu.net>
44240
44241         * modules/dirname (Depends-on): Add xstrndup.
44242
44243 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44244
44245         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44246         test cases, so that config.log is a bit easier to follow.
44247
44248 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44249
44250         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44251         both are 64 bits, since this seems to be the tradition, and this
44252         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
44253         we ever run into a host that prefers long long to long in this
44254         case, we'll need another configure-time test.  Problem reported by
44255         Jim Meyering.
44256
44257 2006-07-02  Eric Blake  <ebb9@byu.net>
44258
44259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44260
44261 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44262
44263         * modules/inttypes (Depends-on): No longer depends on stdint.
44264         * modules/stdint (Description): Say more about assumptions.
44265         Say that the fast types might differ.  Say macros are used.
44266         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
44267         (Makefile.am): Revise list of substituted symbols to match
44268         new stdint.m4.
44269         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44270         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44271         * tests/test-stdint.c (verify_same_types)
44272         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44273         the code conforms to C99/C89.
44274         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44275         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44276
44277 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44278
44279         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44280         but fix a bug, by requiring at least 64 bits.
44281         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44282         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44283         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
44284         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44285
44286         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44287         changes.  Make 2.59 a prerequisite.  Check and substitute for
44288         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
44289         inttypes.h.  Do not use special include files; just use the
44290         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
44291         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
44292         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
44293         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
44294         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
44295         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
44296         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
44297         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
44298         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
44299         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
44300         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
44301         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
44302         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
44303         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
44304         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
44305         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
44306         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
44307         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
44308         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
44309         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
44310         WINT_MAX.  Check for C99 conformance more strictly, by detecting
44311         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
44312         not check for things that C99 does not require, e.g., int8_t.  If
44313         a test isn't needed unless <stdint.h> isn't working, and is
44314         unlikely to be needed for any other reason, then don't do it
44315         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
44316         size_t, since we assume C89 freestanding at least.  Do not check
44317         for sig_atomic_t, wchar_t, or wint_t, since the code now does
44318         the right thing even if the types are not defined.  Instead use:
44319         (gl_STDINT_TYPE_PROPERTIES): New macro.
44320         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
44321         testing whether <sys/types.h> clashes, as Autoconf does this for
44322         us now.  All uses removed.
44323         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
44324         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
44325         (gl_CHECK_TYPE_SAME):
44326         Remove; no longer needed.
44327         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
44328         exists, since we'll return 0 anyway in that case.
44329         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
44330
44331 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44332
44333         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
44334         possible collision with system files.
44335         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
44336         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
44337         WCHAR_MIN and WCHAR_MAX in this case.
44338         (<stddef.h>): Do not include; no longer needed.
44339         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
44340         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
44341         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
44342         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
44343         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
44344         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
44345         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
44346         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
44347         !defined(__c99))]: Include in this case too, since it's harmless
44348         now.
44349         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
44350         dangerous to do so.
44351         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
44352         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
44353         (_STDINT_MIN, _STDINT_MAX): New macros.
44354         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
44355         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
44356         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
44357         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
44358         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
44359         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
44360         macros, not typedefs; this simplifies things quite a bit.
44361         Use long int for all types narrower than int64_t.
44362         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
44363         Define in terms of long long int or int64_t or long int,
44364         not int64_t or int32_t.  This saves some compile-time testing.
44365         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
44366         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
44367         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
44368         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
44369         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
44370         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
44371         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
44372         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
44373         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
44374         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
44375         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44376         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44377         undef any previous version and define our own version, for
44378         simplicity and consistency with the new macros for types.
44379         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44380         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44381         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
44382         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
44383         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
44384         @WINT_T_SUFFIX@ to keep things simple here.
44385         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
44386         Simplify by assuming typical 8/16/32/64 host, since we're
44387         already doing that elsewhere anyway.
44388         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
44389         and assume long long int is 64 bits if available.  This
44390         speeds up 'configure'.
44391
44392 2006-07-01  Eric Blake  <ebb9@byu.net>
44393
44394         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
44395         Reported by Andreas Buening.
44396
44397 2006-07-01  Eric Blake  <ebb9@byu.net>
44398
44399         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
44400
44401 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44402
44403         * lib/getaddrinfo.c: fixed typo
44404
44405 2006-06-29  Jim Meyering  <jim@meyering.net>
44406
44407         * modules/strftime (Maintainer): Add my name, since with the
44408         FPRINTFTIME changes strftime.c has forked from glibc.
44409
44410 2006-06-29  Eric Blake  <ebb9@byu.net>
44411
44412         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
44413
44414 2006-06-29  Eric Blake  <ebb9@byu.net>
44415
44416         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
44417
44418 2006-06-29  Eric Blake  <ebb9@byu.net>
44419
44420         * lib/stat_.h: New file.
44421
44422 2006-06-29  Eric Blake  <ebb9@byu.net>
44423
44424         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
44425         unused static function.
44426
44427 2006-06-29  Eric Blake  <ebb9@byu.net>
44428
44429         * doc/functions.texi (Function Portability): Document missing lstat
44430         on mingw.
44431
44432 2006-06-29  Eric Blake  <ebb9@byu.net>
44433
44434         * MODULES.html.sh: Add sys_stat.
44435         * modules/sys_stat: New module.
44436         * modules/mkstemp (Depends-on): Add sys_stat.
44437
44438 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44439
44440         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
44441
44442 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44443
44444         * m4/c-bs-a.m4: Removed.
44445
44446 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44447
44448         * lib/strftime.c: Assume strftime() exists.
44449
44450 2006-06-29  Derek Price  <derek@ximbiot.com>
44451
44452         * modules/c-bs-a: Removed - \a is C89.
44453         * MODULES.html.sh: Remove c-bs-a.
44454
44455 2006-06-29  Bruno Haible  <bruno@clisp.org>
44456
44457         * modules/wcwidth (License): Change to LGPL.
44458
44459 2006-06-28  Simon Josefsson  <jas@extundo.com>
44460
44461         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
44462         on _WIN32.
44463
44464         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
44465         getnameinfo.
44466
44467 2006-06-28  Simon Josefsson  <jas@extundo.com>
44468
44469         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
44470
44471 2006-06-28  Simon Josefsson  <jas@extundo.com>
44472
44473         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
44474         functions there.  It will succeed on Windows XP, but on Windows
44475         2000 and (presumably) earlier, it will fail, and use the internal
44476         re-implementation.
44477         (use_win32_p): New function.
44478         (getaddrinfo): Use strtoul on servname, to support numeric ports.
44479         Support AI_NUMERICSERV to disable getservbyname.
44480         (getnameinfo): New function, only supports
44481         NI_NUMERICHOST|NI_NUMERICSERV for now.
44482
44483         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
44484         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
44485         getnameinfo.
44486
44487 2006-06-28  Eric Blake  <ebb9@byu.net>
44488
44489         * modules/wcwidth: New file.
44490         * modules/mbchar (Depends-on): Add wcwidth.
44491         * modules/mbswidth (Depends-on): Add wcwidth.
44492         * MODULES.html.sh: Add wcwidth.
44493
44494 2006-06-28  Eric Blake  <ebb9@byu.net>
44495
44496         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
44497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
44498
44499 2006-06-28  Eric Blake  <ebb9@byu.net>
44500
44501         * lib/xvasprintf.h: Fix comments.
44502
44503 2006-06-28  Eric Blake  <ebb9@byu.net>
44504
44505         * lib/mbchar.h (wcwidth): Include wcwidth.h.
44506         * lib/mbswidth.c (wcwidth): Move from here...
44507         * lib/wcwidth.h: ...to this new file.
44508
44509 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44510
44511         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
44512
44513         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
44514         it's obsolete.
44515         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
44516
44517 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44518
44519         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
44520         Autoconf 2.60 says this stuff was obsolete.
44521
44522 2006-06-28  Bruno Haible  <bruno@clisp.org>
44523
44524         * modules/wcwidth (Files): Add m4/wchar_t.m4.
44525
44526 2006-06-28  Bruno Haible  <bruno@clisp.org>
44527
44528         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
44529         gt_TYPE_WCHAR_T.
44530
44531 2006-06-28  Bruno Haible  <bruno@clisp.org>
44532
44533         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
44534         declaration for wcwidth.
44535         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
44536
44537 2006-06-28  Bruno Haible  <bruno@clisp.org>
44538
44539         * lib/mkdtemp.c [MINGW]: Include <io.h>.
44540         (mkdir): Define using _mkdir.
44541
44542 2006-06-28  Bruno Haible  <bruno@clisp.org>
44543
44544         * lib/getaddrinfo.h: Fix POSIX URL.
44545         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
44546         _WIN32.
44547         (use_win32_p): Make static.
44548         (getaddrinfo): Reject service name if it is empty or does not consist
44549         solely of decimal digits, or if its value is > 65535.
44550         (getnameinfo): Remove useless casts.
44551
44552 2006-06-27  Simon Josefsson  <jas@extundo.com>
44553
44554         * modules/sys_select: New file, suggested by Bruno Haible, Paul
44555         Eggert and Martin Lambers.
44556
44557 2006-06-27  Simon Josefsson  <jas@extundo.com>
44558
44559         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
44560         Eggert and Martin Lambers.
44561
44562 2006-06-27  Bruno Haible  <bruno@clisp.org>
44563
44564         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
44565         result to 0, not to empty.
44566         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
44567
44568 2006-06-27  Bruno Haible  <bruno@clisp.org>
44569
44570         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
44571
44572 2006-06-26  Simon Josefsson  <jas@extundo.com>
44573
44574         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
44575         present.
44576
44577 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
44578
44579         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
44580         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
44581         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
44582
44583 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
44584
44585         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
44586
44587 2006-06-26  Bruno Haible  <bruno@clisp.org>
44588
44589         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
44590
44591 2006-06-26  Bruno Haible  <bruno@clisp.org>
44592
44593         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
44594
44595 2006-06-26  Bruno Haible  <bruno@clisp.org>
44596
44597         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
44598         SGI C compiler in pre-C99 mode.
44599         Suggested by Mark D. Baushke and Larry Jones.
44600
44601 2006-06-26  Bruno Haible  <bruno@clisp.org>
44602
44603         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
44604         WCHAR_MAX.
44605         Reported by Mark D. Baushke and Larry Jones.
44606
44607 2006-06-26  Bruno Haible  <bruno@clisp.org>
44608
44609         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
44610         in pre-C99 mode.
44611         Suggested by Mark D. Baushke and Larry Jones.
44612
44613 2006-06-23  Simon Josefsson  <jas@extundo.com>
44614             Bruno Haible  <bruno@clisp.org>
44615
44616         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
44617         Emit mostlyclean-local rule.
44618         (func_emit_tests_Makefile_am): Likewise.
44619         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
44620
44621 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
44622
44623         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
44624
44625 2006-06-23  Bruno Haible  <bruno@clisp.org>
44626
44627         * tests/test-stdint.c: Update to match ISO C 99 Technical
44628         Corrigendum 1.
44629
44630 2006-06-23  Bruno Haible  <bruno@clisp.org>
44631
44632         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
44633
44634 2006-06-23  Bruno Haible  <bruno@clisp.org>
44635
44636         * lib/stdint_.h: Treat IRIX like OpenBSD.
44637
44638 2006-06-23  Bruno Haible  <bruno@clisp.org>
44639
44640         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
44641         ISO C 99 Technical Corrigendum 1.
44642
44643 2006-06-22  Simon Josefsson  <jas@extundo.com>
44644
44645         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
44646         MinGW.
44647
44648 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44649
44650         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
44651         needed.  Some compiler complained about some of them.  Problem reported
44652         by Larry Jones in
44653         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
44654
44655 2006-06-21  Simon Josefsson  <jas@extundo.com>
44656
44657         * tests/test-getaddrinfo.c: New file.
44658
44659         * modules/getaddrinfo-tests: New file.
44660
44661         * MODULES.html.sh: Add inet_pton.
44662
44663         * modules/inet_pton: New file.
44664
44665 2006-06-21  Simon Josefsson  <jas@extundo.com>
44666
44667         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
44668         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
44669         of using the (limited) gnulib implementation on Windows XP.
44670
44671         * m4/inet_pton.m4: New file.
44672
44673 2006-06-21  Simon Josefsson  <jas@extundo.com>
44674
44675         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
44676         variable.
44677
44678         * lib/socket_.h: Don't define WINVER.
44679
44680         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
44681         slightly modified to work in gnulib.
44682
44683 2006-06-21  Simon Josefsson  <jas@extundo.com>
44684
44685         * doc/gnulib.texi (Windows sockets): Add.
44686
44687 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44688
44689         * lib/read-file.c (fread_file): Start with buffer allocation of
44690         0 bytes rather than 1 byte; this simplifies the code.
44691         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
44692         code to free buffer and save/restore errno.
44693         (internal_read_file): Remove unused local.
44694
44695 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44696
44697         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
44698         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
44699         Problem reported by Denis Excoffier in
44700         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
44701
44702 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44703
44704         * modules/sys_socket, modules/socklen: Include sys/types since
44705         FreeBSD 4.x's sys/socket.h needs it.
44706
44707 2006-06-19  Simon Josefsson  <jas@extundo.com>
44708
44709         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
44710
44711 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44712
44713         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
44714
44715 2006-06-19  Bruno Haible  <bruno@clisp.org>
44716
44717         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
44718         and FULL_PATH_INTTYPES_H in angle brackets.
44719         Reported by Mark D. Baushke <mdb@gnu.org>.
44720
44721 2006-06-17  Eric Blake  <ebb9@byu.net>
44722
44723         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
44724         errno.
44725
44726 2006-06-17  Bruno Haible  <bruno@clisp.org>
44727
44728         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
44729         <sys/inttypes.h>.
44730
44731 2006-06-17  Bruno Haible  <bruno@clisp.org>
44732
44733         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
44734         whether errno is declared. Assume <errno.h> declares errno.
44735
44736 2006-06-17  Bruno Haible  <bruno@clisp.org>
44737
44738         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
44739
44740 2006-06-17  Bruno Haible  <bruno@clisp.org>
44741
44742         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
44743         problem on Solaris 2.5.1.
44744
44745 2006-06-16  Eric Blake  <ebb9@byu.net>
44746
44747         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
44748         * lib/unicodeio.c [!defined errno]: Likewise.
44749         * lib/strtol.c [!defined errno]: Likewise.
44750         * lib/strtod.c [!defined errno]: Likewise.
44751
44752 2006-06-15  Eric Blake  <ebb9@byu.net>
44753
44754         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
44755
44756 2006-06-15  Eric Blake  <ebb9@byu.net>
44757
44758         * config/srclist.txt (ssize_t.m4): Lose sync.
44759
44760 2006-06-15  Bruno Haible  <bruno@clisp.org>
44761
44762         * modules/stdint (Files): Include m4/full-header-path.m4,
44763         m4/size_max.m4, m4/wchar_t.m4.
44764         (Makefile.am): Many more substitutions.
44765         * modules/stdint-tests: New file.
44766         * tests/test-stdint.c: New file.
44767
44768 2006-06-15  Bruno Haible  <bruno@clisp.org>
44769
44770         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
44771         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
44772         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
44773         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
44774         gl_CHECK_TYPE_SAME): New macros.
44775
44776 2006-06-15  Bruno Haible  <bruno@clisp.org>
44777
44778         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
44779
44780 2006-06-15  Bruno Haible  <bruno@clisp.org>
44781
44782         * lib/stdint_.h: Rewritten to be fully auto-configured.
44783         Fixes bug on HP-UX/IA64.
44784
44785 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
44786
44787         * lib/getdate.y (__attribute__): Don't define if already defined.
44788         Problem reported by Larry Jones.
44789         * lib/utimens.c (__attribute__): Likewise.
44790
44791 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
44792
44793         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
44794         reported by Andreas Schwab.
44795
44796 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44797             Bruno Haible  <bruno@clisp.org>
44798
44799         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
44800         check for the declaration of strnlen and a run test that exposes the
44801         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
44802         rpl_strndup.
44803
44804 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44805             Bruno Haible  <bruno@clisp.org>
44806
44807         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
44808
44809 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44810
44811         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
44812         compile test, for Tru64 4.0D.
44813
44814 2006-05-28  Karl Berry  <karl@gnu.org>
44815
44816         * config/srclist.txt (printf-args.c): lose sync.
44817
44818 2006-05-26  Martin Lambers  <marlam@marlam.de>
44819
44820         * lib/getpass.c: Updates the test for the native W32 API, and adds
44821         missing includes, thus fixing compilation warnings.
44822
44823 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44824
44825         * lib/exclude.c (exclude_fnmatch): New function.
44826         (excluded_file_name): Call exclude_fnmatch.
44827         * lib/exclude.h (excluded_file_name): New prototype
44828
44829 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
44830
44831         * lib/tempname.c (small_open, large_open): New macros.
44832         (__open, __open64) [!_LIBC]: Remove.
44833         (__gen_tempname): Use small_open and large_open instead of __open
44834         and __open64.  This fixes a portability bug on HP-UX 11.11i
44835         reported by Simon Wing-Tang in
44836         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
44837
44838 2006-05-24  Bruno Haible  <bruno@clisp.org>
44839
44840         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
44841         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
44842         Reported by Thorsten Maerz <torte@netztorte.de> via
44843         Aaron Stone <aaron@serendipity.cx>.
44844
44845 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44846
44847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
44848         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
44849         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
44850         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
44851         not really conditional on the cache.
44852         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
44853
44854 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44855
44856         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
44857         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
44858         (my_usleep): Don't mishandle maximum value.
44859
44860 2006-05-19  Jim Meyering  <jim@meyering.net>
44861
44862         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
44863
44864 2006-05-17  Bruno Haible  <bruno@clisp.org>
44865
44866         Cygwin portability.
44867         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
44868
44869 2006-05-17  Bruno Haible  <bruno@clisp.org>
44870
44871         * lib/stdint_.h: Fix recognition of Cygwin.
44872
44873 2006-05-15  Bruno Haible  <bruno@clisp.org>
44874
44875         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
44876         on libtool patch by Ralf Wildenhues.
44877
44878 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
44879
44880         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
44881         test for C99 conformance; (bool) 0.5 is an integer constant
44882         expression, but (bool) -0.5 is not.  Problem reported by Fedor
44883         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
44884
44885 2006-05-11  Simon Josefsson  <jas@extundo.com>
44886
44887         * m4/xvasprintf.m4: Fix obvious typo.
44888
44889 2006-05-11  Jim Meyering  <jim@meyering.net>
44890
44891         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
44892         James Lemley.
44893
44894 2006-05-10  Simon Josefsson  <jas@extundo.com>
44895
44896         * lib/md4.c: Typo fix, update copyright years.
44897         (K1, K2): Don't use L because it turn computations into 64-bit on
44898         64-bit platforms.
44899
44900 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
44901
44902         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
44903         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
44904         unwanted sign propagation, e.g., on hosts with 64-bit int.
44905         There still are some problems with reeelly weird theoretical hosts
44906         (e.g., 33-bit int) but it's not worth worrying about now.
44907         * lib/sha1.c (rol): Likewise.
44908         (K1, K2, K3, K4): Remove unnecessary L suffix.
44909
44910 2006-05-10  Bruno Haible  <bruno@clisp.org>
44911
44912         * lib/des.c: Cast to avoid warnings.
44913
44914 2006-05-09  Bruno Haible  <bruno@clisp.org>
44915
44916         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
44917         (Depends-on): Depend also on xsize, stdarg.
44918         (configure.ac): Add gl_XVASPRINTF.
44919
44920 2006-05-09  Bruno Haible  <bruno@clisp.org>
44921
44922         * m4/xvasprintf.m4: New file.
44923
44924 2006-05-09  Bruno Haible  <bruno@clisp.org>
44925
44926         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
44927         (EOVERFLOW): Define fallback value.
44928         (xstrcat): New function.
44929         (xvasprintf): Recognize the special case of a string concatenation.
44930
44931 2006-05-08  Eric Blake  <ebb9@byu.net>
44932
44933         * gnulib-tool (func_version): Base copyright year on CVS date.
44934         (func_emit_copyright_notice): New function.
44935         (func_emit_lib_Makefile_am): Use it.
44936         (func_emit_tests_Makefile_am): Likewise.
44937         (func_import): Likewise.
44938
44939 2006-05-08  Bruno Haible  <bruno@clisp.org>
44940
44941         * modules/stdarg: New file.
44942         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
44943
44944 2006-05-08  Bruno Haible  <bruno@clisp.org>
44945
44946         * m4/stdarg.m4: New file, from GNU gettext.
44947
44948 2006-05-08  Bruno Haible  <bruno@clisp.org>
44949
44950         * config/srclist.txt (build-aux/config.rpath): different from latest
44951         release.
44952
44953 2006-05-08  Bruno Haible  <bruno@clisp.org>
44954
44955         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
44956
44957 2006-05-05  Jim Meyering  <jim@meyering.net>
44958
44959         * m4/warning.m4: New file, derived from bison's file by the same name.
44960
44961 2006-05-03  Bruno Haible  <bruno@clisp.org>
44962
44963         * lib/stdint_.h: Shorter URL.
44964         * lib/inttypes.h: Likewise.
44965
44966 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44967
44968         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
44969
44970 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44971
44972         * lib/verify.h: Document the internals better.  Most of this change
44973         was written by Bruno Haible.
44974
44975 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44976
44977         * doc/verify.texi: New file, partly based on a proposal by
44978         Bruno Haible.
44979
44980 2006-05-02  Bruno Haible  <bruno@clisp.org>
44981
44982         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
44983         test from here...
44984         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
44985
44986 2006-04-29  Bruno Haible  <bruno@clisp.org>
44987
44988         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
44989         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
44990
44991 2006-04-29  Bruno Haible  <bruno@clisp.org>
44992
44993         * gnulib-tool: Make --update option actually work.
44994
44995 2006-04-29  Bruno Haible  <bruno@clisp.org>
44996
44997         * doc/gcd.texi: New file.
44998         * doc/gnulib.texi: Include it.
44999
45000 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
45001
45002         * lib/getdate.y (get_date): When adding relative date, start with the
45003         initial time, not with the result of the first mktime call.
45004
45005 2006-04-25  Bruno Haible  <bruno@clisp.org>
45006
45007         * gnulib-tool (func_import): Output the include directives in three
45008         blocks, sorted separately.
45009         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45010
45011 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45012
45013         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45014         to define main with arguments, for C++.  Reported by Eric Blake.
45015         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45016         Prefer 'int main ()' to 'int main (void)', for C++.
45017         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45018         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45019         for 'main', for C99 and C++.
45020
45021 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45022
45023         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45024         Don't assume that exit status -1 is valid.
45025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45026         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45027         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45028         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45029         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45030         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45031         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
45032         functions can be used without declaring them, or that you can
45033         exit with status -1.
45034         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45035
45036 2006-04-24  Karl Berry  <karl@gnu.org>
45037
45038         * config/srclist.txt (longdouble.m4): sync lost.
45039
45040 2006-04-24  Eric Blake  <ebb9@byu.net>
45041
45042         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45043
45044 2006-04-24  Bruno Haible  <bruno@clisp.org>
45045
45046         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45047         poll() implementation in AIX.
45048         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45049
45050 2006-04-24  Bruno Haible  <bruno@clisp.org>
45051
45052         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45053         assigned exactly once.
45054
45055 2006-04-23  Claudio Fontana  <claudio@gnu.org>
45056             Bruno Haible  <bruno@clisp.org>
45057
45058         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45059         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45060         for AM_CPPFLAGS.
45061
45062 2006-04-23  Bruno Haible  <bruno@clisp.org>
45063
45064         * modules/copy-file: Depend on unistd.
45065         * modules/execute: Likewise.
45066         * modules/fatal-signal: Likewise.
45067         * modules/findprog: Likewise.
45068         * modules/mkdtemp : Likewise.
45069         * modules/pipe: Likewise.
45070         * modules/wait-process: Likewise.
45071
45072 2006-04-23  Bruno Haible  <bruno@clisp.org>
45073
45074         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45075         condition was already detected.
45076         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45077
45078 2006-04-23  Bruno Haible  <bruno@clisp.org>
45079
45080         * lib/copy-file.c: Include <unistd.h> unconditionally.
45081         * lib/execute.c: Likewise.
45082         * lib/fatal-signal.c: Likewise.
45083         * lib/findprog.c: Likewise.
45084         * lib/mkdtemp.c: Likewise.
45085         * lib/pipe.h: Likewise.
45086         * lib/pipe.c: Likewise.
45087         * lib/wait-process.h: Likewise.
45088
45089 2006-04-23  Bruno Haible  <bruno@clisp.org>
45090
45091         * gnulib-tool (func_usage): Fix --import description. Document
45092         --update.
45093         (func_import): Create temporary file in a temporary directory, if
45094         --dry-run is specified. Silence errors from 'grep' when there are no
45095         m4 files in $m4dir.
45096         (func_create_testdir): Silence errors from 'grep' when there are no
45097         m4 files in $m4dir.
45098         Reported by Karl Berry <karl@freefriends.org>.
45099
45100 2006-04-20  Bruno Haible  <bruno@clisp.org>
45101
45102         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45103         one argument, so that the code will be portable to Autoconf 2.60.
45104         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45105         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45106         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45107
45108 2006-04-19  Derek Price  <derek@ximbiot.com>
45109             Eric Blake  <ebb9@byu.net>
45110
45111         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45112         rather than "/full/path.h".  Update comment to match.  Shorten &
45113         generalize m4_translit call via AS_TR_CPP.
45114
45115 2006-04-19  Derek Price  <derek@ximbiot.com>
45116             Eric Blake  <ebb9@byu.net>
45117
45118         * lib/inttypes.h: Correct grammar in comment.
45119
45120 2006-04-18  Derek Price  <derek@ximbiot.com>
45121             Paul Eggert  <eggert@cs.ucla.edu>
45122
45123         * modules/inttypes: New file.
45124         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45125
45126 2006-04-18  Derek Price  <derek@ximbiot.com>
45127             Paul Eggert  <eggert@cs.ucla.edu>
45128
45129         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45130         New files.
45131
45132 2006-04-18  Derek Price  <derek@ximbiot.com>
45133             Paul Eggert  <eggert@cs.ucla.edu>
45134
45135         * lib/inttypes.h: New file.
45136         * lib/strtoimax.c: Assume <inttypes.h>.
45137
45138 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
45139
45140         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45141         isn't mounted.  Problem reported by Kir Kolyshkin.
45142
45143 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45144
45145         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45146         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
45147         Derek R. Price.
45148         * lib/regex.h (RE_DUP_MAX): Update comment to match current
45149         implementation.
45150
45151 2006-04-12  Eric Blake  <ebb9@byu.net>
45152
45153         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45154         is now done automatically by the corresponding Autoconf macro.
45155
45156 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
45157
45158         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45159         time_r.h.
45160
45161 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45162
45163         Merge regex changes from libc, removing some of our
45164         POSIX-conformance changes that were rejected and redoing them in a
45165         less-intrusive way.
45166
45167         * lib/regcomp.c (re_compile_internal, init_dfa):
45168         Length arg is now size_t, not Idx.  All uses changed.
45169         (peek_token): Forward decl now says internal_function.
45170         (__re_error_msgid, __re_error_msgid_idx):
45171         Now static rather than extern with attribute_hidden.
45172         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45173         For some reason libc prefers K&R style defns for external functions.
45174         (regerror) [!defined _LIBC]: Likewise.
45175         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45176         (seek_collating_symbol_entry, lookup_collation_sequence_value):
45177         (build_range_exp, build_collating_symbol):
45178         Use K&R-style defn.
45179         (re_compile_fastmap): Use '\0' to memset, not 0.
45180         (utf8_sb_map): Make the calculations more obvious.
45181         (init_dfa, parse_bracket_exp, build_charclass_op):
45182         Call calloc and cast result, as glibc does.
45183         (init_word_char, fetch_token, peek_token, peek_token_bracket):
45184         (build_range_exp, build_collating_symbol):
45185         Now internal functions.
45186
45187         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45188
45189         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
45190         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45191         Don't depend on VMS; depend on __VMS instead, for POSIX
45192         namespace cleanness.
45193         (regoff_t): Define to ssize_t, not long int.
45194
45195         Remove the REG_ macros named below.  Instead, make the old names
45196         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45197         __USE_GNU_REGEX.
45198         (REG_BACKSLASH_ESCAPE_IN_LISTS):
45199         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45200         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45201         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45202         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45203         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45204         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45205         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45206         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45207         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45208         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45209         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45210         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45211         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45212         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45213         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45214         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45215         (REG_NREGS):
45216         Remove.  All uses replaced by the old RE_* names.
45217         (RE_BACKSLASH_ESCAPE_IN_LISTS):
45218         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45219         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45220         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45221         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45222         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45223         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45224         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45225         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45226         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45227         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45228         Don't bother having these macros be independent of each others'
45229         values, since they no longer exist in the POSIX name space.
45230
45231         Rename the following member names back to their old names,
45232         unless !__USE_GNU_REGEX.  All uses changed back.
45233         (buffer): Renamed from re_buffer.
45234         (allocated): Renamed from re_allocated.
45235         (used): Renamed from re_used.
45236         (syntax): Renamed from re_syntax.
45237         (fastmap): Renamed from re_fastmap.
45238         (translate): Renamed from re_translate.
45239         (can_be_null): Renamed from re_can_be_null.
45240         (regs_allocated): Renamed from re_regs_allocated.
45241         (fastmap_accurate): Renamed from re_fastmap_accurate.
45242         (no_sub): Renamed from re_no_sub.
45243         (not_bol): Renamed from re_not_bol.
45244         (not_eol): Renamed from re_not_eol.
45245         (newline_anchor): Renamed from re_newline_anchor.
45246         (num_regs): Renamed from rm_num_regs.
45247         (start): Renamed from rm_start.
45248         (end): Renamed from rm_end.
45249
45250         (free_state): Move up a bit.
45251
45252         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45253         #define to be empty.
45254         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45255         when that is what is intended.
45256         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45257         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45258         (MAX): New macro.
45259         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45260         All uses changed back to re_malloc, etc.  It's now the caller's
45261         responsibility to check for overflow; all callers changed.
45262         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45263         (re_x2nrealloc): Remove.
45264         (free_state): Remove decl.
45265
45266         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45267         (re_set_registers, re_exec):
45268         Use K&R-style defn.
45269
45270         2006-01-31  Roland McGrath  <roland@redhat.com>
45271
45272         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45273         Reported by Mike Frysinger <vapier@gentoo.org>.
45274
45275         2006-01-15  Andreas Jaeger  <aj@suse.de>
45276
45277         [BZ #1950]
45278         * lib/regex_internal.c (re_string_reconstruct): Adjust for
45279         build_wcs_upper_buffer change.
45280         (build_wcs_upper_buffer): Change return type.
45281
45282         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
45283
45284         * lib/regex_internal.h: Include <stdint.h> if available.
45285
45286         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
45287
45288         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
45289
45290         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45291
45292         * lib/regcomp.c: Adjust for changed secondary hash function.
45293
45294         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
45295
45296         * lib/regex.h: Pretty printing.
45297         Clean up namespace a bit.
45298
45299         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
45300
45301         * lib/regexec.c (update_cur_sifted_state, check_arrival,
45302         check_arrival_add_next_nodes): Avoid using uninitialized variable.
45303
45304         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45305                     Ulrich Drepper  <drepper@redhat.com>
45306
45307         [BZ #1302]
45308         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
45309         changed.
45310         (bitset_word_t): Renamed from bitset_word.  All uses changed.
45311
45312         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
45313
45314         [BZ #281]
45315         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
45316         * lib/regcomp.c: Remove unnecessary uses of
45317         unsigned RE_TRANSLATE_TYPE.
45318         * lib/regex_internal.h: Likewise.
45319         * lib/regex_internal.c: Likewise.
45320         * lib/regexec.c: Likewise.
45321         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
45322
45323         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
45324
45325         * lib/regexec.c (find_recover_state): Remove unnecessary
45326         initialization.
45327         (transit_state_bkref): Make DFA a const pointer.
45328         (get_subexp): Likewise.
45329         (check_arrival): Likewise.
45330         (update_cur_sifted_state): Likewise.
45331         (re_search_internal): Likewise.
45332         (prune_impossible_nodes): Likewise.
45333         (acquire_init_state_context): Likewise.
45334         (proceed_next_node): Likewise.
45335         (set_regs): Likewise.
45336         (free_fail_stack_return): Likewise.
45337         (check_arrival_expand_ecl): Mark DFA parameter as const.
45338         (check_arrival_expand_ecl_sub): Likewise.
45339         (check_subexp_limits): Likewise.
45340         (sub_epsilon_src_nodes):  Likewise.
45341         (add_epsilon_src_nodes):  Likewise.
45342         (merge_state_array): Likewise.
45343         (update_regs): Likewise.
45344         (build_trtable): Likewise.
45345         (sift_states_backward): Mark MCTX parameter as const.
45346         (build_sifted_states): Likewise.
45347         (update_cur_sifted_state): Likewise.
45348         (sift_states_mkref): Likewise.
45349         (check_arrival_expand_ecl): Mark eclosure as const.
45350         (check_dst_limits_calc_pos_1): Likewise.
45351         * lib/regex_internal.h (re_match_context_t): Make dfa a const
45352         pointer.
45353
45354         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
45355
45356         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
45357         (transit_state_sb): Likewise.
45358         (transit_state_mb): Likewise.
45359         (sift_states_iter_mb): Likewise.
45360         (check_arrival_add_next_nodes): Likewise.
45361         (check_node_accept_bytes): Change first parameter to pointer-to-const.
45362         [_LIBC] (re_search_2_stub): Use mempcpy.
45363
45364         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
45365         mbrtowc for very simple UTF-8 case.
45366
45367         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
45368         a pointer-to-const.
45369         (re_acquire_state_context): Likewise.
45370         * lib/regex_internal.h: Adjust prototypes.
45371
45372         * lib/regex.c: Prevent using C++ compilers.
45373
45374         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
45375         (re_acquire_state_context): Likewise.
45376
45377 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45378
45379         * modules/regex (Depends-on): Add ssize_t.
45380
45381 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45382
45383         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
45384         translation table.
45385
45386 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45387
45388         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
45389
45390 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
45391             Bruno Haible  <bruno@clisp.org>
45392
45393         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
45394         <sys/types.h> and <inttypes.h>.
45395
45396 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45397
45398         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
45399         `__error_t_defined', so argp.h will not typedef the former.
45400
45401 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45402
45403         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
45404         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
45405         glibc names.  Even if glibc is changed to conform to POSIX, the
45406         traditional names will be available anyway, since regex depends on
45407         the extensions module.  Also, fix a longstanding typo in the
45408         implementation of Spencer ERE test #75 from grep 2.3.  Problems
45409         reported by Emanuele Giaquinta.  Also, change sense of cached
45410         variable, so that the message makes sense.
45411
45412 2006-03-24  Simon Josefsson  <jas@extundo.com>
45413
45414         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
45415         including some doc fixes.
45416         (base64_encode_alloc): Fix +1 bug on allocation failures.
45417
45418 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45419
45420         * lib/base64.c (base64_encode): Do not read past end of array with
45421         unsanitized input on systems with CHAR_BIT > 8.
45422
45423 2006-03-24  Eric Blake  <ebb9@byu.net>
45424
45425         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
45426
45427 2006-03-22  Karl Berry  <karl@gnu.org>
45428
45429         * config/srclist.txt (*setenv.[ch]): get from coreutils.
45430         * config/srclistvars.sh (COREUTILS): new var.
45431
45432 2006-03-17  Jim Meyering  <jim@meyering.net>
45433
45434         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
45435         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
45436
45437 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45438
45439         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
45440         no longer needs it.  Instead, check that regoff_t is as least
45441         as wide as ptrdiff_t.
45442
45443         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
45444         so that our regex.h stays compatible with the installed regex.
45445         This is helpful for installers who configure --without-included-regex.
45446         Problem reported by Emanuele Giaquinta.
45447
45448 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45449
45450         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
45451         Typedef to long int, not to off_, as POSIX will likely change
45452         in that direction.
45453
45454 2006-03-15  Eric Blake  <ebb9@byu.net>
45455
45456         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
45457
45458 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45459
45460         * lib/argp-help.c (validate_uparams): Fix typo
45461         * lib/argp-parse.c (argp_default_options): Consistently begin help
45462         messages with a lowercase letter.
45463
45464 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
45465
45466         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
45467         overrun buffers and shouldn't be used (much as gets shouldn't be
45468         used).
45469         * lib/time_r.c (asctime_r, ctime_r): Likewise.
45470
45471 2006-03-08  Simon Josefsson  <jas@extundo.com>
45472
45473         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
45474         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45475
45476 2006-03-08  Simon Josefsson  <jas@extundo.com>
45477
45478         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
45479         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45480
45481 2006-03-08  Simon Josefsson  <jas@extundo.com>
45482
45483         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
45484         signal that configure disabled the device.
45485
45486 2006-03-08  Simon Josefsson  <jas@extundo.com>
45487
45488         * build-aux/maint.mk: Fix refresh-po, to handle no translated
45489         languages.
45490
45491 2006-03-07  Simon Josefsson  <jas@extundo.com>
45492
45493         * modules/getopt (Depends-on): Add unistd.
45494
45495         * modules/unistd: New file.
45496
45497 2006-03-07  Simon Josefsson  <jas@extundo.com>
45498
45499         * modules/gc-random: New file.
45500
45501 2006-03-07  Simon Josefsson  <jas@extundo.com>
45502
45503         * m4/unistd_h.m4: New file.
45504
45505 2006-03-07  Simon Josefsson  <jas@extundo.com>
45506
45507         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
45508         test to be side-effect free by storing the result in the cache
45509         variable gl_cv_lib_readline, and moving the assignment of
45510         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
45511         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45512
45513 2006-03-07  Simon Josefsson  <jas@extundo.com>
45514
45515         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
45516         error on missing devices (the functions will return an error).
45517
45518         * m4/gc.m4: Move random stuff to gc-random.m4
45519
45520 2006-03-07  Simon Josefsson  <jas@extundo.com>
45521
45522         * lib/unistd_.h: New file.
45523
45524 2006-03-07  Simon Josefsson  <jas@extundo.com>
45525
45526         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
45527
45528 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45529
45530         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
45531         Problem reported by Juan Manuel Guerrero.
45532
45533 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45534
45535         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
45536         the unistd module.
45537         * lib/getlogin_r.c: Likewise.
45538         * lib/getlogin_r.h: Likewise.
45539         * lib/glob.c: Likewise.
45540         * lib/pagealign_alloc.c: Likewise.
45541         * lib/unistd_.h: Remove; no longer needed.
45542
45543 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45544
45545         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45546         Add unistd.
45547         * modules/c-stack (Depends-on): Add unistd.
45548         * modules/getlogin_r: Likewise.
45549         * modules/glob: Likewise.
45550         * modules/pagealign_alloc: Likewise.
45551         * modules/unistd (Files): Remove lib/unistd_.h.
45552         (EXTRA_DIST): Remove.
45553         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
45554         need unistd_.h.
45555         (MOSTLYCLEANFILES): Remove unistd.h-t.
45556
45557 2006-03-03  Simon Josefsson  <jas@extundo.com>
45558
45559         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
45560
45561 2006-03-03  Simon Josefsson  <jas@extundo.com>
45562
45563         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
45564         libidn and bison.
45565
45566 2006-03-03  Simon Josefsson  <jas@extundo.com>
45567
45568         * build-aux/maint.mk: Add indent target.
45569
45570 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
45571
45572         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
45573         our replacement poll.h in any case, to avoid a differing
45574         declaration from a system header.  Seen on AIX.
45575
45576 2006-03-01  Simon Josefsson  <jas@extundo.com>
45577
45578         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
45579         <kasal@ucw.cz>.
45580
45581 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45582
45583         * modules/gettime (Depends-on): Add extensions module.
45584         * modules/nanosleep (Depends-on): Likewise.
45585         * modules/settime (Depends-on): Likewise.
45586
45587 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45588
45589         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
45590         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
45591         pedantically.
45592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45593         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
45594
45595         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
45596         not "==".  Reported by Ralf Wildenhues.
45597
45598 2006-03-01  Karl Berry  <karl@gnu.org>
45599
45600         * doc/Copyright/request-*: new files, synced from gnuorg.
45601
45602 2006-03-01  Karl Berry  <karl@gnu.org>
45603
45604         * config/srclist.txt (Copyright/*): new entries.
45605
45606 2006-02-28  Simon Josefsson  <jas@extundo.com>
45607
45608         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
45609
45610 2006-02-27  Simon Josefsson  <jas@extundo.com>
45611
45612         * lib/base64.h: Indent #define's.  From Jim Meyering
45613         <jim@meyering.net>.
45614
45615 2006-02-27  Jim Meyering  <jim@meyering.net>
45616
45617         Revert the change of 2006-02-24, so these files can continue
45618         to be sync'd from gettext.
45619         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
45620         of `config.h'.
45621
45622 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
45623
45624         * modules/intprops: New file.
45625         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45626         Add intprops.
45627         * modules/getloadavg (Files): Remove lib/intprops.h.
45628         (Depends-on): Add intprops.
45629         * modules/human: Likewise.
45630         * modules/inttostr: Likewise.
45631         * modules/openat: Likewise.
45632         * modules/sig2str: Likewise.
45633         * modules/userspec: Likewise.
45634         * modules/utimecmp: Likewise.
45635         * modules/xnanosleep: Likewise.
45636         * modules/xstrtol: Likewise.
45637
45638 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
45639
45640         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
45641         * modules/lock-tests (TESTS): Use $(EXEEXT).
45642         * modules/tls-tests: Likewise.
45643         * modules/argp-tests: Likewise.
45644         (check_PROGRAMS): New var, replacing...
45645         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
45646
45647 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45648
45649         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
45650         `config.h'.
45651
45652 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45653
45654         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
45655
45656 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45657
45658         Sync from coreutils.
45659         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
45660         gl_CHDIR_SAFER.
45661
45662 2006-02-22  Jim Meyering  <jim@meyering.net>
45663
45664         Sync from coreutils.
45665         * m4/chdir-safer.m4: New file.
45666
45667 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45668
45669         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
45670         AT_FDCWD exceeds INT_MAX.
45671         * lib/openat.h (AT_FDCWD): Likewise.
45672
45673 2006-02-17  Eric Blake  <address@hidden>
45674
45675         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
45676
45677 2006-02-16  Simon Josefsson  <jas@extundo.com>
45678
45679         * modules/getaddrinfo (Depends-on): Add sys_socket.
45680
45681 2006-02-15  Simon Josefsson  <jas@extundo.com>
45682
45683         * build-aux/maint.mk: Add dsyntax-check rule.
45684
45685 2006-02-15  Eric Blake  <ebb9@byu.net>
45686
45687         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
45688         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
45689         'present but cannot compile' warnings on cygwin.
45690         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
45691         use ws2tcpip.h if sys/socket.h works.
45692         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
45693         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
45694
45695 2006-02-14  Simon Josefsson  <jas@extundo.com>
45696
45697         * modules/maintainer-makefile (Files): Rename.
45698
45699         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
45700         and (the local) Makefile.cfg to maint-cfg.mk.
45701
45702         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
45703         to the latter.
45704
45705         * modules/maintainer-makefile: New module.
45706
45707         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
45708         severaly stripped to make it possible to build it up from scratch
45709         with reliable tests.
45710
45711         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
45712         fixes to permit overriding the default actions when configure and
45713         makefile are not available.
45714
45715 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45716
45717         Sync from coreutils.
45718         * modules/lstat (Depends-on): Don't depend on xalloc.
45719         (License): Change from GPL to LGPL, since this is now simply a
45720         replacement for a libc function.
45721
45722 2006-02-14  Jim Meyering  <jim@meyering.net>
45723
45724         Sync from coreutils.
45725
45726         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
45727         failure on deficient systems, and simplify gnulib lgpl dependencies.
45728         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
45729         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
45730
45731         * lib/xalloc-die.c: Remove unused definition of N_.
45732
45733 2006-02-14  Jim Meyering  <jim@meyering.net>
45734
45735         Sync from coreutils.
45736         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
45737         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
45738         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
45739         double-quote uses of that variable, to accommodate the rare case in
45740         which getmntent is available in none of the libraries checked.  This
45741         happens at least on FreeBSD 5.0.
45742
45743 2006-02-13  Simon Josefsson  <jas@extundo.com>
45744
45745         * gnulib-tool (Usage): Fix --import, from
45746         karl@freefriends.org (Karl Berry).
45747
45748 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45749
45750         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
45751
45752 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
45753
45754         * lib/argp-namefrob.h: Restore changes accidentally lost during the
45755         "autoupdate" on 2005-12-12.
45756
45757 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45758
45759         * modules/closeout (Depends-on): Remove atexit.
45760
45761 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45762
45763         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
45764         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
45765
45766 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45767
45768         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
45769         __EXTENSIONS__ if this causes compilation to fail.  Problem
45770         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
45771         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
45772
45773 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
45774
45775         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
45776         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
45777         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
45778         All uses changed.
45779
45780 2006-01-26  Simon Josefsson  <jas@extundo.com>
45781
45782         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
45783         prototype is visible on mingw32.
45784
45785         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
45786         for mingw32.
45787
45788         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
45789         mingw32).
45790
45791 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45792
45793         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
45794         attempt to open for write; this always fails, at least on POSIX
45795         hosts.  This reinstates the 2006-01-09 change, which was
45796         inadvertently removed.
45797
45798 2006-01-26  Bruno Haible  <bruno@clisp.org>
45799
45800         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
45801         Reported by Paul Eggert.
45802
45803 2006-01-26  Bruno Haible  <bruno@clisp.org>
45804             Paul Eggert  <eggert@cs.ucla.edu>
45805
45806         * lib/stdbool_.h (_Bool)
45807         [(! (defined __cplusplus || defined __BEOS__)
45808           && !defined __GNUC__
45809           && !(defined __HP_cc || defined __xlc__
45810                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
45811                || defined __sgi))]:
45812         #define to signed char in these cases too; this simplifies
45813         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
45814         etc., separately) and makes it more conservative.
45815
45816 2006-01-25  Simon Josefsson  <jas@extundo.com>
45817
45818         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
45819         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
45820         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
45821
45822 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45823
45824         * lib/argp-namefrob.h: Bugfix. Remove stray #
45825
45826 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45827
45828         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
45829         so that we test the test.
45830         Check for yet another HP-UX cc bug involving *bool |= bool.
45831
45832 2006-01-25  Karl Berry  <karl@gnu.org>
45833
45834         * config/srclist.txt (vasnprintf.c): sync lost.
45835
45836 2006-01-25  Jim Meyering  <jim@meyering.net>
45837
45838         Sync from the stable (b5) branch of coreutils:
45839
45840         * lib/fts.c (fts_children): Don't let close() clobber errno from
45841         failed fchdir().
45842
45843         * lib/fts.c (fts_stat): When following a symlink-to-directory,
45844         don't necessarily interpret stat-fails+lstat-succeeds as indicating
45845         a dangling symlink.  That can also happen at least for ELOOP.
45846         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
45847         FYI, this bug predates the inclusion of fts.c in coreutils.
45848
45849         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
45850         in their own block, so pre-c99 compilers don't object.
45851
45852         Avoid the double-free (first in fts_read, second in fts_close) that
45853         would occur when an `active' directory is made inaccessible (e.g.,
45854         via chmod a-x) during a traversal.
45855         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
45856         before returning.  Reproduce this failure by
45857         mkdir -p a/b; cd a; chmod a-x . b
45858         Reported by Stavros Passas.
45859
45860 2006-01-25  Jim Meyering  <jim@meyering.net>
45861
45862         * lib/fileblocks.c: Remove more useless parentheses.
45863         * lib/readutmp.h: Likewise.
45864
45865 2006-01-25  Bruno Haible  <bruno@clisp.org>
45866
45867         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
45868         warnings.
45869         Reported by Paul Eggert.
45870
45871 2006-01-25  Bruno Haible  <bruno@clisp.org>
45872
45873         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
45874         rid of a trap command. For Solaris sh.
45875         Reported by Mark D. Baushke <mdb@gnu.org>.
45876
45877 2006-01-24  Simon Josefsson  <jas@extundo.com>
45878
45879         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
45880         Bruno.
45881
45882 2006-01-24  Karl Berry  <karl@gnu.org>
45883
45884         * config/srclist.txt (argp-namefrob.h): sync lost.
45885
45886 2006-01-24  Jim Meyering  <jim@meyering.net>
45887
45888         * modules/openat (Files): Add lib/intprops.h.
45889         From Mark D. Baushke.
45890
45891 2006-01-24  Jim Meyering  <jim@meyering.net>
45892
45893         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
45894         Reported by Mark D. Baushke.
45895
45896 2006-01-24  Jim Meyering  <jim@meyering.net>
45897
45898         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
45899
45900 2006-01-24  Bruno Haible  <bruno@clisp.org>
45901
45902         * modules/strnlen (Maintainer): Change from glibc to all.
45903
45904 2006-01-24  Bruno Haible  <bruno@clisp.org>
45905
45906         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
45907         Patch by Paul Eggert.
45908
45909 2006-01-24  Bruno Haible  <bruno@clisp.org>
45910
45911         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
45912         already has it.
45913         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
45914         2005-11-26.
45915
45916         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
45917         'signed char' to avoid problems with the built-in _Bool type.
45918         Reported by Paul Eggert on 2005-11-26.
45919
45920 2006-01-24  Bruno Haible  <bruno@clisp.org>
45921
45922         * gnulib-tool (func_import): Avoid constructing complicated sed
45923         expressions inside backquote.
45924         Report and solution by Mark D. Baushke <mdb@gnu.org>.
45925
45926 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
45927
45928         These changes imported from libc.
45929         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
45930         test and two separate function calls.
45931         * lib/strndup.c (__strndup): Add libc_hidden_def.
45932
45933 2006-01-23  Simon Josefsson  <jas@extundo.com>
45934
45935         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
45936         Remove the test_*_SOURCES variable: automake infers it by default.
45937         * modules/tls-tests: Likewise.
45938
45939 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45940
45941         Work around porting bugs reported by Dieter in
45942         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
45943         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
45944         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
45945         Include "getopt.h" first, to check interface.
45946         (getenv): Declare only if defined HAVE_DECL_GETENV &&
45947         !HAVE_DECL_GETENV.
45948         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
45949         (__strndup): Revert to K&R-style function dfns, the glibc style.
45950         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
45951         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
45952         Include strnlen.h first, to get prototype properly.
45953         (strnlen): Renamed from __strnlen.
45954         Remove weak alias.
45955
45956 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45957
45958         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
45959
45960 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45961
45962         * config/srclist.txt: Adjust to reflect glibc reorganization.
45963         This affects only comments.
45964
45965 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45966
45967          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
45968          Reported by Bruce Korb <bkorb@gnu.org>.
45969
45970 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
45971
45972         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
45973         to pacify gcc -Wswitch-default.
45974
45975 2006-01-22  Bruno Haible  <bruno@clisp.org>
45976
45977         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
45978         temporary buffer for sprintf, take into account the precision also
45979         for 'd', 'i', 'u', 'o', 'x', 'X'.
45980
45981 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
45982
45983         * modules/argp-tests: New module
45984         * tests/test-argp.c: New file
45985         * tests/test-argp-2.sh: New file
45986
45987 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
45988
45989         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
45990         (__argp_base_name): Removed
45991         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
45992         typo.
45993         (__argp_base_name): Provide macro definition or extern declaration
45994         depending on the configuration
45995
45996 2006-01-20  Simon Josefsson  <jas@extundo.com>
45997
45998         * modules/inet_ntop (Depends-on): Depend on sys_socket.
45999
46000 2006-01-20  Simon Josefsson  <jas@extundo.com>
46001
46002         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46003
46004 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46005
46006         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46007         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46008         Suggested by Bruno Haible.
46009
46010 2006-01-20  Karl Berry  <karl@gnu.org>
46011
46012         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46013         until changes propagate, I guess.
46014
46015 2006-01-19  Simon Josefsson  <jas@extundo.com>
46016
46017         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46018
46019 2006-01-19  Simon Josefsson  <jas@extundo.com>
46020
46021         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46022
46023 2006-01-19  Simon Josefsson  <jas@extundo.com>
46024
46025         * gnulib-tool: Set check_PROGRAMS.
46026
46027         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46028         modules/des-tests, modules/gc-arcfour-tests,
46029         modules/gc-arctwo-tests, modules/gc-des-tests,
46030         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46031         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46032         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46033         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46034         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46035         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46036         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46037         test_*_SOURCES.
46038
46039 2006-01-18  Simon Josefsson  <jas@extundo.com>
46040
46041         * modules/socklen (Depends-on): Depend on sys_socket.
46042
46043 2006-01-18  Simon Josefsson  <jas@extundo.com>
46044
46045         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46046         modules/des-tests, modules/gc-arcfour-tests,
46047         modules/gc-arctwo-tests, modules/gc-des-tests,
46048         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46049         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46050         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46051         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46052         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46053         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46054         $(EXEEXT) to automake TESTS variable, for mingw32.
46055
46056 2006-01-17  Simon Josefsson  <jas@extundo.com>
46057
46058         * modules/socklen (Include): Need sys/socket.h.
46059
46060 2006-01-17  Bruno Haible  <bruno@clisp.org>
46061
46062         * modules/ssize_t (Include): Add <sys/types.h>.
46063
46064 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
46065
46066         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46067         it's not portable and it doesn't work with cross-compiles.
46068         Problem reported by Bruno Haible.  Fix missing-$ typo in
46069         'test "gl_cv_ignore_unused_libraries" ...' that prevented
46070         -zignore from being used with Sun's C compiler.
46071
46072 2006-01-12  Simon Josefsson  <jas@extundo.com>
46073
46074         * lib/base64.c: Fix warning, reported by Bruno Haible
46075         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46076
46077 2006-01-12  Bruno Haible  <bruno@clisp.org>
46078
46079         * modules/ldd: New file.
46080         * build-aux/ldd.sh.in: New file.
46081         * MODULES.html.sh (Support for building libraries and executables): Add
46082         ldd.
46083
46084 2006-01-12  Bruno Haible  <bruno@clisp.org>
46085
46086         * m4/ldd.m4: New file.
46087
46088 2006-01-12  Bruno Haible  <bruno@clisp.org>
46089
46090         * gnulib-tool (func_import, func_create_testdir): Don't go into an
46091         endless loop while replacing $auxdir with build-aux.
46092
46093 2006-01-11  Simon Josefsson  <jas@extundo.com>
46094
46095         * lib/stdint_.h (SIZE_MAX): Add missing (.
46096
46097 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
46098
46099         Sync from coreutils.
46100         * lib/md5.c: Fix commentary typos.
46101         (alignof, UNALIGNED_P): No need for a GCC-specific version.
46102         * lib/md5.h (__attribute__): Remove; unused.
46103         * lib/sha1.c: Fix commentary to match md5 better.
46104         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46105         so that we don't need to worry about alignment.  All uses changed.
46106         This merges the 2005-10-28 md5 change into sha1.
46107
46108 2006-01-11  Jim Meyering  <jim@meyering.net>
46109
46110         Sync from coreutils.
46111         * lib/md5.c (OP): Fix spacing.
46112
46113 2006-01-11  Bruno Haible  <bruno@clisp.org>
46114
46115         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46116         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46117         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46118
46119 2006-01-11  Bruno Haible  <bruno@clisp.org>
46120
46121         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46122         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46123         the "early" section as well.
46124
46125 2006-01-11  Bruno Haible  <bruno@clisp.org>
46126
46127         Avoid "ar: no archive members specified" error on MacOS X.
46128         * gnulib-tool (func_modules_add_dummy): New function.
46129         (func_import, func_create_testdir): Invoke it.
46130
46131 2006-01-11  Bruno Haible  <bruno@clisp.org>
46132
46133         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46134         with $auxdir in AC_CONFIG_FILES statements.
46135
46136 2006-01-11  Bruno Haible  <bruno@clisp.org>
46137
46138         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46139         Initialize also noinst_HEADERS to empty.
46140
46141 2006-01-11  Bruno Haible  <bruno@clisp.org>
46142
46143         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46144         variables.
46145         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46146         autoreconf.
46147
46148 2006-01-11  Bruno Haible  <bruno@clisp.org>
46149
46150         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46151         overridable by the user.
46152         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46153
46154 2006-01-10  Simon Josefsson  <jas@extundo.com>
46155
46156         * modules/sys_socket: New file.
46157
46158 2006-01-10  Simon Josefsson  <jas@extundo.com>
46159
46160         * m4/sys_socket_h.m4: New file.
46161
46162 2006-01-10  Simon Josefsson  <jas@extundo.com>
46163
46164         * lib/socket_.h: New file.
46165
46166 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46167
46168         * modules/readutmp (Maintainer): Add myself.
46169
46170 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46171
46172         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46173         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
46174         People who are still concerned with buggy memcmp implementations
46175         can invoke gl_FUNC_MEMCMP themselves.
46176
46177 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46178
46179         * lib/regex_internal.h (BITSET_WORD_BITS):
46180         Work around a bug in 64-bit PGC (before version 6.1-2), where the
46181         preprocessor mishandles large unsigned values as if they were signed.
46182         Problem reported by Claudio Fontana in
46183         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46184
46185 2006-01-10  Jim Meyering  <jim@meyering.net>
46186
46187         Avoid the double-free (first in fts_read, second in fts_close) that
46188         would occur when an `active' directory is made inaccessible (e.g.,
46189         via chmod a-x) during a traversal.
46190         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46191         before returning.  Reproduce this failure by
46192         mkdir -p a/b; cd a; chmod a-x . b
46193         Reported by Stavros Passas.
46194
46195         Sync from coreutils.
46196         * lib/sha1.c: Tweak grammar in a comment.
46197
46198 2006-01-10  Jim Meyering  <jim@meyering.net>
46199
46200         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46201         Patch by Joerg Sonnenberger.
46202
46203 2006-01-10  Bruno Haible  <bruno@clisp.org>
46204
46205         * modules/readutmp: Depend on module free.
46206         * modules/strtok_r: Depend on module restrict.
46207
46208 2006-01-10  Bruno Haible  <bruno@clisp.org>
46209
46210         * modules/gettext (configure.ac): Add an invocation of
46211         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46212
46213 2006-01-10  Bruno Haible  <bruno@clisp.org>
46214
46215         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46216         Reported by Werner Lemberg <wl@gnu.org>.
46217
46218 2006-01-10  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/localcharset.c: Update from GNU gettext.
46221
46222 2006-01-10  Bruno Haible  <bruno@clisp.org>
46223
46224         * lib/argp.h (__const): Remove macro. Use const instead.
46225         * lib/argp-fmtstream.h (__const): Likewise.
46226         * lib/glob_.h (__const): Remove macro.
46227         * lib/glob-libc.h: Use const instead of __const.
46228
46229 2006-01-10  Bruno Haible  <bruno@clisp.org>
46230
46231         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46232         variable.
46233         Needed to avoid an automake error regarding the 'gettext' module.
46234
46235 2006-01-09  Simon Josefsson  <jas@extundo.com>
46236
46237         * modules/inet_ntop (Depends-on): Add restrict.
46238
46239 2006-01-09  Simon Josefsson  <jas@extundo.com>
46240
46241         * modules/gc-rijndael-tests (License): Put under LGPL.
46242
46243         * modules/gc-des-tests (License): Likewise.
46244
46245         * modules/gc-arcfour-tests (License): Likewise.
46246
46247         * modules/gc-arctwo-tests (License): Likewise.
46248
46249         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46250
46251         * modules/gc-hmac-sha1-tests (Files): Likewise.
46252
46253         * modules/gc-hmac-md5-tests (License): Likewise.
46254
46255         * modules/gc-sha1-tests (License): Likewise.
46256
46257         * modules/gc-md5-tests (License): Likewise.
46258
46259         * modules/gc-md4-tests (License): Likewise.
46260
46261         * modules/gc-md2-tests (License): Likewise.
46262
46263         * modules/gc-tests (License): Likewise.
46264
46265         * modules/des-tests (License): Likewise.
46266
46267         * modules/md4-tests (License): Likewise.
46268
46269         * modules/md2-tests (License): Likewise.
46270
46271 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46272
46273         Sync from coreutils:
46274
46275         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46276         * modules/lib-ignore: New file.
46277         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46278         chdir-safer.m4, lchmod.m4.
46279         * modules/openat: Add mkdirat.c, openat-priv.h.
46280
46281 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46282
46283         Sync from coreutils.
46284         * m4/lib-ignore.m4: New file.
46285         * m4/lchmod.m4: New file.
46286
46287 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46288
46289         Sync from coreutils.
46290         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
46291         for write access: POSIX says that must fail.
46292         * lib/fts.c (diropen): Likewise.
46293         * lib/save-cwd.c (save_cwd): Likewise.
46294         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
46295         well, for minor improvements on hosts that lack O_DIRECTORY.
46296         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
46297         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
46298         Fall back on chown if open failed with EACCES.
46299
46300         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
46301         Report an error at compile-time if only a 1-second nominal clock
46302         resolution is found.
46303
46304         * lib/lchmod.h: New file.
46305         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
46306         (make_dir_parents): Use lchown rather than chown, and
46307         lchmod rather than chmod.
46308
46309         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
46310         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
46311         "proc" reported by n0dalus.
46312
46313         * lib/mountlist.c: Include <limits.h>.
46314         (dev_from_mount_options)
46315         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
46316         New function.  It no longer assumes "dev=" has the System V meaning
46317         on Linux (since it doesn't).  It also parses "dev=" more carefully.
46318         (read_file_system_list)
46319         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
46320         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
46321         dev= in that case.
46322
46323         * lib/posixtm.h (PDS_PRE_2000): New macro.
46324         * lib/posixtm.c (year): Arg is now syntax_bits rather than
46325         allow_century.  All usages changed.  Reject dates outside the range
46326         1969-1999 if PDS_PRE_2000 is used.
46327
46328 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46329
46330         Sync from coreutils.
46331         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
46332         (Time of day items): Mention the possibility of leap seconds.
46333         Problem reported by Dr. David Alan Gilbert.
46334
46335 2006-01-09  Jim Meyering  <jim@meyering.net>
46336
46337         Sync from coreutils.
46338
46339         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
46340
46341         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
46342
46343         * lib/modechange.c (mode_compile): Reject an invalid mode string
46344         that starts with an octal digit.  From Andreas Gruenbacher.
46345
46346         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
46347         and dup to open_safer and dup_safer, respectively.
46348         (openat_permissive): Fix typo in comment.
46349
46350         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
46351         "gettext.h"; either no longer needed or are guaranteed by openat.h.
46352         (_): Remove; no longer needed.
46353         (openat): Renamed from rpl_openat; no need for rpl_openat
46354         since openat.h renames openat for us.
46355         Replace most of the body with a call to openat_permissive,
46356         to avoid duplicate code.
46357         Port to (probably hypothetical) environments were mode_t is
46358         wider than int.
46359         (openat_permissive): Require mode arg, so that we can check
46360         types better.  Put it just after flags.  Change cwd failure
46361         indicator from pointer-to-bool to pointer-to-errno-value.
46362         All callers changed.
46363         Invoke openat_save_fail and/or openat_restore_fail if
46364         cwd_errno is null, so that openat can call us.
46365         (openat_permissive, fdopendir, fstatat, unlinkat):
46366         Simplify errno handling to avoid some duplicate code,
46367         as it's OK to set errno on success.
46368         * lib/openat.h: Revamp code so that function macros depend on
46369         __OPENAT_PREFIX only, not also on AT_FDCWD.
46370         (openat_ro): Remove.  Caller changed to use openat_permissive.
46371         (openat_permissive): Now a macro, if not a function.
46372         (openat_restore_fail, openat_save_fail): Now always functions,
46373         since mkdirat needs them even if __OPENAT_PREFIX is defined.
46374
46375         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
46376         and openat.c.
46377         * lib/mkdirat.c: Include openat-priv.h.
46378         Remove definitions of macros defined therein.
46379         * lib/openat.c: Likewise.
46380
46381         * lib/mkdirat.c (mkdirat): New file and function.
46382         * lib/openat.h (mkdirat): Declare.
46383
46384         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
46385
46386         * lib/openat.h (openat_permissive): Declare.
46387         (openat_ro): Define.
46388
46389         * lib/openat.c (EXPECTED_ERRNO): New macro.
46390         (openat_permissive): New function -- used in remove.c rewrite.
46391         (all functions): Set errno just before returning, only if there
46392         was an actual failure.
46393         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
46394
46395         Emulate openat-family functions using Linux's procfs, if possible.
46396         Idea and some code based on Ulrich Drepper's glibc changes.
46397
46398         * lib/openat.c: (BUILD_PROC_NAME): New macro.
46399         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
46400         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
46401         before falling back on save_cwd and restore_cwd.
46402         (fdopendir, fstatat, unlinkat): Likewise.
46403
46404         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
46405         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
46406
46407         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
46408         as second argument to va_arg.  Otherwise, some versions of gcc
46409         warn that `if this code is reached, the program will abort'.
46410
46411 2006-01-09  Jim Meyering  <jim@meyering.net>
46412
46413         Sync from coreutils.
46414         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
46415         Require openat-priv.h.
46416
46417 2006-01-09  Bruno Haible  <bruno@clisp.org>
46418
46419         * modules/strnlen (Include): Use strnlen.h.
46420
46421 2006-01-09  Bruno Haible  <bruno@clisp.org>
46422
46423         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
46424
46425 2006-01-09  Bruno Haible  <bruno@clisp.org>
46426
46427         * lib/sysexit_.h (EX_OK): New macro.
46428         Suggested by Martin Lambers <marlam@marlam.de>.
46429
46430 2006-01-09  Bruno Haible  <bruno@clisp.org>
46431
46432         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
46433         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
46434
46435 2006-01-09  Bruno Haible  <bruno@clisp.org>
46436
46437         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
46438         numbers.
46439
46440 2006-01-09  Bruno Haible  <bruno@clisp.org>
46441
46442         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
46443         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
46444         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
46445         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
46446
46447 2006-01-09  Bruno Haible  <bruno@clisp.org>
46448
46449         * build-aux/javacomp.sh.in: New file, moved from lib/.
46450         * modules/javacomp-script (Files): Update.
46451         (configure.ac): Add AC_CONFIG_FILES invocation.
46452         (EXTRA_DIST): Remove variable.
46453
46454         * build-aux/javaexec.sh.in: New file, moved from lib/.
46455         * modules/javaexec (Files): Update.
46456         (configure.ac): Add AC_CONFIG_FILES invocation.
46457         (EXTRA_DIST): Remove javaexec.sh.in.
46458
46459         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
46460         * modules/csharpcomp-script (Files): Update.
46461         (configure.ac): Add AC_CONFIG_FILES invocation.
46462         (EXTRA_DIST): Remove variable.
46463
46464         * build-aux/csharpexec.sh.in: New file, moved from lib/.
46465         * modules/csharpexec (Files): Update.
46466         (configure.ac): Add AC_CONFIG_FILES invocation.
46467         (EXTRA_DIST): Remove csharpexec.sh.in.
46468
46469 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46470
46471         Sync from coreutils.
46472
46473         Add POSIX ACL support
46474         * lib/acl.h (copy_acl, set_acl): Add declarations.
46475         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
46476         systems other than Linux.
46477         (chmod_or_fchmod): New function: use fchmod when possible,
46478         and chmod otherwise.
46479         (file_has_acl): Add a POSIX ACL implementation, with a
46480         Linux-specific subcase.
46481         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
46482         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
46483         acls are unsupported.
46484         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
46485         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
46486         are unsupported.
46487
46488 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46489
46490         Sync from coreutils.
46491         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
46492
46493 2006-01-07  Bruno Haible  <bruno@clisp.org>
46494
46495         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
46496         gl_EARLY.
46497
46498 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46499
46500         * lib/strftime.c (tzname): Don't declare if it is already #defined.
46501         Problem reported for Mingw by Mark Junker.
46502
46503 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46504
46505         * README: Gnulib normally doesn't generate a tarball.
46506
46507 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
46508
46509         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
46510         long int, not int, for nanosecond counts, so that people who are
46511         used to POSIX struct timespec won't be surprised.  Reported by Jim
46512         Meyering.
46513
46514 2005-12-28  Bruno Haible  <bruno@clisp.org>
46515
46516         * build-aux/config.rpath: Update from GNU gettext.
46517
46518 2005-12-16  Jim Meyering  <jim@meyering.net>
46519
46520         * modules/fprintftime: New module.
46521         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
46522
46523 2005-12-16  Jim Meyering  <jim@meyering.net>
46524
46525         * m4/fprintftime.m4: New file.
46526
46527 2005-12-16  Jim Meyering  <jim@meyering.net>
46528
46529         * lib/fprintftime.c, lib/fprintftime.h: New files.
46530
46531 2005-12-15  Simon Josefsson  <jas@extundo.com>
46532
46533         * modules/socklen (configure.ac): Fix M4 macro name, to align with
46534         new m4/socklen.m4.
46535
46536 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46537
46538         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
46539         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
46540
46541 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46542
46543         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
46544         * lib/argp-help.c (fill_in_uparams): Check if the constructed
46545         struct uparams is valid. Fall back to the default values if it is
46546         not.
46547
46548 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46549
46550         * modules/argp (Files): Add argp-pin.c
46551         (Depends-on): dirname
46552         (lib_SOURCES): Add argp-pin.c
46553
46554 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46555
46556         * m4/argp.m4:  Check if program_invocation_name and
46557         program_invocation_short_name are declared and define appropriate
46558         macros if they are not.
46559
46560 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46561
46562         * lib/argp-help.c (__argp_base_name): New function
46563         (__argp_short_program_name): Rewrite using __argp_base_name
46564         * lib/argp-namefrob.h: Define program_invocation_name and
46565         program_invocation_short_name if requested
46566         (__argp_base_name): Add prototype
46567         * lib/argp-parse.c (argp_def): Use gettext wrappers
46568         (argp_default_parser): Use __argp_base_name
46569         * lib/argp-pin.c: New file. Defines program_invocation_name and
46570         program_invocation_short_name on systems that lack them.
46571
46572 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46573
46574         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
46575         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46576         porting problem reported by Georg Schwarz in
46577         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46578
46579 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46580
46581         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
46582         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46583         porting problem reported by Georg Schwarz in
46584         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46585
46586 2005-12-05  Bruno Haible  <bruno@clisp.org>
46587
46588         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
46589         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
46590         Reported by Mark Junker <mjscod@gmx.de>.
46591
46592 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
46593
46594         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
46595         Use implementation from Albert Chin, with some
46596         comments/corrections by Stepan Kasal and myself.
46597
46598 2005-12-02  Bruno Haible  <bruno@clisp.org>
46599
46600         * gnulib-tool (func_import): Accept GPLed build tool modules when
46601         --lgpl is given.
46602         * modules/csharpcomp-script: New file.
46603         * modules/csharpcomp: Depend on it.
46604         * modules/javacomp-script: New file.
46605         * modules/javacomp: Depend on it.
46606         Suggested by Simon Josefsson.
46607
46608 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
46609
46610         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
46611         statement, to work around an HP-UX 10.20 compiler bug reported by
46612         Peter O'Gorman.
46613
46614 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46615
46616         * modules/savedir (Depends-on): Add openat.
46617
46618 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46619
46620         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
46621         (uintmax_t) [defined uintmax_t]: Do not declare.
46622         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
46623         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
46624         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
46625         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
46626         sake of portability to weird hosts that C allows (though we don't
46627         know of any practical examples).
46628
46629         * lib/savedir.h (fdsavedir): New decl.
46630         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
46631         contains most of the former guts of savedir.
46632         (savedir): Use savedirstream.
46633         Include "openat.h".
46634
46635 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
46636
46637         * modules/obstack (Files): Add m4/ulonglong.m4.
46638         Problem reported by Davide Angelocola.
46639
46640 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46641
46642         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
46643         coreutils no longer futzes with rounding modes.
46644
46645 2005-11-14  Jim Meyering  <jim@meyering.net>
46646
46647         * lib/mkstemp-safer.c: Include <config.h>, required for possible
46648         replacement of mkstemp.
46649
46650 2005-11-10  Simon Josefsson  <jas@extundo.com>
46651
46652         * lib/readline.c: Remove EOL.
46653
46654 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46655
46656         * modules/gethrxtime (Depends-on): Add gettime.
46657
46658 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46659
46660         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
46661         or gettimeofday; no longer needed.
46662
46663 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46664
46665         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
46666         time business.
46667         (gethrxtime) [! (HAVE_NANOUPTIME
46668         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
46669         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
46670         our own approximation.
46671
46672 2005-11-08  Eric Blake  <ebb9@byu.net>
46673
46674         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46675
46676 2005-11-08  Eric Blake  <ebb9@byu.net>
46677
46678         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46679
46680 2005-11-04  Bruno Haible  <bruno@clisp.org>
46681
46682         * gnulib-tool: Implement --update mode.
46683
46684 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46685
46686         Fix porting problem reported by Theodoros V. Kalamatianos.
46687         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
46688         Don't assume that futimes failing means we must fail.
46689
46690 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46691
46692         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
46693         variables to suggest the intended function of the PATH_MAX check.
46694
46695 2005-10-30  Kean Johnston  <jkj@sco.com>
46696
46697         Trivial changes to support SCO systems.
46698         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
46699         as PATH_MAX.
46700         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
46701         where __ptr is null when no I/O is pending.
46702
46703 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
46704
46705         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
46706         leave errno alone.  Problem reported by Dmitry V. Levin.
46707
46708 2005-10-28  Simon Josefsson  <jas@extundo.com>
46709
46710         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
46711         Test more.
46712
46713         * tests/test-gc-md2.c, tests/test-md2.c: New files.
46714
46715         * modules/md2, modules/md2-tests: New files.
46716
46717 2005-10-28  Simon Josefsson  <jas@extundo.com>
46718
46719         * m4/inet_ntop.m4: More tests.
46720
46721         * m4/gc-md2.m4, md2.m4: New file.
46722
46723 2005-10-28  Simon Josefsson  <jas@extundo.com>
46724
46725         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
46726         "restrict" keywords, as per POSIX.  Protect the function
46727         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
46728         Don't use K&R prototypes.  Check the sprintf return values.
46729         Re-define EAFNOSUPPORT if not present.  Indent.
46730
46731         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
46732         suggested by Bruno Haible <bruno@clisp.org>.
46733
46734         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
46735
46736         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
46737
46738         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
46739         libgcrypt).
46740
46741         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
46742
46743         * lib/md2.h, lib/md2.c: New files.
46744
46745 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
46746
46747         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
46748         errno alone.  Problem reported by Frederic Jolliton.
46749
46750 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46751
46752         * modules/verify (License): Change from GPL to LGPL.  This is a
46753         tiny module and there are apparently near-equivalents that are
46754         under the BSD license.
46755
46756 2005-10-24  Simon Josefsson  <jas@extundo.com>
46757
46758         * modules/sha1: Relicense to LGPL.
46759
46760 2005-10-24  Simon Josefsson  <jas@extundo.com>
46761
46762         * lib/md4.h: Shrink buffer size, now that we changed the type.
46763
46764 2005-10-23  Simon Josefsson  <jas@extundo.com>
46765
46766         * gnulib-tool (func_import): Fix --tests-base.
46767
46768 2005-10-22  Simon Josefsson  <jas@extundo.com>
46769
46770         * modules/arcfour (Depends-on): Need stdint.
46771
46772 2005-10-22  Simon Josefsson  <jas@extundo.com>
46773
46774         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
46775         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
46776
46777 2005-10-22  Simon Josefsson  <jas@extundo.com>
46778
46779         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
46780         suggested by Bruno Haible <bruno@clisp.org>.
46781
46782 2005-10-22  Simon Josefsson  <jas@extundo.com>
46783
46784         * lib/crc.h: Include stddef.h, for size_t.
46785
46786 2005-10-22  Simon Josefsson  <jas@extundo.com>
46787
46788         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
46789         arcfour_context struct (simplify test vector testing in GNU
46790         Shishi).
46791
46792 2005-10-21  Simon Josefsson  <jas@extundo.com>
46793
46794         * modules/des, modules/des-tests: New files.
46795
46796         * modules/gc-des, modules/gc-des-tests: New files.
46797
46798         * tests/test-des.c, tests/test-gc-des.c: New file.
46799
46800 2005-10-21  Simon Josefsson  <jas@extundo.com>
46801
46802         * modules/arctwo, modules/arctwo-tests: New files.
46803
46804         * tests/test-arctwo.c: New file.
46805
46806         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
46807
46808         * tests/test-gc-arctwo.c: New file.
46809
46810 2005-10-21  Simon Josefsson  <jas@extundo.com>
46811
46812         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
46813         Bruno Haible <bruno@clisp.org>.
46814
46815         * m4/gc-des.m4: New file.
46816
46817 2005-10-21  Simon Josefsson  <jas@extundo.com>
46818
46819         * m4/arctwo.m4: New file.
46820
46821         * m4/gc-arctwo.m4: New file.
46822
46823 2005-10-21  Simon Josefsson  <jas@extundo.com>
46824
46825         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
46826         block.
46827
46828 2005-10-21  Simon Josefsson  <jas@extundo.com>
46829
46830         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
46831         <bruno@clisp.org>.
46832
46833         * lib/hmac-sha1.c (hmac_sha1): Likewise.
46834
46835         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
46836         Bruno Haible <bruno@clisp.org>.
46837
46838         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
46839         <bruno@clisp.org>.
46840
46841 2005-10-21  Simon Josefsson  <jas@extundo.com>
46842
46843         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
46844
46845 2005-10-21  Simon Josefsson  <jas@extundo.com>
46846
46847         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
46848
46849 2005-10-21  Simon Josefsson  <jas@extundo.com>
46850
46851         * lib/des.h, lib/des.c: New files.
46852
46853         * lib/gc-gnulib.c: Support DES.c
46854
46855 2005-10-21  Simon Josefsson  <jas@extundo.com>
46856
46857         * lib/arctwo.h, lib/arctwo.c: New files.
46858
46859         * lib/gc-gnulib.c: Support ARCTWO.
46860
46861 2005-10-21  Simon Josefsson  <jas@extundo.com>
46862
46863         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
46864         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46865
46866 2005-10-21  Simon Josefsson  <jas@extundo.com>
46867
46868         * gnulib-tool (func_import, func_create_testdir): Define automake
46869         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
46870         Makefile.am snippet),
46871         suggested by Bruno Haible <bruno@clisp.org>.
46872
46873         * modules/gc (Makefile.am): Use it.
46874
46875 2005-10-21  Bruno Haible  <bruno@clisp.org>
46876
46877         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
46878         patch.
46879
46880 2005-10-19  Simon Josefsson  <jas@extundo.com>
46881
46882         * tests/test-gc-rijndael.c: New file.
46883
46884         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
46885
46886 2005-10-19  Simon Josefsson  <jas@extundo.com>
46887
46888         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
46889         interface too.
46890
46891 2005-10-19  Simon Josefsson  <jas@extundo.com>
46892
46893         * tests/test-gc-arcfour.c: New file.
46894
46895         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
46896
46897 2005-10-19  Simon Josefsson  <jas@extundo.com>
46898
46899         * modules/gc-md4, modules/gc-md4-tests: New file.
46900
46901         * tests/test-gc-md4.c: New file.
46902
46903 2005-10-19  Simon Josefsson  <jas@extundo.com>
46904
46905         * m4/gc-md4.m4: New file.
46906
46907 2005-10-19  Simon Josefsson  <jas@extundo.com>
46908
46909         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
46910         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
46911         <kasal@ucw.cz>.
46912
46913 2005-10-19  Simon Josefsson  <jas@extundo.com>
46914
46915         * m4/gc-arcfour.m4: New file.
46916
46917         * m4/gc-rijndael.m4: New file.
46918
46919 2005-10-19  Simon Josefsson  <jas@extundo.com>
46920
46921         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
46922
46923 2005-10-19  Simon Josefsson  <jas@extundo.com>
46924
46925         * lib/gc-gnulib.c: Support ARCFOUR.
46926
46927 2005-10-19  Simon Josefsson  <jas@extundo.com>
46928
46929         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
46930         support.
46931
46932         * lib/gc.h: Add ECB enum type.
46933
46934         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
46935
46936 2005-10-18  Simon Josefsson  <jas@extundo.com>
46937
46938         * tests/test-md5.c: New file.
46939
46940         * modules/md5-tests: New file.
46941
46942 2005-10-18  Simon Josefsson  <jas@extundo.com>
46943
46944         * tests/test-md4.c: New file.
46945
46946         * modules/md4, modules/md4-tests: New files.
46947
46948 2005-10-18  Simon Josefsson  <jas@extundo.com>
46949
46950         * m4/md4.m4: New file.
46951
46952 2005-10-18  Simon Josefsson  <jas@extundo.com>
46953
46954         * lib/md4.h, lib/md4.c: New files, based on md5.?.
46955
46956 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
46957
46958         * gnulib-tool (func_create_testdir): Omit the second check whether
46959         BUILT_SOURCES in nonempty.
46960
46961 2005-10-17  Simon Josefsson  <jas@extundo.com>
46962
46963         * tests/test-rijndael.c: New file.
46964
46965 2005-10-17  Simon Josefsson  <jas@extundo.com>
46966
46967         * modules/sha1: Depend on stdint instead of md5.
46968
46969         * modules/md5: Depend on stdint, remove uint32_t.
46970
46971 2005-10-17  Simon Josefsson  <jas@extundo.com>
46972
46973         * modules/gc-sha1-tests: New file.
46974
46975         * tests/test-gc-sha1.c: New file.
46976
46977 2005-10-17  Simon Josefsson  <jas@extundo.com>
46978
46979         * m4/md5.m4: Remove call to uint32_t.m4.
46980
46981 2005-10-17  Simon Josefsson  <jas@extundo.com>
46982
46983         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
46984
46985         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
46986         md5.h.
46987
46988         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
46989
46990         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
46991
46992 2005-10-17  Simon Josefsson  <jas@extundo.com>
46993
46994         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
46995
46996 2005-10-17  Simon Josefsson  <jas@extundo.com>
46997
46998         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
46999
47000 2005-10-17  Simon Josefsson  <jas@extundo.com>
47001
47002         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47003
47004         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47005
47006 2005-10-17  Bruno Haible  <bruno@clisp.org>
47007
47008         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47009         that it can also be used in a test.
47010
47011 2005-10-16  Bruno Haible  <bruno@clisp.org>
47012
47013         * gnulib-tool (func_emit_tests_Makefile_am): Also define
47014         TESTS_ENVIRONMENT, so that individual tests can augment it.
47015
47016         * gnulib-tool (func_create_testdir): Use an intermediate target for
47017         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47018         macros, like $(ALLOCA_H), which cannot be passed through the command
47019         line.
47020
47021 2005-10-15  Simon Josefsson  <jas@extundo.com>
47022
47023         * modules/rijndael-tests: New file.
47024
47025         * modules/rijndael: New file.
47026
47027 2005-10-15  Simon Josefsson  <jas@extundo.com>
47028
47029         * m4/rijndael.m4: New file.
47030
47031 2005-10-15  Simon Josefsson  <jas@extundo.com>
47032
47033         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47034
47035         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47036
47037 2005-10-14  Simon Josefsson  <jas@extundo.com>
47038
47039         * tests/test-arcfour.c: New file.
47040
47041         * modules/arcfour, modules/arcfour-tests: New files.
47042
47043 2005-10-14  Simon Josefsson  <jas@extundo.com>
47044
47045         * m4/arcfour.m4: New file.
47046
47047 2005-10-14  Simon Josefsson  <jas@extundo.com>
47048
47049         * lib/arcfour.h, lib/arcfour.c: New files.
47050
47051 2005-10-14  Roland McGrath  <roland@redhat.com>
47052
47053         Import from libc.  [BZ #1331]
47054         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47055         macro argument.
47056         Reported by Matej Vela <vela@debian.org>.
47057
47058 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47059
47060         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47061         include <wchar.h>; no longer needed.
47062
47063 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47064
47065         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47066
47067 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
47068         and  Ulrich Drepper  <drepper@redhat.com>
47069
47070         Import from libc.
47071         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47072         instead of inline stream orientation test and two separate
47073         function calls.  Pay no attention to USE_IN_LIBIO.
47074
47075 2005-10-13  Simon Josefsson  <jas@extundo.com>
47076
47077         * modules/gc-hmac-md5-tests: New file.
47078
47079         * tests/test-gc-hmac-sha1.c: New file.
47080
47081         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47082
47083         * modules/gc-hmac-md5-tests: New file.
47084
47085         * tests/test-gc-md5.c: New file.
47086
47087         * modules/gc-md5-tests: New file.
47088
47089 2005-10-13  Simon Josefsson  <jas@extundo.com>
47090
47091         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47092         Move memory allocation outside of loop.
47093
47094 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47095
47096         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47097         intermediate directory is in a read-only file system.  Problem
47098         reported by Eric Blake.
47099
47100 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
47101
47102         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47103
47104 2005-10-12  Simon Josefsson  <jas@extundo.com>
47105
47106         * tests/test-hmac-sha1.c: New file.
47107
47108         * modules/hmac-sha1-tests: New file.
47109
47110         * modules/hmac-sha1: New file.
47111
47112 2005-10-12  Simon Josefsson  <jas@extundo.com>
47113
47114         * modules/gc-sha1: New file.
47115
47116 2005-10-12  Simon Josefsson  <jas@extundo.com>
47117
47118         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47119
47120         * tests/test-gc-pbkdf2-sha1.c: New file.
47121
47122 2005-10-12  Simon Josefsson  <jas@extundo.com>
47123
47124         * modules/gc-md5, modules/gc-hmac-md5: New files.
47125
47126         * modules/gc (Files): Remove md5, memxor and hmac files.
47127
47128 2005-10-12  Simon Josefsson  <jas@extundo.com>
47129
47130         * m4/gc-pbkdf2-sha1.m4: New file.
47131
47132         * m4/gc-hmac-sha1.m4: New file.
47133
47134         * m4/gc-sha1: New file.
47135
47136         * m4/hmac-sha1.m4: New file.
47137
47138 2005-10-12  Simon Josefsson  <jas@extundo.com>
47139
47140         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47141
47142         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47143
47144 2005-10-12  Simon Josefsson  <jas@extundo.com>
47145
47146         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47147         suggested by Bruno Haible <bruno@clisp.org>.
47148
47149 2005-10-12  Simon Josefsson  <jas@extundo.com>
47150
47151         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47152
47153 2005-10-12  Simon Josefsson  <jas@extundo.com>
47154
47155         * lib/gc-pbkdf2-sha1.c: New file.
47156
47157         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47158
47159 2005-10-12  Simon Josefsson  <jas@extundo.com>
47160
47161         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47162
47163         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47164
47165 2005-10-12  Simon Josefsson  <jas@extundo.com>
47166
47167         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47168         GC_USE_HMAC_MD5, respectively.
47169
47170         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47171         (gc_md5): Fix typo.
47172
47173         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47174
47175         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47176
47177         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47178
47179 2005-10-12  Bruno Haible  <bruno@clisp.org>
47180
47181         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47182         Reported by Stepan Kasal <kasal@ucw.cz>.
47183
47184 2005-10-11  Simon Josefsson  <jas@extundo.com>
47185
47186         * tests/test-crc.c: New file.
47187
47188         * modules/crc, modules/crc-tests: New files.
47189
47190 2005-10-11  Simon Josefsson  <jas@extundo.com>
47191
47192         * m4/crc.m4: New file.
47193
47194 2005-10-11  Simon Josefsson  <jas@extundo.com>
47195
47196         * lib/gc.h: Add gc_hash and gc_hash_buffer.
47197
47198         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
47199
47200         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47201
47202 2005-10-11  Simon Josefsson  <jas@extundo.com>
47203
47204         * lib/crc.h, lib/crc.c: New files.
47205
47206         * lib/gc.h (gc_hash_buffer): Add doc.
47207
47208 2005-10-11  Bruno Haible  <bruno@clisp.org>
47209
47210         * modules/c-strcasestr: New file.
47211         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47212
47213 2005-10-11  Bruno Haible  <bruno@clisp.org>
47214
47215         * modules/c-strcase: New file.
47216         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47217
47218 2005-10-11  Bruno Haible  <bruno@clisp.org>
47219
47220         * lib/strcasecmp.c: Include limits.h.
47221         (strcasecmp): Avoid integer overflow on exotic platforms.
47222         * lib/strncasecmp.c: Include limits.h.
47223         (strncasecmp): Avoid integer overflow on exotic platforms.
47224         Reported by Paul Eggert.
47225
47226 2005-10-11  Bruno Haible  <bruno@clisp.org>
47227
47228         * lib/c-strcasestr.h: New file, from GNU gettext.
47229         * lib/c-strcasestr.c: New file, from GNU gettext.
47230
47231 2005-10-11  Bruno Haible  <bruno@clisp.org>
47232
47233         * lib/c-strcase.h: New file, from GNU gettext.
47234         * lib/c-strcasecmp.c: New file, from GNU gettext.
47235         * lib/c-strncasecmp.c: New file, from GNU gettext.
47236
47237 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47238
47239         * modules/mempcpy (License): GPL -> LGPL.
47240         * modules/strchrnul (License): Likewise.
47241         * modules/sysexits (License): Likewise.
47242
47243 2005-10-08  Simon Josefsson  <jas@extundo.com>
47244
47245         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47246
47247 2005-10-07  Simon Josefsson  <jas@extundo.com>
47248
47249         * m4/memxor.m4: Remove gl_C_RESTRICT call.
47250
47251 2005-10-06  Simon Josefsson  <jas@extundo.com>
47252
47253         * tests/test-hmac-md5.c: New file.
47254
47255         * modules/hmac-md5-tests: New file.
47256
47257         * modules/hmac-md5: New file.
47258
47259 2005-10-06  Simon Josefsson  <jas@extundo.com>
47260
47261         * m4/hmac-md5.m4: New file.
47262
47263         * m4/memxor.m4: Require gl_C_RESTRICT.
47264
47265 2005-10-06  Simon Josefsson  <jas@extundo.com>
47266
47267         * lib/memxor.c (memxor): Avoid casts and warnings.
47268
47269 2005-10-06  Simon Josefsson  <jas@extundo.com>
47270
47271         * lib/hmac-md5.c: New file.
47272
47273         * lib/hmac.h: New file.
47274
47275 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47276
47277         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47278         promotes to int, not unsigned int, to catch the AIX 5.3
47279         compiler bug.
47280
47281 2005-10-05  Simon Josefsson  <jas@extundo.com>
47282
47283         * modules/memxor: New file.
47284
47285         * modules/iconv (Files): Move config.rpath to havelib, it is used
47286         there.
47287
47288         * modules/havelib (Files): Add config.rpath.
47289
47290 2005-10-05  Simon Josefsson  <jas@extundo.com>
47291
47292         * m4/memxor.m4: New file.
47293
47294 2005-10-05  Simon Josefsson  <jas@extundo.com>
47295
47296         * lib/memxor.c (memxor): Fix compiler error.
47297
47298         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
47299         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
47300
47301         * lib/memxor.h, lib/memxor.c: New files.
47302
47303         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
47304         we assume all systems have it, suggested by Jim Meyering
47305         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
47306         any systems lack sys/socket.h; mingw32 is known to lack it, but we
47307         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
47308         same reasons.
47309
47310 2005-10-05  Simon Josefsson  <jas@extundo.com>
47311
47312         * config/srclist.txt: Add glibc bug 1423 for md5.h.
47313
47314 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47315
47316         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
47317         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
47318         needed, since the source code now assumes these .h files.
47319
47320 2005-10-05  Derek Price  <derek@ximbiot.com>
47321
47322         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
47323
47324 2005-10-05  Bruno Haible  <bruno@clisp.org>
47325
47326         * modules/stdint (License): Change to LGPL.
47327
47328 2005-10-04  Simon Josefsson  <jas@extundo.com>
47329
47330         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
47331         D. Baushke" <mdb@gnu.org>.
47332
47333 2005-10-04  Bruno Haible  <bruno@clisp.org>
47334
47335         * lib/verify.h (verify_true): Provide alternative definition for C++.
47336
47337 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
47338
47339         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
47340         (SSIZE_MAX): New macro, if not already defined.
47341         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
47342         than 2 GiB.
47343
47344 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47345
47346         Sync from coreutils.
47347         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
47348         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
47349         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
47350         ULLONG_MAX doesn't work with 2.7.2.1.
47351
47352 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47353
47354         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
47355         From Ben Pfaff.
47356
47357         * modules/exclude (Depends-on): Depend on verify.
47358         * modules/strtoimax (Depends-on): Likewise.
47359         * modules/utimecmp (Depends-on): Likewise.
47360
47361 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47362
47363         * lib/exclude.c: Include verify.h.
47364         (verify): Remove.  All callers changed to use verify.h's version.
47365         * lib/strtoimax.c: Likewise.
47366         * lib/utimecmp.c: Likewis.e
47367
47368         Sync from coreutils.
47369         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
47370         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
47371         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
47372         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
47373         bother returning ENOSYS if settimeofday or stime fails; just let
47374         them return whatever errno they want to return.
47375         * lib/utimens.c: Include unistd.h, for dup2.
47376         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
47377         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
47378
47379 2005-10-02  Jim Meyering  <jim@meyering.net>
47380
47381         Sync from coreutils.
47382         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
47383         from glibc-2.2.5 that fails for read-only files.
47384
47385 2005-10-02  Jim Meyering  <jim@meyering.net>
47386
47387         Sync from coreutils.
47388         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
47389         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
47390         `#if HAVE_CONFIG_H'.
47391         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
47392         Remove AT_FDCWD test.
47393         Do not consume the fd unless successful.
47394         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
47395         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
47396         block, so that we don't even try to compile it if settimeofday is
47397         available.  This works around a compilation failure on OSF1 V5.1,
47398         due to stime requiring a `long int*' while tv_sec is `int'.
47399
47400 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
47401
47402         Sync from coreutils.
47403         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
47404         against `yes', rather than just testing for nonempty.
47405
47406 2005-10-01  Simon Josefsson  <jas@extundo.com>
47407
47408         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
47409         and Darwin.
47410
47411         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
47412         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
47413         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
47414         freeaddrinfo and gai_strerror are declared by the POSIX headers.
47415         Check if struct addrinfo is declared.
47416
47417 2005-10-01  Simon Josefsson  <jas@extundo.com>
47418
47419         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
47420         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
47421         AI_* and EAI_* definitions.  Protect function declarations.
47422
47423 2005-10-01  Jim Meyering  <jim@meyering.net>
47424
47425         Sync from coreutils.
47426
47427         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
47428         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
47429         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
47430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47431         in the inet and nsl libraries.  Required on Solaris 5.7.
47432
47433 2005-10-01  Jim Meyering  <jim@meyering.net>
47434
47435         Sync from coreutils.
47436         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47437         in the inet and nsl libraries.  Required on Solaris 5.7.
47438
47439 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
47440
47441         * lib/getdelim.c (getdelim): Remove unused variables.
47442
47443 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47444
47445         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
47446         so that the code works even with ancient cpp.  Portability problem
47447         with GCC 2.7.2.1 reported by Thomas M.Ott.
47448
47449 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47450
47451         * modules/regex (Depends-on): Add strcase.
47452
47453         * modules/gethostname (Licence): Change from GPL to LGPL, since
47454         gethostname.c is a trivial implementation of a standard library
47455         function.
47456         * modules/poll (License): Change from GPL to LGPL, since it's
47457         derived from LGPL code.
47458
47459 2005-09-27  Jim Meyering  <jim@meyering.net>
47460
47461         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
47462         HAVE_CONFIG_H.
47463
47464         * lib/intprops.h (signed_type_or_expr__): Define.
47465         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
47466         for unsigned types.
47467
47468 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47469
47470         * lib/verify.h (verify_expr): Remove, replacing with:
47471         (verify_true): New macro that returns true instead of void.
47472         (verify_type__): Remove.
47473         (verify): Use verify_true rather than verify_type__.
47474
47475 2005-09-26  Bruno Haible  <bruno@clisp.org>
47476
47477         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
47478         is necessary.
47479         (lib_SOURCES): Remove mbchar.c.
47480         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
47481         (Files): Add m4/mbrtowc.m4.
47482         * modules/mbiter: Likewise.
47483         * modules/mbuiter: Likewise.
47484
47485 2005-09-26  Bruno Haible  <bruno@clisp.org>
47486
47487         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
47488         compile mbchar.c if they are not both present.
47489         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
47490         * m4/mbiter.m4 (gl_MBITER): Likewise.
47491         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
47492         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
47493         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
47494
47495 2005-09-25  Jim Meyering  <jim@meyering.net>
47496
47497         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
47498         also uses socklen_t.
47499
47500 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47501
47502         * lib/utimens.c (ENOSYS): Define if not already defined.
47503         (futimens): Support having a null PATH if the file descriptor
47504         is nonnegative.
47505
47506         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
47507         Remove.
47508         (__attribute): Define to empty unless GCC 3.1 or later.
47509         This works around a core dump on OpenBSD 3.4, which has GCC
47510         2.95.3, which dumps core when given __attribute__(()).  It also
47511         simplifies other tests, since we really don't want to bother with
47512         worrying about which ancient version of GCC supported what.
47513         Original problem reported by Yoann Vandoorselaere, with part of
47514         the fix suggested by Derek Price.
47515
47516 2005-09-24  Jim Meyering  <jim@meyering.net>
47517
47518         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
47519         so we can once again use a positive bitfield width of 1 -- now we
47520         don't have to explain why we were using a bitfield width of 2.
47521
47522 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47523
47524         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
47525         and similarly for the other external symbols.  Problem reported
47526         by James Gallager.
47527
47528         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
47529         bug reported by Jim Meyering.
47530
47531         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
47532         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
47533         not needed, since socklen is a prerequisite module.
47534
47535 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47536
47537         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
47538         Problem reported by Eric Blake.
47539         (getaddrinfo): Initialize se so that it's not garbage.
47540         Redo internal storage allocation so that it doesn't make unportable
47541         assumptions about alignment.
47542         Fix a memory leak.
47543
47544         * lib/utimens.c (futimens): Use futimesat if available.
47545         Prefer it to futimes since it doesn't have the futimes bug.
47546
47547         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
47548         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
47549         Instead, declare a function that returns a pointer to an array,
47550         and use verify_type__ to declare the size of the array.
47551         Problem and germ of a solution reported by Bruno Haible.
47552         (verify_type__): Use 2, not 1, for bitfield size, to avoid
47553         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
47554
47555 2005-09-23  Jim Meyering  <jim@meyering.net>
47556
47557         Sync from coreutils.
47558         Correct build failure (socklen_t not defined) on at least
47559         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
47560         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
47561
47562 2005-09-23  Jim Meyering  <jim@meyering.net>
47563
47564         * modules/getaddrinfo (Depends-on): Add socklen.
47565
47566 2005-09-23  Bruno Haible  <bruno@clisp.org>
47567
47568         * tests/test-verify.c: New file.
47569
47570 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47571
47572         Sync from coreutils.
47573
47574         * modules/argmatch (Depends-on): Add verify.
47575         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
47576         unistd-safer.
47577         * modules/save-cwd (Depends-on): Likewise.
47578
47579         * modules/openat (Files): Add lib/openat-die.c.
47580         (Depends-on): Remove error, exitfail.
47581         Add dirname.
47582
47583         * modules/verify: New file.
47584         * MODULES.html.sh (Diagnostics <assert.h>): New section,
47585         with "verify" module.
47586
47587 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47588
47589         Sync from coreutils.
47590
47591         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
47592         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
47593         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
47594         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
47595         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
47596         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
47597         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
47598         Don't bother checking for string.h, stdlib.h, unistd.h.
47599         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
47600         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
47601         module's job.
47602         * m4/jm-macros.m4 (gl_MACROS): Likewise.
47603         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
47604
47605         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
47606         (gl_GETDATE): Use it.
47607
47608         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
47609
47610 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47611
47612         Sync from coreutils.
47613
47614         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
47615         stat-time.h.
47616         * lib/argmatch.h: Include verify.h
47617         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
47618         (ARGMATCH_ASSERT): Remove; unused.
47619         * lib/canonicalize.c: Assume STDC_HEADERS.
47620         * lib/exclude.c: Include "strcase.h".
47621         * lib/regex_internal.h [!defined _LIBC]: Likewise.
47622         * lib/getusershell.c: Include stdio--.h rather than stdio.h
47623         and stdio-safer.h.
47624         (getusershell): Call fopen, not fopen_safer.
47625         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
47626         Do not include unistd-safer.h.
47627         (save_cwd): Don't call fd_safer; no longer needed
47628         now that we include fcntl--.h.
47629
47630         * lib/getdate.y (relative_time): New type.
47631         (RELATIVE_TIME_0): New constant.
47632         (parser_control): Use relative_time instead of doing it ourselves.
47633         (%union): Add new relative_time rel member.
47634         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
47635         Now typeless.
47636         (relunit, relunit_snumber): Now of type rel.
47637         (zone, rel, relunit, get_date): Adjust to above changes.
47638
47639         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
47640         Do not include unistd-safer.h.
47641         (getloadavg): Don't call fd_safer; no longer needed
47642         now that we include fcntl--.h.
47643
47644         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
47645         (make_dir_parents): Treat ENOSYS like EEXIST.
47646
47647         Improve quality of diagnostics on restore_cwd failure.
47648         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
47649         (make_dir_parents): Last arg is now int * (for errno), not bool *.
47650         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
47651         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
47652         each time through the loop.  Do not diagnose restore_cwd failure;
47653         that is the caller's job (and perhaps the caller does not care).
47654
47655         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
47656         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
47657         If the file already exists but is not a directory, don't bother
47658         to try to make its parents.
47659         Close potential file descriptor leak if we can't chdir("/") (!).
47660         Don't always return true if chdir($PWD) fails; return true only
47661         if the requested action was done successfully (except for the
47662         chdir($PWD)).
47663         Don't log final directory unless we actually made it.
47664         Refactor to avoid duplicate code to fix up permissions.
47665         Don't attempt to fix up parent permissions if chdir($PWD) fails.
47666
47667         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
47668         to make it a bit faster and (I hope) clearer.
47669         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
47670         Fix bug in formats like %2N.
47671
47672         * lib/verify.h: New file.
47673
47674 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47675
47676         Sync from coreutils.
47677         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
47678
47679 2005-09-22  Jim Meyering  <jim@meyering.net>
47680
47681         Sync from coreutils.
47682
47683         * m4/lstat.m4 (gl_FUNC_LSTAT):
47684         Use AC_LIBSOURCES to require lstat.c and lstat.h.
47685         Remove obsolete comment.
47686         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
47687         * m4/xstrtod.m4: Likewise.
47688
47689         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
47690
47691 2005-09-22  Jim Meyering  <jim@meyering.net>
47692
47693         Sync from coreutils.
47694
47695         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
47696
47697         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
47698         the .tm_year member, since otherwise gcc-4.0 would now warn about
47699         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
47700
47701         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
47702         order to avoid an unsuppressible warning from gcc on 64-bit systems.
47703
47704         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
47705         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
47706         when run in a time zone for which daylight savings time is in effect
47707         for the starting date.
47708
47709         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
47710         stop us from restricting permissions of just-created absolute-named
47711         directories.
47712         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
47713         to restore initial working directory.
47714         * lib/mkdir-p.c (make_dir_parents): New parameter:
47715         different_working_dir, to tell caller if/when we change the working
47716         directory and are unable to return to the initial one.
47717         * lib/mkdir-p.h (make_dir_parents): Update prototype.
47718         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
47719         `return false'.  This fixes a bug introduced on 2004-07-30.
47720
47721         * lib/openat.c (fdopendir): Be sure to close the supplied
47722         file descriptor before returning.  This makes our replacement
47723         implementation a little closer to Solaris's, where fdopendir
47724         ties the file descriptor to the returned DIR* pointer.
47725         * lib/openat.c (unlinkat): New function.
47726         * lib/openat.h (unlinkat): Add prototype.
47727         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
47728         (openat_restore_fail): Rename from openat_restore_die.
47729         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
47730
47731         Provide an alternative to exiting immediately upon save_cwd or
47732         restore_cwd failure.  Now, an application can arrange e.g.,
47733         to perform a longjump in that case.
47734         * lib/openat.c: Include dirname.h.
47735         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
47736         (rpl_openat, fdopendir, fstatat): Call openat_save_die
47737         and openat_restore_die rather than calling error directly.
47738         Don't include "error.h" or "exitfail.h"; they're no longer needed.
47739
47740         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
47741         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
47742         define.
47743
47744         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
47745         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
47746                             int utc, int nanoseconds);
47747         Background:
47748         date should not have to allocate a megabyte of virtual memory to
47749         handle a format argument like +%1048575T.  When implemented with
47750         strftime, it must allocate such a buffer, use strftime to fill it
47751         in, print it, then free it.
47752         With fprintftime, it simply prints everything and exits.
47753         With no need for memory allocation, that's one fewer way to fail.
47754         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
47755         optional field width, not before, so we accept %9:z, not %:9z.
47756         (my_strftime): Be sure to use L_('x') for literals.
47757
47758         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
47759         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
47760         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
47761         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
47762         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
47763         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
47764         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
47765         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
47766         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
47767         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
47768         * lib/xgethostname.c, lib/xreadlink.c:
47769         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
47770
47771         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
47772         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
47773         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
47774         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
47775         and don't include <sys/file.h>).
47776
47777 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
47778
47779         Sync from coreutils.
47780
47781         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
47782         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
47783         [!LDAV_DONE]: Avoid unused variable warning.
47784
47785 2005-09-21  Bruno Haible  <bruno@clisp.org>
47786
47787         * lib/unicodeio.h (unicode_to_mb): New declaration.
47788
47789 2005-09-20  Derek Price  <derek@ximbiot.com>
47790
47791         * lib/getaddrinfo.c: Don't include <netdb.h> included from
47792         getaddrinfo.h.
47793
47794 2005-09-20  Bruno Haible  <bruno@clisp.org>
47795
47796         * gnulib-tool: Remove trailing slashes from the values specified for
47797         --source-base, --m4-base, --tests-base, --aux-dir.
47798         Suggested by Simon Josefsson <jas@extundo.com>.
47799
47800 2005-09-20  Bruno Haible  <bruno@clisp.org>
47801
47802         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
47803         func_modules_to_filelist, func_import, func_create_testdir): Make all
47804         sorting results locale-independent, so that gnulib-cache.m4 doesn't
47805         change when gnulib-tool is invoked in a different locale.
47806
47807 2005-09-19  Simon Josefsson  <jas@extundo.com>
47808
47809         * m4/socklen.m4: Fix typo.
47810
47811 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47812
47813         Use a consistent style for including <config.h>.
47814         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
47815         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
47816         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
47817         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
47818         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
47819         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
47820         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
47821         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
47822         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
47823         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
47824         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
47825         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
47826         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
47827         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
47828         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
47829         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
47830         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
47831         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
47832         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
47833         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
47834         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
47835         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
47836         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
47837         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
47838         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
47839         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
47840         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
47841         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
47842         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
47843         lib/xstrtoumax.c, lib/yesno.c:
47844         Standardize inclusion of config.h.
47845         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
47846         lib/inttostr.h:  Removed inclusion of config.h from header files.
47847         * lib/inttostr.c:  Adjusted in-tree users.
47848         * lib/timespec.h: Remove superfluous warning to include config.h.
47849         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
47850         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
47851         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
47852         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
47853         config.h with HAVE_CONFIG_H.
47854
47855 2005-09-19  Jim Meyering  <jim@meyering.net>
47856
47857         * modules/pathmax (License): Change to LGPL.
47858
47859 2005-09-19  Derek Price  <derek@ximbiot.com>
47860
47861         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
47862
47863 2005-09-19  Bruno Haible  <bruno@clisp.org>
47864
47865         * gnulib-tool (import): Provide default for --tests-base.
47866
47867 2005-09-19  Bruno Haible  <bruno@clisp.org>
47868
47869         * doc/quote.texi: New file, extracted from gnulib.texi.
47870         * doc/ctime.texi: New file, extracted from gnulib.texi.
47871         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
47872         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
47873         * doc/gnulib.texi: Include them.
47874
47875 2005-09-18  Bruno Haible  <bruno@clisp.org>
47876
47877         Portability fix.
47878         * gnulib-tool (func_readlink): New function.
47879         (func_ln_if_changed): Use it.
47880
47881 2005-09-18  Bruno Haible  <bruno@clisp.org>
47882
47883         * gnulib-tool: Support --with-tests also with --import.
47884         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
47885         (func_import): Use variables $testsbase and $inctests. Emit a
47886         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
47887         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
47888         SUBDIRS += $testsdir.
47889         (func_create_testdir): Update.
47890
47891 2005-09-18  Bruno Haible  <bruno@clisp.org>
47892
47893         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
47894         instead of $dry_run.
47895         (func_cp_if_changed, func_mv_if_changed): Remove functions.
47896         (func_ln_if_changed): Don't handle dry-run here.
47897         (func_import): In dry-run mode, detect more precisely which actions
47898         would be performed, and don't use "...ing" verbs.
47899
47900 2005-09-18  Bruno Haible  <bruno@clisp.org>
47901
47902         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
47903         (func_import): Use join on two temporary files instead of three nested
47904         loops, in order to determine which files are new or old.
47905
47906 2005-09-18  Bruno Haible  <bruno@clisp.org>
47907
47908         * gnulib-tool (func_import): Comment out code that spits out the
47909         new files with --dry-run.
47910
47911 2005-09-18  Bruno Haible  <bruno@clisp.org>
47912
47913         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
47914
47915 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47916
47917         * lib/stat-time.h: New file.
47918         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
47919         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
47920         in a different way.
47921         (timespec_cmp): New function.
47922         * lib/utimecmp.c: Include stat-time.h.
47923         (SYSCALL_RESOLUTION): Depend on whether various struct stat
47924         members exist, not on the obsolescent ST_MTIM_NSEC.
47925         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
47926
47927 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47928
47929         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
47930
47931 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47932
47933         * MODULES.html.sh (File system functions): Add stat-time.
47934         * modules/stat-time: New file.
47935         * modules/timespec (Files): Remove m4/st_mtim.m4; this
47936         is now done in a different way, by the stat-time module.
47937         * modules/utimecmp (Depends-on): Add stat-time.
47938
47939 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47940
47941         * m4/st_mtim.m4: Remove.  Superseded by...
47942         * m4/stat-time.m4: New file.
47943         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
47944         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
47945
47946 2005-09-15  Derek Price  <derek@ximbiot.com>
47947
47948         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
47949
47950 2005-09-15  Derek Price  <derek@ximbiot.com>
47951
47952         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
47953         * lib/regex_internal.c: Ditto, using this...
47954         (__GNUC_PREREQ): ...new macro.
47955         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
47956         using...
47957         (__GNUC_PREREQ): ...this new macro.
47958
47959         * lib/strstr.h: Include string.h. Define strstr as a macro here.
47960
47961 2005-09-15  Derek Price  <derek@ximbiot.com>
47962             Paul Eggert  <eggert@cs.ucla.edu>
47963
47964         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
47965         changes, consolidating in...
47966         * lib/regex_internal.h: ...this file.
47967
47968 2005-09-13  Jim Meyering  <jim@meyering.net>
47969
47970         * lib/canon-host.c: Filter through gnu indent and reword comments
47971         slightly.
47972         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
47973
47974 2005-09-13  Derek Price  <derek@ximbiot.com>
47975
47976         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
47977         failure.
47978         Reported by Jim Meyering  <jim@meyering.net>.
47979
47980 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47981
47982         * lib/base64.c: Typo.
47983         (base64_encode): Put b64str in initialized data section.
47984
47985 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
47986
47987         Merge glibc and coreutils changes into gnulib, plus a few
47988         extra fixes.
47989         * lib/md5.c: Use #error rather than a string.
47990         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
47991         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
47992         (__attribute__): Define to empty for non recent-GCC.
47993         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
47994         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
47995         Renamed from their non-__ counterparts, with new macros replacing
47996         them if not _LIBC.  Add __THROW attribute.
47997         (rol): Remove.
47998         (struct md5_ctx): Align buffer if using GCC.
47999         * lib/sha1.h (struct sha1_ctx): Likewise.
48000         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
48001         The old name was backwards.
48002         (NOTSWAP): Remove; not used.
48003         (rol): New macro, moved here from md5.h.
48004         (sha1_process_block): Remove a FIXME that doesn't make sense.
48005
48006 2005-09-12  Derek Price  <derek@ximbiot.com>
48007
48008         Return usable errors from canon-host.
48009         * lib/canon-host.h: New file.
48010         * lib/canon-host.c (canon_host): Wrap...
48011         (canon_host_r): ...this new function, which now relies exclusively on
48012         getaddrinfo.
48013         (ch_strerror): New function.
48014         (last_cherror): New global.
48015         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48016         interface.
48017         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
48018         void *.
48019         (freeaddrinfo): Free ai->ai_canonname when set.
48020
48021 2005-09-12  Derek Price  <derek@ximbiot.com>
48022
48023         Make canon-host require getaddrinfo.
48024         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48025         AC_LIBSOURCE canon-host.h.  Call...
48026         (gl_PREREQ_CANON_HOST): ...this new function, which requires
48027         gl_GETADDRINFO.
48028         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48029
48030 2005-09-12  Derek Price  <derek@ximbiot.com>
48031
48032         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
48033         LGPL.
48034         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
48035
48036 2005-09-12  Derek Price  <derek@ximbiot.com>
48037
48038         * lib/gai_strerror.c: Include config.h when available.  Include
48039         getaddrinfo.h before other headers to test interface.
48040         Reported by Larry Jones <lawrence.jones@ugs.com>.
48041
48042 2005-09-12  Derek Price  <derek@ximbiot.com>
48043             Paul Eggert  <eggert@cs.ucla.edu>
48044
48045         * modules/glob (Files): Add glob-libc.h.
48046
48047 2005-09-12  Derek Price  <derek@ximbiot.com>
48048             Paul Eggert  <eggert@cs.ucla.edu>
48049
48050         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48051         glob_.h, glob-libc.h.
48052         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48053
48054 2005-09-12  Derek Price  <derek@ximbiot.com>
48055             Paul Eggert  <eggert@cs.ucla.edu>
48056
48057         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
48058         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48059         protecting things that should be done only in gnulib contexts.
48060         * lib/glob_.h: New file, containing only the glob things needed for
48061         gnulib.
48062         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
48063         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48064         (glob, globfree, glob_pattern_p): Now defined simply in terms of
48065         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48066         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48067         and to respect the namespace rules better.
48068
48069 2005-09-08  Simon Josefsson  <jas@extundo.com>
48070
48071         * modules/socklen: New file.
48072
48073 2005-09-08  Simon Josefsson  <jas@extundo.com>
48074
48075         * m4/socklen.m4: New file.
48076
48077 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48078
48079         * modules/utimens (Files): Add m4/utimbuf.m4, since
48080         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48081         Reported by Sergey Poznyakoff.
48082
48083 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48084
48085         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48086         definitions, since that's the preferred style in glibc.
48087         Fix a minor spacing issue, and update copyright notice to match
48088         glibc's.
48089
48090 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48091
48092         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48093
48094 2005-09-06  Simon Josefsson  <jas@extundo.com>
48095
48096         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48097         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
48098
48099 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48100
48101         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48102         warning.
48103
48104 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48105
48106         * config/srclist.txt: Add glibc bug 1302.
48107
48108 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48109
48110         Change bitset word type from unsigned int to unsigned long int,
48111         as this has better performance on typical 64-bit hosts.
48112         Port bitset code to hosts with unusual word sizes.
48113         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48114         (build_collating_symbol):
48115         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48116         argument is a bitset.  This is merely a style issue, but it makes
48117         it clearer that an entire array is expected.
48118         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48119         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48120         Port to the case where bitset_word is not the same as unsigned int.
48121         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48122         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48123         Likewise.
48124         * lib/regexec.c (check_dst_limits_calc_pos_1,
48125         check_subexp_matching_top):
48126         (build_trtable, group_nodes_into_DFAstates):
48127         Likewise.
48128         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48129         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48130         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48131         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48132         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48133         * lib/regcomp.c (optimize_subexps, lower_subexp):
48134         Work even if bitset_word has holes in its bitwise representation.
48135         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48136         * lib/regexec.c (check_dst_limits_calc_pos_1,
48137         check_subexp_matching_top):
48138         Likewise.
48139         * lib/regex_internal.c (re_string_reconstruct):
48140         Don't assume UCHAR_MAX == 255.
48141         * lib/regex_internal.h (bitset_set_all): Likewise.
48142         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48143         All uses changed.
48144         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
48145         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48146         All uses changed.
48147         (BITSET_WORD_MAX): New macro.
48148         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48149         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
48150         (bitset_empty, bitset_copy):
48151         Prefer sizeof (bitset) to multiplying it out ourselves.
48152         (bitset_not_merge): Remove; unused.
48153         (bitset_contain): Return bool, not unsigned int with one bit on.
48154         All callers changed.
48155         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48156         alignment than re_node_set; do this by defining a new internal
48157         type struct dests_alloc and using it to allocate memory.
48158
48159 2005-09-05  Bruno Haible  <bruno@clisp.org>
48160
48161         * gnulib-tool (func_import): Fix comparison in handling of symbolic
48162         links.
48163
48164 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
48165
48166         * modules/size_max (Makefile.am): Add size_max.h
48167
48168 2005-09-04  Derek Price  <derek@ximbiot.com>
48169
48170         * gnulib-tool (func_import): Fix reversed $symbolic logic.
48171
48172 2005-09-03  Simon Josefsson  <jas@extundo.com>
48173
48174         * gnulib-tool: Fix typo.
48175
48176 2005-09-03  Simon Josefsson  <jas@extundo.com>
48177
48178         * config/srclist.txt: Add glibc bug 1293.
48179
48180 2005-09-03  Derek Price  <derek@ximbiot.com>
48181
48182         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48183         From Larry Jones <lawrence.jones@ugs.com>.
48184
48185 2005-09-02  Simon Josefsson  <jas@extundo.com>
48186
48187         * modules/socklen: New file.
48188
48189 2005-09-02  Simon Josefsson  <jas@extundo.com>
48190
48191         * modules/havelib: New module.
48192
48193         * modules/gettext, modules/iconv, modules/lock, modules/readline:
48194         Use havelib.
48195
48196 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48197
48198         Check for arithmetic overflow when calculating sizes, to prevent
48199         some buffer-overflow issues.  These patches are conservative, in the
48200         sense that when I couldn't determine whether an overflow was possible,
48201         I inserted a run-time check.
48202         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48203         macros.
48204         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48205         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48206         (re_xnrealloc, re_x2nrealloc): New inline functions.
48207         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48208         parse_bracket_exp):
48209         (build_equiv_class, build_charclass): Check for arithmetic overflow
48210         in size expression calculations.
48211         * lib/regex_internal.c (re_string_realloc_buffers):
48212         (build_wcs_upper_buffer, re_node_set_add_intersect):
48213         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48214         (re_dfa_add_node, register_state): Likewise.
48215         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48216         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48217         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48218         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48219
48220 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48221
48222         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48223         m4/ulonglong.m4.  Problem reported by Martin Lambers.
48224
48225 2005-09-02  Bruno Haible  <bruno@clisp.org>
48226
48227         Support for lib vs. lib64 distinction on biarch platforms.
48228         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48229         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48230         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48231
48232 2005-09-02  Bruno Haible  <bruno@clisp.org>
48233
48234         * gnulib-tool (import): In the other first-use case, provide defaults
48235         as well.
48236
48237 2005-09-02  Bruno Haible  <bruno@clisp.org>
48238
48239         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48240         patches not yet found in the latest gettext release.
48241
48242 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48243
48244         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48245         to avoid a collision with bits/local_lim.h in glibc.
48246         All uses changed.  Problem reported by Dmitry V. Levin in
48247         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48248
48249         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48250         bugs in int versus size_t comparisons.
48251         (re_string_context_at): Fix bug where the code assumed that
48252         Idx is signed.
48253
48254         Use bool where appropriate.
48255         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48256         All callers changed.
48257         (calc_eclosure_iter): Likewise, for ROOT arg.
48258         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48259         (build_charclass_op): Likewise, for NON_MATCH arg.
48260         * lib/regex_internal.c (re_string_allocate, re_string_construct):
48261         (re_string_construct_common): Likewise, for ICASE arg.
48262         * lib/regexec.c (re_search_2_stub, re_search_stub):
48263         Likewise, for RET_LEN arg.
48264         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48265         (set_regs): Likewise, for FL_BACKTRACK arg.
48266         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48267         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48268         (calc_eclosure_iter, parse_bracket_exp):
48269         Use bool for internal variables that are booleans.
48270         * lib/regexec.c (re_search_internal, check_matching,
48271         proceed_next_node):
48272         (set_regs, build_sifted_states, sift_states_bkref):
48273         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48274         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48275         (find_collation_sequence_value):
48276         Likewise.
48277         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48278         (re_node_set_compare):
48279         Return bool, not int. All callers changed.
48280         * lib/regexec.c (check_halt_node_context, check_dst_limits):
48281         (build_trtable, check_node_accept): Likewise.
48282         * lib/regex_internal.h: Include stdbool.h.
48283
48284         Fix bugs uncovered when converting to bool.
48285         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48286         failure instead of charging ahead blindly.
48287         * lib/regex_internal.c (register_state): Likewise.
48288         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
48289         for freeing internal storage.
48290         (group_nodes_into_DFA_states): Use unsigned int, not int, for
48291         bitset pieces used as boolean, to avoid undefined behavior
48292         on hosts that do int overflow checking.
48293
48294 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48295
48296         * config/srclist.txt: Add glibc bugs 1285-1287.
48297
48298 2005-09-01  Jim Meyering  <jim@meyering.net>
48299
48300         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
48301         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
48302         Require gl_STAT_MACROS, too.
48303
48304 2005-09-01  Bruno Haible  <bruno@clisp.org>
48305
48306         * gnulib-tool (import): In the first-use case, provide defaults.
48307
48308 2005-09-01  Bruno Haible  <bruno@clisp.org>
48309
48310         * gnulib-tool (func_import): Remove the .tmp files.
48311
48312 2005-09-01  Bruno Haible  <bruno@clisp.org>
48313
48314         * gnulib-tool (func_import): Fix handling of symbolic links.
48315
48316 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48317
48318         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
48319         old glibc regex code mishandles strings longer than 2**31 bytes.
48320         This patch fixes this when the regex code is used in gnulib
48321         (i.e., outside glibc).
48322
48323         This patch should not affect the use of the regex code inside
48324         glibc.  No doubt this problem also needs to be handled for glibc
48325         as well, but the result will be an incompatible change to the
48326         glibc ABI, and the old ABI will have to be supported too.  That
48327         can be the the subject for another patch.
48328
48329         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
48330         governing whether the rest of this patch is active.  By default,
48331         the macro is disabled and the patch has no effect.
48332         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
48333         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
48334         (struct re_pattern_buffer, re_search, re_search_2, re_match):
48335         (re_match_2, re_set_registers): Use the new types.
48336         * lib/regex_internal.h (Idx, re_hashval_t): New types.
48337         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
48338         New macros.
48339         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
48340         (re_string_context_at, bin_tree_t, re_dfastate_t):
48341         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
48342         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
48343         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
48344         (re_string_char_size_at, re_string_wchar_at):
48345         (re_string_elem_size_at):
48346         Use the new types and macros to port to 64-bit hosts.
48347         Use unsigned types for internal values, so that the code
48348         mostly works even for arrays larger than SSIZE_MAX.
48349         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
48350         (search_duplicated_node, calc_eclosure_iter, fetch_number):
48351         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
48352         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
48353         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
48354         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
48355         (calc_inveclosure, parse_dup_op, build_range_exp):
48356         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
48357         (fetch_number, create_token_tree, mark_opt_subexp):
48358         Likewise.
48359         * lib/regex_internal.c (re_string_construct_common,
48360         create_ci_newstate):
48361         (create_cd_newstate, re_string_allocate, re_string_construct):
48362         (re_string_realloc_buffers, build_wcs_upper_buffer):
48363         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48364         (re_string_reconstruct, re_string_peek_byte_case):
48365         (re_string_fetch_byte_case, re_string_context_at):
48366         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48367         (re_node_set_init_copy, re_node_set_add_intersect):
48368         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48369         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48370         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48371         (re_acquire_state, re_acquire_state_context, register_state):
48372         Likewise.
48373         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
48374         search_cur_bkref_entry):
48375         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
48376         (re_search_internal, re_search_2_stub, re_search_stub)
48377         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
48378         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
48379         (update_cur_sifted_state, check_dst_limits):
48380         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48381         (check_subexp_limits, sift_states_bkref, merge_state_array):
48382         (check_subexp_matching_top, get_subexp, get_subexp_sub):
48383         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
48384         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48385         (expand_bkref_cache, check_node_accept_bytes):
48386         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
48387         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
48388         (acquire_init_state_context, check_halt_node_context):
48389         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
48390         (sift_states_backward, clean_state_log_if_needed):
48391         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
48392         (find_recover_state, transit_state_sb, transit_state_mb):
48393         (transit_state_bkref, build_trtable, match_ctx_clean):
48394         Likewise.
48395         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
48396         to work around an assumption that REG_MISSING is negative.
48397
48398         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
48399         (seek_collating_symbol_entry) [defined _LIBC]:
48400         (lookup_collation_sequence_value) [defined _LIBC]:
48401         (build_range_exp, build_collating_symbol) [defined _LIBC]:
48402         Use prototypes rather than old-style function definitions.
48403         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
48404         (transit_state_sb) [0]:
48405         (find_collation_sequence_value) [defined _LIBC]: Likewise.
48406
48407         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
48408         rm_eo.
48409
48410         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
48411         (optimize_subexps, lower_subexp):
48412         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
48413         since the signed shift might overflow.  Use 1u<<31 instead.
48414         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48415         Likewise.
48416         * lib/regexec.c (check_dst_limits_calc_pos_1,
48417         check_subexp_matching_top): Likewise.
48418
48419         * lib/regcomp.c (optimize_subexps, lower_subexp):
48420         Use CHAR_BIT rather than 8, for clarity.
48421         * lib/regexec.c (check_dst_limits_calc_pos_1):
48422         (check_subexp_matching_top): Likewise.
48423         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
48424         have to worry about portability issues when shifting it left.
48425         Remove no-longer-needed test for table_size > 0.
48426         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
48427         in a word, as the resulting behavior is undefined.
48428         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
48429         in one case, a <= should have been an <, and in another case the
48430         whole test was missing.
48431         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
48432         the standard name CHAR_BIT.
48433         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
48434         this is not true on one's complement and signed-magnitude hosts.
48435
48436         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
48437         next_last_offset.
48438         (struct re_dfa_t): Remove unused member states_alloc.
48439         * lib/regcomp.c (init_dfa): Don't initialize unused members.
48440
48441 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48442
48443         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
48444         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
48445         and large-file glibc and in 32-bit large-file Solaris.
48446
48447 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48448
48449         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
48450         lengths fit in regoff_t; this isn't true if regoff_t is the same
48451         width as size_t.
48452         * lib/regex.c (re_search_internal): 5th arg is LAST_START
48453         (= START + RANGE) instead of RANGE.  This avoids overflow
48454         problems when regoff_t is the same width as size_t.
48455         All callers changed.
48456         (re_search_2_stub): Check for overflow when adding the
48457         sizes of the two strings.
48458         (re_search_stub): Check for overflow when adding START
48459         to RANGE; if it occurs, substitute the extreme value.
48460
48461 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48462
48463         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
48464
48465 2005-08-31  Jim Meyering  <jim@meyering.net>
48466
48467         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
48468         a pointer-to-const.
48469         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
48470         (register_state): Likewise.
48471         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
48472         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48473         (group_nodes_into_DFAstates): Likewise.
48474
48475 2005-08-31  Jim Meyering  <jim@meyering.net>
48476
48477         * check-module: Add a FIXME comment.
48478
48479 2005-08-31  Eric Blake  <ebb9@byu.net>
48480
48481         * modules/unistd-safer (Files): Add unistd--.h.
48482         * modules/stdio-safer (Files): Add stdio--.h.
48483
48484 2005-08-31  Derek Price  <derek@ximbiot.com>
48485
48486         * lib/getdelim.c (getdelim): Return EOF on EOF.
48487         Reported by Larry Jones <lawrence.jones@ugs.com>.
48488
48489 2005-08-31  Bruno Haible  <bruno@clisp.org>
48490
48491         Avoid unnecessary diffs in the generated lib/Makefile.am.
48492         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
48493         the generated files.
48494         (func_import): Don't set cmd.
48495
48496 2005-08-31  Bruno Haible  <bruno@clisp.org>
48497
48498         * lib/strstr.c: Include <stddef.h>, for NULL.
48499         * lib/strcasestr.c: Likewise.
48500         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48501
48502 2005-08-31  Bruno Haible  <bruno@clisp.org>
48503
48504         * gnulib-tool: New option --macro-prefix.
48505         (func_import): Use macro_prefix.
48506         (import): Handle option --macro-prefix.
48507
48508 2005-08-31  Bruno Haible  <bruno@clisp.org>
48509
48510         * gnulib-tool (import): Rename most ac_* variables to cached_*.
48511         Also use new variables cached_lgpl, cached_libtool.
48512
48513 2005-08-31  Bruno Haible  <bruno@clisp.org>
48514
48515         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
48516         always instantiating them.
48517
48518 2005-08-31  Bruno Haible  <bruno@clisp.org>
48519
48520         * gnulib-tool (func_import): Read the previous cached settings
48521         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
48522         earlier added by gnulib but are now dropped. Warn when a gnulib file
48523         overwrites a non-gnulib file.
48524
48525 2005-08-31  Bruno Haible  <bruno@clisp.org>
48526
48527         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
48528         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
48529         projects that don't keep autogenerated files in CVS. Put into
48530         actioncmd only the specified modules, not the transitive closure.
48531
48532 2005-08-31  Bruno Haible  <bruno@clisp.org>
48533
48534         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
48535         Create directories that shall be filled.
48536         (import): Don't look for gl_* macros in configure.ac. Recurse across
48537         all directories containing a gnulib-cache.m4 files, if meaningful.
48538
48539 2005-08-31  Bruno Haible  <bruno@clisp.org>
48540
48541         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
48542         (import): Set seen_libtool when we see gl_LIBTOOL.
48543
48544 2005-08-31  Bruno Haible  <bruno@clisp.org>
48545
48546         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
48547         declaration macro definitions from generated gnulib.m4.
48548
48549 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
48550
48551         * lib/iconvme.h: Add prototype for iconv_alloc.
48552
48553 2005-08-29  Simon Josefsson  <jas@extundo.com>
48554
48555         * lib/iconvme.c: Fix errno.
48556
48557 2005-08-29  Bruno Haible  <bruno@clisp.org>
48558
48559         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
48560         that it works when the directory contains spaces.
48561
48562 2005-08-29  Bruno Haible  <bruno@clisp.org>
48563
48564         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
48565
48566 2005-08-29  Bruno Haible  <bruno@clisp.org>
48567
48568         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
48569         Emit more advice.
48570
48571 2005-08-29  Bruno Haible  <bruno@clisp.org>
48572         and Stepan Kasal  <kasal@ucw.cz>
48573
48574         * check-module: If more parameters are given, check each of them
48575         separately; add more exceptions, as noted by Jim Meyering.
48576         (check_module): New procedure.
48577         (%exempt_header): Now contains all exceptions.
48578
48579 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
48580
48581         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
48582
48583 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
48584
48585         * lib/iconvme.c: Split iconv_string into iconv_alloc.
48586
48587 2005-08-28  Bruno Haible  <bruno@clisp.org>
48588
48589         * m4/gnulib-tool.m4: New file.
48590
48591 2005-08-27  Jim Meyering  <jim@meyering.net>
48592
48593         * modules/unistd-safer (Files): Add pipe-safer.c.
48594         * modules/fcntl-safer (Files): Add creat-safer.c.
48595
48596 2005-08-27  Jim Meyering  <jim@meyering.net>
48597
48598         * m4/stdlib-safer.m4: New file.  From coreutils.
48599         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
48600         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
48601         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
48602         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
48603         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
48604
48605 2005-08-27  Jim Meyering  <jim@meyering.net>
48606
48607         * lib/fopen-safer.c: Merge minor changes from coreutils.
48608         * lib/dup-safer.c: Likewise.
48609         * lib/fd-safer.c: Likewise.
48610
48611         Merge from coreutils.
48612         * lib/stdio--.h: New file.
48613         * lib/stdlib--.h: New file.
48614         * lib/mkstemp-safer.c: New file.
48615
48616         GNU tar needs these.
48617         * lib/pipe-safer.c: New file.
48618         * lib/creat-safer.c: New file.
48619         * lib/fcntl--.h (creat): Define to creat_safer.
48620         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
48621         * lib/unistd--.h (pipe): Define to pipe_safer.
48622         * lib/unistd-safer.h: Declare pipe_safer.
48623
48624 2005-08-26  Simon Josefsson  <jas@extundo.com>
48625
48626         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
48627         Haible <bruno@clisp.org>.
48628
48629 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
48630
48631         * lib/regex_internal.h: Remove all references to
48632         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
48633         or better.
48634         (bitset_not, bitset_merge, bitset_not_merge):
48635         (bitset_mask, re_string_allocate, re_string_construct):
48636         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
48637         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
48638         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
48639         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
48640         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48641         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48642         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
48643         (re_acquire_state_context):
48644         Remove unnecessary forward decls.
48645         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
48646         Put __attribute at function definition,
48647         now that the function decl has been removed.
48648         * lib/regex_internal.c (re_string_peek_byte_case):
48649         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
48650         Likewise.
48651
48652 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
48653
48654         * m4/regex.m4: Add AC_PREREQ(2.50).
48655         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
48656
48657 2005-08-25  Simon Josefsson  <jas@extundo.com>
48658
48659         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
48660         __fsetlocking.
48661
48662 2005-08-25  Simon Josefsson  <jas@extundo.com>
48663
48664         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
48665         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
48666         GLIBC specific code.
48667
48668 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48669
48670         Make regex safe for g++.  This fixes one real bug (an "err"
48671         that should have been "*err").  g++ problem reported by
48672         Sam Steingold.
48673         * lib/regex_internal.h (re_calloc): New macro, consistent with
48674         re_malloc etc.  All callers of calloc changed to use re_calloc.
48675         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
48676         not int.  All callers changed.
48677         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
48678         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
48679         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
48680         (find_recover_state): Change "err" to "*err"; this fixes what
48681         appears to be a real bug.
48682         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
48683         versus int.
48684
48685 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48686
48687         * modules/regex (Depends-on): Add malloc, since the code
48688         assumes that !malloc(0) means failure.
48689
48690 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48691
48692         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
48693
48694         alloca modernization/simplification for regex.
48695         * lib/regex.c: Remove portability cruft for alloca.  This no longer
48696         needs to be at the start of the file, and can be moved into
48697         regex_internal.h and simplified.
48698         * lib/regex_internal.h: Include <alloca.h>.
48699         (__libc_use_alloca) [!defined _LIBC]: New macro.
48700         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
48701         now works outside glibc.
48702
48703 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48704
48705         * config/srclist.txt: Add glibc bugs 1241, 1245.
48706
48707 2005-08-25  Jim Meyering  <jim@meyering.net>
48708
48709         * lib/open-safer.c: Include <config.h>.
48710         Otherwise, we'd lose LARGEFILE support in any file using
48711         e.g. "fcntl--.h"
48712
48713 2005-08-25  Bruno Haible  <bruno@clisp.org>
48714
48715         * m4/minmax.m4: Require autoconf 2.52.
48716         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
48717         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
48718         alternatives of translit over the alphabet.
48719         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
48720
48721 2005-08-24  Simon Josefsson  <jas@extundo.com>
48722
48723         * tests/test-getpass.c: New file.
48724
48725 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48726
48727         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
48728         for GNU regex features.
48729
48730 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
48733         * lib/regex.h (regerror): Likewise.
48734
48735         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
48736         requires this.  (The code never needed it.)
48737
48738         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
48739         All uses of recently-renamed identifiers changed to use the new,
48740         POSIX-compliant names.  The code will build and run just fine
48741         without these changes, but it's better to eat our own dog food
48742         and use the standard-conforming names.
48743
48744         * lib/regex.h: Fix a multitude of POSIX name space violations.
48745         These changes have an effect only for programs that define
48746         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
48747         do not change anything for programs compiled in the normal way.
48748         Also, there is no effect on the ABI.
48749
48750         (_REGEX_SOURCE): New macro.
48751         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
48752         defined and _GNU_SOURCE is not; this fixes a name space violation.
48753
48754         Rename the following macros to obey POSIX requirements.
48755         The old names are still visible as macros if _REGEX_SOURCE is defined.
48756         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
48757         RE_BACKSLASH_ESCAPE_IN_LISTS.
48758         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
48759         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
48760         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
48761         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
48762         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
48763         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
48764         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
48765         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
48766         (REG_INTERVALS): renamed from RE_INTERVALS.
48767         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
48768         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
48769         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
48770         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
48771         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
48772         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
48773         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
48774         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
48775         RE_UNMATCHED_RIGHT_PAREN_ORD.
48776         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
48777         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
48778         (REG_DEBUG): renamed from RE_DEBUG.
48779         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
48780         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
48781         unusual, since we can't clash with the POSIX REG_ICASE.
48782         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
48783         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
48784         (REG_NO_SUB): renamed from RE_NO_SUB.
48785         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
48786         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
48787         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
48788         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
48789         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
48790         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
48791         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
48792         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
48793         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
48794         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
48795         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
48796         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
48797         RE_SYNTAX_POSIX_MINIMAL_BASIC.
48798         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
48799         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
48800         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
48801         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
48802         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
48803         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
48804         (REG_FIXED): Renamed from REGS_FIXED.
48805         (REG_NREGS): Renamed from RE_NREGS.
48806
48807         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
48808         of other REG_* macros, since POSIX says the user is allowed to
48809         #undef these macros selectively.
48810
48811         (reg_errcode_t): Update comment stating what other tables need
48812         to be consistent.
48813
48814         Rename the following enum values to obey POSIX requirements.
48815         The old names are still visible as macros.
48816         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
48817         is not defined, since GNU is supposed to be a superset of POSIX as
48818         much as possible, and since we want reg_errcode_t to be a signed
48819         type for implementation consistency.
48820         (_REG_NOERROR): Renamed from REG_NOERROR.
48821         (_REG_NOMATCH): Renamed from REG_NOMATCH.
48822         (_REG_BADPAT): Renamed from REG_BADPAT.
48823         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
48824         (_REG_ECTYPE): Renamed from REG_ECTYPE.
48825         (_REG_EESCAPE): Renamed from REG_EESCAPE.
48826         (_REG_ESUBREG): Renamed from REG_ESUBREG.
48827         (_REG_EBRACK): Renamed from REG_EBRACK.
48828         (_REG_EPAREN): Renamed from REG_EPAREN.
48829         (_REG_EBRACE): Renamed from REG_EBRACE.
48830         (_REG_BADBR): Renamed from REG_BADBR.
48831         (_REG_ERANGE): Renamed from REG_ERANGE.
48832         (_REG_ESPACE): Renamed from REG_ESPACE.
48833         (_REG_BADRPT): Renamed from REG_BADRPT.
48834         (_REG_EEND): Renamed from REG_EEND.
48835         (_REG_ESIZE): Renamed from REG_ESIZE.
48836         (_REG_ERPAREN): Renamed from REG_ERPAREN.
48837         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
48838         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
48839         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
48840         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
48841
48842         (_REG_RE_NAME, _REG_RM_NAME): New macros.
48843         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
48844         changed.  But support the old name if the new one is not defined
48845         and if _REGEX_SOURCE.
48846
48847         Change the following member names in struct re_pattern_buffer.
48848         The old names are still supported if !_REGEX_SOURCE.
48849         The new names are always supported, regardless of _REGEX_SOURCE.
48850         (re_buffer): Renamed from buffer.
48851         (re_allocated): Renamed from allocated.
48852         (re_used): Renamed from used.
48853         (re_syntax): Renamed from syntax.
48854         (re_fastmap): Renamed from fastmap.
48855         (re_translate): Renamed from translate.
48856         (re_can_be_null): Renamed from can_be_null.
48857         (re_regs_allocated): Renamed from regs_allocated.
48858         (re_fastmap_accurate): Renamed from fastmap_accurate.
48859         (re_no_sub): Renamed from no_sub.
48860         (re_not_bol): Renamed from not_bol.
48861         (re_not_eol): Renamed from not_eol.
48862         (re_newline_anchor): Renamed from newline_anchor.
48863
48864         Change the following member names in struct re_registers.
48865         The old names are still supported if !_REGEX_SOURCE.
48866         The new names are always supported, regardless of _REGEX_SOURCE.
48867         (rm_num_regs): Renamed from num_regs.
48868         (rm_start): Renamed from start.
48869         (rm_end): Renamed from end.
48870
48871         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
48872         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
48873         Prepend __ to parameter names.
48874
48875         Undo yesterday's changes.
48876
48877 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48878
48879         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
48880         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
48881         lib/regex.c.
48882
48883 2005-08-24  Jim Meyering  <jim@meyering.net>
48884
48885         Sync from coreutils.
48886         * m4/fcntl-safer.m4: New file.
48887
48888         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
48889         and object files for this module.
48890
48891 2005-08-24  Jim Meyering  <jim@meyering.net>
48892
48893         Sync from coreutils.
48894         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
48895
48896 2005-08-24  Jim Meyering  <jim@meyering.net>
48897
48898         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
48899         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
48900
48901 2005-08-24  Jim Meyering  <jim@meyering.net>
48902
48903         * modules/fcntl-safer: New module.
48904         * modules/fts (Depends-on): Add fcntl-safer.
48905         * MODULES.html.sh (File descriptor based Input/Output):
48906         Add fcntl-safer.
48907
48908 2005-08-24  Bruno Haible  <bruno@clisp.org>
48909
48910         Support for unit test modules.
48911         * modules/README: Mention tests modules.
48912         * modules/TEMPLATE-TESTS: New file.
48913         * gnulib-tool: New options --extract-tests-module, --with-tests and
48914         --tests-base (unused for the moment).
48915         (testsbase, inctests): New variables.
48916         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
48917         (func_verify_module): Exclude TEMPLATE-TESTS.
48918         (func_verify_nontests_module, func_verify_tests_module): New functions.
48919         (func_get_dependencies): Add implicit dependency for tests modules.
48920         (func_get_tests_module): New function.
48921         (func_modules_transitive_closure): When --with-tests was specified,
48922         include the unit tests as well, unless explicitly avoided.
48923         (func_emit_lib_Makefile_am): Ignore the tests modules here.
48924         (func_emit_tests_Makefile_am): New function.
48925         (func_create_testdir): When --with-tests was specified, emit a
48926         tests/ directory.
48927         * MODULES.html.sh (Future developments): Update.
48928
48929 2005-08-24  Bruno Haible  <bruno@clisp.org>
48930
48931         * modules/tls-tests: New file.
48932         * tests/test-tls.c: New file, from GNU gettext.
48933
48934 2005-08-24  Bruno Haible  <bruno@clisp.org>
48935
48936         * modules/lock-tests: New file.
48937         * tests/test-lock.c: New file, from GNU gettext.
48938
48939 2005-08-24  Bruno Haible  <bruno@clisp.org>
48940
48941         * lib/lock.h: Add multiple inclusion guard.
48942         * lib/tls.h: Add multiple inclusion guard.
48943
48944 2005-08-24  Bruno Haible  <bruno@clisp.org>
48945
48946         * gnulib-tool: Add support for the --aux-dir option to
48947         --create-testdir, --create-megatestdir, --test, --megatest.
48948         (func_create_testdir, func_create_megatestdir): Optionally emit a
48949         AC_CONFIG_AUX_DIR directive.
48950         (create-testdir, create-megatestdir, test, megatest): Provide a
48951         default value for $auxdir.
48952
48953 2005-08-24  Bruno Haible  <bruno@clisp.org>
48954
48955         * gnulib-tool (import): Use compound statement instead of subshell
48956         where possible.
48957
48958 2005-08-24  Bruno Haible  <bruno@clisp.org>
48959
48960         * gnulib-tool (import): Change --aux-dir default to "build-aux".
48961
48962 2005-08-24  Bruno Haible  <bruno@clisp.org>
48963
48964         * gnulib-tool (func_version): Update.
48965
48966 2005-08-24  Bruno Haible  <bruno@clisp.org>
48967
48968         * gnulib-tool (func_import, func_create_testdir,
48969         func_create_megatestdir): Quote all autoconf macro arguments.
48970
48971 2005-08-24  Bruno Haible  <bruno@clisp.org>
48972
48973         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
48974         option --force, because --force causes the aclocal.m4 of each
48975         subdirectory to be newer than the corresponding config.h.in.
48976
48977 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48978
48979         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
48980         All contents moved to gl_REGEX.
48981         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
48982         assume that it does.
48983
48984 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48985
48986         * lib/regex.h (REG_NOSYS)
48987         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
48988         Define, since POSIX requires it as of 2001.
48989         (_REG_ENOSYS)
48990         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
48991         New private symbol, used to keep the enum signed in all cases.
48992         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
48993         Youngman in
48994         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
48995
48996         * lib/regex_internal.c (re_string_skip_chars, register_state):
48997         (calc_state_hash):
48998         Remove forward decls; no longer needed now that we use prototypes.
48999         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49000         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49001         (clean_state_log_if_needed): Likewise.
49002
49003 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49004
49005         * config/srclist.txt: Add glibc bugs 1231-1233.
49006
49007 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49008
49009         Fix problems reported by Sam Steingold in
49010         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49011         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49012         assumed that reg_errcode_t is a signed type, which is not
49013         necessarily true if _XOPEN_SOURCE is not defined.
49014         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49015         since some compilers warn about it otherwise.
49016
49017 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49018
49019         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49020         (init_word_char, create_initial_state, duplicate_node_closure):
49021         (fetch_token, peek_token_bracket, build_range_exp):
49022         (build_collating_symbol): Remove forward decls; no longer needed
49023         now that we use prototypes.
49024
49025         * lib/regcomp.c:
49026         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49027         (re_compile_fastmap_iter, regcomp, regerror, regfree):
49028         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49029         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49030         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49031         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49032         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49033         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49034         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49035         (build_range_exp, build_collating_symbol, parse_bracket_exp):
49036         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49037         (build_charclass, build_charclass_op, fetch_number, create_tree):
49038         (create_token_tree, mark_opt_subexp, duplicate_tree):
49039         Use prototypes rather than old-style definitions.
49040
49041         * lib/regex_internal.c:
49042         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49043         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49044         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49045         (re_string_reconstruct, re_string_peek_byte_case):
49046         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49047         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49048         (re_node_set_init_copy, re_node_set_add_intersect):
49049         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49050         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49051         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49052         (re_acquire_state, re_acquire_state_context, register_state):
49053         (create_ci_newstate, create_cd_newstate, free_state):
49054         Likewise.
49055         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49056         re_search_2):
49057         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49058         (re_search_internal, prune_impossible_nodes):
49059         (acquire_init_state_context, check_matching, static):
49060         (check_halt_node_context, check_halt_state_context, proceed_next_node):
49061         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49062         (update_regs, sift_states_backward, build_sifted_states):
49063         (clean_state_log_if_needed, merge_state_array):
49064         (update_cur_sifted_state, add_epsilon_src_nodes):
49065         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49066         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49067         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49068         (find_recover_state, check_subexp_matching_top, transit_state_mb):
49069         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49070         (check_arrival, check_arrival_add_next_nodes):
49071         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49072         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49073         (check_node_accept_bytes, check_node_accept, extend_buffers):
49074         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49075         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49076         (sift_ctx_init):
49077         Likewise.
49078
49079         * lib/regex_internal.h:
49080         (re_string_allocate, re_string_construct, re_string_reconstruct):
49081         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49082         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49083         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49084         (re_string_context_at, re_string_peek_byte_case):
49085         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49086         is defined, since we now use prototypes always.
49087
49088         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
49089         C89 or better.  All uses removed.
49090
49091 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49092
49093         * config/srclist.txt: Add glibc bugs 1220-1227.
49094
49095 2005-08-20  Jim Meyering  <jim@meyering.net>
49096
49097         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49098         of unused local, dfa.
49099
49100 2005-08-20  Bruno Haible  <bruno@clisp.org>
49101
49102         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49103
49104 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49105
49106         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49107         (re_node_set_insert_last, re_dfa_add_node):
49108         Rename local variables to avoid GCC shadowing warnings.
49109
49110 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49111
49112         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49113         [defined lint]: Suppress bogus uninitialized-variable warnings.
49114
49115         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49116         and let the caller return REG_ESPACE if out of space.  This
49117         removes an uninitialied-variable warning with GCC 4.0.1, and also
49118         avoids taking the address of a local variable.  All callers
49119         changed.
49120
49121 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49122
49123         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49124         $LIBCSRC/posix/regexec.c.
49125         Add glibc bug 1217 for regcomp.c.
49126
49127 2005-08-19  Jim Meyering  <jim@meyering.net>
49128
49129         * lib/regexec.c (proceed_next_node): Redo local variables to
49130         avoid GCC shadowing warnings.
49131
49132 2005-08-18  Bruno Haible  <bruno@clisp.org>
49133
49134         * lib/strstr.c (strstr): Fix return value in multibyte case.
49135         * lib/strcasestr.c (strcasestr): Likewise.
49136
49137 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49138
49139         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
49140
49141 2005-08-17  Jim Meyering  <jim@meyering.net>
49142
49143         Make the %s format (seconds since the epoch) work for a negative
49144         number and when used with a zero-padded field width, e.g. %015s.
49145
49146         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49147         label so that it precedes the code to set `digits'.  Otherwise,
49148         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
49149         print `00-22'.  Now, it prints `-0022', as it should.
49150
49151 2005-08-17  Bruno Haible  <bruno@clisp.org>
49152
49153         * modules/strstr (Files): Add m4/mbrtowc.m4.
49154         (Depends-on): Add mbuiter.
49155
49156 2005-08-17  Bruno Haible  <bruno@clisp.org>
49157
49158         * modules/strcasestr: New file.
49159         * MODULES.html.sh (String handling, based on ANSI C 89): Add
49160         strcasestr.
49161
49162 2005-08-17  Bruno Haible  <bruno@clisp.org>
49163
49164         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49165
49166 2005-08-17  Bruno Haible  <bruno@clisp.org>
49167
49168         * modules/mbuiter: New file.
49169         * MODULES.html.sh (Extended multibyte and wide character utilities):
49170         Add mbuiter.
49171
49172 2005-08-17  Bruno Haible  <bruno@clisp.org>
49173
49174         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49175         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49176
49177 2005-08-17  Bruno Haible  <bruno@clisp.org>
49178
49179         * m4/strcasestr.m4: New file.
49180
49181 2005-08-17  Bruno Haible  <bruno@clisp.org>
49182
49183         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49184         * lib/strstr.c: Completely rewritten, with multibyte locale support.
49185
49186 2005-08-17  Bruno Haible  <bruno@clisp.org>
49187
49188         * lib/strcasestr.h: New file.
49189         * lib/strcasestr.c: New file.
49190
49191 2005-08-17  Bruno Haible  <bruno@clisp.org>
49192
49193         * lib/strcasecmp.c: Use mbuiter.h.
49194
49195 2005-08-17  Bruno Haible  <bruno@clisp.org>
49196
49197         * lib/mbuiter.h: New file.
49198
49199 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49200
49201         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49202         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
49203         and gl_GETOPT are both invoked via different paths (as happens
49204         with GNU tar CVS because it uses both argp and getopt), the former
49205         wins.
49206
49207 2005-08-16  Bruno Haible  <bruno@clisp.org>
49208
49209         * modules/tls: New file.
49210         * MODULES.html.sh (Multithreading): Add tls.
49211
49212 2005-08-16  Bruno Haible  <bruno@clisp.org>
49213
49214         * modules/strnlen1: New file.
49215         * MODULES.html.sh (String handling): Add strnlen1.
49216
49217 2005-08-16  Bruno Haible  <bruno@clisp.org>
49218
49219         * modules/strcase (Files): Add m4/mbrtowc.m4.
49220         (Depends-on): Add strnlen1, mbchar.
49221
49222 2005-08-16  Bruno Haible  <bruno@clisp.org>
49223
49224         * modules/mbiter: New file.
49225         * MODULES.html.sh (Extended multibyte and wide character utilities):
49226         Add mbiter.
49227
49228 2005-08-16  Bruno Haible  <bruno@clisp.org>
49229
49230         * modules/mbfile: New file.
49231         * MODULES.html.sh (Extended multibyte and wide character utilities):
49232         Add mbfile.
49233
49234 2005-08-16  Bruno Haible  <bruno@clisp.org>
49235
49236         * modules/mbchar: New file.
49237         * MODULES.html.sh (Extended multibyte and wide character utilities):
49238         New section.
49239
49240 2005-08-16  Bruno Haible  <bruno@clisp.org>
49241
49242         * m4/tls.m4: New file, from GNU gettext.
49243
49244 2005-08-16  Bruno Haible  <bruno@clisp.org>
49245
49246         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49247         always.
49248         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49249
49250 2005-08-16  Bruno Haible  <bruno@clisp.org>
49251
49252         * m4/mbiter.m4: New file.
49253
49254 2005-08-16  Bruno Haible  <bruno@clisp.org>
49255
49256         * m4/mbfile.m4: New file.
49257
49258 2005-08-16  Bruno Haible  <bruno@clisp.org>
49259
49260         * m4/mbchar.m4: New file.
49261
49262 2005-08-16  Bruno Haible  <bruno@clisp.org>
49263
49264         * lib/tls.h: New file, from GNU gettext.
49265         * lib/tls.c: New file, from GNU gettext.
49266
49267 2005-08-16  Bruno Haible  <bruno@clisp.org>
49268
49269         * lib/strnlen1.h: New file.
49270         * lib/strnlen1.c: New file.
49271
49272 2005-08-16  Bruno Haible  <bruno@clisp.org>
49273
49274         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49275         (mbi_init): Update.
49276         (mbi_avail, mbi_advance): Let the iteration end before the terminating
49277         NUL byte, not after it.
49278
49279 2005-08-16  Bruno Haible  <bruno@clisp.org>
49280
49281         * lib/strcase.h (strcasecmp): Add note in comments.
49282         * lib/strncasecmp.c: Use code from strcasecmp.c.
49283         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49284         (strcasecmp): Work correctly in multibyte locales.
49285
49286 2005-08-16  Bruno Haible  <bruno@clisp.org>
49287
49288         * lib/mbiter.h: New file.
49289
49290 2005-08-16  Bruno Haible  <bruno@clisp.org>
49291
49292         * lib/mbfile.h: New file.
49293
49294 2005-08-16  Bruno Haible  <bruno@clisp.org>
49295
49296         * lib/mbchar.h: New file.
49297         * lib/mbchar.c: New file.
49298
49299 2005-08-16  Bruno Haible  <bruno@clisp.org>
49300
49301         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
49302         the valid ones. Makes the comparison operations transitive:
49303         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
49304         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
49305
49306 2005-08-15  Simon Josefsson  <jas@extundo.com>
49307
49308         * modules/ssize_t (License): Change to 'unlimited'.
49309
49310         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
49311
49312 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49313
49314         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
49315         Add comments for each pending glibc patch.
49316
49317 2005-08-15  Bruno Haible  <bruno@clisp.org>
49318
49319         * lib/regex.h (__restrict_arr): Don't define to __restrict if
49320         __cplusplus is defined.
49321
49322 2005-08-14  Jim Meyering  <jim@meyering.net>
49323
49324         Sync from coreutils.
49325
49326         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
49327         Use the hash-table-based cycle-detection code not just when
49328         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
49329         Reported by James Youngman in
49330         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
49331         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
49332         FTS_TIGHT_CYCLE_CHECK.
49333         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
49334         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
49335         once again.
49336         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
49337         * lib/fts.c (fd_safer): Remove decl.
49338         Include fcntl--.h rather than unistd-safer.h
49339         (fts_safe_changedir): Don't call fd_safer; no longer needed
49340         now that we include fcntl--.h.
49341
49342 2005-08-12  Simon Josefsson  <jas@extundo.com>
49343
49344         * modules/getndelim2: Use ssize_t module.
49345         * modules/getnline: Likewise.
49346         * modules/safe-read: Likewise.
49347         * modules/xreadlink: Likewise.
49348
49349         * modules/ssize_t: New file.
49350
49351 2005-08-12  Simon Josefsson  <jas@extundo.com>
49352
49353         * m4/readline.m4: Look for termcap, curses or ncurses if required.
49354
49355 2005-08-12  Simon Josefsson  <jas@extundo.com>
49356
49357         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49358         ssize_t.
49359
49360 2005-08-12  Simon Josefsson  <jas@extundo.com>
49361
49362         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
49363         readline, getdelim and check_version.
49364         (Support for systems lacking ISO C 99: Sizes of integer types):
49365         Add size_max.
49366
49367 2005-08-12  Bruno Haible  <bruno@clisp.org>
49368
49369         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
49370
49371 2005-08-11  Simon Josefsson  <jas@extundo.com>
49372
49373         * modules/readline: New file.
49374
49375         * modules/strnlen (Files): Add strnlen.h.
49376
49377 2005-08-11  Simon Josefsson  <jas@extundo.com>
49378
49379         * m4/readline.m4: New file.
49380
49381 2005-08-11  Simon Josefsson  <jas@extundo.com>
49382
49383         * lib/readline.h, readline.c: New file.
49384
49385 2005-08-11  Simon Josefsson  <jas@extundo.com>
49386
49387         * doc/gnulib.texi (Initial import, Finishing touches): Mention
49388         gl_AVOID.
49389
49390 2005-08-11  Bruno Haible  <bruno@clisp.org>
49391
49392         * lib/strnlen.h (strnlen): Change parameter name to match comment.
49393
49394 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
49395
49396         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
49397
49398 2005-08-10  Simon Josefsson  <jas@extundo.com>
49399
49400         * tests/test-iconvme.c: New file.
49401
49402 2005-08-10  Simon Josefsson  <jas@extundo.com>
49403
49404         * m4/strnlen.m4: New file.
49405
49406         * m4/strndup.m4: Don't check for strnlen declaration, done in
49407         strnlen.m4.
49408
49409 2005-08-10  Simon Josefsson  <jas@extundo.com>
49410
49411         * lib/strndup.c: Use strnlen.h.
49412
49413         * lib/strnlen.h: New file.
49414
49415 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49416
49417         * README: Typos.
49418
49419 2005-08-02  Simon Josefsson  <jas@extundo.com>
49420
49421         * modules/readline: New file.
49422
49423 2005-08-02  Simon Josefsson  <jas@extundo.com>
49424
49425         * modules/getdelim: New file.
49426
49427         * modules/getline: Rewrite, don't use getndelim2.
49428
49429 2005-08-02  Simon Josefsson  <jas@extundo.com>
49430
49431         * m4/getline.m4: Separate out getdelim stuff into separate module.
49432
49433         * m4/getdelim.m4: New file.
49434
49435 2005-08-02  Simon Josefsson  <jas@extundo.com>
49436
49437         * lib/getline.h, getline.c: Rewrite.
49438
49439         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
49440
49441 2005-07-31  Bruno Haible  <bruno@clisp.org>
49442
49443         * lib/lock.h (gl_lock_initializer): New macro.
49444         (gl_lock_define_initialized): Use it.
49445         (gl_rwlock_initializer): New macro.
49446         (gl_rwlock_define_initialized): Use it.
49447         (gl_recursive_lock_initializer): New macro.
49448         (gl_recursive_lock_define_initialized): Use it.
49449
49450 2005-07-30  Karl Berry  <karl@gnu.org>
49451
49452         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
49453         Report from Ben Pfaff, regarding getopt.
49454
49455 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
49456
49457         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
49458         normal way.
49459         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
49460         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
49461         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
49462         (gl_GETOPT): Use the new macros.  Most of the implementation
49463         is moved to the new macros.  This is for programs like Emacs
49464         that don't want all the functionality of gl_GETOPT.
49465
49466 2005-07-26  Bruno Haible  <bruno@clisp.org>
49467
49468         * m4/lock.m4: Update from GNU gettext.
49469
49470 2005-07-26  Bruno Haible  <bruno@clisp.org>
49471
49472         * lib/lock.h: Update from GNU gettext.
49473         * lib/lock.c: Update from GNU gettext.
49474
49475 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49476
49477         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
49478         obsolescent AC_TRY_RUN.  Include the default includes files, for
49479         'exit'.
49480
49481 2005-07-24  Bruno Haible  <bruno@clisp.org>
49482
49483         * modules/visibility: New file.
49484         * MODULES.html.sh (Misc): Add visibility.
49485
49486 2005-07-24  Bruno Haible  <bruno@clisp.org>
49487
49488         * m4/visibility.m4: New file.
49489
49490 2005-07-24  Bruno Haible  <bruno@clisp.org>
49491
49492         * doc/visibility.texi: New file.
49493
49494 2005-07-22  Bruno Haible  <bruno@clisp.org>
49495
49496         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
49497         $(ALLOCA_H), redundant through BUILT_SOURCES.
49498         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
49499         redundant through BUILT_SOURCES.
49500         * modules/byteswap (Makefile.am): Remove explicit dependency on
49501         $(BYTESWAP_H), redundant through BUILT_SOURCES.
49502         * modules/fnmatch (Makefile.am): Remove explicit dependency on
49503         $(FNMATCH_H), redundant through BUILT_SOURCES.
49504         * modules/getopt (Makefile.am): Remove explicit dependency on
49505         $(GETOPT_H), redundant through BUILT_SOURCES.
49506         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
49507         redundant through BUILT_SOURCES.
49508         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
49509         redundant through BUILT_SOURCES.
49510         * modules/stdbool (Makefile.am): Remove explicit dependency on
49511         $(STDBOOL_H), redundant through BUILT_SOURCES.
49512         * modules/stdint (Makefile.am): Remove explicit dependency on
49513         $(STDINT_H), redundant through BUILT_SOURCES.
49514         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
49515         Remove explicit dependency on $(SYSEXITS_H).
49516         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
49517
49518 2005-07-18  Simon Josefsson  <jas@extundo.com>
49519
49520         * lib/check-version.c (check_version): Accept identical versions too.
49521
49522 2005-07-18  Bruno Haible  <bruno@clisp.org>
49523
49524         * modules/lock: New file.
49525         * MODULES.html.sh (Multithreading): New section.
49526
49527 2005-07-18  Bruno Haible  <bruno@clisp.org>
49528
49529         * m4/lock.m4: New file, from GNU gettext.
49530
49531 2005-07-18  Bruno Haible  <bruno@clisp.org>
49532
49533         * lib/lock.h: New file, from GNU gettext.
49534         * lib/lock.c: New file, from GNU gettext.
49535
49536 2005-07-18  Bruno Haible  <bruno@clisp.org>
49537
49538         * lib/lock.h (gl_once_t): New type.
49539         (gl_once_define, gl_once): New macros.
49540         * lib/lock.c (fresh_once): New variable.
49541         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
49542         functions.
49543
49544 2005-07-16  Simon Josefsson  <jas@extundo.com>
49545
49546         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
49547         workaround, suggested by Bruno.
49548
49549 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49550
49551         * modules/xalloc (Depends-on): Add xalloc-die.
49552         * modules/xvasprintf (Depends-on): Add xalloc-die.
49553
49554 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49555
49556         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
49557         with a minor change.
49558
49559 2005-07-15  Bruno Haible  <bruno@clisp.org>
49560
49561         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
49562         When using lib/poll.c, define poll as rpl_poll.
49563
49564 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
49565
49566         * modules/argp (Depends-on): Remove unlocked-io.
49567
49568 2005-07-14  Derek Price  <derek@ximbiot.com>
49569
49570         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
49571         for glob symlink bug.
49572
49573 2005-07-14  Bruno Haible  <bruno@clisp.org>
49574
49575         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
49576         Instead, test for *_unlocked function declarations directly.
49577
49578 2005-07-11  Simon Josefsson  <jas@extundo.com>
49579
49580         * modules/size_max: New file.
49581
49582         * modules/xsize: Depend on size_max module for size_max.m4.
49583
49584 2005-07-11  Simon Josefsson  <jas@extundo.com>
49585
49586         * lib/size_max.h: New file.
49587
49588 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
49589
49590         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
49591         copyright symbol and the year.
49592         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
49593         (version_etc_va): Use parameterized copyright notice.
49594         Reword to conform to the current GNU coding standards.
49595
49596 2005-07-11  Karl Berry  <karl@gnu.org>
49597
49598         * doc/gnulib.texi (Quoting): new node.
49599         (Initial import): more info, from Patrice.
49600
49601 2005-07-11  Bruno Haible  <bruno@clisp.org>
49602
49603         * gnulib-tool (func_usage): Document option --avoid.
49604         (Command line options): Handle --avoid.
49605         (func_acceptable): New function.
49606         (func_modules_transitive_closure): Use it.
49607
49608 2005-07-11  Bruno Haible  <bruno@clisp.org>
49609
49610         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
49611         Reported by Jim Meyering.
49612
49613 2005-07-10  Bruno Haible  <bruno@clisp.org>
49614
49615         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
49616         Needed when size_t is smaller than 'unsigned int'.
49617         Reported by Paul Eggert.
49618
49619 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49620
49621         * modules/argp (Depends-on): Add unlocked-io
49622
49623 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49624
49625         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
49626         block of defines.
49627
49628 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49629
49630         * config/srclist.txt: Comment out regcomp.c, since we have a porting
49631         fix now.
49632
49633 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
49634         and Paul Eggert  <eggert@cs.ucla.edu>
49635
49636         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
49637         in wint_t, not wchar_t.  Remove now-unnecessary cast.
49638
49639 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49640
49641         * modules/regex (Files): Add lib/regex_internal.c,
49642         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
49643         (Depends-on): Add extensions.
49644         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
49645
49646 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49647
49648         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
49649         pathconf.
49650         * m4/same.m4 (gl_SAME): Likewise.
49651         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
49652
49653         * m4/regex.m4: Adjust to new libc regex implementation.
49654         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
49655         all the .c and .h parts of (the new) regex.
49656         Quote the m4 stuff better.
49657         Check for RE_ICASE bug of old gnulib.
49658         Check for REG_STARTEND of recent libc.
49659         Rename local variables from jm_* to gl_*.
49660         Quote operand of "test -f".
49661         Say "recent enough" version of libc, not "version 2".
49662         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
49663         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
49664         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
49665         Remove check for btowc, isascii.
49666         Require AM_LANGINFO_CODESET.
49667
49668 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49669
49670         * lib/regex.c, regex.h: Sync from libc.
49671         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
49672         * lib/regexec.c:
49673         New files, synced from libc, except that regex_internal.h
49674         currently has a small porting fix.
49675
49676 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49677
49678         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
49679         regex_internal.c, regexec.c.
49680         Add regex_internal.h too, but as a comment, since the libc version
49681         is currently broken in gnulib mode.
49682
49683 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49684
49685         Support programs like Emacs that use gnulib but not gettext.
49686         * MODULES.html.sh (Internationalization functions): Add gettext-h.
49687         * modules/gettext-h: New file.
49688         * modules/gettext (Files): Remove lib/gettext.h.
49689         (Depends-on): Add gettext-h.
49690         (Makefile.am): Remove lib_SOURCES.
49691         * modules/argmatch, modules/c-stack, modules/closeout:
49692         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
49693         * modules/execute, modules/file-type, modules/getaddrinfo:
49694         * modules/getopt, modules/human, modules/javacomp:
49695         * modules/javaexec, modules/mkdir-p, modules/obstack:
49696         * modules/openat, modules/pagealign_alloc, modules/pipe:
49697         * modules/quotearg, modules/regex, modules/rpmatch:
49698         * modules/unicodeio, modules/userspec, modules/version-etc:
49699         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
49700         * modules/xsetenv:
49701         Depend on gettext-h, not gettext.
49702
49703 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49704
49705         * gnulib-tool (func_import): Add support for 'public domain' license.
49706         * modules/alloca, modules/atexit, modules/memmove:
49707         Now public domain, not GPL.
49708         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
49709         * modules/realloc, modules/strerror, modules/strtod:
49710         Now LGPL, not GPL.
49711
49712 2005-07-05  Bruno Haible  <bruno@clisp.org>
49713
49714         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
49715         autoconf CVS. Needed for mingw.
49716
49717 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49718
49719         Remove the dependency of the strftime module on the tzset module.
49720         * modules/strftime (Depends-on): Remove dependency on tzset.
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         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
49726         gl_FUNC_TZSET_CLOBBER.
49727
49728 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49729
49730         Remove the dependency of the strftime module on the tzset module.
49731         * lib/strftime.c (my_strftime)
49732         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
49733         Copy the input structure, to work around some of the bug with
49734         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
49735         Solaris releases, you should also use the tzset module, but we won't
49736         require it as a dependency any more since we don't want LGPLed code
49737         to depend on GPLed code.
49738
49739 2005-07-02  Jim Meyering  <jim@meyering.net>
49740
49741         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
49742         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
49743         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
49744         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
49745
49746 2005-07-02  Jim Meyering  <jim@meyering.net>
49747
49748         * lib/backupfile.c (backup_args): Change a `0' to NULL.
49749
49750 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49751
49752         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
49753         declares only 'struct timespec;' (!).
49754
49755 2005-07-01  Jim Meyering  <jim@meyering.net>
49756
49757         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
49758         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
49759         * lib/save-cwd.c, tempname.c:
49760         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49761         and don't include <sys/file.h>).
49762
49763 2005-06-29  Jim Meyering  <jim@meyering.net>
49764
49765         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
49766         type name.  Use the variable name instead.
49767         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
49768         Likewise.
49769
49770 2005-06-28  Simon Josefsson  <jas@extundo.com>
49771
49772         * modules/check-version (Files): Add check-version.m4.
49773
49774 2005-06-28  Simon Josefsson  <jas@extundo.com>
49775
49776         * m4/check-version.m4: New file, suggested by Jim Meyering
49777         <jim@meyering.net>.
49778
49779 2005-06-28  Simon Josefsson  <jas@extundo.com>
49780
49781         * lib/check-version.h, lib/check-version.c: New files.
49782
49783 2005-06-28  Simon Josefsson  <jas@extundo.com>
49784
49785         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
49786         collision with global variable.  Better indentation.  Don't
49787         increment buffer pointer beyond buffer end.  Based on comments
49788         from Paul Eggert <eggert@cs.ucla.edu>.
49789
49790         * lib/base64.h: Indent.
49791
49792 2005-06-28  Simon Josefsson  <jas@extundo.com>
49793
49794         * doc/gnulib.texi (Library version handling): New section.
49795
49796 2005-06-28  Jim Meyering  <jim@meyering.net>
49797
49798         * check-module (find_included_lib_files): Hard-code another
49799         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
49800         but modules/fts-lgpl (correctly) does not list those files.
49801
49802         * modules/canonicalize (Files): Add lib/pathmax.h.
49803
49804 2005-06-25  Simon Josefsson  <jas@extundo.com>
49805
49806         * modules/check-version: New file.
49807
49808 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
49809
49810         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
49811         initializer of struct addrinfo, as an indication that we don't
49812         care how many members the structure has.
49813
49814 2005-06-24  Derek Price  <derek@ximbiot.com>
49815         and Bruno Haible  <bruno@clisp.org>
49816
49817         Remove stat module & update lstat.
49818         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
49819         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49820         * m4/stat.m4: Remove this file.
49821
49822 2005-06-24  Derek Price  <derek@ximbiot.com>
49823         and Bruno Haible  <bruno@clisp.org>
49824
49825         Remove stat module & update lstat.
49826         * lib/stat.c: Remove this file...
49827         (slash_aware_lstat): ...moving this content and its support...
49828         * lib/lstat.c (rpl_lstat): ...into here.
49829         * lib/lstat.h: New file.
49830
49831 2005-06-24  Derek Price  <derek@ximbiot.com>
49832         and Bruno Haible  <bruno@clisp.org>
49833
49834         Remove stat module & update lstat.
49835         * config/srclist.txt (libc sources): Remove stat.
49836
49837 2005-06-24  Derek Price  <derek@ximbiot.com>
49838         and Bruno Haible  <bruno@clisp.org>
49839
49840         Remove stat module & update lstat.
49841         * MODULES.html.sh (stat): Remove.
49842         * MODULES.html: Regenerated.
49843         * modules/lstat (Description): Correct function name.
49844         (Files): Add "lstat.h".
49845         (Depends-on): Remove stat, add xalloc, stat-macros.
49846         * modules/stat: Remove this file.
49847         (Include): Add "lstat.h", remove <sys/stat.h>.
49848
49849 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49850
49851         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
49852         (ranged_convert): Don't save conversion in a temporary struct.
49853         This causes a warning with GCC 4.0.0, and anyway in the typical
49854         case it's not worth the extra 100 bytes or so of code.
49855         (ranged_convert, __mktime_internal): When calling a function via a
49856         pointer P, use P () rather than (*P) (), as we now assume C89 or
49857         better.
49858
49859 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49860
49861         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
49862         "who -r" failed to give output.  Problem reported by Tim Waugh.
49863
49864         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
49865         (xcalloc): Use it to avoid needless tests.
49866         Problem reported by Jim Meyering.
49867
49868 2005-06-20  Derek Price  <derek@ximbiot.com>
49869
49870         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
49871         unnecessary for Autoconfs > 2.59c.
49872
49873 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49874
49875         * lib/argp.h (__option_is_short): Check upper limit of
49876         __key. Isprint() requires its argument to have the value
49877         of an unsigned char or EOF.
49878
49879 2005-06-16  Jim Meyering  <jim@meyering.net>
49880
49881         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
49882         when either N or S is zero.
49883
49884 2005-06-16  Derek Price  <derek@ximbiot.com>
49885
49886         * m4/bison.m4: Declare YACC & YFLAGS precious.
49887
49888 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
49889
49890         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
49891         multibyte string or pattern, fall back on unibyte matching.
49892         Problem reported by James Youngman.
49893
49894 2005-06-08  Bruno Haible  <bruno@clisp.org>
49895
49896         * modules/csharpcomp: New file.
49897         * MODULES.html.sh (C#): Add csharpcomp.
49898
49899 2005-06-08  Bruno Haible  <bruno@clisp.org>
49900
49901         * m4/csharpcomp.m4: New file, from GNU gettext.
49902
49903 2005-06-08  Bruno Haible  <bruno@clisp.org>
49904
49905         * lib/csharpcomp.h: New file, from GNU gettext.
49906         * lib/csharpcomp.c: New file, from GNU gettext.
49907         * lib/csharpcomp.sh.in: New file, from GNU gettext.
49908
49909 2005-06-08  Bruno Haible  <bruno@clisp.org>
49910
49911         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
49912         warning on mingw.
49913
49914 2005-06-07  Derek Price  <derek@ximbiot.com>
49915
49916         Sync from CVS.
49917         * lib/glob_.h: Indent nested #ifdef.
49918
49919 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49920
49921         Sync from coreutils.
49922         Use "file name" when talking about file names, instead of "filename"
49923         or "path", as per the GNU coding standards.
49924         * lib/mkdir-p.c: Renamed from makepath.c.
49925         (make_dir_parents): Renamed from make_path.  All callers changed.
49926         * lib/mkdir-p.h: Likewise.  All includers changed.
49927         * lib/filenamecat.c: Renamed from path-concat.c.
49928         (file_name_concat): Renamed from path_concat.  All callers changed.
49929         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
49930         * lib/filenamecat.h: Likewise.  All includers changed.
49931         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
49932         in comments or local variable names.
49933         * lib/basename.c: Likewise.
49934         * lib/canonicalize.c, canonicalize.h: Likewise.
49935         * lib/dirname.c, dirname.h: Likewise.
49936         * lib/euidaccess.c: Likewise.
49937         * lib/exclude.c: Likewise
49938         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
49939         * lib/fsusage.c, fsuage.h: Likewise.
49940         * lib/fts.c, fts_.h: Likewise.
49941         * lib/getcwd.c: Likewise.
49942         * lib/getloadavg.c: Likewise.
49943         * lib/mkstemp.c: Likewise.
49944         * lib/mountlist.c, mountlist.h: Likewise.
49945         * lib/openat.c, openat.h: Likewise.
49946         * lib/readlink-stub.c: Likewise.
49947         * lib/readutmp.c, readutmp.h: Likewise.
49948         * lib/rename.c: Likewise.
49949         * lib/rmdir.c: Likewise.
49950         * lib/same.c: Likewise.
49951         * lib/savedir.c: Likewise.
49952         * lib/stripslash.c: Likewise.
49953         * lib/tempname.c: Likewise.
49954         * lib/xreadlink.c: Likewise.
49955         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
49956         All uses changed.
49957         * lib/exclude.h: Likewise.
49958
49959         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
49960         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49961         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
49962         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49963         * lib/pathmax.h: Include <limits.h> unconditionally, since other
49964         files have been getting away with it for years (MORE/BSD 4.3
49965         is extinct now).
49966         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
49967         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49968
49969         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
49970         Define to 256, not 255, as per modern POSIX.
49971
49972 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49973
49974         Sync from coreutils.
49975         Use "file name" when talking about file names, instead of "filename"
49976         or "path", as per the GNU coding standards.
49977         * MODULES.html.sh: mkdir-p renamed from makepath.
49978         filenamecat renamed from path-concat.
49979         * modules/filenamecat: Renamed from modules/path-concat.
49980         (Files): filenamecat.h and filenamecat.c renamed from
49981         path-concat.h and path-concat.c.
49982         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
49983         (Include): filenamecat.h, not path-concat.h.
49984         * modules/mkdir-p: Renamed from modules/makepath.
49985         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
49986         makepath.c.
49987         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
49988         (Include): mkdir-p.h, not makepath.h.
49989
49990 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49991
49992         Sync from coreutils.
49993         * m4/mkdir-p.m4: Renamed from makepath.m4.
49994         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
49995         Rename files from makepath.c to mkdir-p.c, and from
49996         makepath.h to mkdir-p.h.
49997         * m4/filenamecat.m4: Renamed from path-concat.m4.
49998         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
49999         Rename files from path-concat.c to filenamecat.c,
50000         and from path-concat.h to filenamecat.h.
50001         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50002         "file name" in local variables or comments.
50003         * m4/rename.m4: Likewise.
50004
50005 2005-06-01  Bruno Haible  <bruno@clisp.org>
50006
50007         * modules/csharpexec: New file.
50008         * MODULES.html.sh (C#): New section.
50009
50010 2005-06-01  Bruno Haible  <bruno@clisp.org>
50011
50012         * m4/csharp.m4: New file, from GNU gettext.
50013         * m4/csharpexec.m4: New file, from GNU gettext.
50014
50015 2005-06-01  Bruno Haible  <bruno@clisp.org>
50016
50017         * lib/csharpexec.h: New file, from GNU gettext.
50018         * lib/csharpexec.c: New file, from GNU gettext.
50019         * lib/csharpexec.sh.in: New file, from GNU gettext.
50020
50021 2005-05-31  Derek Price  <derek@ximbiot.com>
50022             Paul Eggert  <eggert@cs.ucla.edu>
50023
50024         Sync from cvs.
50025         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50026
50027 2005-05-31  Derek Price  <derek@ximbiot.com>
50028             Paul Eggert  <eggert@cs.ucla.edu>
50029
50030         Sync from cvs.
50031         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50032
50033 2005-05-29  Derek Price  <derek@ximbiot.com>
50034
50035         * config/srclist.txt (glob_.h, glob.c): Add these files.
50036
50037 2005-05-29  Derek Price  <derek@ximbiot.com>
50038
50039         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50040         * modules/glob: New file.
50041         * modules/getlogin_r: Add link to POSIX spec in description.
50042
50043 2005-05-29  Derek Price  <derek@ximbiot.com>
50044             Paul Eggert  <eggert@cs.ucla.edu>
50045
50046         * m4/glob.m4: New file.
50047
50048 2005-05-29  Derek Price  <derek@ximbiot.com>
50049             Paul Eggert  <eggert@cs.ucla.edu>
50050
50051         * lib/glob_.h, lib/glob.c: New files.
50052
50053 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50054
50055         * modules/fts (Files): Remove m4/inttypes-pri.m4.
50056         * modules/fts-lgpl (Depends-on): Remove gettext.
50057
50058 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50059
50060         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50061         and don't require gt_INTTYPES_PRI.
50062
50063 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50064
50065         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50066
50067         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50068         the configuration hassle isn't worth it.
50069         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50070         (LONGEST_MODIFIER, PRIuMAX): Remove.
50071
50072 2005-05-27  Bruno Haible  <bruno@clisp.org>
50073
50074         * lib/getlogin_r.h: Remove second include of <stddef.h>.
50075
50076 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
50077
50078         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50079         _POSIX_PTHREAD_SEMANTICS for Solaris.
50080
50081 2005-05-25  Derek Price  <derek@ximbiot.com>
50082
50083         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50084
50085 2005-05-25  Derek Price  <derek@ximbiot.com>
50086             Paul Eggert  <eggert@cs.ucla.edu>
50087
50088         * modules/getlogin_r, m4/getlogin_r.m4: New files.
50089         * lib/getlogin_r.c, getlogin_r.h: New files.
50090
50091 2005-05-25  Bruno Haible  <bruno@clisp.org>
50092             Derek Price  <derek@ximbiot.com>
50093
50094         * lib/getlogin_r.h: Simplify API documentation.
50095
50096 2005-05-23  Derek Price  <derek@ximbiot.com>
50097
50098         * modules/minmax (Files): Add m4/minmax.m4.
50099         (configure.ac): Add gl_MINMAX.
50100
50101 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50102
50103         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50104         so that unistd-safer.h (GPL'ed code) need not be included.
50105
50106 2005-05-22  Bruno Haible  <bruno@clisp.org>
50107
50108         * m4/minmax.m4: New file.
50109         Based on a patch by Derek Price <derek@ximbiot.com>.
50110
50111 2005-05-22  Bruno Haible  <bruno@clisp.org>
50112
50113         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50114         (INT64_MIN): Fix definition.
50115         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50116
50117         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50118         NEED_SIGNED_INT_TYPES.
50119
50120         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50121         HAVE_SYSTEM_INTTYPES.
50122
50123 2005-05-22  Bruno Haible  <bruno@clisp.org>
50124
50125         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50126         Also include <sys/param.h> if it defines MIN, MAX.
50127         Based on a patch by Derek Price <derek@ximbiot.com>.
50128
50129 2005-05-21  Jim Meyering  <jim@meyering.net>
50130
50131         * modules/fts (Files): Add m4/inttypes-pri.m4.
50132         (Depends-on): Add lstat and remove gettext.  Alphabetize.
50133
50134 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50135
50136         New fts module.
50137         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50138         (setup_dir, free_dir): New functions.
50139         (enter_dir, leave_dir): Define trivial
50140         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
50141         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
50142         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50143         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50144         Move to fts-cycle.c.
50145         (fts_open): Use setup_dir.
50146         (fts_close): Use free_dir.
50147         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50148         This adds a label and some gotos, but the alternatives were messier.
50149         Check for memory allocation failure when entering a dir.
50150         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50151         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50152         (FTS): New member fts_cycle, that is a union that contains the
50153         old active_dir_ht and cycle_state.  All uses changed to mention
50154         fts_cycle.ht and fts_cycle.state.
50155         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50156         fts.c, with the following changes:
50157         (setup_dir, free_dir): New functions.
50158         (enter_dir): Now returns bool.  Return true if successful, false
50159         if memory exhausted.  All callers changed.
50160         Do not bother partly cleaning up on
50161         memory allocation failure; that is free_dir's job.
50162         However, free ad if hash_insert fails, to avoid memory leak.
50163         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50164         fts->fts_options to see which union member to use.
50165
50166 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50167
50168         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50169         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50170
50171 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50172
50173         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50174
50175 2005-05-20  Jim Meyering  <jim@meyering.net>
50176
50177         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50178         Now a macro, to pacify GCC.
50179
50180 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50181
50182         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50183         of -1.
50184
50185 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50186
50187         * lib/chown.c (rpl_chown): Return -1 on failure.
50188
50189 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50190
50191         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50192         Don't check for stddef.h.
50193         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50194         don't use its results.
50195         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50196         since we include them unconditionally.  Don't require
50197         AM_STDBOOL_H, since stdbool is a prerequisite.
50198         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50199         since we assume C89 or better.
50200         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50201         as we don't use their results.
50202         Don't check for fchdir, memmove, memset, strrchr, as we use
50203         them unconditionally.
50204         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50205         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50206
50207 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50208
50209         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50210         Include <stddef.h> unconditionally, since we assume C89 now.
50211         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50212         * lib/fts.c: Include fts_.h first, to check interface.
50213         Do not include intprops.h; no longer needed.
50214         Include cycle-check.h and hash.h, since fts_.h no longer does.
50215         Remove unnecessary casts of closedir to void.
50216         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50217         decide whether to decrement nlinks.
50218         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50219         (FTS): Use struct hash_table * instead of Hash_table, so that
50220         we no longer need to include hash.h here.
50221
50222 2005-05-18  Jim Meyering  <jim@meyering.net>
50223
50224         * modules/dirfd (License): Change to LGPL.  Most of the code
50225         is already in the public domain.
50226
50227 2005-05-18  Jim Meyering  <jim@meyering.net>
50228
50229         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50230         Reported by Yoann Vandoorselaere.
50231
50232 2005-05-17  Jim Meyering  <jim@meyering.net>
50233
50234         * m4/fts.m4: New file, from coreutils.
50235
50236 2005-05-17  Jim Meyering  <jim@meyering.net>
50237
50238         * lib/fts.c, lib/fts_.h: New files, from coreutils.
50239
50240 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50241
50242         Sync from coreutils.
50243         * m4/unlinkdir.m4: New file.
50244
50245 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50246
50247         Sync from coreutils.
50248         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50249         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50250         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50251         White space changes only.
50252         * lib/makepath.c (make_path): Port to hosts where leading "//" is
50253         special.
50254         * lib/yesno.c: Include getline.h, not ctype.h.
50255         (yesno): Don't remove leading white space; POSIX doesn't allow it.
50256         Use getline to remove arbitrary restriction on response length.
50257
50258 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50259
50260         * config/srclist-update: Spell out "Street" in FSF postal
50261         mail address; this is the style the FSF seems to prefer.
50262
50263         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50264         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50265         this updates FSF postal mail address.
50266
50267         Sync from coreutils.
50268         * modules/unlinkdir: New file.
50269         * modules/yesno (Depends-on): Add getline.
50270         * MODULES.html.sh (File system functions): Add unlinkdir.
50271
50272 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50273
50274         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50275         lib/strsep.h:
50276         Change the initial comment to refer to GPL, not LGPL.
50277         gnulib-tool will change it to LGPL as needed.
50278
50279         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50280         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50281         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50282         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50283         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50284         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50285         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50286         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50287         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
50288         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
50289         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
50290         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
50291         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
50292         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
50293         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
50294         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
50295         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
50296         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
50297         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
50298         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
50299         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
50300         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
50301         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
50302         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
50303         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
50304         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
50305         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
50306         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
50307         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
50308         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
50309         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
50310         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
50311         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
50312         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
50313         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
50314         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
50315         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
50316         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
50317         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
50318         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
50319         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
50320         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
50321         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
50322         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
50323         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
50324         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
50325         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
50326         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
50327         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
50328         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
50329         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50330         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
50331         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
50332         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
50333         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
50334         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
50335         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
50336         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
50337         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
50338         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
50339         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
50340         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
50341         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
50342         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
50343         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
50344         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
50345         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
50346         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
50347         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
50348         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
50349         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
50350         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
50351         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
50352         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
50353         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
50354         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
50355         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
50356         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
50357         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
50358         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
50359         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
50360         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
50361         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
50362         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
50363         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
50364         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
50365         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
50366         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
50367         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
50368         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
50369         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
50370         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
50371         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
50372         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
50373         lib/yesno.c, lib/yesno.h:
50374         Update FSF postal mail address.
50375
50376 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50377
50378         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
50379         tests/test-memmem.c, tests/test-stpncpy.c:
50380         Update FSF postal mail address.
50381
50382 2005-05-13  Bruno Haible  <bruno@clisp.org>
50383
50384         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
50385         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
50386         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
50387         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
50388         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
50389         Add support for 64-bit integers in the MSVC compiler.
50390
50391 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50392
50393         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
50394
50395 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
50396
50397         * gnulib-tool (func_import): Sort and uniquify recommended includes.
50398
50399 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
50400
50401         * doc/getdate.texi (General date syntax): Don't say that date
50402         date --iso-8601=ns generates acceptable dates; it doesn't yet.
50403         Problem reported by Nic Ferrier.
50404
50405 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50406
50407         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
50408         specified in ai_socktype. Fix invalid ai_protocol
50409         check. ai_protocol is usually set to 0 or depending on
50410         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
50411         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
50412         ai_socktype / ai_protocol in the returned addrinfo structure.
50413
50414 2005-05-10  Simon Josefsson  <jas@extundo.com>
50415
50416         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
50417         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50418
50419 2005-05-10  Karl Berry  <karl@gnu.org>
50420
50421         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
50422         (from http://www.gnu.org/licenses).
50423         * doc/COPYING.LIB: also rename to COPYING.LESSER.
50424         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
50425         fdl.texi suffices.
50426
50427 2005-05-10  Karl Berry  <karl@gnu.org>
50428
50429         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
50430         (COPYING.DOC): remove.
50431
50432         * config/srclist-update: new FSF address.
50433
50434 2005-05-10  Derek Price  <derek@ximbiot.com>
50435
50436         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
50437         possible.
50438
50439 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50440             Bruno Haible  <bruno@clisp.org>
50441
50442         * modules/inet_ntop: New file.
50443         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50444         inet_ntop.
50445
50446 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50447             Bruno Haible  <bruno@clisp.org>
50448
50449         * m4/inet_ntop.m4: New file.
50450
50451 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50452             Bruno Haible  <bruno@clisp.org>
50453
50454         * lib/inet_ntop.h: New file.
50455         * lib/inet_ntop.c: New file, from glibc with modifications.
50456
50457 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
50458
50459         * modules/time_r (License): Change to LGPL.
50460         * modules/extensions (License): Change to LGPL.  Actually,
50461         the license is more permissive than that, but currently gnulib-tool
50462         doesn't know how to handle more-permissive licenses.
50463
50464         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
50465         Problem reported by Dave Love.
50466
50467 2005-05-08  Jim Meyering  <jim@meyering.net>
50468
50469         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
50470         blank.
50471
50472 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
50473
50474         * modules/argmatch (Depends-on): Add stdbool.
50475         * modules/backupfile (Depends-on): Likewise.
50476         * modules/chdir-long (Depends-on): Likewise.
50477         * modules/closeout (Depends-on): Likewise.
50478         * modules/cycle-check (Depends-on): Likewise.
50479         * modules/dirname (Depends-on): Likewise.
50480         * modules/fnmatch (Depends-on): Likewise.
50481         * modules/fsusage (Depends-on): Likewise.
50482         * modules/fwriteerror (Depends-on): Likewise.
50483         * modules/getcwd (Depends-on): Likewise.
50484         * modules/getloadavg (Depends-on): Likewise.
50485         * modules/hard-locale (Depends-on): Likewise.
50486         * modules/makepath (Depends-on): Likewise.
50487         * modules/mountlist (Depends-on): Likewise.
50488         * modules/nanosleep (Depends-on): Likewise.
50489         * modules/posixtm (Depends-on): Likewise.
50490         * modules/quotearg (Depends-on): Likewise.
50491         * modules/readtokens (Depends-on): Likewise.
50492         * modules/readtokens0 (Depends-on): Likewise.
50493         * modules/readutmp (Depends-on): Likewise.
50494         * modules/save-cwd (Depends-on): Likewise.
50495         * modules/strftime (Depends-on): Likewise.
50496         * modules/userspec (Depends-on): Likewise.
50497         * modules/utimecmp (Depends-on): Likewise.
50498         * modules/xgetcwd (Depends-on): Likewise.
50499         * modules/xnanosleep (Depends-on): Likewise.
50500         * modules/xstrtod (Depends-on): Likewise.
50501         * modules/yesno (Depends-on): Likewise.
50502
50503 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50504
50505         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
50506         needless checks.
50507
50508 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50509
50510         Merge from coreutils.  Among other things,
50511         add bulletproofing for cases where stdin, stdout, or stderr are closed.
50512         * lib/fd-safer.c: New file.
50513         * lib/fcntl-safer.h, open-safer.c: Remove.
50514         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
50515         * lib/dup-safer.c: Include unistd-safer.h first.
50516         Don't include errno.h.
50517         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
50518         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
50519         * lib/file-type.c: Rely on file-type.h change.
50520         * lib/getloadavg.c: Include unistd-safer.h.
50521         (getloadavg): Use safer open.
50522         * lib/getusershell.c: Include "stdio-safer.h".
50523         (getusershell): Use safer fopen.
50524         * lib/long-options.c (long_options): Use NULL rather than 0.
50525         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
50526         'free'.
50527         * lib/modechange.c: Likewise.
50528         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
50529         (MODE_DONE): New constant.
50530         (struct mode_change): Remove 'next' member.
50531         (make_node_op_equals): New function; like the old one of the
50532         same name, except it allocates an array.
50533         (mode_compile, mode_create_from_ref): Use it.
50534         (mode_compile): Allocate result as an array, not a linked list.
50535         Parse octal string ourself, so that we catch mistakes like "+0".
50536         (mode_adjust): Arg is an array, not a linked list.
50537         * lib/modechange.c: Include stat-macros.h, xalloc.h.
50538         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
50539         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
50540         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
50541         Remove.  This is now stat-macros.h's job.
50542         (talloc): Remove.  All callers replaced by xalloc, so that
50543         our invokers don't have to worry about reporting memory failures.
50544         (make_node_op_equals): Remove.
50545         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50546         New constants.
50547         (struct mode_change): Moved here from modechange.h.
50548         (mode_append_entry): Remove.
50549         (mode_compile): Remove MASKED_OPS arg, since it encouraged
50550         apps to have incorrect behavior.  Use simpler algorithm for head
50551         and tail.  Don't futz with umask; that's now the job of mode_adjust.
50552         Detect more invalid usages rather than having somewhat-random behavior.
50553         Don't insert an "a=" action, as that leads to incorrect behavior.
50554         (mode_compile, mode_create_from_ref): Return NULL on error instead
50555         of an enum, since now there's only one way to have an error.  All
50556         callers changed.
50557         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
50558         at the correct time.  Simplify calculation of "+u" and its ilk.
50559         Don't mishandle "+X".
50560         (mode_free): Remove "register" and localize decls.
50561         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50562         (struct mode_change): Move to modechange.c; callers don't
50563         need to see this stuff.
50564         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
50565         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
50566         (mode_change, mode_adjust): Reflect the new signatures noted above.
50567         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
50568         that might redefine system include files.
50569         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
50570         (my_usleep): Use NULL rather than (void *) 0.
50571         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
50572         Use siginterrupt to specify that system calls should be interrupted.
50573         (rpl_nanosleep): Move initialization of suspended closer to call of
50574         my_usleep.
50575         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
50576         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
50577         (desirable_utmp_entry): New function.
50578         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
50579         using x2nrealloc, to simplify logic.
50580         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
50581         size calculation.  Do not assume utmp file is a regular file.
50582         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
50583         (READ_UTMP_CHECK_PIDS): New constant.
50584         * lib/save-cwd.c: Include unistd-safer.h.
50585         (save_cwd): Use fd_safer.
50586         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
50587         [!_LIBC] Include "stat-macros.h" instead.
50588         * lib/unistd-safer.h (fd_safer): New decl.
50589
50590 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50591
50592         * modules/getloadavg (Depends-on): Add unistd-safer.
50593         * modules/getusershell (Depends-on): Add stdio-safer.
50594         * modules/lstat (Depends-on): Remove xalloc.
50595         * modules/mkstemp (Depends-on): Add stat-macros.
50596         * modules/modechange (Depends-on): Remove xstrtol.
50597         Add stat-macros, xalloc.
50598         * modules/save-cwd (Depends-on): Add unistd-safer.
50599         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
50600         * modules/unistd-safer (Files): Add lib/fd-safer.c
50601         (Makefile.am): Remove lib_SOURCES.
50602
50603         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
50604         Remove fcntl-safer; unistd-safer supersedes it.
50605
50606 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50607
50608         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
50609         AC_HEADER_STAT.
50610         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
50611         (gl_PREREQ_CHOWN): Remove.
50612         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
50613         it.  Don't require AC_HEADER_STAT.
50614         (gl_PREREQ_LSTAT): Remove.
50615         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
50616         Don't require AC_HEADER_STAT.
50617         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
50618         (gl_PREREQ_RMDIR): Remove.
50619         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
50620         mention stat-macros.h or AC_HEADER_STAT, since we'll make
50621         the stat-macros module a prerequisite.
50622         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
50623         * m4/filemode.m4 (gl_FILEMODE): Likewise.
50624         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
50625         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
50626         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
50627         variable names.
50628         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
50629         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
50630         variable prefixes.
50631         * m4/fcntl-safer.m4: Remove.
50632         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
50633         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
50634         Invoke gl_PREREQ_FD_SAFER.
50635         (gl_PREREQ_FD_SAFER): New macro.
50636         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
50637         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
50638         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
50639         Remove duplicate call to AC_LIBOBJ(readutmp).
50640         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
50641
50642         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
50643         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
50644
50645 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50646
50647         * MODULES.html.sh (Misc): Add byteswap.
50648
50649 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50650
50651         * modules/getcwd (Depends-on): Add extensions.
50652         * modules/openat (Depends-on): Likewise.
50653
50654 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50655
50656         * modules/byteswap: New file.
50657
50658 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50659
50660         * m4/byteswap.m4: New file.
50661
50662 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50663
50664         * lib/byteswap_.h: New file.
50665
50666 2005-04-25  Karl Berry  <karl@gnu.org>
50667
50668         * m4/gettext.m4: Update from GNU gettext 0.14.4.
50669
50670 2005-04-25  Albert Chin  <china@thewrittenword.com>
50671
50672         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
50673         Toolkit C bug.
50674
50675 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
50676
50677         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
50678         (func_ln_if_changed) Remove forcibly for no error message
50679         in case file does not exist.
50680
50681 2005-04-19  Simon Josefsson  <jas@extundo.com>
50682
50683         * gnulib-tool (Options): Make --symlink mean --symbolic.
50684
50685 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
50686
50687         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
50688
50689 2005-04-16  Simon Josefsson  <jas@extundo.com>
50690
50691         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
50692
50693 2005-04-15  Simon Josefsson  <jas@extundo.com>
50694
50695         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
50696
50697 2005-04-15  Simon Josefsson  <jas@extundo.com>
50698
50699         * gnulib-tool: Rename --symlink to --symbolic.
50700
50701 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
50702
50703         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
50704         symbolic links to files instead of copying/moving.  Add --aux-dir,
50705         specifying directory relative --dir where auxiliary build tools
50706         are placed.
50707
50708 2005-04-14  Bruno Haible  <bruno@clisp.org>
50709
50710         * modules/allocsa (License): Change to LGPL.
50711         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50712
50713 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50714
50715         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
50716         that "UTC +1 second" continues to work.  Problem reported
50717         by Dmitry V. Levin.
50718         (relunit_snumber): New rule.
50719         (relunit): Use it.
50720
50721 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
50722
50723         * lib/getdate.y (universal_time_zone_table): New constant.
50724         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
50725         universal_time_zone_table.
50726         (lookup_zone): Prefer universal_time_zone_table to
50727         local_time_zone_table, so that "GMT" time stamps are allowed in
50728         London during the summer.  Problem reported by Ian Abbott.
50729
50730 2005-04-12  Jim Meyering  <jim@meyering.net>
50731
50732         * lib/human.c (humblock): Set *options even when returning due to
50733         xstrtoumax conversion failure.  Thanks to a used-uninitialized
50734         warning from gcc-4.
50735
50736 2005-04-09  Jim Meyering  <jim@meyering.net>
50737
50738         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
50739         -Wuninitialized: initialize tm0.tm_year.
50740
50741 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50742
50743         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
50744         count, since there's no maximum.  All uses changed.
50745         Add member dsts_seen.
50746         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
50747         not being INT_MAX.
50748         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
50749         Use pc_rels_seen to decide whther a date is absolute.
50750
50751         * lib/getdate.y (number): Don't overwrite year.
50752         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
50753         check.
50754
50755 2005-04-02  Simon Josefsson  <jas@extundo.com>
50756
50757         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
50758         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
50759
50760 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
50761
50762         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
50763         where no absolute path name can be longer than PATH_MAX.
50764
50765 2005-03-27  Jim Meyering  <jim@meyering.net>
50766
50767         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
50768
50769 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
50770
50771         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
50772         "one's complement" -> "ones' complement" in comment, as per Knuth.
50773         "value of type" -> "type or expression" in comment.
50774         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
50775
50776 2005-03-26  Jim Meyering  <jim@meyering.net>
50777
50778         Comment nits.
50779         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
50780         Correct typos: s/or/of/.
50781
50782 2005-03-26  Jim Meyering  <jim@meyering.net>
50783
50784         * modules/check-include-files: Move to ../ and rename to...
50785         * check-module: ...this.
50786
50787 2005-03-25  Jim Meyering  <jim@meyering.net>
50788
50789         * modules/xvasprintf (Files): Add xalloc.h.
50790
50791 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50792
50793         * modules/gettext (Files): config/config.rpath ->
50794         build-aux/config.rpath
50795         * modules/iconv (Files): Likewise.
50796         Problem reported by Oskar Liljeblad.
50797
50798 2005-03-23  Jim Meyering  <jim@meyering.net>
50799
50800         * modules/check-include-files: New script to check for
50801         missing dependencies, multiple includes, etc.
50802
50803         * modules/c-strtold (Depends-on): Add xalloc.
50804         * modules/c-strtod (Depends-on): Add xalloc.
50805         * modules/hash (Depends-on): Add xalloc.
50806         (Files): Remove lib/xalloc.h.
50807
50808         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
50809         * modules/userspec (Files): Add lib/inttostr.h.
50810
50811 2005-03-23  Jim Meyering  <jim@meyering.net>
50812
50813         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
50814
50815 2005-03-22  Jim Meyering  <jim@meyering.net>
50816
50817         * modules/stat-macros: New module.
50818         * modules/canonicalize, modules/euidaccess, modules/file-type,
50819         * modules/filemode, modules/lchown, modules/makepath,
50820         * modules/rmdir, modules/stat: Depend on new stat-macros module
50821         rather than listing lib/stat-macros.h manually.
50822         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
50823
50824 2005-03-22  Jim Meyering  <jim@meyering.net>
50825
50826         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
50827
50828 2005-03-22  Bruno Haible  <bruno@clisp.org>
50829
50830         * config/srclist.txt: Replace target directory 'config' with
50831         'build-aux'.
50832         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
50833         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
50834         ../build-aux/.
50835
50836 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
50837
50838         * modules/chdir-long (Depends-on): Add mempcpy.
50839
50840         * modules/acl, modules/backupfile, modules/c-strtod,
50841         modules/c-strtold, modules/canon-host, modules/canonicalize,
50842         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
50843         modules/exclude, modules/exitfail, modules/file-type,
50844         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
50845         modules/getdate, modules/getline, modules/getpagesize,
50846         modules/getpass, modules/getugroups, modules/group-member,
50847         modules/hard-locale, modules/hash, modules/human, modules/idcache,
50848         modules/inttostr, modules/long-options, modules/makepath,
50849         modules/md5, modules/memcasecmp, modules/memcoll,
50850         modules/modechange, modules/mountlist, modules/path-concat,
50851         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
50852         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
50853         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
50854         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
50855         modules/strftime, modules/strndup, modules/strverscmp,
50856         modules/timespec, modules/unlocked-io, modules/userspec,
50857         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
50858         modules/yesno:
50859         Remove lib_SOURCES line from Makefile.am section, as this is now
50860         done automatically by the corresponding Autoconf macro.
50861
50862 2005-03-21  Jim Meyering  <jim@meyering.net>
50863
50864         Changes imported from coreutils.
50865
50866         * lib/cycle-check.c: Don't include xalloc.h.
50867
50868         * lib/path-concat.c: Don't include assert.h.
50869         (path_concat): Remove assertion that would have triggered
50870         for ABASE starting with more than one slash.
50871         Reported by Andreas Schwab.
50872
50873         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
50874         properly when ABASE is an absolute file name.
50875         Correct the description of this function.
50876         Include <assert.h>.
50877         Add an assertion and a test driver.
50878         This fixes a bug introduced on 2004-07-02.
50879         Andreas Schwab reported the resulting failure of cp --parents:
50880         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
50881
50882 2005-03-21  Jim Meyering  <jim@meyering.net>
50883
50884         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
50885         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
50886
50887 2005-03-21  Jim Meyering  <jim@meyering.net>
50888         and  Paul Eggert  <eggert@cs.ucla.edu>
50889
50890         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
50891         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
50892         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
50893         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
50894         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
50895         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
50896         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
50897         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
50898         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
50899         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
50900         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
50901         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
50902         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
50903         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
50904         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
50905         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
50906         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
50907         for these modules.
50908
50909 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
50910
50911         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
50912         (which shouldn't happen), generate nothing instead of returning 0
50913         immediately, so that nstrftime (NULL, ...) doesn't return 0.
50914
50915 2005-03-16  Bruno Haible  <bruno@clisp.org>
50916
50917         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
50918         HAVE_LONGLONG_64BIT.
50919
50920 2005-03-16  Bruno Haible  <bruno@clisp.org>
50921
50922         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
50923         HAVE_LONGLONG_64BIT.
50924
50925 2005-03-16  Bruno Haible  <bruno@clisp.org>
50926
50927         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
50928         HAVE_LONGLONG_64BIT.
50929
50930 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
50931
50932         * lib/strftime.c (my_strftime): Prepend space to format so that we can
50933         reliably distinguish strftime failure from empty output on POSIX
50934         hosts.
50935
50936 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
50937
50938         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
50939         (iconv_string): Don't guess a size-zero buffer, as that might cause
50940         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
50941         result would be 'too large', where 'too large' is (heuristically)
50942         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
50943         overflow concerns.  This will prevent some unwanted malloc failures
50944         when the inputs are very large.
50945
50946 2005-03-15  Karl Berry  <karl@gnu.org>
50947
50948         * config/srclist.txt (config.rpath): from gettext.
50949         * config/config.rpath: update.
50950
50951 2005-03-15  Bruno Haible  <bruno@clisp.org>
50952
50953         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
50954         to 'negate'.
50955
50956         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
50957         variable.
50958
50959         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
50960         results.
50961
50962 2005-03-14  Simon Josefsson  <jas@extundo.com>
50963
50964         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
50965         <fx@gnu.org>.
50966
50967 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
50968
50969         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
50970         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
50971         intprops.h.
50972         * lib/strtol.c: Likewise.
50973
50974 2005-03-14  Jim Meyering  <jim@meyering.net>
50975
50976         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
50977         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
50978         to be nonzero so that we (and caller) can detect the difference
50979         between a valid zero-length expansion and an error return, even
50980         when the underlying strftime fails before writing anything into
50981         that location.
50982
50983 2005-03-14  Bruno Haible  <bruno@clisp.org>
50984
50985         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
50986         Update from GNU gettext 0.14.3.
50987
50988 2005-03-10  Jim Meyering  <jim@meyering.net>
50989
50990         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
50991
50992 2005-03-10  Jim Meyering  <jim@meyering.net>
50993
50994         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
50995         so that this module works on systems without fchdir.
50996
50997 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
50998
50999         Factor int-properties macros into a single file, except for
51000         glibc-related files.
51001         * lib/intprops.h: New file.
51002         * lib/getloadavg.c: Include it instead of limits.h.
51003         (INT_STRLEN_BOUND): Remove.
51004         * lib/human.c: Include intprops.h.
51005         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51006         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51007         302/1000.
51008         * lib/inttostr.h: Include intprops.h instead of limits.h.
51009         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51010         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51011         for consistency with intprops.h.
51012         (time_t_is_integer, twos_complement_arithmetic): Use them.
51013         * lib/sig2str.h: Include <signal.h>, intprops.h.
51014         (INT_STRLEN_BOUND): Remove.
51015         * lib/strftime.c (TYPE_SIGNED): Remove.
51016         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51017         * lib/strtol.c: Adjust comments to match intprops.h.
51018         * lib/userspec.c: Include intprops.h.
51019         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51020         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51021         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51022         instead of rolling our own expressions.
51023         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51024
51025         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
51026         instead of int.
51027         (my_strftime): Do not mishandle years close to INT_MAX, by doing
51028         the right thing even if adding 1900 would overflow.  Similarly
51029         for tm_mon + 1 and tm_yday + 1.
51030         Make %Y always equivalent to %C%y, and similarly for %G and %g.
51031         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51032         (DO_SIGNED_NUMBER): New macro.
51033         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51034
51035 2005-03-07  Bruno Haible  <bruno@clisp.org>
51036
51037         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51038
51039 2005-03-07  Bruno Haible  <bruno@clisp.org>
51040
51041         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51042
51043 2005-03-04  Derek R. Price  <derek@ximbiot.com>
51044
51045         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51046         (func_import): Only replace files via --import when they have actually
51047         changed.
51048
51049 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51050
51051         * m4/mmap-anon.m4: New file.
51052         * m4/pagealign_alloc.m4: New file.
51053
51054 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51055             Bruno Haible  <bruno@clisp.org>
51056
51057         * modules/pagealign_alloc: New file.
51058         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51059
51060 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51061             Bruno Haible  <bruno@clisp.org>
51062
51063         * lib/pagealign_alloc.h: New file.
51064         * lib/pagealign_alloc.c: New file.
51065
51066 2005-03-03  Bruno Haible  <bruno@clisp.org>
51067
51068         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51069         Use an all-permissive copyright notice, recommended by RMS.
51070
51071 2005-03-02  Bruno Haible  <bruno@clisp.org>
51072
51073         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51074         of AIX, the replacement has to be done only after <string.h> is
51075         included, therefore not in config.h. stpncpy.h does the replacement,
51076         and stpncpy.c uses it.
51077
51078 2005-03-02  Bruno Haible  <bruno@clisp.org>
51079
51080         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51081         stpncpy.c uses it.
51082
51083 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51084
51085         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51086         The workaround isn't strictly needed for POSIX conformance, and
51087         it's too much of a pain to configure and maintain.  We'll ask
51088         people to fix their kernels instead.
51089         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51090         (NANOSLEEP_BUG_WORKAROUND): Remove.
51091         (xnanosleep): Remove the workaround.
51092
51093 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51094
51095         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51096         Reported by Derek Price.
51097         (Include): Add "timespec.h".
51098
51099         * modules/xnanosleep (Depends-on): Remove gethrxtime.
51100
51101 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51102
51103         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51104         to detect nanosleep bug.
51105
51106 2005-03-01  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51109
51110 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51111
51112         * modules/gethrxtime: New file.
51113         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51114         (Depends-on): Add gethrxtime.
51115         (configure.ac): Add gl_XNANOSLEEP.
51116         (Makefile.am): Remove lib_SOURCES line.
51117
51118 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51119
51120         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51121         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51122
51123 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51124
51125         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51126         * lib/timespec.h (gettime): Return void, since it always
51127         succeeds now.  All uses changed.
51128         * lib/gettime.c (gettime) Likewise.
51129         [HAVE_NANOTIME]: Prefer nanotime.
51130         Assume gettimeofday succeeds, as POSIX requires.
51131         Assime time () succeeds, since other code already does.
51132         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51133         (timespec_subtract): Remove.
51134         (NANOSLEEP_BUG_WORKAROUND): New constant.
51135         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51136         things considerably.  Use it only on GNU/Linux hosts, since the
51137         workaround shouldn't be needed elsewhere.
51138
51139 2005-02-24  Bruno Haible  <bruno@clisp.org>
51140
51141         * modules/gettext (Files): Add m4/glibc2.m4.
51142
51143 2005-02-24  Bruno Haible  <bruno@clisp.org>
51144
51145         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51146         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51147         * m4/progtest.m4:
51148         Update from GNU gettext 0.14.2.
51149         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51150
51151 2005-02-24  Bruno Haible  <bruno@clisp.org>
51152
51153         * lib/localcharset.c: Update from GNU gettext 0.14.2.
51154         * lib/config.charset: Update from GNU gettext 0.14.2.
51155
51156 2005-02-24  Bruno Haible  <bruno@clisp.org>
51157
51158         * lib/gettext.h: Update from GNU gettext 0.14.2.
51159
51160 2005-02-23  Simon Josefsson  <jas@extundo.com>
51161
51162         * m4/iconvme.m4: New file.
51163
51164 2005-02-23  Jim Meyering  <jim@meyering.net>
51165
51166         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51167         change.
51168         Thanks to Bruno Haible for catching it.
51169
51170 2005-02-22  Simon Josefsson  <jas@extundo.com>
51171
51172         * modules/iconvme: New file.
51173
51174         * MODULES.html.sh: Add iconvme.
51175
51176 2005-02-22  Simon Josefsson  <jas@extundo.com>
51177
51178         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51179
51180 2005-02-22  Simon Josefsson  <jas@extundo.com>
51181
51182         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51183
51184 2005-02-22  Jim Meyering  <jim@meyering.net>
51185
51186         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51187         s/ifndef/ifdef/.
51188
51189 2005-02-20  Neil Conway  <neilc@samurai.com>
51190
51191         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51192         returned by OSX/Darwin if the specified buffer is not large
51193         enough for the hostname.
51194
51195 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51196
51197         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51198         pass it to _help, otherwise the latter coredumps trying to
51199         dereference state.root_argp.
51200
51201 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51202
51203         * modules/chdir-long (Depends-on): Add memrchr.
51204         * modules/memrchr (Files): Add lib/memrchr.h.
51205         (Include): "memrchr.h".
51206
51207 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51208
51209         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51210
51211 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51212
51213         * lib/memrchr.h: New file.
51214         * lib/chdir-long.c: Include it.
51215         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51216         Don't bother including stddef.h.
51217
51218 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51221         inclusion.
51222         Include <sys/types.h>, for dev_t.
51223         (ME_DUMMY, ME_REMOTE): Move from here....
51224         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51225         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
51226         Dmitry V. Levin.
51227         Include mountlist.h first, to test the interface.
51228
51229 2005-01-29  Bruno Haible  <bruno@clisp.org>
51230
51231         * lib/progname.c (program_name): Initialize.
51232         Needed when linking statically on MacOS X.
51233
51234 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51235
51236         Sync from coreutils.
51237         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51238         (Depends-on): Add c-strtod.
51239         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51240
51241 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51242
51243         Sync from coreutils.
51244         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51245
51246         Remove files that are specific to coreutils.
51247         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51248
51249 2005-01-28  Bruno Haible  <bruno@clisp.org>
51250
51251         * modules/javacomp: New file.
51252         * MODULES.html.sh (Java): Add javacomp.
51253
51254 2005-01-28  Bruno Haible  <bruno@clisp.org>
51255
51256         * m4/javacomp.m4: New file, from GNU gettext.
51257
51258 2005-01-28  Bruno Haible  <bruno@clisp.org>
51259
51260         * lib/javacomp.sh.in: New file, from GNU gettext.
51261         * lib/javacomp.h: New file, from GNU gettext.
51262         * lib/javacomp.c: New file, from GNU gettext.
51263
51264 2005-01-26  Simon Josefsson  <jas@extundo.com>
51265
51266         * lib/gai_strerror.c: Use GPL in header.
51267
51268 2005-01-26  Bruno Haible  <bruno@clisp.org>
51269
51270         * modules/javaexec: New file.
51271         * MODULES.html.sh (Java): Add javaexec.
51272
51273 2005-01-26  Bruno Haible  <bruno@clisp.org>
51274
51275         * m4/javaexec.m4: New file, from GNU gettext.
51276
51277 2005-01-26  Bruno Haible  <bruno@clisp.org>
51278
51279         * lib/javaexec.sh.in: New file, from GNU gettext.
51280         * lib/javaexec.h: New file, from GNU gettext.
51281         * lib/javaexec.c: New file, from GNU gettext.
51282
51283 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51284
51285         * modules/lchown (Depends-on): Remove lchown.h
51286
51287 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51288
51289         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
51290         must be defined if the header file was not found, in order
51291         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
51292
51293 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51294
51295         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
51296         initializers for struct pentry_state.
51297         (__argp_error): Check return value of __asprintf
51298         (__argp_failure): Translate error message
51299
51300         * lib/argp-parse.c: Removed braces around the expansion of N_()
51301
51302 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51303
51304         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
51305         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
51306         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
51307         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
51308         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
51309         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
51310         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
51311         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
51312         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
51313         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
51314         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
51315         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
51316         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
51317         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
51318         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
51319         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
51320         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
51321         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
51322         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
51323         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
51324         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
51325         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
51326         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
51327         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
51328         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
51329         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
51330         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
51331         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
51332         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
51333         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
51334         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
51335         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
51336         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
51337         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
51338         xstrtol.m4, xstrtoumax.m4, yesno.m4:
51339         Use an all-permissive copyright notice, recommended by RMS.
51340
51341 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
51342
51343         * modules/chdir-long (Depends-on): Remove mempcpy.
51344
51345 2005-01-21  Jim Meyering  <jim@meyering.net>
51346
51347         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
51348         same value as for Solaris 9.
51349
51350         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
51351         component length.  This included changing the parameter to be
51352         of type `char *' rather than `char const *'.
51353         * lib/chdir-long.h (chdir_long): Update prototype.
51354
51355         * lib/openat.c (fdopendir, fstatat): New functions.
51356         * lib/openat.h: Include headers required for use of DIR and struct
51357         stat.
51358         [AT_SYMLINK_NOFOLLOW]: Define.
51359         (fdopendir, fstatat): Add prototypes.
51360
51361 2005-01-21  Bruno Haible  <bruno@clisp.org>
51362
51363         * modules/classpath: New file.
51364         * MODULES.html.sh (Java): Add classpath.
51365
51366 2005-01-21  Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/classpath.h: New file, from GNU gettext.
51369         * lib/classpath.c: New file, from GNU gettext.
51370
51371 2005-01-20  Simon Josefsson  <jas@extundo.com>
51372
51373         * modules/version-etc-fsf: New file.
51374
51375 2005-01-20  Simon Josefsson  <jas@extundo.com>
51376
51377         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
51378         * lib/version-etc.c: Remove version_etc_copyright.
51379         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
51380         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
51381
51382 2005-01-20  Simon Josefsson  <jas@extundo.com>
51383
51384         * lib/base64.h (isbase64): Add.
51385
51386         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
51387         using a unsigned prototype, don't inline.
51388         (base64_decode): Use it.
51389
51390 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51391
51392         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
51393         it.
51394
51395 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51396
51397         * lib/save-cwd.c (save_cwd): Remove code to support the case
51398         where fchdir is missing or flaky.
51399
51400 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51401
51402         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
51403
51404 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51405
51406         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
51407         AC_LIBSOURCES now does this.
51408         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
51409         with new ullong_max module.
51410
51411 2005-01-19  Bruno Haible  <bruno@clisp.org>
51412
51413         * modules/sh-quote: New file.
51414         * MODULES.html.sh (Executing programs): Add sh-quote.
51415
51416 2005-01-19  Bruno Haible  <bruno@clisp.org>
51417
51418         * lib/sh-quote.h: New file, from GNU gettext.
51419         * lib/sh-quote.c: New file, from GNU gettext.
51420
51421 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51422
51423         Merge from coreutils.
51424         * m4/ullong_max.m4: New file.
51425         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
51426         (gl_MACROS): Assume localeconv exists.
51427
51428 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51429
51430         Merge changes from coreutils, as described below in several
51431         changelogs dated today.
51432
51433         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
51434         (O_DIRECTORY): Remove; not needed here, since "." must be
51435         a directory.  All uses removed.
51436         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
51437         universal on Suns, and we also need to test for IRIX.
51438         Revamp code to use 'if' rather than '#if'.
51439         Avoid unnecessary comparison of cwd->desc to 0.
51440
51441         * lib/utimens.c (futimens): Robustify the previous patch, by checking
51442         for known valid error numbers rather than observed invalid ones.
51443
51444 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51445
51446         * modules/ullong_max: New file.
51447
51448         * modules/chdir-long, modules/openat: New files.
51449         * modules/save-cwd (Depends-on): Depend on chdir-long.
51450         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
51451
51452 2005-01-18  Jim Meyering  <jim@meyering.net>
51453
51454         Merge from coreutils.
51455         * m4/chdir-long.m4, m4/openat.m4: New files.
51456         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
51457         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
51458         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
51459         is sane and DOES follow symlinks.  Besides, testing 20 different
51460         systems found no broken chown implementations.
51461         Prompted by a change in rsync's copy of this macro.
51462         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
51463
51464         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
51465
51466         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
51467         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
51468         NULL-means-set-to-current-time semantics.
51469         Remove temporary file immediately, rather than waiting
51470         for configure's at-exit trap code to do it.
51471
51472 2005-01-18  Jim Meyering  <jim@meyering.net>
51473
51474         * lib/version-etc.c (version_etc_copyright): Update copyright date.
51475
51476         * lib/utimens.c (futimens): Account for the fact that futimes
51477         can also fail with errno == ENOSYS or errno == ENOENT.
51478         Patch from Dmitry V. Levin.
51479
51480         Change the name of the robust chdir function from chdir to chdir_long.
51481         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
51482         (restore_cwd): Use chdir_long, not chdir.
51483         * lib/chdir-long.c: Renamed from chdir.c.
51484         * lib/chdir-long.h: Renamed from chdir.h.
51485         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
51486         Hurd.
51487
51488 2005-01-18  Bruno Haible  <bruno@clisp.org>
51489
51490         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
51491         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
51492         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
51493         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
51494         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
51495         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
51496         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
51497         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
51498         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
51499         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
51500         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
51501         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
51502         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
51503         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
51504         Use an all-permissive copyright notice, recommended by RMS.
51505
51506 2005-01-18  Bob Proulx  <bob@proulx.com>
51507
51508         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
51509         simplify offsetof() macro construct to avoid compile failure with
51510         native HP-UX 11.0 ANSI C compiler.
51511
51512 2005-01-17  Bruno Haible  <bruno@clisp.org>
51513
51514         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
51515         redundant because stpncpy.m4 takes care of it.
51516
51517 2005-01-17  Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
51520
51521 2005-01-17  Bruno Haible  <bruno@clisp.org>
51522
51523         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
51524         used.
51525
51526 2005-01-17  Bruno Haible  <bruno@clisp.org>
51527
51528         * lib/fwriteerror.h (fwriteerror): Change specification to include
51529         fclose.
51530         * lib/fwriteerror.c: Include <stdbool.h>.
51531         (fwriteerror): At the end, close the file stream. Record whether
51532         stdout was already closed.
51533
51534 2005-01-17  Bruno Haible  <bruno@clisp.org>
51535
51536         * lib/execute.c (environ): Declare if needed.
51537         * lib/pipe.c (environ): Likewise.
51538         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
51539
51540 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51541
51542         * modules/argp: Depend on vsnprintf
51543
51544 2005-01-10  Jim Meyering  <jim@meyering.net>
51545
51546         * modules/closeout (Depends-on): Add atexit.
51547
51548 2005-01-06  Bruno Haible  <bruno@clisp.org>
51549
51550         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
51551
51552 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51553
51554         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
51555         definitions to be after all include files, to avoid collisions.
51556         Problem reported by Bob Proulx.
51557
51558 2005-01-04  Jim Meyering  <jim@meyering.net>
51559
51560         Changes imported from coreutils.
51561         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
51562         as the mkstemp template, use a temporary directory and an
51563         8.3-friendly template to avoid trouble on systems like DJGPP.
51564         Reported by Juan M. Guerrero via Stepan Kasal.
51565         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
51566         close. Remove the temporary directory right away, rather than waiting
51567         for configure's at-exit trap code to do it.
51568         Suggestion from Stepan Kasal.
51569
51570 2005-01-01  Simon Josefsson  <jas@extundo.com>
51571
51572         * gnulib-tool: Print #include directives when --import'ing.
51573
51574 2004-12-28  Simon Josefsson  <jas@extundo.com>
51575
51576         * tests/test-base64.c: Include required header files.  Remove
51577         unused variables.
51578
51579 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         * modules/error (Depends-on): Remove gettext.
51582
51583 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51584
51585         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
51586         not needed.  This removes a dependency on the gettext module.
51587         [defined _LIBC]: Do not include <libintl.h>; not needed.
51588
51589 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51590
51591         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
51592         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
51593
51594 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51595
51596         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
51597         HAVE_DECL_STRTOLD.
51598
51599 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51600
51601         * modules/getdate (Depends-on): Remove alloca-opt.
51602
51603 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51604
51605         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
51606
51607 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51608
51609         * lib/argp-parse.c: Include <stddef.h>.
51610         (alignof, alignto): New macros.
51611         (parser_init): Don't assume that void * is aligned sufficiently
51612         for struct option.
51613
51614         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
51615         need to extend the stack.
51616         (YYINITDEPTH): New macro, so that the initial stack isn't overly
51617         large.
51618
51619 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51620
51621         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
51622
51623 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51624
51625         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
51626         (2004-10-24) change.  Apparently this was a false alarm.
51627
51628         * modules/getdate: Depend on alloca-opt, not alloca.
51629
51630 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51631
51632         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
51633         Remove now-obsolete comment about AIX.
51634         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
51635         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
51636         (YYMAXDEPTH): New macro.
51637
51638 2004-12-18  Simon Josefsson  <jas@extundo.com>
51639
51640         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
51641
51642 2004-12-18  Bruno Haible  <bruno@clisp.org>
51643
51644         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
51645
51646 2004-12-18  Bruno Haible  <bruno@clisp.org>
51647
51648         * lib/fatal-signal.c (fatal_signals): Make non-const.
51649         (init_fatal_signals): New function.
51650         (uninstall_handlers, install_handlers): Ignore signals that were set to
51651         SIG_IGN.
51652         (at_fatal_signal): Call init_fatal_signals.
51653         (init_fatal_signal_set): Likewise. Ignore signals that were set to
51654         SIG_IGN.
51655         Reported by Paul Eggert.
51656
51657 2004-12-18  Bruno Haible  <bruno@clisp.org>
51658
51659         * doc/alloca.texi: New file.
51660         * doc/alloca-opt.texi: New file.
51661
51662 2004-12-17  Jim Meyering  <jim@meyering.net>
51663
51664         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
51665         Otherwise, install-sh could exit with improper exit status when
51666         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
51667
51668 2004-12-16  Simon Josefsson  <jas@extundo.com>
51669
51670         * tests/test-base64.c: Add license.
51671
51672 2004-12-15  Stepan Kasal  <address@hidden>
51673
51674         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
51675
51676 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
51677
51678         * modules/getcwd (Files): Add m4/d-ino.m4.
51679         Suggested by Mark D. Baushke.
51680
51681 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51682
51683         * lib/getdate.y (textint): New member "negative".
51684         (time_zone_hhmm): New function.
51685         Expect 14 shift-reduce conflicts, not 13.
51686         (o_colon_minutes): New rule.
51687         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
51688         (yylex): Set the "negative" member of signed numbers.
51689
51690 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51691
51692         * doc/getdate.texi (Time of day items, Time zone items):
51693         Describe new formats +00:00, UTC+00:00.
51694
51695 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51696
51697         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
51698         spurious "-l"s.  Problem reported by Stepan Kasal.
51699
51700 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
51701
51702         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
51703         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
51704
51705 2004-12-04  Simon Josefsson  <jas@extundo.com>
51706
51707         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
51708         Vandoorselaere <yoann@prelude-ids.org>.
51709
51710 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51711
51712         Changes imported from coreutils.
51713         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
51714         exist.
51715         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
51716
51717 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51718
51719         Changes imported from coreutils.
51720         * lib/hard-locale.c: Assume <locale.h> exists.
51721         Include "strdup.h".
51722         (GLIBC_VERSION): New macro.
51723         (hard_locale): Assume setlocale exists.
51724         Rewrite to avoid #ifdef.
51725         Use strdup rather than malloc + strcpy.
51726         * lib/human.c: Assume <locale.h> exists.
51727         (human_readable): Assume localeconv exists.
51728
51729 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51730
51731         * modules/hard-locale (Depends-on): Add strdup.
51732
51733 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51734
51735         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
51736         convert T2, not T.  (Imported from libc.)
51737
51738 2004-11-30  Simon Josefsson  <jas@extundo.com>
51739
51740         * modules/restrict (License): Change to LGPL.
51741
51742 2004-11-30  Simon Josefsson  <jas@extundo.com>
51743
51744         * m4/restrict.m4: Add copyright and copying conditions.
51745
51746 2004-11-30  Simon Josefsson  <jas@extundo.com>
51747
51748         * m4/base64.m4: New file.
51749
51750 2004-11-30  Simon Josefsson  <jas@extundo.com>
51751
51752         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
51753         base64.
51754
51755         * tests/test-base64.c: New file.
51756
51757         * modules/base64: New file.
51758
51759 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51760
51761         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
51762         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
51763
51764         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
51765
51766 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51767
51768         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
51769         (__getcwd.c): Don't restore errno; glibc doesn't.
51770         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
51771         first, falling back to our code only if its results look suspicious.
51772         Ensure that the resulting buffer is only as large as necessary.
51773
51774         * lib/readutmp.c: Include readutmp.h first.
51775         Include <errno.h>, since readutmp.h no longer does that.
51776         * lib/readutmp.h: Don't include <errno.h>,
51777         <sys/param.h>, <time.h>; not needed to establish interface.
51778         (errno): Remove decl.
51779         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
51780         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
51781         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
51782
51783 2004-11-28  Simon Josefsson  <jas@extundo.com>
51784
51785         * lib/base64.h, base64.c: New file.
51786
51787 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51788
51789         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
51790
51791 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51792
51793         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
51794         (Depends-on): Remove pathmax, same.  Add mempcpy.
51795         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
51796         (Makefile.am): Append getcwd.h to lib_SOURCES.
51797         (Include): Add getcwd.h.
51798         (Maintainer): Change from Jim Meyering to "all, glibc",
51799         since getdate now uses intended-for-glibc code.
51800         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
51801         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
51802
51803 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51804
51805         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
51806         HP's ANSI C compiler.
51807         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
51808         Declaring int functions causes warnings on some modern systems and
51809         shouldn't be needed to compile on ancient ones.
51810         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
51811         defined.
51812
51813         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
51814         with the following changes.
51815         (__set_errno): Parenthesize properly.
51816         Include <stdbool.h>.
51817         (MIN, MAX, MATCHING_INO): New macros.
51818         (__getcwd): Define with prototype, not K&R form.
51819         Use heuristics to allocate default buffer on stack if possible.
51820         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
51821         behavior, and to avoid the PATH_MAX limit when computing
51822         ../../../../...
51823         Use MATCHING_INO to compare inode number to file.
51824         Check for arithmetic overflow in size calculations.
51825         Fix bug in reallocation of dot array that caused getcwd to fail
51826         on directories nested deeper than 75.
51827         Be more careful about saving errno on error.
51828         Do not use realloc; use only free+malloc, as this is a bit
51829         more flexible and avoids a needless copy operation.
51830         Do not inspect st_dev and st_ino for symbolic links; POSIX
51831         doesn't specify the latter.
51832         Check for closedir errors.
51833         Avoid needless casts.
51834         Use "#ifdef weak_alias" around weak_alias, to be like other
51835         glibc code.
51836         The following changes to getcwd.c have effect only when used in
51837         gnulib; they have no effect inside glibc proper.
51838         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
51839         as alloca isn't used.
51840         (alloca, __alloca): Likewise.
51841         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
51842         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
51843         unconditionally, as gnulib assumes C89 or better.
51844         Do not include <sys/param.h>.
51845         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
51846         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
51847         better.
51848         (NULL) [!defined NULL]: Remove; we assume C89 or better.
51849         Include <dirent.h> in a way that is compatible with modern Autoconf.
51850         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
51851         New macros, if not already defined.
51852         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
51853         Use "_LIBC", not "defined _LIBC", for consistency.
51854         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
51855         a mempcpy module.
51856         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
51857         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
51858         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
51859         credit only to Jim Meyering and adjust the copyright dates.
51860         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
51861         <stdlib.h>, <unistd.h>, "pathmax.h".
51862         Instead, include "xgetcwd.h" (first) and "getcwd.h".
51863         (INITIAL_BUFFER_SIZE): Remove.
51864         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
51865
51866 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51867
51868         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
51869         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
51870         Use the _ONCE methods, for efficiency.
51871         Check for fcntl.h.  In test program, include <errno.h>
51872         and <fcntl.h> if available.  Remove old K&R cruft from
51873         test program.  Check for common errors in GNU/Linux,
51874         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
51875         don't do AC_LIBOBJ, as that's getcwd.m4's job.
51876         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
51877         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
51878         name accordingly.
51879         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
51880         accommodate new getcwd.c.
51881         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
51882         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
51883         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
51884         that's all we need now.
51885
51886 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51887
51888         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
51889         argp-parse.c depends on getopt internals, that means we should
51890         always use our getopt, to be on the safe side.
51891         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
51892         order not to spoil the result of an eventual previous invocation
51893         of gl_GETOPT_SUBSTITUTE.
51894
51895 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51896
51897         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
51898         redefinition warnings. To avoid them, include the defines
51899         in `#if !defined __need_getopt ... #endif'. The only place
51900         where __getopt_argv_const is used is in definitions
51901         of getopt_long and getopt_long_only below, which are as well
51902         protected by `#ifndef __need_getopt'.
51903         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
51904         __need_getopt after including <stdio.h> and <unistd.h> These
51905         headers might have defined it.
51906
51907 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
51908
51909         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
51910
51911 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
51912
51913         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
51914         (futimens): New function, which uses futimes if available.
51915         (futimens, utimens): Support timespec==NULL, with same semantics
51916         as utime and utimens.
51917         * lib/utimens.h (futimens): New decl.
51918
51919 2004-11-23  Jim Meyering  <jim@meyering.net>
51920
51921         * lib/getopt_.h: Remove trailing blanks.
51922
51923 2004-11-23  Jim Meyering  <jim@meyering.net>
51924
51925         * lib/__fpending.c: Add comment.
51926
51927 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
51928
51929         * modules/canonicalize (Depends-on): Add xreadlink.
51930         Problem reported by James Youngman.
51931
51932 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51933
51934         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
51935         New macros.
51936         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
51937         optopt): Use them instead of invoking ## directly; otherwise, the
51938         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
51939
51940 2004-11-19  Bruno Haible  <bruno@clisp.org>
51941
51942         * lib/strtok_r.c: Move comments from here...
51943         * lib/strtok_r.h: ... to here.
51944
51945 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51946
51947         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
51948         implementations that mishandle size_t overflow.
51949
51950 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51951
51952         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
51953         might fail.  Problem reported by Yoann Vandoorselaere.
51954         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
51955         implementations that mishandle size_t overflow.
51956
51957 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51958
51959         * modules/canon-host (Depends-on): Add strdup.
51960
51961 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51962
51963         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
51964
51965 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51966
51967         * lib/canon-host.c: Include "strdup.h".
51968         (canon_host): Use getaddrinfo if available, so that IPv6 works.
51969         Use strdup instead of malloc/strcpy to duplicate strings.
51970
51971         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
51972         (human_space_before_unit): New constant.
51973         * lib/human.c (human_readable): Support it.
51974
51975         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
51976         (xgetcwd): Set errno correctly when failing.
51977         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
51978         the failure is actually due to a PATH_MAX problem.
51979
51980         Further getopt changes to make it more likely that glibc will
51981         buy the changes back.
51982         * lib/getopt.c (POSIXLY_CORRECT): New constant.
51983         (getopt): Use it, so to preserve glibc semantic
51984         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
51985         when compiling for libc.
51986         * lib/getopt_.h (__getopt_argv_const): Bring it back.
51987         (getopt_long, getopt_long_only): Use it.
51988
51989         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
51990         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
51991         (getopt): Argv is now char * const *, as per standard.
51992         (_getopt_internal_r, _getopt_internal): Argv is now char **,
51993         not char *__getopt_argv_const *.
51994         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
51995         _getopt_long_only_r): Likewise.
51996         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
51997         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
51998         _getopt_long_r, _getopt_long_only_r): Likewise.
51999         * lib/getopt_.h (__getopt_argv_const): Remove.
52000         (getopt): Argv is now char * const *, as per standard.
52001
52002         * lib/getdate.y (tORDINAL): New token.
52003         (day, relunit): Allow it for relative times.
52004         (relative_time_table): Use tORDINAL for ordinals.
52005
52006 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52007
52008         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52009         Document that "second" isn't allowed as an ordinal number.
52010
52011 2004-11-16  Jim Meyering  <jim@meyering.net>
52012
52013         * modules/closeout (Depends-on): Add fpending.
52014
52015 2004-11-15  Jim Meyering  <jim@meyering.net>
52016
52017         * lib/closeout.c: Include "__fpending.h" once again.
52018         Include <stdbool.h>.
52019         (close_stdout): Don't fail just because stdout was closed initially,
52020         since some programs don't write to stdout in the normal course of
52021         operation (other than --version and --help), and we don't want this
52022         function to make e.g. `touch file >&-' fail.
52023         But do fail if it was closed and someone has tried to write to it.
52024         E.g., `printf foo >&-' must fail.
52025
52026 2004-11-13  Jim Meyering  <jim@meyering.net>
52027
52028         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52029
52030 2004-11-12  Simon Josefsson  <jas@extundo.com>
52031
52032         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52033         small doc fix is still pending.
52034
52035 2004-11-11  Simon Josefsson  <jas@extundo.com>
52036
52037         * modules/strtok_r: New file.
52038
52039         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52040         strtok_r.
52041
52042 2004-11-11  Simon Josefsson  <jas@extundo.com>
52043
52044         * m4/strtok_r.m4: New file.
52045
52046         * m4/getopt.m4: Replace opterr.
52047
52048 2004-11-11  Simon Josefsson  <jas@extundo.com>
52049
52050         * lib/strtok_r.h, strtok_r.c: New file.
52051
52052 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52053
52054         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52055         of replacing opterr, getopt, etc.  This should handle the
52056         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52057
52058 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52059
52060         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52061         we can stop lying to compilers about the constness of argv when we
52062         are compiled outside glibc.
52063         (getopt, getopt_long, getopt_long_only): Use it.
52064         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52065         _getopt_internal, getopt): Likewise.
52066         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52067         _getopt_long_only_r): Likewise.
52068         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52069         _getopt_long_r, _getopt_long_only_r): Likewise.
52070
52071         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52072         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52073         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52074         the other external symbols.
52075         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52076         declaration, since the above renaming now works around collisions.
52077
52078 2004-11-11  Jim Meyering  <jim@meyering.net>
52079
52080         * lib/linebreak.c: Remove trailing blanks.
52081         * lib/alloca_.h: Likewise.
52082         * lib/acosl.c: Likewise.
52083         * lib/euidaccess.c: Likewise.
52084         * lib/allocsa.h: Likewise.
52085
52086 2004-11-10  Simon Josefsson  <jas@extundo.com>
52087
52088         * m4/getaddrinfo.m4: New file.
52089
52090 2004-11-10  Simon Josefsson  <jas@extundo.com>
52091
52092         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52093
52094 2004-11-10  Simon Josefsson  <jas@extundo.com>
52095
52096         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52097         getaddrinfo.
52098
52099         * modules/getaddrinfo: New file.
52100
52101 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52102
52103         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52104
52105 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52106
52107         * lib/mktime.c (SHR): New macro, which is a portable
52108         substitute for >> that should work even on Crays.
52109         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52110         Problem reported by Mark D. Baushke in
52111         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52112         * lib/getdate.y (SHR): Likewise.
52113         (tm_diff): Use it.
52114         * lib/strftime.c (SHR): Likewise.
52115         (tm_diff): Use it.
52116         * lib/quotearg.c (struct quoting_options): Use unsigned int for
52117         quote_these_too, so that right shifts are well defined.  All uses
52118         changed.
52119
52120 2004-11-10  Jim Meyering  <jim@meyering.net>
52121
52122         Ensure that no close failure goes unreported.
52123         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
52124         return early when it seems there's nothing to flush.
52125         Don't include __fpending.h.
52126
52127 2004-11-10  Jim Meyering  <jim@meyering.net>
52128
52129         * modules/closeout (Depends-on): Remove fpending.
52130
52131 2004-11-10  Jim Meyering  <jim@meyering.net>
52132
52133         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52134
52135 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52136
52137         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
52138         gl_FUNC_STRFTIME.
52139         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52140         and AC_REQUIRE when possible, to avoid duplicate checks.
52141         Check for <wchar.h>.
52142
52143 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52144
52145         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52146
52147 2004-11-09  Bruno Haible  <bruno@clisp.org>
52148
52149         * m4/sockpfaf.m4: New file.
52150
52151 2004-11-05  Bruno Haible  <bruno@clisp.org>
52152
52153         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52154         Reported by Mark D. Baushke <mdb@cvshome.org>.
52155
52156 2004-11-04  Bruno Haible  <bruno@clisp.org>
52157
52158         2004-09-11  Bruno Haible  <bruno@clisp.org>
52159                 * allocsa.valgrind: New file.
52160         2004-02-06  Bruno Haible  <bruno@clisp.org>
52161                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52162                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52163                 Reported by Christopher Seip <chris.seip@hp.com>.
52164
52165 2004-11-04  Bruno Haible  <bruno@clisp.org>
52166
52167         * modules/allocsa (Files): Add lib/allocsa.valgrind.
52168         (Makefile.am): Distribute it.
52169
52170 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52171
52172         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52173         with errno == ERANGE if the buffer is too small.
52174         Problem reported by Mark D. Baushke.
52175
52176 2004-11-03  Albert Chin  <china@thewrittenword.com>
52177             Paul Eggert  <eggert@cs.ucla.edu>
52178
52179         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52180         equivalent, substitute $ac_type for equivalent type rather than
52181         blindly using uint32_t *always* which won't work if uint32_t is not
52182         available.  Define _UINT32_T to work around typedef of uint32_t if
52183         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52184         2.5.1.
52185
52186 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52187
52188         * m4/jm-macros.m4: Sync from coreutils.
52189         (gl_MACROS): Check for mbrlen, for pathchk.
52190         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52191
52192 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52193
52194         * lib/xreadlink.c (MAXSIZE): New macro.
52195         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
52196         size does not exceed MAXSIZE.  Avoid cast.
52197         As suggested by Mark D. Baushke in
52198         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52199         if readlink fails with buffer size just under MAXSIZE, try again
52200         with MAXSIZE.
52201
52202 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52203
52204         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52205
52206 2004-11-02  Derek R. Price  <derek@ximbiot.com>
52207         and  Paul Eggert  <eggert@cs.ucla.edu>
52208
52209         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52210         (get_date): Overparenthesize to avoid GCC warning.
52211
52212 2004-11-02  Bruno Haible  <bruno@clisp.org>
52213
52214         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52215         returns void.
52216
52217 2004-11-02  Bruno Haible  <bruno@clisp.org>
52218
52219         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52220         function returns void.
52221
52222 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52223
52224         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52225         fflush_unlocked, flockfile, funlockfile, funlockfile,
52226         fputs_unlocked, putc_unlocked.
52227
52228 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52229
52230         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52231         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52232         already declared.
52233
52234 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52235
52236         * modules/getdate (Files): Add doc/getdate.texi.
52237         (Depends-on): Add setenv, xalloc.
52238
52239 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52240
52241         * lib/getdate.y: Add support for TZ="foo" within a date string.
52242         Fix some bugs near time_t boundaries.  Reject dates with
52243         out-of-range components, e.g., "Sept 31".
52244         Include <stdlib.h>, "setenv.h", "xalloc.h".
52245         (ISDIGIT_LOCALE): Remove; unused.
52246         Note that the TZ and time functions used here are not reentrant.
52247         (mktime_ok, get_tz): New functions.
52248         (TZBUFSIZE): New constant.
52249         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
52250         This requires that we sometimes generate our own TZ="XXX..." setting.
52251
52252 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52253
52254         * doc/getdate.texi: New file, from coreutils with modifications for
52255         the new TZ parsing.
52256
52257 2004-10-27  Derek R. Price  <derek@ximbiot.com>
52258
52259         * lib/mktime.c (not_equal_tm): Remove redundant check.
52260
52261 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52262
52263         * modules/regex (lib_SOURCES): Add regex.c.
52264         Reported by James Youngman in
52265         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52266
52267 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52268
52269         * lib/getdate.y: Use Bison 1.875 features, and some minor
52270         code cleanups.  This change does not affect semantics.
52271         Don't include <stdlib.h>; no longer needed.
52272         Don't include unlocked-io.h; only the "#if TEST" code uses
52273         stdio, and performance isn't crucial there.
52274         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52275         Bison 1.875 features as described below.
52276         All uses of "PC." replaced by "pc->".
52277         (YYSTYPE): Add a forward declaration.
52278         (yylex, yyerror): Use full prototypes in forward decls.
52279         Use "%pure-parser" rather than obsolescent "%pure_parser".
52280         Use %parse-param and %lex-param instead of obsolescent
52281         YYPARSE_PARAM and YYLEX_PARAM.
52282         (meridian_table, month_and_day_table, time_units_table,
52283         relative_time_table, time_zone_table, military_table,
52284         lookup_zone, lookup_word, get_date):
52285         Use NULL instead of 0 where appropriate.
52286         (to_hour): Avoid abort (), to avoid a dependency on
52287         stdlib.h.
52288         (yyerror, yylex): Now accepts parser_control * arg.
52289         (main) [TEST]: Use '\0' rather than 0 for char.
52290
52291 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52292
52293         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
52294
52295 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52296
52297         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
52298         It's now the caller's responsibility to handle the case where
52299         !HAVE_GETPAGESIZE && !defined getpagesize.
52300
52301         * lib/mktime.c (leapyear): Arg is long int, not int.
52302
52303 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
52304
52305         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
52306
52307 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52308
52309         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
52310         missing.  Problem reported by James Youngman.
52311
52312 2004-10-16  Simon Josefsson  <jas@extundo.com>
52313
52314         * gnulib-tool: Fix comments.  Fix parse problem.
52315         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
52316
52317 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
52318
52319         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
52320         implementation of getopt_long.  Problem reported by Alexander Taler in:
52321         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
52322
52323 2004-10-15  Bruno Haible  <bruno@clisp.org>
52324
52325         * gnulib-tool: Untabify. Initialize supplied_libname.
52326         (func_usage): More homogenous output.
52327         (func_modules_transitive_closure, func_modules_to_filelist,
52328         func_emit_lib_Makefile_am): New functions.
52329         (func_import): New function, extracted from big case statement. Use
52330         func_get_license, func_modules_transitive_closure,
52331         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
52332         opt_lgpl. Don't use test -a, as it's not portable.
52333         (func_create_testdir): Use func_modules_transitive_closure,
52334         func_modules_to_filelist, func_emit_lib_Makefile_am.
52335
52336 2004-10-15  Bruno Haible  <bruno@clisp.org>
52337
52338         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
52339
52340 2004-10-15  Bruno Haible  <bruno@clisp.org>
52341
52342         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
52343         the portions belonging to each module.
52344         Suggested by Derek Robert Price <derek@ximbiot.com>.
52345
52346 2004-10-12  Simon Josefsson  <jas@extundo.com>
52347
52348         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52349         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
52350         to real functions.
52351
52352 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52353
52354         * modules/vsnprintf: New file.
52355
52356 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52357
52358         * m4/vsnprintf.m4: New file.
52359
52360 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52361
52362         * lib/vsnprintf.h: New file.
52363         * lib/vsnprintf.c: New file.
52364
52365 2004-10-11  Bruno Haible  <bruno@clisp.org>
52366
52367         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
52368         vsnprintf.
52369
52370 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52371
52372         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
52373
52374 2004-10-07  Bruno Haible  <bruno@clisp.org>
52375
52376         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
52377         fits into the provided buffer.
52378
52379 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52380
52381         * lib/diacrit.c, diacrit.h: Add GPL notice.
52382
52383         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
52384         notice.
52385         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
52386         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
52387         This avoids a potential constant-folding bug.
52388
52389 2004-10-05  Bruno Haible  <bruno@clisp.org>
52390
52391         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
52392         for the declaration of strsep.
52393
52394 2004-10-05  Bruno Haible  <bruno@clisp.org>
52395
52396         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
52397
52398 2004-10-04  Simon Josefsson  <jas@extundo.com>
52399
52400         * modules/memmem: New file.
52401         * tests/test-memmem.c: New file.
52402         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
52403
52404 2004-10-04  Simon Josefsson  <jas@extundo.com>
52405
52406         * m4/memmem.m4: New file.
52407
52408 2004-10-04  Simon Josefsson  <jas@extundo.com>
52409
52410         * lib/memmem.h: New file.
52411         * lib/memmem.c: New file, taken from glibc.
52412
52413 2004-10-04  Simon Josefsson  <jas@extundo.com>
52414
52415         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
52416         '#ifdef USE_UNLOCKED_IO'.
52417
52418 2004-10-04  Simon Josefsson  <jas@extundo.com>
52419
52420         * config/srclist.txt: Add memmem from glibc.
52421
52422 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52423
52424         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
52425
52426         * modules/argmatch, modules/argp, modules/closeout, modules/error,
52427         modules/exclude, modules/getdate, modules/getline,
52428         modules/getndelim2, modules/getpass, modules/getpass-gnu,
52429         modules/getusershell, modules/linebuffer, modules/md5,
52430         modules/mountlist, modules/posixtm, modules/readtokens,
52431         modules/readutmp, modules/regex, modules/sha1,
52432         modules/version-etc, modules/yesno:
52433         Remove dependency on unlocked-io.
52434
52435 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52436
52437         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
52438
52439         * m4/unlocked-io.m4: Add copyright notice.
52440         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
52441
52442 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52443
52444         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
52445         * lib/xmalloc.c (xmemdup): Likewise.
52446         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
52447         XFREE): Remove these long-obsolescent macros.
52448         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
52449         * lib/xstrdup.c: Remove.
52450
52451         * lib/regex.c (re_comp): Cast gettext return value to char *,
52452         Problem reported by Martin Neitzel via Mark D. Baushke.
52453
52454 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52455
52456         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
52457         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
52458         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
52459         regex.c, sha1.c, version-etc.c, yesno.c:
52460         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
52461         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
52462         the includer's responsibility.
52463
52464         Sync from coreutils.
52465
52466         * lib/modechange.c (mode_compile): Don't decrement a pointer that
52467         points to the start of a string, as the C Standard says the
52468         resulting behavior is undefined.
52469
52470         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
52471         simple -> simple_backups, numbered_existing ->
52472         numbered_existing_backups, numbered -> numbered_backups
52473         to avoid shadowing problems.  All uses changed.
52474         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
52475         * lib/backupfile.c (check_extension, numbered_backup):
52476         Rename locals to avoid shadowing 'basename'.
52477         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
52478         once.
52479
52480         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
52481         * lib/.cvsignore: Add getopt.h.
52482
52483 2004-10-04  Bruno Haible  <bruno@clisp.org>
52484
52485         * modules/README: New file.
52486         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
52487         not a module.
52488
52489 2004-10-02  Jim Meyering  <jim@meyering.net>
52490
52491         * lib/dirfd.h, getpagesize.h: Add copyright notice.
52492
52493 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52494
52495         * modules/strsep: New file.
52496
52497 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52498
52499         * m4/strsep.m4: New file.
52500
52501 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52502
52503         * lib/strsep.h: New file.
52504         * lib/strsep.c: New file.
52505
52506 2004-10-01  Simon Josefsson  <jas@extundo.com>
52507
52508         * lib/snprintf.c (snprintf): Handle size==0.
52509
52510 2004-10-01  Simon Josefsson  <jas@extundo.com>
52511             Bruno Haible  <bruno@clisp.org>
52512
52513         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
52514         (snprintf): Declare 'args'.
52515
52516 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
52517
52518         * lib/snprintf.c: Remove comments as to why each header is needed.
52519
52520 2004-10-01  Bruno Haible  <bruno@clisp.org>
52521
52522         * MODULES.html.sh: Add strsep.
52523
52524 2004-09-30  Simon Josefsson  <jas@extundo.com>
52525
52526         * modules/snprintf: New file.
52527
52528 2004-09-30  Simon Josefsson  <jas@extundo.com>
52529
52530         * m4/snprintf.m4: New file.
52531
52532 2004-09-30  Simon Josefsson  <jas@extundo.com>
52533
52534         * lib/snprintf.h, lib/snprintf.c: New files.
52535
52536 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52537
52538         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
52539         (hol_entry_help): Never translate an empty string.
52540         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
52541         * lib/argp.h (OPTION_NO_TRANS): New option.
52542
52543 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52544
52545         * modules/argp (Maintainer): Replace Simon Josefsson
52546         by Sergey Poznyakoff.
52547
52548 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52549
52550         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
52551         changes merged back into glibc.
52552
52553 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52554
52555         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
52556
52557 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
52558
52559         * lib/xvasprintf.c: Include xalloc.h.
52560         (xvasprintf): Use xalloc_die, not xmalloc_die.
52561
52562 2004-09-29  Bruno Haible  <bruno@clisp.org>
52563
52564         * modules/alloca-opt: New file, derived from modules/alloca.
52565         * modules/allocsa: Depend on alloca-opt instead of alloca.
52566         * modules/setenv: Likewise.
52567         * modules/vasnprintf: Likewise.
52568         * MODULES.html.sh: Add alloca-opt.
52569
52570 2004-09-28  Simon Josefsson  <jas@extundo.com>
52571
52572         * gnulib-tool: New parameter --lgpl, to asseert that modules are
52573         LGPL, and to replace license template from GPL to LGPL.
52574
52575 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52576
52577         * modules/dummy: Change license to LGPL.
52578
52579 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52580
52581         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
52582
52583 2004-09-24  Simon Josefsson  <jas@extundo.com>
52584
52585         * modules/minmax (License): Change from GPL to LGPL.
52586
52587 2004-09-23  Simon Josefsson  <jas@extundo.com>
52588
52589         * gnulib-tool (--import): Typo.
52590
52591 2004-09-23  Simon Josefsson  <jas@extundo.com>
52592
52593         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
52594
52595 2004-09-22  Bruno Haible  <bruno@clisp.org>
52596
52597         * modules/*: Add 'License' field.
52598         * gnulib-tool: Accept --extract-license option.
52599         (func_get_license): New function.
52600
52601 2004-09-21  Bruno Haible  <bruno@clisp.org>
52602
52603         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
52604         Reported by Simon Josefsson.
52605
52606 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52607
52608         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
52609         gl_AC_TYPE_LONG_LONG.
52610
52611 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52612
52613         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
52614
52615 2004-09-18  Simon Josefsson  <jas@extundo.com>
52616         and  Paul Eggert  <eggert@cs.ucla.edu>
52617
52618         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
52619         calls with autoreconf.  Define GL_LIB.
52620
52621 2004-09-14  Karl Berry  <karl@gnu.org>
52622
52623         * config/srclist.txt: unsync setenv.c, sigh.
52624
52625 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52626
52627         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
52628         Problem reported by Bruno Haible in:
52629         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
52630
52631 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52632
52633         * config/srclist.txt: Comment out argp-pvh.c.
52634
52635 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
52636
52637         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
52638         in case some system header has #define'd it.  Problem reported by
52639         Soeren D. Schulze in
52640         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
52641
52642 2004-09-09  Karl Berry  <karl@gnu.org>
52643
52644         * regex.[ch]: delete from the root.  These were supposed to be
52645                 synced with emacs cvs, but this has not happened for about
52646                 a year, and anyway nothing else uses emacs regex.[ch].
52647                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
52648                 lib/regex[.ch] is untouched.
52649
52650 2004-09-09  Bruno Haible  <bruno@clisp.org>
52651
52652         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
52653
52654 2004-09-09  Bruno Haible  <bruno@clisp.org>
52655
52656         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
52657         modifications.
52658         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
52659
52660 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52661
52662         * modules/xvasprintf: New file.
52663         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
52664
52665 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52666
52667         * lib/xvasprintf.h: New file.
52668         * lib/xvasprintf.c: New file.
52669         * lib/xasprintf.c: New file.
52670
52671 2004-09-08  Bruno Haible  <bruno@clisp.org>
52672
52673         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
52674
52675 2004-09-08  Bruno Haible  <bruno@clisp.org>
52676
52677         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
52678         length is > INT_MAX.
52679         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
52680         more.
52681
52682 2004-09-08  Bruno Haible  <bruno@clisp.org>
52683
52684         * lib/stdint_.h: New file, taken from GNU clisp.
52685
52686 2004-09-08  Bruno Haible  <bruno@clisp.org>
52687             Oskar Liljeblad  <oskar@osk.mine.nu>
52688
52689         * modules/stdint: New file.
52690         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
52691
52692 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52693
52694         Import from coreutils.
52695         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
52696         strings on unbounded length.  alloca's performance benefits aren't
52697         that important here.
52698         (V_STRDUP): Remove.
52699         (parse_with_separator): New function, with most of the internals
52700         of the old parse_user_spec.  Allow user to omit both user and group,
52701         for compatibility with FreeBSD.
52702         Clone only the user name, not the entire spec.
52703         Do not set *uid, *gid unless entirely successful.
52704         Avoid memory leak in some failing cases.
52705         Fix regression for USER.GROUP reported by Dmitry V. Levin in
52706         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
52707         (parse_user_spec): Rewrite to use parse_with_separator.
52708
52709 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52710
52711         * modules/userspec: Don't depend on alloca.
52712
52713 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52714
52715         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
52716
52717 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52718
52719         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
52720         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
52721         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
52722
52723 2004-08-16  Simon Josefsson  <jas@extundo.com>
52724
52725         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
52726         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
52727         Add --dry-run for --import.
52728         Let user provided command line parameters override configure.ac
52729         settings.
52730
52731 2004-08-12  Simon Josefsson  <jas@extundo.com>
52732
52733         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
52734         as discussed with Paul Eggert in threads rooted at
52735         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
52736         and
52737         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
52738         Before, the test was empty, and relied on ELIDE_CODE in source
52739         code.)
52740         (gl_PREREQ_GETOPT): New macro.
52741         (gl_GETOPT): Use them.
52742
52743 2004-08-12  Simon Josefsson  <jas@extundo.com>
52744
52745         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
52746         * lib/getopt_.h: Renamed from getopt.h.
52747
52748 2004-08-12  Simon Josefsson  <jas@extundo.com>
52749
52750         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
52751         Change default library name from libfoo to libgnu.
52752         Now, if you have a configure.ac that says:
52753                 gl_SOURCE_BASE(gl)
52754                 gl_M4_BASE(gl/m4)
52755                 gl_MODULES(error getopt etcetera)
52756                 gl_INIT
52757         you can import all you need by running:
52758                 ../gnulib/gnulib-tool --import
52759
52760         * modules/getopt (Files): Rename getopt.h to getopt_.h.
52761         (Makefile.am): Rewrite, use logic from argz.
52762         (Include): Use <getopt.h> instead of "getopt.h".
52763
52764 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52765
52766         * modules/argp (Files): Add m4/unlocked-io.m4.
52767         (Depends-on): Add extensions.
52768
52769 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52770
52771         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
52772         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
52773         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
52774         Check for program_invocation_name, program_invocation_short_name,
52775         flockfile, funlockfile, features.h, _getopt_long_only_r.
52776
52777 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52778
52779         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
52780         its complicated substitute.
52781         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
52782         and program_invocation_name.
52783         (__argp_basename) [!_LIBC]: Remove; the only use was
52784         replaced by its body.
52785         (__argp_short_program_name): Change condition from
52786         !defined __argp_short_program_name to
52787         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
52788         to match argp-namefrob.h.
52789         (__argp_failure): Don't assume strerror_r returns char *.
52790         * lib/argp-parse.c (N_): Define unconditionally.
52791         (argp_default_options): Fill out initializers with 0 to avoid
52792         gcc warnings.
52793
52794 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52795
52796         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
52797         getopt1.c.
52798
52799 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52800
52801         Merge from coreutils.
52802
52803         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
52804
52805         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
52806         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
52807
52808 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52809
52810         Merge from coreutils.
52811
52812         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
52813         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
52814         for Reliant Unix 5.43.
52815
52816         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
52817         (union fooround): Use uintmax_t, not long int.
52818         The rest is a merge from libc:
52819         [defined _LIBC]: Include <shlib-compat.h>.
52820         (_obstack) [defined _LIBC]: Remove after 2.3.4.
52821
52822         * lib/settime.c (settime): Recode to avoid warning with
52823         Sun Forte C 6U2.
52824
52825         * lib/strverscmp.c: Convert to UTF-8.
52826
52827 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52828
52829         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
52830         m4/uintmax_t.m4.
52831
52832 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52833
52834         * modules/xalloc-die: New file.
52835         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
52836
52837         * modules/md5 (Files): Add m4/uint32_t.m4.
52838         * modules/sha1: Renamed from modules/sha.
52839         (Files):
52840         Rename lib/sha.h to lib/sha1.h.
52841         Rename lib/sha.c to lib/sha1.c.
52842         Rename m4/sha.m4 to m4/sha1.m4.
52843         (lib_SOURCES): Likewise.
52844         (configure.ac): Rename gl_SHA to gl_SHA1.
52845         (Include): sha.h -> sha1.h.
52846
52847 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52848
52849         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
52850         * m4/sha1.m4: Renamed from sha.m4.
52851         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
52852
52853 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52854
52855         * lib/obstack.h (obstack_empty_p):
52856         Don't assume that chunk->contents is suitably aligned.
52857         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
52858         Likewise. Problem reported by Benno in
52859         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
52860
52861         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
52862         readable.  This could be improved further but it'd take some work.
52863
52864 2004-08-08  Simon Josefsson  <jas@extundo.com>
52865
52866         * modules/xgethostname (Depends-on): Remove exit and error (not
52867         used).
52868
52869         * modules/getpass-gnu: Add getpass.h.
52870         (Depends-on): Add stdbool.
52871         * modules/getpass: Add getpass.h.
52872
52873 2004-08-08  Simon Josefsson  <jas@extundo.com>
52874
52875         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
52876         Check getpass declaration.
52877
52878 2004-08-08  Simon Josefsson  <jas@extundo.com>
52879
52880         * lib/xgethostname.c: Don't include error.h (not used).
52881
52882         * lib/getpass.h: Add.
52883         * lib/getpass.c: Include getpass.h first.
52884
52885 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
52886
52887         * lib/xalloc-die.c: New file.
52888         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
52889         All uses removed.
52890         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
52891         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
52892         xalloc-die.c.
52893         (_, N_, xalloc_die): Move to xalloc-die.c.
52894         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
52895         so that we needn't mess with xalloc_msg_memory_exhausted.
52896
52897         * lib/sha1.h: Renamed from sha.h.
52898         (SHA1_H): Renamed from _SHA_H.
52899         (sha1_ctx): Renamed from sha_ctx.
52900         (sha1_init_ctx): Renamed from sha_init_ctx.
52901         (sha1_process_block): Renamed from sha_process_block.
52902         (sha1_process_bytes): Renamed from sha_process_bytes.
52903         (sha1_finish_ctx): Renamed from sha_finish_ctx.
52904         (sha1_read_ctx): Renamed from sha_read_ctx.
52905         (sha1_stream): Renamed from sha_stream.
52906         (sha1_buffer): Renamed from sha_buffer.
52907         * lib/sha1.c: Likewise; renamed from sha.c.
52908         Do not include <sys/types.h>.
52909         Include <stddef.h> rather than <stdlib.h>.
52910
52911 2004-08-08  Bruno Haible  <bruno@clisp.org>
52912
52913         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
52914         FILESYSTEM_PREFIX_LEN.
52915         * lib/progreloc.c: Likewise.
52916         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
52917
52918 2004-08-06  Simon Josefsson  <jas@extundo.com>
52919
52920         * modules/progname (Depends-on): Don't depend on stdbool.
52921
52922 2004-08-06  Simon Josefsson  <jas@extundo.com>
52923
52924         * modules/getsubopt: New file.
52925         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52926         getsubopt.
52927
52928 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52929
52930         More merge from coreutils.
52931
52932         * m4/utimens.m4, m4/utimecmp.m4: New files.
52933         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
52934         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
52935         prereq.m4, sha.m4: Import changes from coreutils.
52936
52937 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52938
52939         More merge from coreutils.
52940         * modules/raise, modules/readtokens0, modules/utimens:
52941         * modules/utimecmp, module/xnanosleep: New files.
52942         * modules/strftime: Add lib/strftime.h.
52943         Change include from <time.h> to "strftime.h".
52944         * modules/yesno: Add lib/yesno.h.
52945         * modules/backupfile: Remove lib/addext.c.
52946         * modules/euidaccess: Add stat-macros.h.
52947         * modules/canonicalize, modules/euidaccess,
52948         modules/filemode, modules/lchown, modules/makepath,
52949         modules/rmdir, modules/stat: Likewise.
52950
52951 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52952
52953         Merge from tar.
52954         * lib/argp-help.c (make_hol, hol_append): Don't assume that
52955         SIZE_MAX is a valid preprocessor constant.
52956         (__argp_basename): Change from "#ifndef _LIBC"
52957         to "#ifndef __argp_short_program_name", so that
52958         we don't compile these functions for tar.
52959
52960         More merges from coreutils.
52961         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
52962         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
52963         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
52964         * lib/addext.c: Remove; no longer needed.
52965         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
52966         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
52967         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
52968         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
52969         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
52970         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
52971         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
52972         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
52973         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
52974         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52975         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
52976         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
52977         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
52978         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
52979         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
52980         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
52981         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
52982         Import changes from coreutils.
52983
52984 2004-08-05  Simon Josefsson  <jas@extundo.com>
52985
52986         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
52987
52988 2004-08-05  Simon Josefsson  <jas@extundo.com>
52989
52990         * m4/getsubopt.m4: New file.
52991
52992 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
52993
52994         Merge from coreutils.
52995
52996         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
52997         * m4/getcwd-path-max.m4: New files.
52998
52999         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53000         FILESYSTEM_PREFIX_LEN ->
53001         FILE_SYSTEM_PREFIX_LEN.
53002         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53003         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53004         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53005         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53006
53007         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53008         prerequisite modules now handle the DOS stuff.
53009         Don't check for unistd.h.
53010
53011 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53012
53013         Merge from coreutils.
53014
53015         * lib/.gdb-history: Remove; this doesn't belong here.
53016
53017         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53018         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53019         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53020         * lib/getcwd.c: New files.
53021
53022         * lib/dirname.h: Include <stdbool.h>.
53023         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53024         for consistency with POSIX terminology.  All uses changed.
53025         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53026         (strip_trailing_slashes): Use bool for booleans.
53027         * lib/stripslash.c (strip_trailing_slashes): Likewise.
53028
53029         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53030         sometimes returns a positive errno value even when it succeeds.
53031         (print_errno_message) [!LIBC]: Fall back on strerror if
53032         __strerror_r fails.
53033
53034         * lib/path-concat.c (mempcpy): Don't define if a system header defines
53035         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53036         (longest_relative_suffix): New function.
53037         (path_concat): Use it.  Assume first argument is not NULL.
53038         Port to DOS.  Omit redundant separators.
53039         Report an error instead of returning NULL.
53040         Use mempcpy instead of memcpy.
53041         (xpath_concat): Remove: not declared or used.
53042
53043         * lib/same.h: Include <stdbool.h>
53044         (same_name): Return bool, not int.
53045         * lib/same.c (same_name): Likewise.
53046         (errno): Don't declare; we assume C89 or better now.
53047
53048         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53049         if not already defined.
53050
53051         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53052         * lib/dup-safer.c (errno): Likewise.
53053
53054 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53055
53056         Merge from coreutils.
53057         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53058         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53059         * modules/path-concat: Don't depend on strdup.
53060
53061 2004-08-03  Simon Josefsson  <jas@extundo.com>
53062
53063         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53064         * lib/progname.h: Don't include stdbool.h.
53065
53066 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53067
53068         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53069         * MODULES.html.sh (func_all_modules): Remove fatal.
53070
53071 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53072
53073         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53074
53075 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53076
53077         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53078         working.
53079
53080 2004-08-02  Simon Josefsson  <jas@extundo.com>
53081
53082         * lib/getsubopt.h: New file, with comments from Bruno Haible.
53083         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53084         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53085
53086 2004-08-01  Simon Josefsson  <jas@extundo.com>
53087
53088         * lib/xgetdomainname.c: Include stdlib.h, for free().
53089
53090 2004-07-19  Bruno Haible  <bruno@clisp.org>
53091
53092         * MODULES.html.sh (func_all_modules): Add dummy.
53093
53094 2004-07-16  Simon Josefsson  <jas@extundo.com>
53095
53096         * modules/dummy: New file.
53097
53098 2004-07-16  Simon Josefsson  <jas@extundo.com>
53099
53100         * lib/dummy.c: New file.
53101
53102 2004-07-16  Bruno Haible  <bruno@clisp.org>
53103
53104         * lib/backupfile.h: Add extern "C" for C++.
53105         * lib/closeout.h: Likewise.
53106         * lib/copy-file.h: Likewise.
53107         * lib/findprog.h: Likewise.
53108         * lib/full-write.h: Likewise.
53109         * lib/pathname.h: Likewise.
53110         * lib/progname.h: Likewise.
53111         * lib/stpcpy.h: Likewise.
53112         * lib/stpncpy.h: Likewise.
53113         * lib/strcase.h: Likewise.
53114         * lib/strstr.h: Likewise.
53115         * lib/xalloc.h: Likewise.
53116
53117         * lib/mbswidth.h: Add extern "C" for C++.
53118         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53119
53120 2004-07-13  Robert Millan  <robertmh@gnu.org>
53121
53122         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53123
53124 2004-07-09  Simon Josefsson  <jas@extundo.com>
53125
53126         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
53127         failed without this.)
53128
53129 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53130
53131         * modules/chown (Files): Add lib/fchown-stub.c, since
53132         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53133
53134 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53135
53136         * lib/fchown-stub.c: New file.
53137
53138 2004-06-24  Jim Meyering  <jim@meyering.net>
53139
53140         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53141
53142 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53143
53144         * modules/argz: Omit "#include".
53145
53146         * MODULES.html.sh (func_all_modules): Add calloc, to match
53147         2004-06-01 addition of calloc module.
53148
53149 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53150
53151         * m4/argz.m4: New file, which is autoupdated from libtool.
53152
53153 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53154
53155         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53156         libtool.
53157
53158 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53159
53160         * config/srclist-update: Don't insist on "USA." before the
53161         close-comment, as libtool omits the period and puts the */ on a
53162         separate line.
53163         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53164         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53165
53166 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
53167
53168         * modules/argz: New file.
53169         * MODULES.html.sh (func_all_modules): Add argz.
53170
53171 2004-06-12  Jim Meyering  <jim@meyering.net>
53172         and  Paul Eggert  <eggert@cs.ucla.edu>
53173
53174         * modules/hash (Files): Add lib/xalloc.h.
53175         * modules/pipe (Depends-on): Add wait-process.
53176         * modules/stat (Depends-on): Add xalloc.
53177         * modules/userspec (Files): Add lib/userspec.h.
53178         * modules/xstrto
53179
53180         Upgrade from gettext-0.13.
53181         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53182         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53183         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53184
53185 2004-06-10  Jim Meyering  <jim@meyering.net>
53186
53187         * lib/calloc.c: New file.
53188
53189 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53190
53191         * lib/getdate.y (yylex): Allow space between sign and number.
53192         Problem reported by Dan Jacobson.
53193
53194 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53195
53196         Merge from coreutils CVS.
53197
53198         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53199         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53200         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53201         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53202         xstrtol.m4: Fix copyright date and/or serial number.
53203
53204         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53205         See if we need an fchown replacement.
53206         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53207         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53208         and use the replacement function if we detect either defect.
53209
53210         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53211         gl_UTIMECMP.
53212
53213 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53214         and  Jim Meyering  <jim@meyering.net>
53215
53216         Merge from coreutils CVS.
53217
53218         * lib/stat-macros.h: New file, with contents from file-type.h
53219         and coreutils' system.h.
53220         * lib/file-type.c: Include "stat-macros.h".
53221         * lib/file-type.h (file_type): Move all macro definitions to new file,
53222         stat-macros.h.
53223
53224         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53225         Wrap old code with this conditional.
53226         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53227         function that does not dereference symlinks.
53228         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53229
53230         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53231         dependency problems.
53232         (xreadlink): Accept new arg SIZE, for efficiency.
53233         All decls and uses changed.
53234         * lib/xreadlink.h: Include <stddef.h>, for size_t.
53235
53236         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53237         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53238
53239         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53240         sysexits.h.
53241
53242 2004-06-01  Jim Meyering  <jim@meyering.net>
53243
53244         * m4/calloc.m4: New file.
53245
53246 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
53247
53248         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53249         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
53250         Also, fix a typo in a diagnostic.
53251
53252 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53253
53254         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53255         or AC_FUNC_REALLOC.
53256
53257 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53258
53259         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53260         macros to be defined.
53261         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53262         the allocator returns NULL because the requested size is zero.
53263
53264 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53265
53266         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53267         var.  Add comment explaining why libc still defines it.  This
53268         merges the following patch from glibc:
53269         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53270
53271 2004-05-20  Andreas Schwab  <schwab@suse.de>
53272
53273         * m4/free.m4: Replace free if it not known to work, not the other
53274         way round.
53275
53276 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53277
53278         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
53279         present in glibc since revision 1.1 of this file.
53280         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53281         obstack_alignment_mask, obstack_alloc, obstack_base,
53282         obstack_blank, obstack_blank_fast, obstack_chunk_size,
53283         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53284         obstack_grow0, obstack_init, obstack_int_grow,
53285         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53286         obstack_next_free, obstack_object_size, obstack_ptr_grow,
53287         obstack_ptr_grow_fast, obstack_room): Remove declarations of
53288         nonexistent functions.
53289
53290 2004-05-18  Karl Berry  <karl@gnu.org>
53291
53292         * config/srclist.txt: break link for vasnprintf.c.
53293
53294 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53295
53296         Port obstack to the AS/400, where pointers are 16 bytes wide and
53297         you cannot cast an integer to a valid pointer.  This patch is
53298         currently waiting to be integrated into glibc; see
53299         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
53300
53301         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
53302         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
53303         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
53304         (struct obstack): temp member is now a union of a pointer and
53305         an integer, instead of an integer.  All integer uses changed.
53306         This does not affect the physical layout of struct obstack,
53307         except on hosts (like the AS/400) where the size or alignment of
53308         void * is greater than that of ptrdiff_t.
53309         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
53310         __STDC__)]: Store temporary in pointer member of union, not
53311         integer member.
53312         * lib/obstack.c: Include <stddef.h>, for offsetof.
53313         (struct fooalign): Remove; it doesn't need a name.
53314         (union fooround): Change double to long double, and add void *.
53315         (DEFAULT_ALIGNMENT): Use offsetof to compute.
53316         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
53317         not a macro.  Hence the values are always int; so remove all
53318         casts-to-int in uses.
53319
53320 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53321
53322         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
53323         we can get this patch merged into glibc.
53324
53325 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53326             Paul Eggert  <eggert@cs.ucla.edu>
53327
53328         * m4/argp: Depend on alloca.
53329
53330 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53331             Paul Eggert  <eggert@cs.ucla.edu>
53332
53333         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
53334         freecoding.
53335
53336 2004-05-17  Bruno Haible  <bruno@clisp.org>
53337
53338         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
53339         precision that consists of a '.' followed by an empty digit string.
53340         Patch by Tor Lillqvist <tml@iki.fi>.
53341
53342 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53343
53344         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
53345         for backward compatibility with older code.  We need our own
53346         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
53347         it under some other name, and our alloca.h will define it.
53348
53349 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53350             Derek Price  <derek@ximbiot.com>
53351
53352         * lib/alloca.c: Include <alloca.h>, to get our interface.
53353         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
53354         include <alloca.h> first.  Use C89 prototype for alloca; this
53355         requires including <stddef.h> for size_t.  Use extern "C" if C++.
53356         Use #elif for simplicity, since we can assume C89 now.
53357         Don't try to source the system alloca.h since it will not be found
53358         and to prevent recursively including its replacement.
53359         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
53360         * lib/regex.c: Likewise.
53361
53362 2004-05-16  Derek Price  <derek@ximbiot.com>
53363             Paul Eggert  <eggert@cs.ucla.edu>
53364
53365         getline cleanup.  This changes the getndelim2 API: both order of
53366         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
53367         no delimiter).
53368
53369         * lib/getline.c: Don't include stddef.h or stdio.h, since our
53370         interface does that.
53371         (getline): Always use getdelim, so that we don't have two
53372         copies of this code.
53373         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
53374         if available.
53375         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
53376         (GETNDELIM2_MAXIMUM): New macro.
53377         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
53378         instead of the old practice of delim2==0.  All callers changed.
53379         Return -1 on overflow, instead of returning junk.
53380         Do not set *linesize unless allocation succeeds.
53381         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
53382         that we include sys/types.h.
53383         * lib/getnline.h: Likewise.
53384         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
53385         (getndelim2): Reorder arguments.
53386         * lib/getnline.c (getnline, getndelim):
53387         Don't discard the NMAX argument.
53388         (getnline): Invoke getndelim, to avoid code duplication.
53389         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
53390         of (size_t) -1 by callers of the getnline family.
53391
53392 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53393
53394         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
53395         Check for gettimeofday.
53396         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
53397         Check for settimeofday, stime.
53398
53399 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53400
53401         * lib/nanosleep.c (suspended): Change its type from int to
53402         sig_atomic_t volatile.
53403         (first_call): Make it private to rpl_nanosleep, and have it
53404         be zero initially as that's a bit faster.
53405         (my_usleep): Round up fractional times instead of truncating them,
53406         as this is the usual meaning for 'sleep'.
53407
53408         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
53409         doesn't work.
53410         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
53411         (ENOSYS): Define if not defined.
53412         (settime): Fall back on stime if it exists and settimeofday fails.
53413         But don't bother with fallbacks if a method fails with errno == EPERM.
53414
53415 2004-05-11  Jim Meyering  <jim@meyering.net>
53416
53417         Prior to this change, the save_cwd caller required read access to the
53418         current directory on most systems (ones with the fchdir function).
53419
53420         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
53421         fails, try write-only, and finally, resort to using xgetcwd.
53422
53423 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53424
53425         * lib/obstack.c, obstack.h: Import changes from libc.
53426
53427 2004-04-28  Bruno Haible  <bruno@clisp.org>
53428
53429         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
53430         also implicitly appends .exe to executables.
53431         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
53432         accepts Windows pathnames.
53433         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53434         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53435         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53436         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53437         Reported by Derek Robert Price <derek@ximbiot.com>.
53438
53439 2004-04-21  Karl Berry  <karl@gnu.org>
53440
53441         * config/srclist.txt (localcharset.c): break sync.
53442
53443 2004-04-20  Paul Eggert  <eggert@twinsun.com>
53444
53445         * m4/host-os.m4: Add a copyright notice.
53446
53447 2004-04-20  Jim Meyering  <jim@meyering.net>
53448
53449         Change UTILS_ to gl_ in AC_DEFINE'd names.
53450         Change utils_- and jm_-prefixed variables, too.
53451         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
53452         UTILS_FUNC_MKDIR_TRAILING_SLASH.
53453         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
53454
53455         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
53456         Don't emit trailing blanks.
53457         Also rename jm_-prefixed variables to have gl_ prefix.
53458
53459         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
53460         Also rename jm_-prefixed variables to have gl_ prefix.
53461
53462         * m4/jm-macros.m4: Reflect the renamings.
53463         * m4/prereq.m4: Likewise.
53464
53465 2004-04-20  Jim Meyering  <jim@meyering.net>
53466
53467         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
53468         memory.
53469
53470 2004-04-20  Jim Meyering  <jim@meyering.net>
53471             Bruno Haible  <bruno@clisp.org>
53472
53473         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
53474         memory when realloc fails.
53475
53476 2004-04-19  Jim Meyering  <jim@meyering.net>
53477
53478         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
53479         now that readutmp.c may call `free (0)'.
53480
53481 2004-04-19  Bruno Haible  <bruno@clisp.org>
53482
53483         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
53484         * m4/inttypes_h.m4: Likewise.
53485         * m4/stdint_h.m4: Likewise.
53486         * m4/intmax_t.m4: Likewise.
53487         * m4/uintmax_t.m4: Likewise.
53488
53489 2004-04-18  Jim Meyering  <jim@meyering.net>
53490
53491         * m4/prereq.m4: Don't forbid jm_ prefix.
53492
53493         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
53494         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
53495         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
53496         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
53497         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
53498         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
53499         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
53500         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
53501         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
53502         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
53503         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
53504         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
53505         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
53506         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
53507         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
53508         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
53509         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
53510         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
53511         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
53512
53513 2004-04-18  Jim Meyering  <jim@meyering.net>
53514
53515         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
53516         failure, don't leak memory and do call END_UTMP_ENT.
53517
53518 2004-04-16  Jim Meyering  <jim@meyering.net>
53519
53520         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
53521         coreutils' stat program.
53522         (gl_PREREQ): Don't require jm_PREREQ_STAT.
53523
53524 2004-04-11  Paul Eggert  <eggert@twinsun.com>
53525
53526         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
53527         C89.
53528         (CHAR_BIT): Remove, since we assume C89.
53529         Include <stdint.h> if available, as per current Autoconf CVS advice.
53530
53531 2004-03-31  Jim Meyering  <jim@meyering.net>
53532
53533         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
53534         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
53535         * m4/xalloc.m4: Likewise.
53536
53537 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53538
53539         Merge from coreutils.
53540
53541         * m4/inttostr.m4: New file.
53542         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
53543         Require AM_STDBOOL_H and gl_TIMESPEC instead.
53544         Require gl_CLOCK_TIME.
53545         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
53546
53547 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53548
53549         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
53550         not bool, to be more consistent with Unix conventions.
53551         Suggested by Bruno Haible.
53552
53553         Merge from coreutils.
53554
53555         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
53556         * lib/umaxtostr.c: New files.
53557
53558         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
53559         the usual <time.h> dance.
53560         (get_date): Change signature to support fractional time stamps.
53561         All callers changed.
53562         * lib/getdate.y: Include "getdate.h" first, as we can now
53563         assume C89 and don't need to worry about 'const'.
53564         Similarly, include "unlocked-io.h" near start, not in middle.
53565         Include <limits.h>.
53566         (textint.value): Use long int rather than int.
53567         (textint.digits): Use size_t rather than int.
53568         (BILLION, LOG10_BILLION): New constants.
53569         (parser_control): New member rel_ns.  Members day_ordinal,
53570         time_zone, month, day, hour, minutes, rel_year, rel_month,
53571         rel_day, rel_hour, rel_minutes, rel_seconds
53572         are now long int, not int.  Member seconds is now struct timespec,
53573         not int.  New member timespec_seen.  Members dates_seen, days_seen,
53574         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
53575         not int.
53576         (%union.intval): Now long int, not int.
53577         New member timespec.
53578         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
53579         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
53580         (spec): Now is a timespec or an item list.
53581         (timespec, items): New nonterminals.
53582         (time, rel, relunit, number, get_date):
53583         Add support for fractional seconds.
53584         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
53585         (gmtime, localtime, mktime): Remove decls; not needed with C89.
53586         (to_hour): First arg is now long int, not int.
53587         (to_year): Returns long int, not int.
53588         Don't treat year -70 like 70.
53589         (tm_diff): Returns long int, not int.
53590         (lookup_word): Use bool instead of int when appropriate.
53591         (yylex): Use size_t for count, not int.
53592         Detect overflow when parsing large integer constants.
53593         Add support for fractions.
53594         (get_date): Make pointers 'const' if possible.
53595         Use more-portable code to detect integer overflow.
53596         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
53597         Don't use ctime; it's not reliable if the year has >4 digits.
53598
53599         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
53600         This is for compatibility with BSD.
53601
53602         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
53603         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
53604         From coreutils' system.h.
53605
53606         * lib/userspec.c: Don't include "posixver.h".
53607         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
53608         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
53609         compatible extension.  Simplify code by removing a boolean int
53610         that was always nonzero if a string was nonnull.
53611
53612 2004-03-30  Jim Meyering  <jim@meyering.net>
53613
53614         Merge from coreutils.
53615
53616         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
53617         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
53618         on some systems one must include <grp.h> before it.
53619         Reported by Christian Krackowizer.
53620
53621 2004-03-30  Jim Meyering  <jim@meyering.net>
53622
53623         Merge from coreutils.
53624
53625         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
53626
53627         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
53628         an empty input stream.
53629
53630         * lib/readtokens.c: Include <stdbool.h>.
53631         (readtoken): Use `size_t' rather than int/long.
53632         All callers adjusted.
53633         Use `bool' rather than `int' where appropriate.
53634         Use memset rather than an explicit loop.
53635         Use x2nrealloc rather than xrealloc.
53636         Allow the use of `\0' as a delimiter.
53637         (readtokens): Likewise.
53638         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
53639
53640 2004-03-30  Jim Meyering  <jim@meyering.net>
53641
53642         * m4/realloc.m4: Remove file, since now it does no more than
53643         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
53644         the `configure.ac' section of module/realloc.
53645         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
53646
53647 2004-03-30  Bruno Haible  <bruno@clisp.org>
53648
53649         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
53650         nonnull.
53651
53652 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53653
53654         Merge changes to getloadavg.c from coreutils and Emacs.
53655
53656         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
53657         Define to an expression, not to the empty string.
53658         Include cloexec.h and xalloc.h.
53659         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
53660         Use set_cloexec_flag rather than rolling our own.
53661         * lib/cloexec.c, lib/cloexec.h: New files.
53662
53663 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53664
53665         * m4/cloexec.m4: New file.
53666
53667 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53668
53669         * lib/getopt.h: Sync with libc CVS.
53670
53671 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53672             Bruno Haible  <bruno@clisp.org>
53673
53674         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
53675         mbswidth.
53676
53677 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53678             Bruno Haible  <bruno@clisp.org>
53679
53680         * lib/mbswidth.h: Include <wchar.h> only if
53681         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
53682         <wchar.h>.
53683         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
53684
53685 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53686
53687         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
53688         Sync with libc CVS.
53689         * lib/getopt_int.h: New file, also synced from libc.
53690
53691 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53692
53693         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
53694         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
53695         Bring back getopt.c, getopt.h, getopt1.c.
53696
53697 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53698
53699         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
53700         All uses changed.  Check for sa_sigaction member; this fixes
53701         a bug first reported by Jason Andrade in
53702         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53703
53704 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53705
53706         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
53707         '#if' expressions.  Unlike the code it replaces, it does not
53708         depend on (defined _SC_PAGESIZE).  However, it does depend on
53709         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
53710         first reported by Jason Andrade in
53711         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53712
53713 2004-02-25  Simon Josefsson  <jas@extundo.com>
53714
53715         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
53716
53717 2004-02-25  Simon Josefsson  <jas@extundo.com>
53718
53719         * lib/strdup.h: New file.
53720         * lib/strdup.c: Include it.
53721         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
53722         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
53723
53724 2004-02-23  Karl Berry  <karl@gnu.org>
53725
53726         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
53727         (from fencepost.gnu.org:/gd/gnuorg).
53728
53729 2004-02-23  Karl Berry  <karl@gnu.org>
53730
53731         * config/srclistvars.sh (GNUORG) [karl]: redefine.
53732         * config/srclist.txt: add maintain/standards documents.
53733
53734 2004-02-18  Bruno Haible  <bruno@clisp.org>
53735
53736         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
53737         Reported by Derek Robert Price <derek@ximbiot.com>.
53738
53739 2004-02-16  Karl Berry  <karl@gnu.org>
53740
53741         * config/mkinstalldirs, install-sh: update from automake.
53742
53743 2004-02-06  Karl Berry  <karl@gnu.org>
53744
53745         * m4/po.m4: update from gettext 0.14.1.
53746
53747 2004-02-06  Karl Berry  <karl@gnu.org>
53748
53749         * lib/config.charset: update from gettext 0.14.1.
53750
53751 2004-02-05  Paul Eggert  <eggert@twinsun.com>
53752
53753         Add comments and code, prompted by suggestions from Bruno Haible
53754         for sh-quote.
53755         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
53756         describing the enum quoting_style values.
53757         * lib/quotearg.c (quotearg_alloc): New function.
53758         (quotearg_buffer_restyled): Treat lone { and } as special.
53759         Treat = as special.  Work around bug with older shells
53760         that "see" a '\' that is really the 2nd byte of a multibyte char.
53761         Quote empty string with shell_quoting_style.
53762
53763 2004-02-03  Bruno Haible  <bruno@clisp.org>
53764
53765         * m4/pipe.m4: New file, from GNU gettext.
53766
53767 2004-02-03  Bruno Haible  <bruno@clisp.org>
53768
53769         * lib/pipe.h: New file, from GNU gettext.
53770         * lib/pipe.c: New file, from GNU gettext.
53771
53772 2004-01-27  Bruno Haible  <bruno@clisp.org>
53773
53774         * m4/execute.m4: New file, from GNU gettext.
53775
53776 2004-01-27  Bruno Haible  <bruno@clisp.org>
53777
53778         * lib/execute.h: New file, from GNU gettext.
53779         * lib/execute.c: New file, from GNU gettext.
53780         * lib/w32spawn.h: New file, from GNU gettext.
53781
53782 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53783
53784         Merge from diffutils.
53785
53786         * lib/file-type.c (file_type): Add typed memory objects.
53787         * lib/file-type.h (S_TYPEISTMO): New macro.
53788
53789         * lib/c-stack.h (c_stack_action): Remove argv argument.
53790         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
53791         (die): Don't calculate message unless segv_action returns.
53792         (get_stack_location, min_address_from_argv, max_address_from_argv,
53793         volatile stack_base, volatile_stack_size): Remove.
53794         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
53795         that every segmentation violation is a stack overflow.  (Ouch!)
53796         See Debian bug 136249 (still outstanding) for more info about why
53797         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
53798
53799 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53800
53801         Exit-status fix from coreutils.
53802
53803         Use exit_failure consistently in place of EXIT_FAILURE,
53804         so that program exit statuses are consistent on failure.
53805
53806         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
53807         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
53808         * lib/argmatch.h: Comment fix to match the above.
53809         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
53810         Now a macro referring to exit_failure, instead of a separate
53811         variable.  Include "exitfail.h" to get it.
53812         * lib/xstrtol.h: Include "exitfail.h".
53813         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
53814
53815         * lib/long-options.c (parse_long_options): Use prototype
53816         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
53817         for clarity.
53818
53819 2004-01-21  Jim Meyering  <jim@meyering.net>
53820
53821         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
53822         so as not to conflict with a different-sized __mktime_internal
53823         function in GNU libc.
53824         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
53825         Problem building statically-linked `ls' reported by Michael Brunnbauer.
53826
53827 2004-01-20  Karl Berry  <karl@gnu.org>
53828
53829         * config/config.guess: update from config.
53830
53831         * config/srclistvars.sh: GNUWWWLICENSES for karl.
53832
53833 2004-01-20  Bruno Haible  <bruno@clisp.org>
53834
53835         Safer stack allocation.
53836         * lib/setenv.c: Include allocsa.h.
53837         (alloca): Remove fallback definition.
53838         (freea): Remove macro.
53839         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
53840         instead of freea.
53841
53842 2004-01-20  Bruno Haible  <bruno@clisp.org>
53843
53844         * m4/eealloc.m4: New file, from GNU gettext.
53845
53846 2004-01-20  Bruno Haible  <bruno@clisp.org>
53847
53848         * m4/allocsa.m4: New file, from GNU gettext.
53849
53850 2004-01-20  Bruno Haible  <bruno@clisp.org>
53851
53852         * lib/xallocsa.h: New file, from GNU gettext.
53853         * lib/xallocsa.c: New file, from GNU gettext.
53854
53855 2004-01-20  Bruno Haible  <bruno@clisp.org>
53856
53857         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
53858
53859 2004-01-20  Bruno Haible  <bruno@clisp.org>
53860
53861         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
53862         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
53863         specially.
53864
53865 2004-01-20  Bruno Haible  <bruno@clisp.org>
53866
53867         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
53868         patch.
53869
53870 2004-01-20  Bruno Haible  <bruno@clisp.org>
53871
53872         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
53873
53874 2004-01-20  Bruno Haible  <bruno@clisp.org>
53875
53876         * lib/eealloc.h: New file.
53877
53878 2004-01-20  Bruno Haible  <bruno@clisp.org>
53879
53880         * lib/binary-io.h: Avoid warnings on Cygwin.
53881
53882 2004-01-20  Bruno Haible  <bruno@clisp.org>
53883
53884         * lib/allocsa.h: New file, from GNU gettext.
53885         * lib/allocsa.c: New file, from GNU gettext.
53886
53887 2004-01-18  Karl Berry  <karl@gnu.org>
53888
53889         * doc/gpl.texi, doc/lgpl.texi: new files.
53890
53891 2004-01-18  Karl Berry  <karl@gnu.org>
53892
53893         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
53894         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
53895
53896 2004-01-15  Paul Eggert  <eggert@twinsun.com>
53897
53898         Merge from coreutils.
53899
53900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
53901         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
53902         (gl_DEFAULT_POSIX2_VERSION): Move
53903         the documentation from 'configure' into 'config.hin',
53904         so that 'configure --help' isn't burdened by it and
53905         we don't have to worry about its formatting there.
53906         Reword the documentation so that it's more succinct
53907         and can be run together into a single paragraph.
53908         * m4/same.m4 (gl_SAME): Check for pathconf.
53909
53910 2004-01-15  Paul Eggert  <eggert@twinsun.com>
53911
53912         Merge from coreutils.
53913
53914         * lib/posixver.c: Include posixver.h.
53915
53916         * lib/same.c: Include <stdbool.h>, <limits.h>.
53917         (_POSIX_NAME_MAX): Define if not defined.
53918         (MIN): New macro.
53919         (same_name): If file names are silently truncated, report
53920         that the file names are the same if they are the same after
53921         the silent truncation.
53922
53923         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
53924         conversion function.
53925         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
53926         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
53927         longer needed.
53928
53929 2004-01-15  Jim Meyering  <jim@meyering.net>
53930
53931         Merge from coreutils.
53932
53933         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
53934         if no library is required.
53935         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
53936         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
53937         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
53938         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
53939         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
53940         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
53941         value, $ac_cv_search_crypt, if it's "none required".
53942         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
53943         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
53944         not gl_FUNC_GETLOADAVG.
53945         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
53946         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
53947
53948 2004-01-15  Jim Meyering  <jim@meyering.net>
53949
53950         Merge from coreutils.
53951
53952         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
53953         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
53954         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
53955
53956         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
53957         optional configure-time default.
53958
53959         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53960
53961         * lib/xreadlink.c (xreadlink): Correct outdated comment.
53962
53963 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
53964
53965         Merge from coreutils.
53966
53967         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
53968         value, $ac_cv_search_nanosleep, if it's "none required".
53969
53970 2004-01-14  Paul Eggert  <eggert@twinsun.com>
53971
53972         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
53973         with like-named macro in fnmatch.c.
53974         (EXT): Use an internal constant instead.
53975
53976         Merge fnmatch patches from glibc.
53977         * lib/fnmatch.c (mbsinit): Remove define.
53978         Add libc_hidden_ver (__fnmatch, fnmatch).
53979         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
53980         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
53981
53982 2004-01-14  Karl Berry  <karl@gnu.org>
53983
53984         * config/install-sh: update from automake.
53985
53986 2004-01-13  Karl Berry  <karl@gnu.org>
53987
53988         * config/install-sh: update from automake.
53989
53990 2004-01-09  Karl Berry  <karl@gnu.org>
53991
53992         * config/install-sh: update from automake.
53993
53994 2004-01-05  Karl Berry  <karl@gnu.org>
53995
53996         * config/config.{sub,guess}: update from config.
53997
53998 2003-12-31  Karl Berry  <karl@gnu.org>
53999
54000         * config/depcomp: update from automake.
54001
54002 2003-12-14  Karl Berry  <karl@gnu.org>
54003
54004         * lib/config.charset: update from gettext-runtime.
54005
54006 2003-12-03  Paul Eggert  <eggert@twinsun.com>
54007
54008         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54009         Bug reported by Alfred M. Szmidt.
54010
54011 2003-12-03  Bruno Haible  <bruno@clisp.org>
54012
54013         * m4/gettext.m4: Upgrade from gettext-0.13.
54014         * m4/po.m4: Upgrade from gettext-0.13.
54015         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54016         * m4/intmax.m4: New file, from gettext-0.13.
54017         * m4/printf-posix.m4: New file, from gettext-0.13.
54018
54019 2003-11-29  Karl Berry  <karl@gnu.org>
54020
54021         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54022
54023 2003-11-25  Paul Eggert  <eggert@twinsun.com>
54024             Bruno Haible  <bruno@clisp.org>
54025
54026         * lib/printf-parse.h: Don't include sys/types.h.
54027         (ARG_NONE): New macro.
54028         (char_directive): Change type of *arg_index fields to size_t.
54029         * lib/printf-parse.c: Don't include sys/types.h.
54030         (SSIZE_MAX): Remove macro.
54031         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54032         Remove unnecessary overflow check.
54033         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54034         fields.
54035
54036 2003-11-25  Bruno Haible  <bruno@clisp.org>
54037
54038         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54039
54040 2003-11-25  Bruno Haible  <bruno@clisp.org>
54041
54042         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54043         gt_TYPE_SSIZE_T.
54044
54045 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54046
54047         * modules/alloca: Remove dependency on xalloc.
54048
54049 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54050
54051         * lib/alloca.c: Remove dependency on xalloc module.
54052         (xalloc_die): Remove.
54053         (memory_full) [!defined emacs]: New macro.
54054         [!defined emacs]: Don't include xalloc.h.
54055         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54056         address arithmetic overflows.  Change datatypes a bit to avoid
54057         unnecessary casts.
54058
54059 2003-11-22  Jim Meyering  <jim@meyering.net>
54060
54061         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54062         s/size/size_t/.
54063
54064 2003-11-21  Karl Berry  <karl@gnu.org>
54065
54066         * config/config.{sub,guess}: update from config.
54067
54068 2003-11-18  Karl Berry  <karl@gnu.org>
54069
54070         * config/config.{sub,guess}: update from config.
54071
54072         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54073
54074 2003-11-17  Paul Eggert  <eggert@twinsun.com>
54075
54076         * README: Mention that S+T cannot overflow if S is the size of
54077         an existing object and T is sufficiently small.
54078
54079 2003-11-17  Jim Meyering  <jim@meyering.net>
54080
54081         On systems without utime and without a utimes function capable of
54082         dealing with a NULL struct utimbuf* argument, this utime replacement
54083         could -- in unusual circumstances -- leak a file descriptor.
54084         * lib/utime.c: Include <unistd.h> and <errno.h>.
54085         (utime_null): Be sure to close `fd' and to preserve errno.
54086         Reported by Geoff Collyer via Arnold Robbins.
54087
54088 2003-11-17  Bruno Haible  <bruno@clisp.org>
54089
54090         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54091         (Depends-on): Add xsize.
54092
54093 2003-11-17  Bruno Haible  <bruno@clisp.org>
54094
54095         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54096
54097 2003-11-17  Bruno Haible  <bruno@clisp.org>
54098
54099         * lib/vasnprintf.c (alloca): Remove fallback definition.
54100         (freea): Remove definition.
54101         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54102         Reported by Paul Eggert.
54103
54104 2003-11-16  Paul Eggert  <eggert@twinsun.com>
54105             Bruno Haible  <bruno@clisp.org>
54106
54107         Protect against address arithmetic overflow.
54108         * lib/printf-args.h: Include stddef.h.
54109         (arguments): Change type of field 'count' to size_t.
54110         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54111         'unsigned int' where appropriate.
54112         * lib/printf-parse.h: Include sys/types.h.
54113         (char_directive): Change type of *arg_index fields to ssize_t.
54114         (char_directives): Change type of fields 'count', max_*_length to
54115         size_t.
54116         * lib/printf-parse.c: Include sys/types.h and xsize.h.
54117         (SSIZE_MAX): Define fallback value.
54118         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54119         instead of 'int' where appropriate. Check a_allocated, d_allocated
54120         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54121         * lib/vasnprintf.c: Include xsize.h.
54122         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54123         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54124         overflow. Avoid wraparound when converting a width or precision from
54125         decimal to binary.
54126
54127 2003-11-16  Bruno Haible  <bruno@clisp.org>
54128
54129         Update from GNU gettext.
54130         * lib/printf-parse.c: Generalize to it can be compiled for wide
54131         strings.
54132         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54133         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54134         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54135         SNPRINTF): New macros.
54136         Don't include <alloca.h> if the file is used inside libintl.
54137         (local_wcslen): New function, for Solaris 2.5.1.
54138         (VASNPRINTF): Use it instead of wcslen.
54139
54140 2003-11-16  Bruno Haible  <bruno@clisp.org>
54141
54142         * lib/xsize.h (xmax): New function.
54143         (xsum, xsum3, xsum4): Declare as "pure" functions.
54144
54145 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54146
54147         * modules/xalloc (Files): Undo latest change, since xalloc.h
54148         no longer needs SIZE_MAX or PTRDIFF_MAX.
54149
54150 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54151
54152         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54153         gl_PTRDIFF_MAX.
54154
54155 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54156
54157         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54158         "return", to pacify some unknown compiler.  Problem reported
54159         by Joerg Schilling.
54160
54161 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54162
54163         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54164         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54165         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
54166         heuristic is just as accurate as far as we know, and it removes a
54167         dependency on size_max.m4 and ptrdiff_max.m4.
54168
54169 2003-11-11  Bruno Haible  <bruno@clisp.org>
54170
54171         * modules/xsize (Files): Add m4/size_max.m4.
54172         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54173
54174 2003-11-11  Bruno Haible  <bruno@clisp.org>
54175
54176         * m4/size_max.m4: New file.
54177         * m4/ptrdiff_max.m4: New file.
54178         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54179         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54180         (gl_XALLOC): Invoke it.
54181
54182 2003-11-11  Bruno Haible  <bruno@clisp.org>
54183
54184         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54185         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54186         defined.
54187
54188 2003-11-10  Paul Eggert  <eggert@twinsun.com>
54189
54190         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54191         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54192         rejected some allocations of exactly SIZE_MAX - 2 bytes.
54193         From Bruno Haible.
54194         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54195         not (size_t) -1, since it's defined here.
54196
54197 2003-11-09  Karl Berry  <karl@gnu.org>
54198
54199         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54200
54201 2003-11-06  Paul Eggert  <eggert@twinsun.com>
54202
54203         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54204         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54205         Reject sizes of exactly SIZE_MAX bytes.
54206         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54207         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54208
54209 2003-11-05  Bruno Haible  <bruno@clisp.org>
54210
54211         * lib/xsize.h: Include limits.h, to avoid a possible collision with
54212         SIZE_MAX defined in <limits.h> on Solaris.
54213
54214 2003-11-04  Jim Meyering  <jim@meyering.net>
54215
54216         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54217         variable names, rather than @VAR@.
54218         * modules/poll: Likewise.
54219
54220 2003-11-04  Bruno Haible  <bruno@clisp.org>
54221
54222         * modules/xsize: New file.
54223         * modules/linebreak: Depend on xsize.
54224         * MODULES.html.sh (func_all_modules): Add xsize.
54225
54226 2003-11-04  Bruno Haible  <bruno@clisp.org>
54227
54228         * m4/xsize.m4: New file.
54229
54230 2003-11-04  Bruno Haible  <bruno@clisp.org>
54231
54232         * lib/xsize.h: New file.
54233         * lib/linebreak.c: Include xsize.h.
54234         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54235         argument for overflow.
54236         Suggested by Paul Eggert.
54237
54238 2003-11-03  Karl Berry  <karl@gnu.org>
54239
54240         * config/config.{guess,sub}: update from config.
54241
54242 2003-11-03  Jim Meyering  <jim@meyering.net>
54243
54244         * modules/userspec (lib_SOURCES): Add userspec.h.
54245         (Include): Add "userspec.h".
54246         Improve description.
54247
54248 2003-11-03  Jim Meyering  <jim@meyering.net>
54249
54250         * lib/userspec.c: Include "userspec.h".
54251         * lib/userspec.h: New file.
54252
54253 2003-11-03  Bruno Haible  <bruno@clisp.org>
54254
54255         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54256
54257 2003-11-03  Bruno Haible  <bruno@clisp.org>
54258
54259         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54260         available, to avoid (extremely rare) race condition.
54261         Suggested by Paul Eggert.
54262
54263 2003-11-02  Karl Berry  <karl@gnu.org>
54264
54265         * config/srclist.txt (vasprintf.c): sync broken, sigh.
54266
54267 2003-10-31  Paul Eggert  <eggert@twinsun.com>
54268
54269         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54270         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54271         (read_filesystem_list): Set and use me_type_malloced.
54272         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54273         whatever the type happens to be), for brevity and consistency.
54274         Check for size calculation overflow on Alphas running OSF/1.
54275
54276 2003-10-31  Jim Meyering  <jim@meyering.net>
54277
54278         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54279
54280         * lib/linebuffer.c: Include <string.h> for declaration of memset.
54281
54282 2003-10-30  Paul Eggert  <eggert@twinsun.com>
54283             Bruno Haible  <bruno@clisp.org>
54284
54285         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54286         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54287
54288 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54289
54290         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
54291         netbsd*-gnu*.  Suggested by Robert Millan.
54292
54293 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54294
54295         * modules/group-member: Depend on stdbool.
54296
54297 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54298
54299         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
54300
54301 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54302
54303         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
54304         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
54305         after the 'gnu' in these cases.  This fixes some bugs in the
54306         previous change, and is based on suggestions by Robert Millan.
54307
54308 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54309
54310         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
54311         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
54312         no longer needed.
54313         * lib/quotearg.c (quotearg_n_options): Use it.
54314         * lib/group-member.c: Include <stdbool.h>.
54315         (free_group_info): Arg is now const *; don't free arg.
54316         (get_group_info): Now returns bool and accepts struct group_info *,
54317         rather than returning a malloc'ed struct group_info *.
54318         All uses changed.  Check for overflow in internal size calculation.
54319
54320         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
54321         rather than xmalloc/xrealloc.
54322         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
54323         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
54324         conformance bug: the old code used a pointer after freeing the
54325         storage that it addressed.
54326         * lib/hash.c (hash_initialize): Simplify the code by using
54327         xalloc_oversized rather than doing it by hand.
54328         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
54329         the buffer preserved.  Use free and xmalloc instead.
54330         * lib/quotearg.c (quotearg_n_options): Likewise.
54331         Use a simpler test for size overflow.  Don't use xalloc_oversized
54332         because unsigned int might be wider than size_t (!); this suggests
54333         that we should switch from unsigned int to size_t for slot numbers.
54334
54335 2003-10-28  Paul Eggert  <eggert@twinsun.com>
54336
54337         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
54338         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
54339         NetBSD kernels.  Requested by Richard Stallman.
54340
54341 2003-10-27  Paul Eggert  <eggert@twinsun.com>
54342
54343         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
54344         to allocate the returned structure.  Do not allocate a subarray,
54345         as x2nrealloc will do that.
54346         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
54347         instead of xnrealloc.
54348         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
54349
54350 2003-10-27  Bruno Haible  <bruno@clisp.org>
54351
54352         * lib/stdbool_.h: Better support for BeOS.
54353
54354 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54355
54356         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
54357         now uses inline.
54358
54359 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54360
54361         * lib/xalloc.h (xalloc_oversized): New static inline function, for
54362         callers that want to do their own size-overflow checking.  Include
54363         <stdbool.h>, since xalloc_oversized returns bool.
54364         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
54365         to use xalloc_oversized.
54366
54367         Add two functions x2realloc, x2nrealloc, for programs that grow
54368         arrays dynamically by doubling their sizes.
54369         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
54370         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
54371         New functions.
54372
54373         Port to C99 semantics for 'inline' of external functions.
54374         Bug reported by Bruno Haible.
54375         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
54376         with the old contents of xnmalloc.
54377         (xnmalloc, xmalloc): Use it.
54378         (xnrealloc_inline): New static inline function,
54379         with the old contents of xnrealloc.
54380         (xnrealloc, xrealloc): Use it.
54381
54382         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
54383         that.
54384
54385 2003-10-26  Karl Berry  <karl@gnu.org>
54386
54387         * config/srclist.txt (COPYING.DOC): no longer available from
54388         /gd/gnuorg; don't know where the ultimate source is.
54389
54390 2003-10-25  Paul Eggert  <eggert@twinsun.com>
54391
54392         Fix several address-calculation bugs in the hash modules,
54393         plus some minor code cleanup.
54394
54395         * lib/hash.h: Include <stdbool.h>, for bool.
54396         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
54397         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
54398         hash_get_n_entries, hash_get_max_bucket_length,
54399         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
54400         hash_rehash): Use size_t rather than unsigned.
54401         * lib/hash.c (struct hash_table, hash_get_n_buckets,
54402         hash_get_n_buckets_used, hash_get_n_entries,
54403         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
54404         hash_get_entries, hash_do_for_each, hash_string, is_prime,
54405         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
54406         Likewise.
54407         (SIZE_MAX): Define if not defined.
54408         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
54409         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
54410         hash_print):
54411         Use const * when possible.
54412         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
54413         (check_tuning): Fix bug: if tuning parameters were very close to
54414         0 or 1, rounding errors could have caused subscript violations.
54415         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
54416         (hash_initialize): Add 'fail:' label
54417         to free table and return NULL, and use it to simplify code.
54418         Use calloc rather than clearing the storage ourself.
54419         (hash_initialize, hash_rehash): Check for arithmetic overflow in
54420         buffer size calculations.
54421         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
54422         Include <stddef.h>, for size_t.
54423         * lib/hash-pjw.c (hash_pjw): Likewise.
54424         Switch to method described by Bruno Haible.
54425         Include <limits.h>, for CHAR_BIT.
54426         (SIZE_BITS): New macro.
54427
54428 2003-10-23  Paul Eggert  <eggert@twinsun.com>
54429
54430         * m4/getline.m4 (AM_FUNC_GETLINE):
54431         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
54432         hosts.  Problem reported by Derek Robert Price in
54433         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
54434         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
54435         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
54436
54437 2003-10-21  Paul Eggert  <eggert@twinsun.com>
54438
54439         * lib/getndelim2.c (getndelim2): When size calculation overflows,
54440         ceiling the allocation at NMAX bytes rather than silently
54441         discarding input bytes before NMAX is reached.  This makes
54442         a difference only if NMAX exceeds SIZE_MAX / 2.
54443
54444         * lib/obstack.c: Merge from glibc.
54445         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
54446         Add libc_hidden_def (_obstack_newchunk).
54447         (_obstack_free) [! defined _LIBC]: Remove.
54448         [defined _LIBC]: Make a strong alias from obstack_free, rather than
54449         a clone of the function body.
54450         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
54451         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
54452
54453         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
54454         glibc.
54455         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
54456         arg to memcpy.
54457
54458         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
54459         (obstack_ptr_grow_fast, obstack_int_grow_fast):
54460         Don't use lvalue casts, as GCC plans to remove support for them
54461         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
54462         was also present in the non-GCC version, indicating that this
54463         code had always been buggy and had never been widely used.
54464         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
54465         Use the fast variant of each macro, rather than copying the
54466         definiens of the fast variant; that way, we'll be more likely to
54467         catch future bugs in the fast variants.
54468
54469 2003-10-20  Bruno Haible  <bruno@clisp.org>
54470
54471         * modules/wait-process: New file.
54472         * MODULES.html.sh (func_all_modules): Add wait-process.
54473
54474 2003-10-20  Bruno Haible  <bruno@clisp.org>
54475
54476         * m4/wait-process.m4: New file.
54477
54478 2003-10-20  Bruno Haible  <bruno@clisp.org>
54479
54480         * lib/wait-process.h: New file, from GNU gettext.
54481         * lib/wait-process.c: New file, from GNU gettext.
54482
54483 2003-10-19  Jim Meyering  <jim@meyering.net>
54484
54485         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
54486         HPUX 10.20.
54487
54488 2003-10-18  Karl Berry  <karl@gnu.org>
54489
54490         * config/config.guess: update from config.
54491
54492 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54493
54494         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
54495         (getgroups): First arg is int, not size_t.
54496         Don't let 'free' mangle errno.
54497
54498 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54499
54500         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
54501
54502 2003-10-16  Karl Berry  <karl@gnu.org>
54503
54504         * config/config.{guess,sub}: update from config.
54505
54506 2003-10-16  Jim Meyering  <jim@meyering.net>
54507
54508         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
54509         memcpy.
54510
54511 2003-10-15  Paul Eggert  <eggert@twinsun.com>
54512
54513         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
54514         (SIZE_MAX): Remove.
54515         (new_exclude, add_exclude_file): Initial size no longer needs to
54516         be a power of 2.
54517         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
54518         our own address arithmetic overflow checking.
54519
54520         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
54521         (fnmatch): Do not alloca more than 2000 wide characters;
54522         instead, use malloc for large buffers.
54523         Check for address arithmetic overflow, and return -1
54524         with errno set to ENOMEM in that case.
54525         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
54526         (NEW_PATTERN): Do not alloca more than 8000 bytes;
54527         instead, return -1.  Check for address arithmetic overflow.
54528
54529 2003-10-14  Paul Eggert  <eggert@twinsun.com>
54530
54531         Handle invalid suffixes and overflow independently, so that
54532         callers can treat them independently as needed.  Fix some bugs in
54533         suffix handling, e.g., "100k@" was not diagnosed as an invalid
54534         suffix for a human-readable blocksize.  The major caller-visible
54535         change is the addition of a new
54536         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
54537         that both overflow and suffix chars were found.
54538
54539         * lib/human.c (humblock): Don't check separately for invalid suffix
54540         char; that is xstrtoumax's job (now that its bug is fixed).
54541         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
54542         INTMAX_MAX]: New macros.
54543         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
54544         TYPE_MAXIMUM): New macros.
54545         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
54546         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
54547         if overflow occurs, as it's what __strtol does and it's more useful
54548         in practice.
54549         (__xstrtol): If __strtol reports some error other than ERANGE,
54550         reflect it to the caller as LONGINT_INVALID.  If it reports
54551         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
54552         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
54553         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
54554         value.
54555         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
54556         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
54557         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
54558         [defined UINTMAX_MAX]: New macros.
54559
54560 2003-10-14  Bruno Haible  <bruno@clisp.org>
54561
54562         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
54563
54564 2003-10-14  Bruno Haible  <bruno@clisp.org>
54565
54566         * m4/sig_atomic_t: New file, from GNU gettext.
54567         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
54568
54569 2003-10-14  Bruno Haible  <bruno@clisp.org>
54570
54571         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
54572         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
54573         Also use volatile where needed.
54574
54575 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54576
54577         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
54578         Change maintainer from Bruno Haible to 'all'.
54579
54580 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54581
54582         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
54583
54584 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54585
54586         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
54587         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
54588         and define in terms of the other primitives.
54589         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
54590         (SIZE_MAX): Define if not already defined.
54591         (array_size_overflow): New function.
54592         (xalloc_die): Abort instead of exiting if 'error' returns.
54593         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
54594         (xmalloc, xrealloc): Use them.
54595         (xcalloc): Check for address arithmetic overflow.
54596         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
54597         a bit faster than strcpy.
54598
54599 2003-10-10  Simon Josefsson  <jas@extundo.com>
54600
54601         * modules/argp (Depends-on): Add restrict and strcase.
54602
54603 2003-10-10  Simon Josefsson  <jas@extundo.com>
54604
54605         * m4/argp.m4: Add AC_C_INLINE.
54606
54607 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54608
54609         Merge getpass from libc, plus a few fixes.
54610
54611         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
54612         Include <stdbool.h>.
54613         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
54614         __fsetlocking to empty.
54615         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
54616         do include <bits/libc-lock.h>.
54617         Do not include <fcntl.h>; not needed.
54618         [_LIBC]: Include <wchar.h>.
54619         (NOTCANCEL_MODE): New macro.
54620         (flockfile, funlockfile) [_LIBC]: New macros.
54621         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
54622         [!_LIBC]: New macros.
54623         (call_fclose): New function.
54624         (getpass): Use it.  Save tty stream separately; this simplifies the
54625         code and makes it more reliable if stdin happens to equal stdout.
54626         Invoke __fsetlocking on tty.
54627         Handle thread cancellation if needed.
54628         Namespace cleanup (use __tcgetattr, __getline).
54629         Use bool for Booleans.
54630         [USE_IN_LIBIO]: Handle wide streams.
54631         [!_LIBC]: Unconditionally do the fseek, since we don't know what
54632         stream might go where.
54633
54634         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
54635         doesn't have to include <stdio.h> before us.
54636         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
54637         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
54638         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
54639         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
54640         if not declared, so that we can use getpass.c code from libc without
54641         rewriting it.
54642         (flockfile, ftrylockfile, funlockfile): New macros.
54643
54644 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54645
54646         * modules/getpass: Depend on stdbool.
54647
54648 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54649
54650         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
54651
54652 2003-10-07  Karl Berry  <karl@gnu.org>
54653
54654         * config/config.{guess,sub}: update from config.
54655
54656 2003-10-06  Jim Meyering  <jim@meyering.net>
54657             Bruno Haible  <bruno@clisp.org>
54658
54659         This lets translators provide better translations for the
54660         "Written by ..." part of --version output.
54661         * lib/version-etc.h: Include stdarg.h.
54662         (version_etc_copyright): Declare as readonly.
54663         (version_etc): Make this function variadic with a NULL-terminated list
54664         of author name strings.
54665         (version_etc_va): New declaration.
54666         * lib/version-etc.c: Include stdarg.h, stdlib.h.
54667         (version_etc_copyright): Declare as readonly.
54668         (version_etc_va): New function. Provide a different translatable string
54669         for each possible number of authors < 10. Abbreviate when there are 10
54670         authors or more.
54671         (version_etc): Make this function variadic. Call version_etc_va.
54672         Suggestion from Gary V. Vaughan.
54673
54674         * lib/long-options.h (parse_long_options): Change prototype: the
54675         authors string is moved to the end and becomes variadic.
54676         * lib/long-options.c: Include stdarg.h.
54677         (parse_long_options): Make this function variadic, too.
54678         Call version_etc_va, not version_etc.
54679
54680 2003-10-06  Bruno Haible  <bruno@clisp.org>
54681
54682         * modules/version-etc-2: Remove file.
54683         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
54684
54685 2003-10-06  Bruno Haible  <bruno@clisp.org>
54686
54687         * modules/fatal-signal: New file.
54688         * MODULES.html.sh (func_all_modules): Add fatal-signal.
54689
54690 2003-10-06  Bruno Haible  <bruno@clisp.org>
54691
54692         * m4/fatal-signal.m4: New file.
54693         * m4/signalblocking.m4: New file, from GNU gettext.
54694
54695 2003-10-06  Bruno Haible  <bruno@clisp.org>
54696
54697         * lib/version-etc-2.h: Remove file.
54698         * lib/version-etc-2.c: Remove file.
54699
54700 2003-10-06  Bruno Haible  <bruno@clisp.org>
54701
54702         * lib/fatal-signal.h: New file, from GNU gettext.
54703         * lib/fatal-signal.c: New file, from GNU gettext.
54704
54705 2003-10-05  Paul Eggert  <eggert@twinsun.com>
54706
54707         * README: Rework advice for preventing empty .o files.
54708         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
54709         not <sys/types.h>.
54710
54711 2003-10-04  Karl Berry  <karl@gnu.org>
54712
54713         * lib/argp*: update from libc.
54714
54715 2003-10-04  Karl Berry  <karl@gnu.org>
54716
54717         * config/config.{guess,sub}: update from config.
54718
54719 2003-10-02  Bruno Haible  <bruno@clisp.org>
54720
54721         * modules/lchown (Include): Add lchown.h.
54722         * modules/time_r (Include): Use "..." syntax.
54723         * modules/xgetdomainname (Include): Add xgetdomainname.h.
54724
54725 2003-10-01  Simon Josefsson  <jas@extundo.com>
54726
54727         * MODULES.html.sh (func_all_modules): Move gethostname from section
54728         'based on' to section 'lacking' POSIX:2001.
54729
54730 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
54731
54732         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
54733         to output mode on the same stream.
54734
54735 2003-09-29  Paul Eggert  <eggert@twinsun.com>
54736
54737         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
54738         Fix arg typo in previous patch.
54739
54740 2003-09-28  Jim Meyering  <jim@meyering.net>
54741
54742         * lib/error.c: Correct cpp indentation.
54743
54744 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54745
54746         * modules/free: New file.
54747
54748 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54749
54750         * m4/free.m4: New file.
54751
54752 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54753
54754         * lib/minmax.h (MIN, MAX)
54755         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
54756         Omit the special code that used __typeof__, since we worry that
54757         it could be more trouble than it's worth.  See:
54758         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
54759         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
54760
54761         * lib/free.c: New file.
54762
54763 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
54764
54765         Trivial fixes to Makefile.am parts of module listings.
54766         * modules/strstr: Append strstr.h to lib_SOURCES.
54767         * modules/strcase: Likewise, for strcase.h.
54768
54769 2003-09-27  Karl Berry  <karl@gnu.org>
54770
54771         * config/mkinstalldirs: update from automake.
54772
54773 2003-09-26  Paul Eggert  <eggert@twinsun.com>
54774
54775         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
54776         (error_tail): Do not loop, reallocating temporary buffer, since
54777         the output cannot contain more wide characters than the input
54778         contains bytes, the size must be big enough already.  This avoids
54779         one potential size overflow calculation.  Check for size overflow
54780         when calculating temporary buffer size.  Free temporary buffer
54781         when done, if it was allocated with malloc; this plugs a memory
54782         leak.  Remove casts from void * to pointers, that are no longer
54783         needed now that we're assuming C89 or better.
54784
54785         Merge error changes from glibc.
54786
54787         * lib/error.c, error.h: Update copyright notice header to match glibc.
54788         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
54789         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
54790         Disable cancellation while printing error.
54791         * lib/error.h: Prepend __ to parameter names.
54792
54793 2003-09-26  Jim Meyering  <jim@meyering.net>
54794
54795         * lib/error.c (error_tail): Move some declarations
54796         into inner scope where the local variables are used.
54797
54798 2003-09-26  Bruno Haible  <bruno@clisp.org>
54799
54800         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
54801         stpncpy().
54802         Don't define stpncpy through config.h; it's now done through stpncpy.h.
54803
54804 2003-09-26  Bruno Haible  <bruno@clisp.org>
54805
54806         * lib/stpncpy.h (gnu_stpncpy): New declaration.
54807         (stpncpy): Define as alias for gnu_stpncpy.
54808         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
54809
54810 2003-09-25  Simon Josefsson  <jas@extundo.com>
54811
54812         * lib/xgetdomainname.h: New file.
54813         * lib/xgetdomainname.c: New file.
54814
54815 2003-09-25  Simon Josefsson  <jas@extundo.com>
54816             Bruno Haible  <bruno@clisp.org>
54817
54818         * modules/getdomainname: New file.
54819         * modules/xgetdomainname: New file.
54820         * MODULES.html.sh (func_all_modules): Add getdomainname,
54821         xgetdomainname.
54822
54823 2003-09-25  Simon Josefsson  <jas@extundo.com>
54824             Bruno Haible  <bruno@clisp.org>
54825
54826         * m4/getdomainname.m4: New file.
54827
54828 2003-09-25  Simon Josefsson  <jas@extundo.com>
54829             Bruno Haible  <bruno@clisp.org>
54830
54831         * lib/getdomainname.h: New file.
54832         * lib/getdomainname.c: New file.
54833
54834 2003-09-25  Karl Berry  <karl@gnu.org>
54835
54836         * lib/argp-fmtstream.c, argp-help.c: update from libc.
54837
54838 2003-09-25  Karl Berry  <karl@gnu.org>
54839
54840         * config/install-sh: update from automake.
54841
54842 2003-09-25  Bruno Haible  <bruno@clisp.org>
54843
54844         * modules/version-etc-2: New file, from modules/version-etc with
54845         modifications.
54846         * MODULES.html.sh (func_all_modules): Add version-etc-2.
54847
54848 2003-09-25  Bruno Haible  <bruno@clisp.org>
54849
54850         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
54851         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
54852
54853 2003-09-24  Simon Josefsson  <jas@extundo.com>
54854
54855         * modules/xgethostname: Add xgethostname.h.
54856
54857 2003-09-24  Paul Eggert  <eggert@twinsun.com>
54858
54859         * lib/linebuffer.c (freebuffer): Don't free the argument, just
54860         the buffer associated with the argument.  Bug reported by
54861         Simon Josefsson.
54862
54863 2003-09-24  Paul Eggert  <eggert@twinsun.com>
54864
54865         * README: Document assumptions that 'int' is at least 32 bits
54866         wide, that integer arithmetic is 2's complement without overflow,
54867         that there are no holes in integer values, that adding sizes of
54868         two nonoverlapping objects can't overflow, and that all-bits-zero
54869         yields scalar zero.  Fix spelling and capitalization typos.
54870
54871 2003-09-19  Karl Berry  <karl@gnu.org>
54872
54873         * lib/argp.h: update from libc.
54874
54875 2003-09-17  Paul Eggert  <eggert@twinsun.com>
54876
54877         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
54878         to avoid spurious warnings like "AC_RUN_IFELSE was called before
54879         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
54880
54881 2003-09-17  Paul Eggert  <eggert@twinsun.com>
54882
54883         * gnulib-tool: Use "test -h", not "test -L", for portability
54884         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
54885         (tags_regexp): Remove, since \| doesn't conform to POSIX.
54886         (sed_extract_prog): Issue s commands one-by-one, rather than
54887         using \| in one s command.
54888
54889 2003-09-16  Paul Eggert  <eggert@twinsun.com>
54890
54891         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
54892         input error, instead of returning NULL the next time we are called
54893         (and therefore losing track of errno).
54894
54895 2003-09-16  Bruno Haible  <bruno@clisp.org>
54896
54897         * gnulib-tool (func_create_testdir): Warn about duplicated
54898         dependencies.
54899
54900 2003-09-15  Paul Eggert  <eggert@twinsun.com>
54901
54902         * modules/argmatch, modules/fatal, modules/obstack,
54903         modules/xalloc, modules/xgethostname: Sort dependencies by
54904         importance, not alphabetically.
54905
54906 2003-09-15  Paul Eggert  <eggert@twinsun.com>
54907
54908         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
54909         fails, so that the caller gets the proper errno.
54910
54911         * lib/readutmp.c (read_utmp): Likewise.
54912         Check for fstat error.  Close stream and free storage
54913         when failing.
54914
54915 2003-09-14  Karl Berry  <karl@gnu.org>
54916
54917         * config/srclist.txt (strdup.c): disable for c89 changes.
54918
54919 2003-09-14  Jim Meyering  <jim@meyering.net>
54920
54921         * lib/getloadavg.c: Correct cpp indentation.
54922         * lib/strdup.c: Likewise.
54923         * lib/vasnprintf.c: Likewise.
54924
54925 2003-09-14  Bruno Haible  <bruno@clisp.org>
54926
54927         * modules/fwriteerror: New file.
54928         * MODULES.html.sh (func_all_modules): Add fwriteerror.
54929
54930 2003-09-14  Bruno Haible  <bruno@clisp.org>
54931
54932         * lib/fwriteerror.h: New file.
54933         * lib/fwriteerror.c: New file.
54934
54935 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54936
54937         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
54938         modules/xgethostname, modules/xalloc: Depend on exit.
54939
54940 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54941
54942         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
54943
54944         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
54945         and AC_MINIX, too, so that their extensions are available.
54946
54947         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
54948         This macro has been superseded by gl_BACKUPFILE.
54949
54950         More patches to assume C89 or better.
54951
54952         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
54953
54954         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
54955         unconditionally.
54956         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
54957         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
54958         Include <string.h>, <stdlib.h> unconditionally.
54959         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
54960         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
54961         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
54962         headers or for string.h.
54963         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
54964         or strtoul.
54965
54966         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
54967         headers.
54968         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
54969         * m4/userspec.m4 (gl_USERSPEC): Likewise.
54970         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
54971         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
54972         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54973         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
54974         memcpy, memset.
54975         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
54976         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
54977         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
54978         strtol.
54979         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
54980         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
54981         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
54982         strtoul.
54983
54984 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54985
54986         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
54987         * lib/obstack.c [!defined _LIBC]: Likewise.
54988         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
54989         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
54990         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
54991
54992         More changes to assume C89 or better.
54993
54994         * lib/error.c (error_tail): Assume vprintf.
54995
54996         * lib/argmatch.c (getenv): Remove decl.
54997         * lib/progreloc.c (get_full_program_name): Define via prototype.
54998         * lib/setenv.c (clearenv): Likewise.
54999         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55000         needed.
55001         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55002         (malloc, memcpy): Remove decls.
55003         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55004         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55005         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55006         (memcpy): Remove macro.
55007         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55008         (__P): Remove.  All uses removed.
55009         (PTR): Remove.  All uses changed to void *.
55010         (CHAR_BIT, NULL): Remove.
55011         (spaces, zeros, memset_space, memset_zero)
55012         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55013         Remove.
55014         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55015         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55016         Define with prototype.
55017         Remove now-unnecessary prototype decl.
55018         (extra_args_spec): Assume ANSI C.  All uses changed.
55019         (extra_args_spec_iso): Remove.
55020         (my_strftime, emacs_strftimeu): Define via prototype.
55021         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55022         unconditionally.
55023         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55024         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55025         (strtoul, strtol): Remove decls.
55026         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55027         LONG_MAX): Remove.
55028         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55029         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
55030         (LOCALE_PARAM_PROTO): New macro.
55031         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55032         (INTERNAL (strtol), strtol): Define with a prototype.
55033         (PARAMS): Remove.  All uses removed.
55034         * lib/tempname.c: Include <string.h> unconditionally.
55035         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55036         * lib/xgethostname.c (main): Define with a prototype.
55037         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55038         Include <stdlib.h> unconditionally.
55039         (calloc, malloc, realloc, free): Remove decls.
55040         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55041         Include <stdlib.h> unconditionally.  Sort include file names.
55042         (strtod): Remove.
55043         (xstrtod): Define with a prototype.
55044         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55045         (strtol, strtoul): Remove decls.
55046
55047 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55048
55049         More patches to assume C89 or better.
55050         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55051         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55052         string.h, memchr, STDC_HEADERS.
55053
55054 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55055
55056         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55057         Include <stdlib.h>, <string.h> unconditionally.
55058         Remove now-unnecessary cast to char *.
55059         * lib/strnlen.c: Include <string.h> unconditionally.
55060         * lib/yesno.c (yesno): Define with a prototype.
55061
55062 2003-09-11  Bruno Haible  <bruno@clisp.org>
55063
55064         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55065
55066 2003-09-10  Jim Meyering  <jim@meyering.net>
55067
55068         * lib/error.c: Correct indentation of cpp directives.
55069
55070 2003-09-10  Bruno Haible  <bruno@clisp.org>
55071
55072         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55073         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55074         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55075         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55076         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55077         <stdlib.h> and <string.h> checks.
55078         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55079         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55080
55081 2003-09-10  Bruno Haible  <bruno@clisp.org>
55082
55083         * lib/strcspn.c: Include <string.h> unconditionally.
55084         * lib/strpbrk.c: Include <string.h> unconditionally.
55085         * lib/strstr.c: Include <string.h> unconditionally.
55086         * lib/unicodeio.c: Include <string.h> unconditionally.
55087         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55088         * lib/unsetenv.c: Likewise.
55089         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55090         * lib/yesno.c: Include <stdlib.h> unconditionally.
55091         (rpmatch): Add prototype.
55092
55093 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55094
55095         More patches to assume C89 or better.
55096         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55097         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55098         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55099         or for string.h.
55100         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55101         stdlib.h.
55102         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55103         C headers.
55104         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55105         string.h.
55106         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55107         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55108         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55109         or for string.h.
55110         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55111         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55112         C headers.
55113         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55114         memcpy.
55115         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55116         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55117         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55118         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55119         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55120         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55121         string.h, free.
55122         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55123         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55124         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55125         C headers, or for string.h.
55126         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55127         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55128         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55129         headers, memory.h, stdlib.h, string.h, strings.h.
55130         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55131         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55132         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55133         strchr.
55134         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55135         headers, memory.h, string.h.
55136         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55137         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55138         free.
55139         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55140         headers.
55141         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55142         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55143         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55144         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55145         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55146
55147 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55148
55149         More K&R removal.
55150
55151         * lib/acosl.c (main): Use a prototype.
55152         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55153         tanl.c: Likewise.
55154
55155         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55156
55157         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55158         (getopt, etopt_long, getopt_long_only, _getopt_internal)
55159         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55160         with a prototype.
55161         * lib/getopt.c (const): Remove macro.
55162         Include <string.h> unconditionally.
55163         (my_index): Remove; all uses changed to strchr.
55164         (strlen): Remove decl.
55165         (exchange): Remove forward decl; no longer needed.
55166         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55167         Define with prototype.
55168         * lib/getopt1.c (const): Remove macro.
55169         (getopt_long, getopt_long_only, main): Define with prototype.
55170
55171         * lib/getugroups.c: Include <string.h> unconditionally.
55172
55173         * lib/getusershell.c: Include <stdlib.h> unconditionally.
55174         (getusershell, setusershell, endusershell, readname, main):
55175         Define with prototypes.
55176
55177         * lib/group-member.c: Include group-member.h first.
55178         Include <stdlib.h> unconditionally.
55179
55180         * lib/hard-locale.c: Include hard-locale.h first.
55181         Include <stdlib.h>, <string.h> unconditionally.
55182
55183         * lib/hash.c (free, malloc): Remove decls.
55184         Include <stdlib.h> unconditionally.
55185
55186         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55187         (getenv): Do not declare.
55188
55189         * lib/idcache.c: Include <string.h> unconditionally.
55190
55191         * lib/long-options.c: Include long-options.h first, to test interface.
55192         Include <stdlib.h> unconditionally.
55193
55194         * lib/makepath.c: Include makepath.h first, to test interface.
55195         Include <stdlib.h> and <string.h> unconditionally.
55196
55197         * lib/linebuffer.c: Include <stdlib.h>.
55198         (free): Remove decl.
55199
55200         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55201         stddef.h. rpl_malloc returns void *, not char *.
55202         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
55203         prototype.
55204
55205         * lib/md5.h: Include <limits.h> unconditionally.
55206         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55207         (__P): Remove; all uses removed.
55208         * lib/md5.c: Include "md5.h" first.
55209         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55210         md5_buffer, md5_process_bytes, md5_process_block):
55211         Define with prototypes.
55212         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
55213         * lib/sha.c: Include "sha.h" first.
55214         Include <stdlib.h>, <string.h> unconditionally.
55215
55216         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55217         * lib/memcmp.c (__ptr_t): Likewise.
55218         * lib/memrchr.c (__ptr_t): Likewise.
55219         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55220         Include <string.h> unconditionally.
55221         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55222         * lib/memchr.c: Include <stdlib.h> unconditionally.
55223         * lib/memchr.c (LONG_MAX): Remove.
55224         * lib/memrchr.c (LONG_MAX): Likewise.
55225         * lib/memchr.c (__memchr): Define via a prototype.
55226         * lib/memrchr.c (__memrchr): Likewise.
55227         * lib/memcmp.c (__P): Remove, and remove all uses.
55228         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55229         Remove forward decls; no longer needed.
55230         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55231         Use types required by C89 in prototype.
55232
55233         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55234         * lib/savedir.c: Likewise.
55235         * lib/mkdir.c (free): Remove decl.
55236         * lib/rmdir.c (rmdir): Define with a prototype.
55237         * lib/savedir.c: Include savedir.h first, to test interface.
55238
55239         * lib/mktime.c (STDC_HEADERS): Remove.
55240         Include <stdlib.h>, <string.h> unconditionally.
55241
55242         * lib/modechange.c: Include <stdlib.h> unconditionally.
55243         (malloc): Remove decl.
55244
55245         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55246         (free): Remove decl.
55247
55248         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55249         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55250         (This type really should be intptr_t, but that's a C99ism.)
55251         (_obstack_memcpy): Remove: all uses changed to memcpy.
55252         Include <string.h> unconditionally.
55253         (struct obstack): Assume __STDC__ for types of members
55254         chunkfun, freefun, extra_arg.
55255         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55256         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55257         obstack_begin, obstack_specify_allocation,
55258         obstack_specify_allocation_with_arg, obstack_chunkfun,
55259         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55260         Remove unprototyped decls and the macros that use them.
55261         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
55262         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55263         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55264         (defined __STDC__ && __STDC__)]:
55265         Remove nonprototyped code.
55266         Include <stdlib.h> unconditionally.
55267         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55268         _obstack_allocated_p, _obstack_free, obstack_free,
55269         _obstack_memory_used, print_and_abort):
55270         Define using prototypes.
55271         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55272         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55273         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55274         obstack_next_free, obstack_object_size, obstack_room) [0]:
55275         Remove unused, unprototyped code.
55276
55277         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55278
55279         * lib/physmem.c (physmem_total, physmem_available, main): Define
55280         with prototypes.
55281
55282         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55283         (main): Define with a prototype.
55284
55285         * lib/posixver.c (getenv): Remove decl.
55286
55287         * lib/putenv.c (malloc): Returns void *, not char *.
55288         Include <string.h> unconditionally.
55289         (strchr, memcpy, NULL): Do not define.
55290
55291         * lib/readtokens.c: Include readtokens.h first, to test interface.
55292         Include <stdlib.h>, <string.h> unconditionally.
55293         (init_tokenbuffer): Define with a prototype.
55294
55295         * lib/regex.c (PARAMS): Remove.  All uses removed.
55296         All uses of _RE_ARGS removed, too.
55297         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55298         unconditionally.
55299         (bzero): Assume memset exists.
55300         (memcmp, memcpy, NULL): Remove.
55301         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
55302         char, or assignments to local vars of type signed char.
55303         (init_syntax_once, PREFIX(extract_number_and_incr),
55304         PREFIX(print_partial_compiled_pattern),
55305         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
55306         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
55307         PREFIX(regex_grow_registers), PREFIX(regex_compile),
55308         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
55309         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
55310         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
55311         wcs_compile_range, byte_compile_range, truncate_wchar,
55312         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
55313         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
55314         count_mbs_length, wcs_re_match_2_internal,
55315         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
55316         PREFIX(alt_match_null_string_p),
55317         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
55318         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
55319         regfree, PREFIX(extract_number)): Define with prototype.  Remove
55320         now-unnecessary declaration, if any.
55321         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
55322         regcomp, regexec):
55323         Remove now-unnecessary casts among pointer types.
55324         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
55325
55326         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
55327         (free): Remove decl.
55328
55329         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
55330
55331         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
55332         (free): Remove decl.
55333
55334         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
55335         * lib/xgetcwd.c: Likewise.
55336
55337         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
55338         (free): Remove decl.
55339
55340         * lib/strchrnul.c (strchrnul): Define with a prototype.
55341         Fix bug: c_in was not converted to char before searching.
55342
55343         The following changes are not K&R related:
55344
55345         * lib/group-member.h: Include <sys/types.h>, so that this file is
55346         self-contained.
55347         * lib/makepath.h: Likewise.
55348
55349         * lib/getusershell.c (readname, default_index, line_size, readname):
55350         Use size_t, not int, for sizes.
55351         (readname): If the size overflows, report an error instead of
55352         looping forever.
55353
55354 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55355
55356         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
55357         libc.
55358
55359 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55360
55361         * README: New section: portability guidelines.
55362
55363 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55364
55365         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
55366         C89 spec.
55367
55368 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55369
55370         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
55371
55372 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55373
55374         Assume C89 or better; remove K&R cruft.
55375         A few of these changes were first proposed by Derek Robert Price
55376         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
55377
55378         * lib/addext.c: Include <string.h> unconditionally.
55379         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
55380         Don't declare getenv or malloc.
55381
55382         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
55383         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
55384         (NULL): Remove.
55385         (find_stack_direction, alloca): Use prototypes.
55386
55387         * lib/atexit.c (atexit): Define using a prototype.
55388
55389         * lib/basename.c, dirname.c, stripslash.c:
55390         Include <string.h> unconditionally.
55391
55392         * lib/bcopy.c: Include <stddef.h>.
55393         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
55394
55395         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
55396
55397         * lib/error.h (error, error_at_line, error_print_progname)
55398         [! (defined (__STDC__) && __STDC__)]: Remove decls.
55399         * lib/error.c: Include error.h first, to check interface.
55400         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55401         (VA_START): Remove; all uses changeed to va_start.
55402         (exit, strerror): Remove decls.
55403         (error_print_progname): Prototype uncondionally.
55404         Don't include <errno.h>; no longer needed.
55405         (private_strerror): Remove.
55406         (error_tail): Always define.
55407         (error, error_at_line): Assume C89 or better; always use prototypes.
55408         * lib/fatal.c: Include "fatal.h" first, to test interface.
55409         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55410         (VA_START): Remove; all uses changed to va_start.
55411         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
55412         this case.
55413         (exit): Remove decl.
55414         (fatal): Prototype unconditionally.  Assume va_start works.
55415         Abort at end, to pacify gcc.
55416
55417         * lib/euidaccess.c (main): Define with a prototype.
55418
55419         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
55420
55421         * lib/exitfail.c: Include <stdlib.h> unconditionally.
55422
55423         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
55424         prototypes.
55425         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
55426         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
55427         (getenv): Remove decl.
55428         (fnmatch): Define using a prototype.
55429         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
55430         (FCT): Define using a prototype.
55431
55432         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
55433
55434         * lib/gethostname.c: Include <stddef.h>.
55435         (gethostname): Define with prototype.  Length is size_t, not int.
55436
55437 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55438
55439         Assume C89 or better; remove K&R cruft.
55440         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
55441         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
55442         string.h, getenv, malloc.
55443         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
55444         headers.
55445         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
55446         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
55447         do not check for strerror.
55448         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
55449         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
55450         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
55451         do not check for doprnt or vprintf.
55452         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
55453         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
55454
55455 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55456
55457         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
55458         getversion.c should have been removed then, but was accidentally
55459         preserved.
55460
55461         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
55462         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
55463
55464 2003-09-08  Karl Berry  <karl@gnu.org>
55465
55466         * config/config.sub, config.guess, srclistvars.sh: update from savannah
55467                 config, forget about prep.
55468
55469         * config/depcomp, missing: update from automake.
55470
55471 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55472
55473         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
55474         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55475
55476 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55477
55478         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
55479         copy_tm_result.  Bug reported by Simon Josefsson in
55480         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55481
55482 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55483
55484         * m4/time_r.m4: New file.
55485         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
55486         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
55487         is. Check for timegm declaration.
55488         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
55489         Do not check for gmtime_r.
55490         Replace mktime if __mktime_internal does not exist and if mktime
55491         hasn't been replaced already.
55492
55493 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55494
55495         * lib/time_r.c, lib/time_r.h: New files.
55496
55497         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
55498         __localtime_r.
55499         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
55500         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
55501
55502         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
55503         __gmtime_r.
55504         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
55505         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
55506         Include <time_r.h>.
55507
55508         * lib/timegm.c: Switch to glibc implementation, with the following
55509         changes:
55510         [defined HAVE_CONFIG_H]: Include <config.h>.
55511         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
55512         (__mktime_internal) [!defined _LIBC]: New decl.
55513         (__gmtime_r) [!defined _LIBC]: New macro and function.
55514         (timegm): Use a prototype, since gnulib assumes C89.
55515         Do not bother declaring tmp to be const, as it's not really usefu.
55516         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
55517         (timegm): Declare only if HAVE_DECL_TIMEGM.
55518
55519 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55520
55521         * MODULES.html.sh (func_all_modules): Add time_r.
55522         * modules/time_r: New file.
55523         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
55524         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
55525
55526 2003-09-03  Paul Eggert  <eggert@twinsun.com>
55527
55528         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
55529         Bug reported by Lute Kamstra in
55530         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
55531
55532         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
55533         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
55534         course with correspondingly smaller numbers for tomorrow and
55535         yesterday.  From Tadayoshi Funaba.  Originally installed into
55536         sh-utils on 1999-08-07, but the patch got lost (I guess during the
55537         coreutils merge?).
55538
55539 2003-08-31  Simon Josefsson  <jas@extundo.com>
55540
55541         * modules/timegm: New file.
55542         * MODULES.html.sh (func_all_modules): Add timegm.
55543
55544 2003-08-31  Simon Josefsson  <jas@extundo.com>
55545
55546         * m4/timegm.m4: New file.
55547
55548 2003-08-31  Simon Josefsson  <jas@extundo.com>
55549
55550         * lib/timegm.h: New file.
55551         * lib/timegm.c: New file.  Based on
55552         wget-1.8.2/src/http.c:mktime_from_utc.
55553
55554 2003-08-31  Karl Berry  <karl@gnu.org>
55555
55556         * lib/argp.h: update from libc.
55557
55558 2003-08-28  Bruno Haible  <bruno@clisp.org>
55559
55560         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
55561         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
55562         followed by '#define fnmatch fnmatch_posix' gives an error.
55563
55564 2003-08-28  Bruno Haible  <bruno@clisp.org>
55565
55566         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
55567         warning on QNX, which defines O_BINARY to 000000.
55568
55569 2003-08-27  Jim Meyering  <jim@meyering.net>
55570
55571         * m4/mkstemp.m4: Require that the system mkstemp be able to create
55572         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
55573         would fail after 32.  Reported by Danny Levinson.  Details here:
55574         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
55575
55576 2003-08-24  Bruno Haible  <bruno@clisp.org>
55577
55578         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
55579         MSVC7 <stdio.h> is included later.
55580
55581 2003-08-22  Simon Josefsson  <jas@extundo.com>
55582
55583         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
55584
55585 2003-08-20  Karl Berry  <karl@gnu.org>
55586
55587         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
55588
55589 2003-08-20  Bruno Haible  <bruno@clisp.org>
55590
55591         * modules/progname: New file.
55592         * MODULES.html.sh (func_all_modules): Add progname.
55593
55594 2003-08-20  Bruno Haible  <bruno@clisp.org>
55595
55596         * lib/progname.h: New file, from GNU gettext.
55597         * lib/progname.c: New file, from GNU gettext.
55598         * lib/progreloc.c: New file, from GNU gettext.
55599
55600 2003-08-19  Jim Meyering  <jim@meyering.net>
55601
55602         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
55603         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
55604
55605 2003-08-19  Bruno Haible  <bruno@clisp.org>
55606
55607         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
55608         more.
55609
55610 2003-08-19  Bruno Haible  <bruno@clisp.org>
55611
55612         * lib/xstrdup.c: Assume <string.h> exists.
55613
55614 2003-08-18  Paul Eggert  <eggert@twinsun.com>
55615
55616         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
55617         in makefile rules.
55618
55619 2003-08-18  Jim Meyering  <jim@meyering.net>
55620
55621         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
55622         * m4/lib-ld.m4: Likewise.
55623
55624 2003-08-18  Jim Meyering  <jim@meyering.net>
55625
55626         * lib/setenv.h: Indent nested cpp directive.
55627         * lib/vasnprintf.c: Remove trailing blanks.
55628
55629 2003-08-17  Simon Josefsson  <jas@extundo.com>
55630
55631         * modules/xstrndup: New file.
55632         * MODULES.html.sh (func_all_modules): Add xstrndup.
55633
55634 2003-08-17  Simon Josefsson  <jas@extundo.com>
55635
55636         * modules/argp: Fix autoconf macro name. Add more dependencies.
55637
55638 2003-08-17  Simon Josefsson  <jas@extundo.com>
55639
55640         * m4/xstrndup.m4: New file.
55641
55642 2003-08-17  Simon Josefsson  <jas@extundo.com>
55643
55644         * m4/argp.m4: New file.
55645
55646 2003-08-17  Simon Josefsson  <jas@extundo.com>
55647             Bruno Haible  <bruno@clisp.org>
55648
55649         * lib/xstrndup.h: New file.
55650         * lib/xstrndup.c: New file.
55651
55652 2003-08-17  Bruno Haible  <bruno@clisp.org>
55653
55654         * modules/strndup (Files, Include): Add lib/strndup.h.
55655
55656 2003-08-17  Bruno Haible  <bruno@clisp.org>
55657
55658         * modules/euidaccess (Files): Add lib/euidaccess.h.
55659
55660 2003-08-17  Bruno Haible  <bruno@clisp.org>
55661
55662         * lib/strndup.h: New file.
55663
55664 2003-08-17  Bruno Haible  <bruno@clisp.org>
55665
55666         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
55667         like AC_GNU_SOURCE.
55668         * modules/extensions (configure.ac): Comment out the invocation of
55669         gl_USE_SYSTEM_EXTENSIONS.
55670
55671 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55672
55673         Merges from coreutils, etc.
55674         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
55675         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
55676         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
55677         fixing a typo.
55678         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
55679         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
55680
55681 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55682
55683         Document merge from coreutils.
55684         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
55685         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
55686         * modules/utime: Add m4/utimes-null.m4.
55687
55688 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55689
55690         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
55691         space, undoing this 2003-08-12 change:
55692         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55693
55694 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55695
55696         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
55697         strtoul.c from libc, undoing this 2003-08-12 change:
55698         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55699
55700 2003-08-16  Jim Meyering  <jim@meyering.net>
55701
55702         Merges from coreutils.
55703         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
55704         prefix.  Adjust cache variables similarly.  Create 500 rather than
55705         just 300 files, to exercise bug on Darwin6.5, too.
55706         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
55707         $missing_dir.
55708         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
55709         AM_SYS_POSIX_TERMIOS.
55710         Reported by mkc@mathdogs.com.
55711         Also change use of $am_cv_sys_posix_termios
55712         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
55713         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
55714         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
55715         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
55716         in /proc/mounts until it finds one with matching device number.  This
55717         is unnecessary when the FILE argument *is* a mount point.  No stat call
55718         is necessary in that case.  So, disable the statvfs-testing code on
55719         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
55720         as RedHat bug# 84846.
55721         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55722         to 1MB, so as not to render systems with no stack size limit (e.g.,
55723         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55724         Include <unistd.h>.  On some systems,
55725         it is required for the definition of _SC_PAGESIZE.
55726
55727 2003-08-16  Jim Meyering  <jim@meyering.net>
55728
55729         Merge from coreutils.
55730         * lib/xstrtoimax.c: #else #if -> #elif.
55731         * lib/xstrtoumax.c: Likewise.
55732
55733 2003-08-16  Jim Meyering  <jim@meyering.net>
55734
55735         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
55736         * m4/utimes.m4: Removed.
55737         * m4/utimes-null.m4: Renamed from utimes.m4.
55738
55739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55740         to 1MB, so as not to render systems with no stack size limit (e.g.,
55741         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55742         Include <unistd.h>.  On some systems,
55743         it is required for the definition of _SC_PAGESIZE.
55744
55745 2003-08-16  Jim Meyering  <jim@meyering.net>
55746         and Paul Eggert  <eggert@cs.ucla.edu>
55747
55748         Merges from coreutils, etc.
55749
55750         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
55751         using the latest version from cvs.  This avoids problems with #line
55752         directives using a vendor (Sun) compiler.
55753         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
55754         Don't set GETGROUPS_LIB here; now it's
55755         done via getgroups.m4's wrapper function.
55756         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
55757         rather than just in sh-util/configure.in, so that the
55758         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
55759         same.
55760         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
55761         AC_FUNC_GETLOADAVG where to find getloadavg.c.
55762         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
55763         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
55764         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
55765         Remove code that is now done by the newly-required macros.
55766         Append $(EXEEXT) to DF_PROG.
55767         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
55768         Do not invoke or require the following here,
55769         since prereq.m4 or some gnulib .m4 now does this for us:
55770         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
55771         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
55772         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
55773         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
55774         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
55775         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
55776         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
55777         AC_FUNC_OBSTACK.
55778         Do not replace the following functions, as this is now the job
55779         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
55780         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
55781         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
55782         atexit getpass, strdup, getpagesize.
55783         Replace 'raise'.
55784         Do not check for the following functions, as this is now the job
55785         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
55786         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
55787         setregid.
55788         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
55789         Check for sys/sysctl.h.
55790         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
55791         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
55792         of checking for ssize_t ourselves.
55793
55794         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
55795         Require every macro that gnulib/modules/* suggests for us.
55796         (jm_PREREQ_ADDEXT): New macro.
55797         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
55798         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
55799
55800         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
55801         (gl_PHYSMEM): Use it.
55802         Also check for `table' function.
55803         Check for new headers and functions.
55804         Add check for sys/sysmp.h.
55805         With suggestions from Kaveh Ghazi.
55806         Ignore headers that are present but cannot be compiled.  This
55807         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
55808         C 5.4.
55809
55810 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55811
55812         Document merge from coreutils.
55813         * modules/userspec: Depend on posixver.
55814         * modules/strftime: Depend on tzset.
55815
55816 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55817
55818         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
55819         rather than tab, after '#' in shell-script copyright notices.
55820         Suggested by Bruno Haible.
55821
55822 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55823
55824         * config/srclist-update: Use three spaces, rather than tab, after '#'
55825         in shell-script copyright notices.  Suggested by Bruno Haible.
55826         Remove unnecessary parenthesization in regular expression.
55827
55828 2003-08-15  Jim Meyering  <jim@meyering.net>
55829
55830         Merge from coreutils.
55831         * lib/xgethostname.c: Include <stdlib.h>.
55832         (xghostname): Don't exit for anything other than memory-related
55833         failure; just return NULL.
55834         * lib/userspec.c: Include "posixver.h".
55835         (parse_user_spec): Accept `.' as a separator only
55836         in pre-POSIX-200112 mode.
55837         * lib/strtoimax.c: Use #elif rather than #else #if.
55838         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
55839         Remove function, now that we can rely on a working tzset function.
55840         [!_LIBC]: Ensure that the required autoconf test has been run.
55841         [!defined _NL_CURRENT && HAVE_STRFTIME]:
55842         Use underlying_strftime for %r.
55843         * lib/sha.c: Merge in some clean-up and optimization changes from
55844         glibc.
55845         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
55846         Ensure that it is a multiple of 64.
55847         Rearrange loop exit tests so as to avoid performing an
55848         additional fread after encountering an error or EOF.
55849         * lib/realloc.c: Update copyright date.
55850
55851 2003-08-15  Jim Meyering  <jim@meyering.net>
55852         and Paul Eggert  <eggert@twinsun.com>
55853
55854         Merge from coreutils.
55855         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
55856         member but strut utmpx does not.  Needed for AIX 4.3.3.
55857         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
55858
55859 2003-08-15  Jim Meyering  <jim@meyering.net>
55860         and Paul Eggert  <eggert@cs.ucla.edu>
55861
55862         Merges from coreutils, etc.
55863         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
55864         Require gl_FUNC_TZSET_CLOBBER.
55865         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
55866         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
55867         members.
55868
55869 2003-08-14  Paul Eggert  <eggert@twinsun.com>
55870
55871         Help the merge from coreutils.
55872         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
55873         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
55874         * m4/tzset.m4: Use it too.
55875
55876 2003-08-14  Paul Eggert  <eggert@twinsun.com>
55877
55878         * modules/tzset: New file.
55879
55880 2003-08-14  Jim Meyering  <jim@meyering.net>
55881
55882         Merges from coreutils.
55883         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
55884         variable names, rather than @FNMATCH_H@.
55885         * modules/alloca: Likewise for $(ALLOCA_H).
55886
55887         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
55888         the three copies of the literal target, `fnmatch.h'.
55889         * modules/alloca (alloca.h): Likewise.
55890
55891 2003-08-14  Jim Meyering  <jim@meyering.net>
55892
55893         Merge from coreutils.
55894         * m4/tzset.m4: New file.
55895         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
55896         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
55897         otherwise, AIX 5.1 systems would end up using the latter.
55898         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
55899         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
55900         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
55901         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
55902
55903 2003-08-14  Jim Meyering  <jim@meyering.net>
55904
55905         Merge from coreutils.
55906         * lib/obstack.h: Whitespace changes.
55907         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
55908         and xcalloc return values.
55909         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
55910         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
55911         hang on OSF/1 5.1 for DIR on both local and remote file systems.
55912         Reported by (and fix confirmed by) Nelson H. F. Beebe.
55913         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55914         error from mntctl.
55915         Use mntctl's return value to drive the entry-processing loop, since
55916         we can't rely on the value of the vmt_length member in the last
55917         entry.  On some systems doing so could result in exhausting
55918         virtual memory.  Based in part on a patch from Mike Jetzer.
55919
55920 2003-08-14  Jim Meyering  <jim@meyering.net>
55921         and Paul Eggert  <eggert@twinsun.com>
55922
55923         Merges from coreutils, plus other fixes.
55924         * lib/physmem.c: Merge in portability changes from gcc/libiberty
55925         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
55926         for credits and details.  Thanks to Kaveh Ghazi for helping
55927         to keep these files in sync.
55928         (ARRAY_SIZE): Define it.
55929         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
55930         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
55931         (memcasecmp): Don't assume size_t fits in unsigned int.
55932         Remove casts and duplicate code.
55933         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
55934         (memcpy): Remove definition.
55935         Merge in some clean-up and optimization changes from glibc.
55936         [BLOCKSIZE]: Move definition to top of file.
55937         Ensure that it is a multiple of 64.
55938         Rearrange loop exit tests so as to avoid performing an
55939         additional fread after encountering an error or EOF.
55940         * lib/md5.h (md5_uintptr): Define.
55941         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
55942         return to the initial working directory.  Preserve errno
55943         for caller.
55944         * lib/idcache.c: Include "xalloc.h".
55945         (xmalloc, xrealloc): Remove decls.
55946         (getuser): Remove casts no longer required in C89.
55947         * lib/human.c: Include stdio.h, for sprintf.
55948         * lib/group-member.c: Include "xalloc.h".
55949         (xmalloc, xrealloc): Remove decls.
55950         (get_group_info): Remove casts no longer required in C89.
55951         * lib/getusershell.c (readname): Remove casts no longer required in
55952         C89.
55953         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
55954         * lib/getline.c: Whitespace fix, from coreutils.
55955
55956 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55957
55958         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
55959         Check for isascii.
55960
55961         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
55962         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
55963         Undo previous (whitespace-only) change.
55964
55965 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55966
55967         * lib/exclude.c: Include <ctype.h>
55968         (IN_CTYPE_DOMAIN): New macro.
55969         (is_space): New fn.
55970         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
55971         and empty lines.
55972
55973         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
55974         Undo previous (whitespace-only) change.
55975
55976 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55977
55978         * config/srclist-update: Change update back to the old behavior,
55979         leaving whitespace alone.  Use one 'sed' command rather than a
55980         pipeline.
55981         (fixlicense): Now a variable, not a function.
55982         (remove_trailing_blanks): Remove.
55983         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
55984         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
55985         Undo previous (whitespace-only) change.
55986
55987 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55988
55989         Merge from coreutils.
55990         * modules/euidaccess: Add lib_SOURCES, include for new
55991         file euidaccess.h
55992
55993 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55994
55995         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
55996         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
55997         Normalize leading white space and remove trailing white space.
55998
55999         Merge from coreutils
56000         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56001
56002         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56003         0.12.1.  These files are now being upgraded automatically by
56004         ../config/srclist-update.
56005
56006 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56007
56008         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56009         Normalize leading white space and remove trailing white space.
56010         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56011         notice, as per ../config/srclist-update.
56012
56013         Merge from coreutils.
56014         * lib/euidaccess.h: New file.
56015         * lib/euidaccess.c: Include it.
56016         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56017         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
56018         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56019
56020 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56021
56022         * config/srclist-update: Add copyright notice.
56023         (remove_id_lines, remove_trailing_blanks): New constants.
56024         (fixfile): Use them to normalize spacing a bit in copied files.
56025         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56026         Normalize leading white space and remove trailing white space.
56027
56028         * config/texinfo.tex: Sync with texinfo.
56029
56030         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56031         strtoul.c from libc, to merge coreutils whitespace changes.
56032
56033         * config/srclist.txt: Get the following m4 files from gettext:
56034         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56035         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56036         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56037         wint_t.m4.
56038
56039 2003-08-12  Karl Berry  <karl@gnu.org>
56040
56041         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56042         been made.
56043
56044 2003-08-11  Paul Eggert  <eggert@twinsun.com>
56045
56046         * modules/gnu-source, m4/gnu-source.m4:
56047         Remove; we're assuming Autoconf 2.54 or later now.
56048         Suggested by Bruno Haible.
56049         * MODULES.html.sh (func_all_modules): Remove gnu-source.
56050
56051 2003-08-11  Bruno Haible  <bruno@clisp.org>
56052
56053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56054
56055 2003-08-11  Bruno Haible  <bruno@clisp.org>
56056
56057         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56058         (vasnprintf): Use it instead of wcslen.
56059
56060 2003-08-11  Bruno Haible  <bruno@clisp.org>
56061
56062         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56063         value to ensure that _Bool promotes to int. Use #define for _Bool when
56064         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56065
56066 2003-08-10  Karl Berry  <karl@gnu.org>
56067
56068         * lib/regex.h: update from libc (whitespace fix).
56069
56070 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56071
56072         Merge some files from coreutils.  These changes were
56073         originally made by Jim Meyering.
56074         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56075         many older Unixes require this.
56076         * lib/alloca.c (alloca): Remove cast to argument of free;
56077         no longer needed in C89.
56078         * lib/alloca_.h, regex.h: Fix white space to match
56079         what GNU indent does.
56080
56081 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56082
56083         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56084         apparently Emacs's Unicode mode got confused before my 2003-08-05
56085         checkin.
56086
56087 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56088
56089         * m4/extensions.m4: New file.
56090         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56091         Require gl_USE_SYSTEM_EXTENSIONS.
56092         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56093         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56094
56095 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56096
56097         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56098         * modules/extensions, modules/gnu-source: New files.
56099         * modules/timespec, modules/unlocked-io: Depend on extensions.
56100
56101 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56102
56103         * modules/restrict: New file.
56104         * MODULES.html.sh (func_all_modules): Add restrict.
56105         * modules/regex: Depend on restrict.
56106
56107 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56108
56109         * m4/restrict.m4: New file.
56110         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56111
56112 2003-08-07  Bruno Haible  <bruno@clisp.org>
56113
56114         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56115         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56116
56117 2003-08-07  Bruno Haible  <bruno@clisp.org>
56118
56119         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56120         makes the module 'getndelim2' compatible with the module 'getline'.
56121
56122 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56123
56124         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56125         byte with "\201" to avoid glitches when editing that source file
56126         with multi-gnome-terminal.
56127
56128 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56129
56130         * lib/bumpalloc.h: Remove.
56131
56132 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56133
56134         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56135         * modules/bumpalloc: Remove.
56136
56137 2003-08-04  Paul Eggert  <eggert@twinsun.com>
56138
56139         * lib/getloadavg.c: Change copyright notice and spacing to conform to
56140         GNU coding style.
56141
56142         Merge from coreutils.
56143         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56144         1. From glibc.
56145         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56146         from Karl Berry, implemented by Jim Meyering.
56147         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56148         from Dmitry V. Levin.
56149         Remove anachronistic cast of xrealloc.
56150         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
56151         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56152         type. Otherwise, it wouldn't compile with at least /bin/cc on
56153         ymp-cray-unicos9.0.2.X.
56154         Combine two mostly-identical uses of alloca into one.
56155         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56156
56157 2003-08-04  Dave Love  <d.love@dl.ac.uk>
56158
56159         [From Emacs.]
56160
56161         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
56162         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
56163         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56164         obsolete NLIST_NAME_UNION.
56165         [__GNU__]: Undef BSD and FSCALE.
56166         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56167
56168 2003-08-03  Paul Eggert  <eggert@twinsun.com>
56169
56170         * lib/stdbool_.h (_Bool): Make it signed char, instead of
56171         an enum type, so that it's guaranteed to promote to int.  See:
56172         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56173
56174 2003-08-03  Karl Berry  <karl@gnu.org>
56175
56176         * config/depcomp: update from automake.
56177
56178 2003-07-31  Paul Eggert  <eggert@twinsun.com>
56179
56180         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
56181         (strerror): Don't assume that a printable int fits in 14 bytes.
56182
56183 2003-07-31  Bruno Haible  <bruno@clisp.org>
56184
56185         * modules/getpass-gnu: New file.
56186         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56187
56188 2003-07-31  Bruno Haible  <bruno@clisp.org>
56189
56190         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56191
56192 2003-07-24  Karl Berry  <karl@gnu.org>
56193
56194         * config/missing: update from automake.
56195
56196 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
56197             Bruno Haible  <bruno@clisp.org>
56198
56199         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56200         * lib/getline.c (getline, getdelim): Likewise.
56201         Remove _GNU_SOURCE define; now it's defined in config.h through
56202         m4/getline.m4.
56203
56204 2003-07-23  Karl Berry  <karl@gnu.org>
56205
56206         * config/config.sub: update from prep.
56207
56208 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56209
56210         * modules/xalloc (Depends-on): Add exitfail.
56211         * modules/xmemcoll: Likewise.
56212
56213 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56214
56215         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56216         over-parenthesization in macros.
56217
56218         Sync with coreutils.
56219
56220         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56221         required by C99.
56222
56223         Use `exit_failure' for xalloc and xmemcoll instead of their own
56224         private exit-failure variables.
56225         * lib/xalloc.h (xalloc_exit_failure): Remove.
56226         * lib/xmalloc.c: Likewise.  Include exitfail.h.
56227         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56228         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56229         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
56230         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56231
56232 2003-07-20  Jim Meyering  <jim@meyering.net>
56233
56234         * modules/closeout (Depends-on): Add exitfail.
56235         Suggestion from Bruno Haible.
56236
56237 2003-07-19  Karl Berry  <karl@gnu.org>
56238
56239         * config/config.sub: update from prep.
56240
56241 2003-07-18  Paul Eggert  <eggert@twinsun.com>
56242
56243         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56244         Remove.
56245         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
56246         to test that it can stand by itself.  Include "exitfail.h".
56247         Clients should set exit_failure instead.
56248         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
56249
56250 2003-07-18  Bruno Haible  <bruno@clisp.org>
56251
56252         * modules/getndelim2: New file.
56253         * modules/getline: Share files with module getndelim2.
56254         * modules/getnline: Depend on getndelim2 instead of sharing files with
56255         it. Add getnline.c to lib_SOURCES.
56256         * MODULES.html.sh (func_all_modules): Add getndelim2.
56257
56258 2003-07-18  Bruno Haible  <bruno@clisp.org>
56259
56260         * m4/getndelim2.m4: New file.
56261         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56262         invoke gl_PREREQ_GETNDELIM2.
56263         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56264         gl_PREREQ_GETNDELIM2.
56265         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56266         gl_GETNDELIM2.
56267
56268 2003-07-18  Bruno Haible  <bruno@clisp.org>
56269
56270         * lib/getndelim2.h: New file.
56271         * lib/getndelim2.c: Make into a module of its own. Include config.h,
56272         getndelim2.h.
56273         (getndelim2): Make non-static. Change return type to ssize_t.
56274         * lib/getline.h: Change argument names.
56275         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56276         * lib/getnline.c: Include getndelim2.h.
56277
56278 2003-07-18  Andreas Schwab  <schwab@suse.de>
56279
56280         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56281
56282 2003-07-17  Karl Berry  <karl@gnu.org>
56283
56284         * config/config.sub: update from prep.
56285
56286 2003-07-17  Bruno Haible  <bruno@clisp.org>
56287
56288         * modules/getnline: New file.
56289         * modules/getline: Add lib/getndelim2.c to source file list.
56290         * MODULES.html.sh (func_all_modules): Add getnline.
56291
56292 2003-07-17  Bruno Haible  <bruno@clisp.org>
56293
56294         * m4/getnline.m4: New file.
56295
56296 2003-07-17  Bruno Haible  <bruno@clisp.org>
56297
56298         * m4/Makefile.am.in: Remove file.
56299         * m4/Makefile.am: Remove file.
56300         * m4/Makefile.in: Remove file.
56301
56302 2003-07-17  Bruno Haible  <bruno@clisp.org>
56303
56304         * lib/getnline.h: New file.
56305         * lib/getnline.c: New file.
56306         * lib/getndelim2.c: New file, extracted from getline.c.
56307         (getndelim2): Renamed from getdelim2, with added nmax argument.
56308         * lib/getline.c: Include getndelim2.c.
56309         (getdelim2): Moved out to getndelim2.c.
56310         (getline, getdelim): Update.
56311
56312 2003-07-17  Bruno Haible  <bruno@clisp.org>
56313
56314         * lib/Makefile.am: Remove file.
56315         * lib/Makefile.in: Remove file.
56316
56317 2003-07-17  Bruno Haible  <bruno@clisp.org>
56318
56319         * configure.in: Remove file.
56320         * Makefile.in: Remove file.
56321
56322 2003-07-17  Bruno Haible  <bruno@clisp.org>
56323
56324         * MODULES.html.sh: Put the </BODY> right before </HTML>.
56325
56326 2003-07-16  Karl Berry  <karl@gnu.org>
56327
56328         * config/srclist-update: was running fixlicense twice, which caused
56329                 texinfo.tex to be nullified for some reason.  Simplify,
56330                 $gplsrc is no longer needed as far as I can see?
56331
56332 2003-07-16  Jim Meyering  <jim@meyering.net>
56333
56334         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
56335
56336 2003-07-15  Paul Eggert  <eggert@twinsun.com>
56337
56338         * config/srclist.txt: Get the following files from gettext-runtime/intl
56339         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
56340         ref-del.sin.  From Bruno Haible.
56341         * config/srclist-update (fixfile): Change grep pattern again, since the
56342         previous fix didn't work (there was another trailing $).  Use
56343         '[$]' to escape the $s.
56344
56345 2003-07-15  Karl Berry  <karl@gnu.org>
56346
56347         * lib/vasnprintf.c: update from gettext.
56348
56349 2003-07-15  Karl Berry  <karl@gnu.org>
56350
56351         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
56352         gets expanded when surrounded by '$'.
56353
56354 2003-07-15  Jim Meyering  <jim@meyering.net>
56355
56356         * modules/save-cwd: Don't depend on error.  From Derek Price.
56357
56358 2003-07-15  Jim Meyering  <jim@meyering.net>
56359
56360         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
56361
56362 2003-07-14  Simon Josefsson  <jas@extundo.com>
56363
56364         * modules/mempcpy: New file.
56365         * MODULES.html.sh (func_all_modules): Add mempcpy.
56366
56367 2003-07-14  Simon Josefsson  <jas@extundo.com>
56368
56369         * m4/mempcpy.m4: New file.
56370
56371 2003-07-14  Simon Josefsson  <jas@extundo.com>
56372
56373         * lib/mempcpy.h: New file.
56374         * lib/mempcpy.c: New file.
56375
56376 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56377
56378         * modules/getdate, modules/posixtm: Depend on mktime.
56379
56380 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56381
56382         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
56383         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
56384         unicodeio.c, unicodeio.h, unlocked-io.h:
56385         Switch from LGPL to GPL.
56386
56387 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56388
56389         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
56390         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
56391         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
56392         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
56393         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
56394         updated automatically by ../config/srclist-update.  This changes
56395         their license from LPGL to GPL.
56396
56397 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56398
56399         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
56400         assumed to refer to the root of the most recent stable gettext version.
56401         * config/srclistvars.sh: Add defaults for eggert.
56402         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
56403         Match "This program" as well as "The program".  This is needed
56404         for gettext.
56405
56406 2003-07-14  Jim Meyering  <jim@meyering.net>
56407
56408         Don't emit diagnostics.  Let callers do that.
56409         * lib/save-cwd.c: Don't include "error.h".
56410         (save_cwd): Don't call error.  Ensure that errno is valid
56411         when returning nonzero.
56412
56413         * lib/save-cwd.h (restore_cwd): Update prototype.
56414         * lib/save-cwd.c (restore_cwd): Remove two parameters.
56415         Simplify.  Don't call error upon failure.  Let callers do that.
56416         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
56417         when auditing is enabled.  But don't bother updating the #if.
56418
56419 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
56420
56421         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
56422         it breaks C++ compilation.
56423         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
56424
56425 2003-07-10  Simon Josefsson  <jas@extundo.com>
56426
56427         * modules/strchrnul (Makefile.am): Add strchrnul.h.
56428
56429 2003-07-10  Jim Meyering  <jim@meyering.net>
56430
56431         * m4/clock_time.m4: Remove trailing blank.
56432         * m4/intmax_t.m4: Likewise.
56433
56434 2003-07-10  Jim Meyering  <jim@meyering.net>
56435
56436         * lib/vasnprintf.c: Remove trailing blanks.
56437         Make cpp indentation consistent.
56438
56439 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56440
56441         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
56442         posixver.c, strftime.c, strnlen.c, strverscmp.c:
56443         Switch from LGPL to GPL.
56444
56445 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56446
56447         * config/srclist.txt: Sort sublists.  Add
56448         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
56449         that differ from gnulib for one reason or another; we'd like this list
56450         to be smaller but for now let's document what we have.
56451
56452 2003-07-08  Paul Eggert  <eggert@twinsun.com>
56453
56454         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
56455         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
56456         and sweeter "eval x=$x".
56457         * config/srclist.txt: Get lib/argp* from glibc.
56458
56459 2003-07-07  Paul Eggert  <eggert@twinsun.com>
56460
56461         * lib/mktime.c: Fix some boundary cases and remove need for floating
56462         point.
56463
56464         Issue a compile-time diagnostic if time_t is floating point, or if
56465         two's complement arithmetic is not in effect, or if arithmetic
56466         right shift does not propagate the sign.  These assumptions were
56467         all in the original code but they weren't checked.
56468
56469         (TIME_T_MIDPOINT, verify): New macros.
56470         (__isleap): Remove; it has integer overflow problems.
56471         (leapyear): New function, without those problems.
56472         (ydhms_tm_diff): Remove; splitting into two parts.
56473         (ydhms_diff): New function, containing the arithmetic part of
56474         the old ydhms_tm_diff function.  Issue a compile-time
56475         diagnostic if we are not using C99 integer division.
56476         Avoid casts when possible.
56477         (guess_time_tm): New function, containing the checking part of
56478         the old ydhms_tm_diff function.  Return the new value, rather than
56479         the difference between it and the old.  Accept a new argument T
56480         so that *T specifies the old value.  Check for overflow in the result.
56481
56482         (__mktime_internal): Use a time_t offset, not a long int offset.
56483         This undoes the 2003-06-04 change, which is no longer needed now
56484         that we have better overflow checking.
56485         (localtime_offset): Likewise.
56486
56487         (__mktime_internal): Avoid harmful overflow on hosts where time_t
56488         and long are 64-bit but int is only 32-bit.
56489         (ydhms_diff): Use long int to store year1 and yday1.
56490         Issue a compile-time diagnostic if long int is not wide enough.
56491
56492         (__mktime_internal): Use long int to store adjusted year and yday.
56493         Use plain C rather than preprocessor commands, if that doesn't
56494         affect efficiency.
56495         Check for overflow (and try to repair) after each probe
56496         rather than checking only at the very end.  This avoids some bugs
56497         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
56498         does not equal GMT offset at maximum time).
56499         Use integer to check for overflow rather than floating point; this
56500         is more portable to non-IEEE hosts, and is a tad faster.
56501         When we detect that we are oscillating between two values,
56502         don't check whether tm_isdst has the requested value, since
56503         we already know the answer.  When tm_isdst has the wrong value,
56504         use a different heuristic to find the right one, based on the
56505         extreme values actually observed in practice in tz2003a,
56506         rather than the (overly optimistic) "previous 3 calendar quarters".
56507
56508         (not_equal_tm, print_tm, check_result): Use "const T" rather than
56509         "T const" to accommodate glibc style.
56510         (check_result): Use less-confusing report format.  "long" -> "long int.
56511         (main): Likewise.
56512         Don't loop if the iteration overflows time_t.
56513         Allow a negative step in the iteration.
56514
56515 2003-07-06  Karl Berry  <karl@gnu.org>
56516
56517         * config/depcomp: update from automake.
56518         * config/config.sub: update from prep.
56519
56520 2003-07-03  Karl Berry  <karl@gnu.org>
56521
56522         * config/config.guess: update from prep.
56523
56524 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56525
56526         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
56527         xreadlink.c now includes it unconditionally.
56528
56529 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56530
56531         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
56532         having it depend on HAVE_SYS_TYPES_H.
56533
56534 2003-07-01  Bruno Haible  <bruno@clisp.org>
56535
56536         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
56537         <sys/types.h> should be sufficient.
56538         Reported by Paul Eggert.
56539
56540 2003-06-26  Karl Berry  <karl@gnu.org>
56541
56542         * config/depcomp: update from automake.
56543
56544 2003-06-26  Bruno Haible  <bruno@clisp.org>
56545
56546         * modules/human: Depend on module stdbool.
56547
56548 2003-06-25  Bruno Haible  <bruno@clisp.org>
56549
56550         * modules/readlink: New file.
56551         * modules/xreadlink: Depend on it.
56552         * MODULES.html.sh (func_all_modules): Add readlink.
56553
56554 2003-06-25  Bruno Haible  <bruno@clisp.org>
56555
56556         * m4/readlink.m4: New file.
56557
56558 2003-06-25  Bruno Haible  <bruno@clisp.org>
56559
56560         * lib/readlink.c: New file.
56561
56562 2003-06-22  Karl Berry  <karl@gnu.org>
56563
56564         * config/srclist.txt: update mkinstalldirs from automake.
56565         * config/mkinstalldirs: update.
56566
56567 2003-06-22  Bruno Haible  <bruno@clisp.org>
56568
56569         Portability to mingw32.
56570         * m4/ssize_t.m4: New file, from GNU gettext.
56571         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
56572         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
56573
56574 2003-06-22  Bruno Haible  <bruno@clisp.org>
56575
56576         * modules/safe-read: Add m4/ssize_t.m4.
56577         * modules/xreadlink: Add m4/ssize_t.m4.
56578
56579 2003-06-20  Bruno Haible  <bruno@clisp.org>
56580
56581         Assume C89, so PARAMS isn't needed.
56582         * lib/unicodeio.h (PARAMS): Remove.
56583         * lib/unicodeio.c: Don't use PARAMS.
56584
56585 2003-06-18  Karl Berry  <karl@gnu.org>
56586
56587         * config/config.{guess,sub}: update from prep.
56588
56589 2003-06-18  Jim Meyering  <jim@meyering.net>
56590
56591         Merge changes from coreutils.
56592         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
56593         Remove explicit declarations of xmalloc and realloc.
56594         Include xalloc.h.
56595         (read_utmp): Remove anachronistic cast of xmalloc.
56596
56597 2003-06-17  Paul Eggert  <eggert@twinsun.com>
56598
56599         Assume C89, so PARAMS isn't needed.
56600         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
56601         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
56602         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
56603         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
56604         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
56605         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
56606         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
56607         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
56608         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
56609         lib/xstrtod.h, lib/xstrtol.h: Likewise.
56610         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
56611         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
56612         no longer needed. Anyway, config.h should always be included before any
56613         other file.
56614
56615 2003-06-11  Simon Josefsson  <jas@extundo.com>
56616
56617         * modules/sysexits: New file.
56618         * MODULES.html.sh (func_all_modules): Add sysexits.
56619
56620 2003-06-11  Simon Josefsson  <jas@extundo.com>
56621
56622         * lib/sysexit_.h: New file.
56623
56624 2003-06-11  Derek Price  <derek@ximbiot.com>
56625
56626         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
56627         necessary.
56628
56629 2003-06-11  Bruno Haible  <bruno@clisp.org>
56630
56631         * m4/sysexits.m4: New file.
56632
56633 2003-06-10  Simon Josefsson  <jas@extundo.com>
56634
56635         * lib/argp.h: New file, from glibc.
56636         * lib/argp-ba.c: New file, from glibc.
56637         * lib/argp-eexst.c: New file, from glibc.
56638         * lib/argp-fmtstream.c: New file, from glibc.
56639         * lib/argp-fmtstream.h: New file, from glibc.
56640         * lib/argp-fs-xinl.c: New file, from glibc.
56641         * lib/argp-help.c: New file, from glibc.
56642         * lib/argp-namefrob.h: New file, from glibc.
56643         * lib/argp-parse.c: New file, from glibc.
56644         * lib/argp-pv.c: New file, from glibc.
56645         * lib/argp-pvh.c: New file, from glibc.
56646         * lib/argp-xinl.c: New file, from glibc.
56647
56648 2003-06-10  Simon Josefsson  <jas@extundo.com>
56649
56650         * modules/strchrnul: New file.
56651
56652 2003-06-10  Simon Josefsson  <jas@extundo.com>
56653
56654         * modules/argp: New file.
56655
56656 2003-06-10  Simon Josefsson  <jas@extundo.com>
56657
56658         * m4/strchrnul.m4: New file.
56659
56660 2003-06-10  Simon Josefsson  <jas@extundo.com>
56661
56662         * lib/strchrnul.h: New file.
56663         * lib/strchrnul.c: New file.
56664
56665 2003-06-10  Bruno Haible  <bruno@clisp.org>
56666
56667         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
56668
56669 2003-06-07  Karl Berry  <karl@gnu.org>
56670
56671         * config/config.{guess,sub}: update from prep.
56672
56673 2003-06-07  Jim Meyering  <jim@meyering.net>
56674
56675         * modules/strtod: Use $(...) notation, not @...@ for
56676         AC_REPLACE'd variables.
56677         * modules/localcharset: Likewise.
56678
56679 2003-06-07  Jim Meyering  <jim@meyering.net>
56680
56681         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
56682         in place of my name in the copyright comment.
56683         Remove definition and uses of __P.
56684
56685         From coreutils.
56686         * lib/stat.c: Don't declare xmalloc explicitly.
56687         Instead, include "xalloc.h".
56688         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
56689         xrealloc, and xcalloc return values.
56690         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
56691         Improve comment.
56692         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
56693
56694 2003-06-07  Bruno Haible  <bruno@clisp.org>
56695
56696         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
56697         avoid AC_CONFIG_LINKS.
56698         * modules/fnmatch (Makefile.am): Use explicit creation rule for
56699         fnmatch.h, to avoid AC_CONFIG_LINKS.
56700         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
56701
56702 2003-06-07  Bruno Haible  <bruno@clisp.org>
56703
56704         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
56705         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
56706         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56707         directory.
56708         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
56709         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56710         directory.
56711
56712 2003-06-06  Jim Meyering  <jim@meyering.net>
56713
56714         Merge from coreutils.
56715         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
56716         Consolidate declarations and initializations of *_base* locals.
56717
56718         Merge from coreutils.
56719         This avoids a core dump on systems without GNU putenv,
56720         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
56721         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
56722         (unsetenv): New static function, from GNU libc.
56723         (rpl_putenv): Use it.
56724
56725         * lib/modechange.c: Remove trailing blanks.
56726
56727         Merge from coreutils.
56728         * lib/fsusage.c: Remove declaration of statfs.
56729         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
56730
56731         * lib/posixtm.c: Include <stdbool.h> unconditionally.
56732
56733 2003-06-06  Jim Meyering  <jim@meyering.net>
56734
56735         * lib/stdbool_.h: Renamed from stdbool.h.in.
56736
56737 2003-06-06  Jim Meyering  <jim@meyering.net>
56738             Bruno Haible  <bruno@clisp.org>
56739
56740         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
56741         Adjust Makefile.am snippet not to redirect directly to target.
56742         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
56743
56744 2003-06-05  Paul Eggert  <eggert@twinsun.com>
56745
56746         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
56747         mismatch, look in future quarters as well as past.  This fixes a
56748         bug when processing fall-backwards gaps immediately after a long
56749         period of daylight-saving time.
56750
56751         * lib/mktime.c: Assume freestanding C89 or better.
56752         (HAVE_LIMITS_H): Remove.  Assume it's 1.
56753         (__P): Remove; not used.
56754         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
56755         (mktime, not_equal_tm, print_tm, check_result,
56756         main): Use prototypes.  Use const * where appropriate.
56757         (main): Fix typo in testing code that uncovered by above changes.
56758         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
56759
56760 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56761
56762         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
56763         locale.h, localeconv.  This merges changes from coreutils.
56764
56765         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
56766         It can be removed after the next Autoconf is released.
56767         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
56768         needed.
56769
56770 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56771
56772         * lib/mktime.c: Fix Debian bug 177940
56773         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
56774         (localtime_offset): Now long int, not time_t, because we want it
56775         to be guaranteed to be signed.  All uses changed.
56776         (__mktime_internal): If overflow would occur when adding offset,
56777         don't add it.
56778
56779         Merge 'human' changes from coreutils.  Rewrite to support
56780         locale-specific notations like thousands separators.
56781         * lib/human.c: Simplify authorship notice.
56782         Include human.h immediately after config.h.
56783         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
56784         <limits.h>: Do not include, since human.h does.
56785         (SIZE_MAX, UINTMAX_MAX): New macros.
56786         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
56787         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
56788         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
56789         (power_letter): Renamed from suffixes.
56790         (generate_suffix_backwards): Remove.
56791         (adjust_value): Now takes int style (because of human.h changes)
56792         and long double value (for greater precision on some platforms).
56793         (group_number): New function.
56794         (human_readable): Use it.  Use integer options, not enum.
56795         Put the options before the sizes in the arg list.
56796         Support all the new options.
56797         The old human_readable function has been removed;
56798         use inttostr.h instead.
56799         (human_readable, default_block_size, humblock):
56800         Use uintmax_t, not int, for block sizes.
56801         (human_readable_inexact, block_size_types): Remove.
56802         (block_size_opts): New constant.
56803         (human_options): Renamed from human_block_size, with new signature
56804         that allows block sizes up to UINTMAX_MAX.  All callers changed.
56805         * lib/human.h: Add copyright and authorship notice.
56806         Include <limits.h> and <stdbool.h> unconditionally.
56807         (PARAMS): Remove.  All uses removed.
56808         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
56809         (enum human_inexact_style): Remove tag; now a nameless enum.
56810         (human_floor, human_ceiling, human_round_to_even): Now have
56811         values 2, 0, 1 rather than -1, 1, 0.
56812         (human_group_digits, human_suppress_point_zero, human_autoscale,
56813         human_base_1024, human_SI, human_B): New constants.
56814         (human_readable_inexact, human_block_size): Remove.
56815         (human_readable): Size args are now uintmax_t, not int.
56816         (human_options): New decl.
56817
56818         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
56819         unnecessary now that we assume C89 or better.  This change
56820         imported from coreutils.
56821
56822         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56823         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
56824         in the 2003-05-30 sync from glibc.
56825
56826         .h files should stand alone, but we shouldn't include <sys/types.h>
56827         if we can get away with just <stddef.h>.
56828
56829         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
56830         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
56831         rather than <sys/types.h>, as we merely need size_t.
56832         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
56833         to get size_t.
56834         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
56835         Include <stdio.h>, to get FILE.
56836         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
56837         memcasecmp.h has included <stddef.h> and all we need is size_t.
56838         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
56839         our interface, instead of including <sys/types.h>
56840
56841 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56842
56843         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
56844         now, as glibc mktime is buggy on non-glibc systems.
56845
56846 2003-06-03  Karl Berry  <karl@gnu.org>
56847
56848         * config/config.sub: update from prep.
56849
56850 2003-06-02  Paul Eggert  <eggert@twinsun.com>
56851
56852         [from coreutils]
56853         Fix some minor time-related bugs with POSIX time arguments.
56854         Some valid time stamps were being rejected (notably -1, and
56855         time stamps before 1900 on 64-bit hosts).  And some invalid
56856         time stamps were being accepted, e.g. September 31.
56857
56858         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
56859         that we can return (time_t) -1 successfully.
56860         * lib/posixtm.c: Likewise.
56861         [HAVE_STDBOOL_H]: Include <stdbool.h>.
56862         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
56863         (t): Remove static var.
56864         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
56865         of static var.  All uses changed.
56866         (year): Do not reject years before 1900; they can occur with
56867         64-bit time_t.
56868         (posix_time_parse): Do not check for out-of-range components;
56869         that is now the caller's responsibility, since our checks were
56870         only approximations.
56871         (posixtime): Use mktime to check for out-of-range components,
56872         since it knows them exactly.
56873         If mktime returns (time_t) -1, check whether an error actually occurred
56874         by invoking localtime on -1.
56875         (main) [TEST_POSIXTIME]: Check for input data errors, and report
56876         posixtime failures better.
56877         Improve the test data (in comments only).
56878
56879 2003-06-02  Karl Berry  <karl@gnu.org>
56880
56881         * config/mkinstalldirs (version): new variable.
56882         (--version): new option.
56883         (usage): improve message.
56884
56885 2003-05-30  Karl Berry  <karl@gnu.org>
56886
56887         * lib/mktime.c: update from libc.
56888
56889 2003-05-30  Bruno Haible  <bruno@clisp.org>
56890
56891         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
56892         * config/config.rpath: Upgrade to gettext-0.12.1.
56893
56894 2003-05-30  Bruno Haible  <bruno@clisp.org>
56895
56896         * m4/gettext.m4: Upgrade to gettext-0.12.1.
56897         * m4/nls.m4: New file, from gettext-0.12.1.
56898         * m4/po.m4: New file, from gettext-0.12.1.
56899         * m4/progtest.m4: Upgrade to gettext-0.12.1.
56900
56901 2003-05-30  Bruno Haible  <bruno@clisp.org>
56902
56903         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
56904         * lib/localcharset.h: Likewise.
56905         * lib/localcharset.c: Likewise.
56906
56907 2003-05-29  Karl Berry  <karl@gnu.org>
56908
56909         * config/config.rpath: update from gettext.
56910
56911 2003-05-28  Paul Eggert  <eggert@twinsun.com>
56912
56913         Assume the headers required for C89 freestanding compilers.
56914         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
56915         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
56916         * m4/human.m4 (gl_HUMAN): Likewise.
56917         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
56918         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
56919         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56920         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
56921         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56922         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
56923
56924 2003-05-28  Paul Eggert  <eggert@twinsun.com>
56925
56926         Assume the headers required for C89 freestanding compilers.
56927         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
56928         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
56929         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
56930         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
56931         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
56932         define, since <limits.h> is guaranteed to do that.
56933         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
56934         * lib/exclude.c: Include <stdbool.h> unconditionally.
56935         * lib/tempname.c: Include <stddef.h> unconditionally.
56936         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
56937         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
56938         <stddef.h> does that.
56939         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
56940         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
56941         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
56942         needed.
56943         * lib/xstrtol.c: Likewise.
56944         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
56945         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
56946
56947         * lib/addext.c (addext): Use assignment rather than cast, to avoid
56948         warnings on some platforms.
56949
56950         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56951         arbitrarily.
56952
56953 2003-05-26  Jim Meyering  <jim@meyering.net>
56954
56955         Merge in a change from coreutils:
56956         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
56957         that is guaranteed to be `no'.  Use `no_such_member' to indicate
56958         that condition, rather than `-1' which is slightly misleading.
56959         Change the name of the cache variable to have the gl_ prefix.
56960         Prompted by a patch from Richard Dawe for DJGPP.
56961
56962 2003-05-24  Karl Berry  <karl@gnu.org>
56963
56964         * config/config.guess: update from prep.
56965
56966 2003-05-22  Karl Berry  <karl@gnu.org>
56967
56968         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
56969
56970 2003-05-20  Karl Berry  <karl@gnu.org>
56971
56972         * config/config.guess: update from prep.
56973
56974 2003-05-18  Karl Berry  <karl@gnu.org>
56975
56976         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
56977         might actually be set by the user.
56978
56979         * config/depcomp, install-sh, mdate-sh: update from automake.
56980
56981 2003-05-17  Bruno Haible  <bruno@clisp.org>
56982
56983         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
56984         invalid expansion for AC_EGREP_CPP.
56985         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
56986         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56987         Suggested by Akim Demaille <akim@epita.fr> in
56988         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
56989
56990 2003-05-12  Jim Meyering  <jim@meyering.net>
56991
56992         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
56993         the space-padded-by-default conversion specifiers, %e, %k, %l.
56994
56995 2003-05-12  Bruno Haible  <bruno@clisp.org>
56996
56997         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
56998         the string is longer than 4 KB.
56999
57000 2003-05-11  Karl Berry  <karl@gnu.org>
57001
57002         * config/config.{guess,sub}: update from prep.
57003
57004 2003-05-09  Bruno Haible  <bruno@clisp.org>
57005
57006         * modules/error: Add m4/strerror_r.m4 to file list.
57007
57008 2003-05-03  Bruno Haible  <bruno@clisp.org>
57009
57010         Upgrade to Unicode-4.0.
57011         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57012         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57013         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57014         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57015         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57016         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57017         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57018         Change width of U+E0100..U+E01EF from 1 to 0.
57019
57020 2003-04-25  Jim Meyering  <jim@meyering.net>
57021
57022         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57023         of type size_t, not int.
57024
57025 2003-04-25  Bruno Haible  <bruno@clisp.org>
57026
57027         * lib/copy-file.c: Include <stddef.h>, for size_t.
57028
57029 2003-04-21  Paul Eggert  <eggert@twinsun.com>
57030
57031         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57032         code which expansion is under static control.  Patch imported from
57033         Akim Demaille's patch to Bison; see
57034         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57035
57036 2003-04-14  Bruno Haible  <bruno@clisp.org>
57037
57038         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57039
57040 2003-04-11  Jim Meyering  <jim@meyering.net>
57041
57042         Merge changes from Coreutils.
57043
57044         2003-03-22  Jim Meyering  <jim@meyering.net>
57045
57046         * lib/strftime.c (widen): Cast alloca return value to proper type.
57047
57048         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
57049
57050         From GNU libc.
57051         * lib/strftime.c (my_strftime): Handle very large width
57052         specifications for numeric values correctly.  Improve checks for
57053         overflow.
57054
57055         2003-01-19  Jim Meyering  <jim@meyering.net>
57056
57057         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57058         definitions.
57059         (nl_get_alt_digit) [! defined my_strftime]: Define.
57060         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57061         _nl_get_alt_digit and _nl_get_walt_digit.
57062
57063         * lib/strftime.c (my_strftime): Merge in locale-related changes from
57064         libc. These changes have no effect outside of _LIBC.
57065
57066 2003-04-10  Bruno Haible  <bruno@clisp.org>
57067
57068         * modules/findprog: New file.
57069         * MODULES.html.sh (func_all_modules): Add it.
57070
57071 2003-04-10  Bruno Haible  <bruno@clisp.org>
57072
57073         * m4/findprog.m4: New file.
57074         * m4/eaccess.m4: New file.
57075
57076 2003-04-10  Bruno Haible  <bruno@clisp.org>
57077
57078         * lib/findprog.h: New file, from GNU gettext.
57079         * lib/findprog.c: New file, from GNU gettext.
57080
57081 2003-04-05  Jim Meyering  <jim@meyering.net>
57082
57083         Merge changes from Coreutils.
57084
57085         * lib/exclude.h (PARAMS): Remove definition and uses.
57086         * lib/exclude.c: Remove uses of `PARAMS'.
57087
57088         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57089         Add test-cases for DOS filenames. Declare program_name.
57090         (main): Set up program_name.  Patch by Rich Dawe.
57091
57092         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57093         error from mntctl.
57094         Use mntctl's return value to drive the entry-processing loop, since
57095         we can't rely on the value of the vmt_length member in the last
57096         entry.  On some systems doing so could result in exhausting
57097         virtual memory.  Based in part on a patch from Mike Jetzer.
57098
57099 2003-04-04  Bruno Haible  <bruno@clisp.org>
57100
57101         * modules/linebreak: New file.
57102         * MODULES.html.sh (func_all_modules): Add it.
57103
57104 2003-04-04  Bruno Haible  <bruno@clisp.org>
57105
57106         * m4/linebreak.m4: New file.
57107
57108 2003-04-04  Bruno Haible  <bruno@clisp.org>
57109
57110         * lib/linebreak.h: New file, from GNU gettext.
57111         * lib/linebreak.c: New file, from GNU gettext with slight
57112         modifications.
57113         * lib/lbrkprop.h: New file, from GNU gettext.
57114
57115 2003-04-03  Bruno Haible  <bruno@clisp.org>
57116
57117         * modules/utf8-ucs4: New file.
57118         * modules/utf16-ucs4: New file.
57119         * modules/ucs4-utf8: New file.
57120         * modules/ucs4-utf16: New file.
57121         * MODULES.html.sh (func_all_modules): Add them.
57122
57123 2003-04-03  Bruno Haible  <bruno@clisp.org>
57124
57125         * m4/utf-ucs4.m4: New file.
57126         * m4/ucs4-utf.m4: New file.
57127
57128 2003-04-03  Bruno Haible  <bruno@clisp.org>
57129
57130         * lib/utf8-ucs4.h: New file, from GNU gettext.
57131         * lib/utf16-ucs4.h: New file, from GNU gettext.
57132         * lib/ucs4-utf8.h: New file, from GNU gettext.
57133         * lib/ucs4-utf16.h: New file, from GNU gettext.
57134
57135 2003-04-02  Bruno Haible  <bruno@clisp.org>
57136
57137         * modules/binary-io: New file.
57138         * MODULES.html.sh (func_all_modules): Add it.
57139
57140 2003-04-02  Bruno Haible  <bruno@clisp.org>
57141
57142         * lib/binary-io.h: New file, from GNU gettext.
57143
57144 2003-04-01  Bruno Haible  <bruno@clisp.org>
57145
57146         * modules/pathname: New file.
57147         * MODULES.html.sh (func_all_modules): Add it.
57148
57149 2003-04-01  Bruno Haible  <bruno@clisp.org>
57150
57151         * lib/pathname.h: New file, from GNU gettext.
57152         * lib/concatpath.c: New file, from GNU gettext.
57153
57154 2003-03-30  Bruno Haible  <bruno@clisp.org>
57155
57156         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57157
57158 2003-03-30  Bruno Haible  <bruno@clisp.org>
57159
57160         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57161         function chown() doesn't exist.
57162
57163 2003-03-28  Bruno Haible  <bruno@clisp.org>
57164
57165         * modules/copy-file: New file.
57166         * MODULES.html.sh (func_all_modules): Add it.
57167
57168 2003-03-28  Bruno Haible  <bruno@clisp.org>
57169
57170         * m4/copy-file.m4: New file.
57171
57172 2003-03-28  Bruno Haible  <bruno@clisp.org>
57173
57174         * lib/copy-file.h: New file, from GNU gettext.
57175         * lib/copy-file.c: New file, from GNU gettext.
57176
57177 2003-03-18  Jim Meyering  <jim@meyering.net>
57178
57179         * lib/quote.c (quote_n): Fix typo in comment.
57180
57181 2003-03-18  Bruno Haible  <bruno@clisp.org>
57182
57183         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57184         checking.
57185         * m4/onceonly_2_57.m4: Likewise.
57186
57187 2003-03-17  Bruno Haible  <bruno@clisp.org>
57188
57189         * m4/onceonly.m4: Require autoconf 2.54 or newer.
57190         (m4_quote): Remove macro.
57191         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57192
57193 2003-03-14  Jim Meyering  <jim@meyering.net>
57194
57195         Merge changes from Coreutils.
57196         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57197         to be const, in order to avoid warnings.
57198         (obstack_room): Likewise.
57199         (obstack_empty_p): Likewise.
57200
57201 2003-03-14  Bruno Haible  <bruno@clisp.org>
57202
57203         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57204         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57205
57206 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57207
57208         Merge changes from Bison.
57209         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57210         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57211         when compiling Bison 1.875's `bitset bset = obstack_alloc
57212         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
57213         * lib/hash.c: Include <stdbool.h> unconditionally.
57214
57215 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57216
57217         * m4/onceonly.m4 (m4_quote): New macro.
57218         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57219         Quote AC_FOREACH variable-expansions properly.
57220
57221 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57222
57223         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57224
57225 2003-03-09  Paul Eggert  <eggert@twinsun.com>
57226
57227         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57228         Reported by Bruce Becker; see:
57229         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57230
57231 2003-03-03  Paul Eggert  <eggert@twinsun.com>
57232             Bruno Haible  <bruno@clisp.org>
57233
57234         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57235         Reported by John Hughes, see
57236         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57237
57238 2003-02-20  Bruno Haible  <bruno@clisp.org>
57239
57240         * MODULES.html.sh (func_all_modules): Add poll.
57241
57242 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57243
57244         * modules/poll: New file.
57245
57246 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57247
57248         * lib/poll_.h: New file.
57249         * lib/poll.c: New file.
57250
57251 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57252
57253         * m4/poll.m4: New file.
57254
57255 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57256
57257         * modules/mathl: New file.
57258
57259 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57260
57261         * lib/mathl.h: New file.
57262         * lib/acosl.c: New file.
57263         * lib/asinl.c: New file.
57264         * lib/atanl.c: New file.
57265         * lib/ceill.c: New file.
57266         * lib/cosl.c: New file.
57267         * lib/expl.c: New file.
57268         * lib/floorl.c: New file.
57269         * lib/frexpl.c: New file.
57270         * lib/ldexpl.c: New file.
57271         * lib/logl.c: New file.
57272         * lib/sincosl.c: New file.
57273         * lib/sinl.c: New file.
57274         * lib/sqrtl.c: New file.
57275         * lib/tanl.c: New file.
57276         * lib/trigl.c: New file.
57277         * lib/trigl.h: New file.
57278
57279 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57280
57281         * m4/mathl.m4: New file.
57282
57283 2003-02-18  Bruno Haible  <bruno@clisp.org>
57284
57285         * MODULES.html.sh (func_all_modules): Add mathl.
57286
57287 2003-02-17  Bruno Haible  <bruno@clisp.org>
57288
57289         * modules/mkdtemp: New module.
57290         * MODULES.html.sh (func_all_modules): Add it.
57291
57292 2003-02-17  Bruno Haible  <bruno@clisp.org>
57293
57294         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
57295
57296 2003-02-17  Bruno Haible  <bruno@clisp.org>
57297
57298         * lib/mkdtemp.h: New file, from GNU gettext.
57299         * lib/mkdtemp.c: New file, from GNU gettext.
57300
57301 2003-02-02  Jim Meyering  <jim@meyering.net>
57302
57303         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
57304         e.g. glibc-2.2.93.
57305
57306 2003-01-31  Bruno Haible  <bruno@clisp.org>
57307
57308         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
57309         'rpl_rename'.
57310         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
57311         'rpl_strnlen'.
57312         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
57313         'rpl_strtod'.
57314         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
57315         'rpl_utime'.
57316
57317 2003-01-31  Bruno Haible  <bruno@clisp.org>
57318
57319         * lib/rename.c: #undef rename before defining rpl_rename.
57320         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
57321
57322 2003-01-30  Bruno Haible  <bruno@clisp.org>
57323
57324         * modules/vasnprintf, modules/vasprintf: New modules.
57325         * MODULES.html.sh (func_all_modules): Add them.
57326
57327 2003-01-30  Bruno Haible  <bruno@clisp.org>
57328
57329         * m4/signed.m4: New file, from GNU gettext.
57330         * m4/longdouble.m4: New file, from GNU gettext.
57331         * m4/wchar_t.m4: New file, from GNU gettext.
57332         * m4/wint_t.m4: New file, from GNU gettext.
57333         * m4/vasnprintf.m4: New file.
57334         * m4/vasprintf.m4: New file.
57335
57336 2003-01-30  Bruno Haible  <bruno@clisp.org>
57337
57338         * lib/printf-args.h: New file, from GNU gettext.
57339         * lib/printf-args.c: New file, from GNU gettext.
57340         * lib/printf-parse.h: New file, from GNU gettext.
57341         * lib/printf-parse.c: New file, from GNU gettext.
57342         * lib/vasnprintf.h: New file, from GNU gettext.
57343         * lib/vasnprintf.c: New file, from GNU gettext.
57344         * lib/asnprintf.c: New file, from GNU gettext.
57345         * lib/vasprintf.h: New file, from GNU gettext with modifications.
57346         * lib/vasprintf.c: New file, from GNU gettext.
57347         * lib/asprintf.c: New file, from GNU gettext.
57348
57349 2003-01-29  Bruno Haible  <bruno@clisp.org>
57350
57351         * modules/stpncpy: New module.
57352         * MODULES.html.sh (func_all_modules): Add it.
57353
57354 2003-01-29  Bruno Haible  <bruno@clisp.org>
57355
57356         * m4/stpncpy.m4: New file.
57357
57358 2003-01-29  Bruno Haible  <bruno@clisp.org>
57359
57360         * lib/stpncpy.h: New file, from GNU gettext with modifications.
57361         * lib/stpncpy.c: New file, from GNU gettext with modifications.
57362
57363 2003-01-28  Bruno Haible  <bruno@clisp.org>
57364
57365         * modules/c-ctype: New module.
57366         * MODULES.html.sh (func_all_modules): Add it.
57367
57368 2003-01-28  Bruno Haible  <bruno@clisp.org>
57369
57370         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
57371         Paul Eggert.
57372         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
57373         Paul Eggert.
57374
57375 2003-01-27  Bruno Haible  <bruno@clisp.org>
57376
57377         * modules/xsetenv: New module.
57378         * MODULES.html.sh (func_all_modules): Add it.
57379
57380 2003-01-27  Bruno Haible  <bruno@clisp.org>
57381
57382         * lib/xsetenv.h: New file, from GNU gettext.
57383         * lib/xsetenv.c: New file, from GNU gettext.
57384
57385 2003-01-23  Jim Meyering  <jim@meyering.net>
57386
57387         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
57388         from working on systems without dirfd (at least Irix and OSF1/Tru64).
57389
57390 2003-01-23  Bruno Haible  <bruno@clisp.org>
57391
57392         * modules/minmax: New module.
57393         * MODULES.html.sh (func_all_modules): Add it.
57394
57395 2003-01-23  Bruno Haible  <bruno@clisp.org>
57396
57397         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
57398         Eggert.
57399
57400 2003-01-22  Bruno Haible  <bruno@clisp.org>
57401
57402         * modules/exit: New module.
57403         * MODULES.html.sh (func_all_modules): Add it.
57404
57405 2003-01-22  Bruno Haible  <bruno@clisp.org>
57406
57407         * lib/exit.h: New file, from GNU gettext.
57408
57409 2003-01-19  Bruno Haible  <bruno@clisp.org>
57410
57411         * gnulib-tool: Recognize option --extract-maintainer.
57412         (func_get_maintainer): New function.
57413         * modules/*: Add Maintainer entry.
57414
57415 2003-01-16  Jim Meyering  <jim@meyering.net>
57416
57417         * m4/regex.m4: The `regex' struct is both input and output.
57418         Initialize it before each use.  Patch by Tim Waugh.
57419
57420 2003-01-16  Bruno Haible  <bruno@clisp.org>
57421
57422         * MODULES.html.sh: Add a table of contents. Add the module name as
57423         leftmost column. Add hyperlinks.
57424
57425 2003-01-15  Bruno Haible  <bruno@clisp.org>
57426
57427         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
57428
57429 2003-01-15  Bruno Haible  <bruno@clisp.org>
57430
57431         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
57432         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
57433         suffix.
57434
57435 2003-01-15  Bruno Haible  <bruno@clisp.org>
57436
57437         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
57438
57439 2003-01-15  Bruno Haible  <bruno@clisp.org>
57440
57441         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
57442         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
57443
57444 2003-01-14  Jim Meyering  <jim@meyering.net>
57445
57446         * lib/same.c (same_name): Tweak a comment.
57447
57448 2003-01-14  Bruno Haible  <bruno@clisp.org>
57449
57450         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
57451         when a string comparison is sufficient.
57452
57453 2003-01-14  Bruno Haible  <bruno@clisp.org>
57454
57455         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
57456         'unsigned int'.
57457
57458 2003-01-14  Bruno Haible  <bruno@clisp.org>
57459
57460         * lib/hash-pjw.c: Add comment about low quality of this function.
57461
57462 2003-01-13  Bruno Haible  <bruno@clisp.org>
57463
57464         * modules/stpcpy: Distribute lib/stpcpy.h.
57465         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
57466
57467 2003-01-13  Bruno Haible  <bruno@clisp.org>
57468
57469         * modules/*: Add a description.
57470         * modules/strpbrk: Fix Makefile.am snippet.
57471         * modules/strtoimax: Fix dependencies.
57472         * modules/strtoumax: Likewise.
57473
57474 2003-01-13  Bruno Haible  <bruno@clisp.org>
57475
57476         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
57477         * modules/alloca (Makefile.am): All object files depend on alloca.h.
57478         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
57479
57480 2003-01-13  Bruno Haible  <bruno@clisp.org>
57481
57482         * gnulib-tool (func_create_testdir): Store config/* files in the main
57483         directory.
57484         * config.rpath: Move to ...
57485         * config/config.rpath: ... here.
57486         * modules/gettext: Contains config/config.rpath, not config.rpath.
57487         * modules/iconv: Likewise.
57488
57489 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57490
57491         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57492         to avoid collisions with libcurses and libreadline.
57493
57494         * m4/getstr.m4: Remove.
57495         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
57496
57497 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57498
57499         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57500         to avoid collisions with libcurses and libreadline.
57501
57502         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
57503         * lib/getstr.h, getstr.c: Remove.
57504         * lib/getline.c: Include "getline.h", to check interface.
57505         Move body of old getstr.c here: this defines MIN_CHUNK and
57506         declares getdelim2, which is renamed from getstr.
57507         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
57508
57509         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
57510         All uses changed.
57511         * lib/linebuffer.h: Likewise.
57512         (readline): Remove backward-compatibility macro.
57513
57514 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57515
57516         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57517         to avoid collisions with libcurses and libreadline.
57518         * getstr: Remove.
57519         * MODULES.html.sh: Remove getstr.
57520         * modules/getline: Depend on unlocked-io, not getstr.
57521
57522 2003-01-12  Jim Meyering  <jim@meyering.net>
57523
57524         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
57525
57526 2003-01-10  Bruno Haible  <bruno@clisp.org>
57527
57528         * modules/alloca: Change Makefile.am requirements. Simplify Include
57529         requirements. Add lib/alloca_.h to file list.
57530
57531 2003-01-10  Bruno Haible  <bruno@clisp.org>
57532
57533         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
57534
57535 2003-01-10  Bruno Haible  <bruno@clisp.org>
57536
57537         * lib/alloca_.h: New file.
57538         * lib/getdate.y: Unconditionally include alloca.h.
57539         * lib/makepath.c: Likewise.
57540         * lib/setenv.c: Likewise.
57541         * lib/userspec.c: Likewise.
57542
57543 2003-01-09  Karl Berry  <karl@gnu.org>
57544
57545         * MODULES.html.sh: include `dirname $0` in PATH, to find
57546         gnulib-tool.
57547
57548 2003-01-09  Bruno Haible  <bruno@clisp.org>
57549
57550         * modules/stdbool: Change configure.ac, Makefile.am requirements.
57551         Simplify Include requirements. Add lib/stdbool.h.in to file list.
57552
57553 2003-01-09  Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
57556
57557 2003-01-09  Bruno Haible  <bruno@clisp.org>
57558
57559         * lib/stdbool.h.in: New file.
57560
57561 2003-01-09  Bruno Haible  <bruno@clisp.org>
57562
57563         * gnulib-tool (func_all_modules): Ignore files ending in ~.
57564         * MODULES.html.sh: Likewise.
57565
57566 2003-01-08  Jim Meyering  <jim@meyering.net>
57567
57568         * lib/full-write.c: Undefine and define-away `const' after inclusion
57569         of errno.h, not before.  Suggestion from Bruno Haible.
57570
57571 2003-01-08  Bruno Haible  <bruno@clisp.org>
57572
57573         * modules/full-read: Depend on full-write.
57574
57575 2003-01-08  Bruno Haible  <bruno@clisp.org>
57576
57577         * lib/safe-read.c: Include specification header first, to ensure its
57578         selfcontainedness.
57579         * lib/full-write.c: Likewise.
57580
57581 2003-01-07  Jim Meyering  <jim@meyering.net>
57582
57583         * lib/full-write.c: Rework so that it may serve to define full_read,
57584         too.
57585         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
57586
57587 2003-01-07  Bruno Haible  <bruno@clisp.org>
57588
57589         * lib/strtoimax.c: Include <stdint.h> as an alternative to
57590         <inttypes.h>.
57591         * lib/xstrtol.h: Likewise.
57592         * lib/xstrtoimax.c: Likewise.
57593         * lib/xstrtoumax.c: Likewise.
57594         * lib/human.h: Likewise.
57595
57596         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
57597         on systems that have <inttypes.h> but not <stdint.h>.
57598
57599 2003-01-07  Bruno Haible  <bruno@clisp.org>
57600
57601         * MODULES.html.sh: Add copyright notice.
57602         (missed_files): Omit CVS directory entries.
57603         (func_module): Make it work with sed-3.02.
57604         * MODULES.txt: Remove file.
57605
57606 2003-01-06  Jim Meyering  <jim@meyering.net>
57607
57608         * lib/version-etc.c: Update year in translatable copyright string.
57609
57610 2003-01-03  Karl Berry  <karl@gnu.org>
57611
57612         * config/config.{guess,sub}: update from prep.
57613
57614 2003-01-02  Karl Berry  <karl@gnu.org>
57615
57616         * doc/COPYING.DOC: belatedly updated to 1.2.
57617
57618 2003-01-01  Karl Berry  <karl@gnu.org>
57619
57620         * gnulib-tool (func_verify_module): report module name $module in
57621         error message, not $1.
57622         * gnulib-tool (create-testdir): don't complain if destdir couldn't
57623         be created, only if it doesn't exist.
57624         * gnulib-tool (last_checkin_date): don't expand the $Date here.
57625
57626 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57627
57628         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
57629
57630 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57631
57632         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
57633         memcmp if strcoll doesn't work.
57634
57635 2002-12-31  Bruno Haible  <bruno@clisp.org>
57636
57637         * lib/utime.c (utime_null): No need to call ftruncate if the file was
57638         nonempty.
57639
57640 2002-12-31  Bruno Haible  <bruno@clisp.org>
57641
57642         * lib/memcoll.c (STRCOLL): New macro.
57643         (memcoll): Use it.
57644
57645 2002-12-31  Bruno Haible  <bruno@clisp.org>
57646
57647         * lib/localcharset.h: New file.
57648         * lib/localcharset.c: Include it.
57649         * lib/unicodeio.c: Likewise.
57650
57651 2002-12-31  Bruno Haible  <bruno@clisp.org>
57652
57653         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
57654         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
57655
57656 2002-12-31  Bruno Haible  <bruno@clisp.org>
57657
57658         * lib/getline.h: Include <stddef.h>, for size_t.
57659
57660         * lib/unicodeio.h: Include <stddef.h>, for size_t.
57661         * lib/unicodeio.c: Don't include <stddef.h>.
57662
57663 2002-12-31  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
57666         HAVE_TM_ZONE.
57667
57668 2002-12-24  Karl Berry  <karl@gnu.org>
57669
57670         * config/config.guess: update from prep.
57671
57672 2002-12-24  Bruno Haible  <bruno@clisp.org>
57673
57674         General infrasructure.
57675         * m4/README: Rewritten.
57676         * m4/onceonly.m4: New file.
57677         * m4/onceonly_2_57.m4: New file.
57678
57679         Module atexit.
57680         * m4/atexit.m4: New file.
57681
57682         Module strtod.
57683         * m4/strtod.m4: New file.
57684
57685         Module strtol.
57686         * m4/strtol.m4: New file.
57687
57688         Module strtoul.
57689         * m4/strtoul.m4: New file.
57690
57691         Module memchr.
57692         * m4/memchr.m4: New file.
57693
57694         Module memcmp.
57695         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
57696         (jm_FUNC_MEMCMP): Invoke it.
57697
57698         Module memcpy.
57699         * m4/memcpy.m4: New file.
57700
57701         Module memmove.
57702         * m4/memmove.m4: New file.
57703
57704         Module memset.
57705         * m4/memset.m4: New file.
57706
57707         Module strcspn.
57708         * m4/strcspn.m4: New file.
57709
57710         Module strpbrk.
57711         * m4/strpbrk.m4: New file.
57712
57713         Module strstr.
57714         * m4/strstr.m4: New file.
57715
57716         Module strerror.
57717         * m4/strerror.m4: New file.
57718
57719         Module mktime.
57720         * m4/mktime.m4: Renamed from jm-mktime.m4.
57721         (gl_PREREQ_MKTIME): New macro.
57722         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
57723
57724         Module malloc.
57725         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
57726         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
57727         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
57728
57729         Module realloc.
57730         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
57731         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
57732         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
57733
57734         Module strftime.
57735         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
57736         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
57737         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
57738         gl_TM_GMTOFF.
57739         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
57740
57741         Module xalloc.
57742         * m4/xalloc.m4: New file.
57743
57744         Module alloca.
57745         * m4/alloca.m4: New file.
57746
57747         Module putenv.
57748         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
57749         (jm_FUNC_PUTENV): Invoke it.
57750
57751         Module setenv.
57752         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
57753         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
57754         when invoked twice.
57755         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
57756         gt_FUNC_SETENV.
57757
57758         Module memrchr.
57759         * m4/memrchr.m4: New file.
57760
57761         Module stpcpy.
57762         * m4/stpcpy.m4: New file.
57763
57764         Module strcase.
57765         * m4/strcase.m4: New file.
57766
57767         Module strdup.
57768         * m4/strdup.m4: New file.
57769
57770         Module strnlen.
57771         * m4/strnlen.m4: New file.
57772
57773         Module strndup.
57774         * m4/strndup.m4: New file.
57775
57776         Module xstrtod.
57777         * m4/xstrtod.m4: New file.
57778
57779         Module xstrtol.
57780         * m4/xstrtol.m4: New file.
57781
57782         Module getdate.
57783         * m4/getdate.m4: New file.
57784
57785         Module unlocked-io.
57786         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
57787         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
57788         * m4/jm-glibc-io.m4n: Remove file.
57789
57790         Module long-options.
57791         * m4/long-options.m4: New file.
57792
57793         Module md5.
57794         * m4/md5.m4: New file.
57795
57796         Module sha.
57797         * m4/sha.m4: New file.
57798
57799         Module getstr.
57800         * m4/getstr.m4: New file.
57801
57802         Module getline.
57803         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
57804         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
57805         <sys/types.h>, for size_t. Use the function name gnu_getline, not
57806         simply getline. Infoke gl_PREREQ_GETLINE.
57807
57808         Module obstack.
57809         * m4/obstack.m4: New file.
57810
57811         Module hash.
57812         * m4/hash.m4: New file.
57813
57814         Module readtokens.
57815         * m4/readtokens.m4: New file.
57816
57817         Module strverscmp.
57818         * m4/strverscmp.m4: New file.
57819
57820         Module stdbool.
57821         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
57822         OSF/1.
57823
57824         Module strtoll.
57825         * m4/strtoll.m4: New file.
57826
57827         Module strtoull.
57828         * m4/strtoull.m4: New file.
57829
57830         Module strtoimax.
57831         * m4/strtoimax.m4: New file.
57832
57833         Module strtoumax.
57834         * m4/strtoumax.m4: New file.
57835
57836         Module xstrtoimax.
57837         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
57838         jm_AC_PREREQ_XSTRTOIMAX.
57839         Moved the strtol prerequisites to strtol.m4.
57840         Moved the strtoll prerequisites to strtoll.m4.
57841         Moved the strtoimax prerequisites to strtoimax.m4.
57842
57843         Module xstrtoumax.
57844         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
57845         jm_AC_PREREQ_XSTRTOUMAX.
57846         Moved the strtoul prerequisites to strtoul.m4.
57847         Moved the strtoull prerequisites to strtoull.m4.
57848         Moved the strtoumax prerequisites to strtoumax.m4.
57849
57850         Module chown.
57851         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
57852         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
57853
57854         Module dup2.
57855         * m4/dup2.m4: New file.
57856
57857         Module ftruncate.
57858         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
57859         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
57860
57861         Module getgroups.
57862         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
57863         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
57864
57865         Module gettimeofday.
57866         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
57867         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
57868         gl_PREREQ_GETTIMEOFDAY.
57869
57870         Module mkdir.
57871         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
57872         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
57873
57874         Module mkstemp.
57875         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
57876         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
57877         jm_AC_TYPE_UINTMAX_T.
57878         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
57879
57880         Module stat.
57881         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
57882         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
57883
57884         Module lstat.
57885         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
57886         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
57887
57888         Module timespec.
57889         * m4/timespec.m4 (gl_TIMESPEC): New macro.
57890         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
57891         * m4/st_mtim.m4: Indentation.
57892
57893         Module nanosleep.
57894         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
57895         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
57896         gl_PREREQ_NANOSLEEP.
57897
57898         Module regex.
57899         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
57900         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
57901         (gl_REGEX): New macro.
57902
57903         Module rename.
57904         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
57905         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
57906
57907         Module rmdir.
57908         * m4/rmdir.m4: New file.
57909
57910         Module utime.
57911         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
57912         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
57913         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
57914
57915         Module dirname.
57916         * m4/dirname.m4: New file.
57917
57918         Module getopt.
57919         * m4/getopt.m4: New file.
57920
57921         Module unistd-safer.
57922         * m4/unistd-safer.m4: New file.
57923
57924         Module fnmatch.
57925         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
57926         declaration.
57927         (gl_PREREQ_FNMATCH_EXTRA): New macro.
57928         (gl_FUNC_FNMATCH_POSIX): New macro.
57929         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
57930         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
57931         simply fnmatch.
57932
57933         Module exclude.
57934         * m4/exclude.m4: New file.
57935
57936         Module human.
57937         * m4/human.m4: New file.
57938
57939         Module acl.
57940         * m4/acl.m4: Nop.
57941
57942         Module backupfile.
57943         * m4/backupfile.m4: New file.
57944         * m4/d-ino.m4: Indentation.
57945
57946         Module fsusage.
57947         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
57948         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
57949         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
57950
57951         Module dirfd.
57952         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
57953         requirements.
57954
57955         Module euidaccess.
57956         * m4/euidaccess.m4: New file.
57957
57958         Module file-type.
57959         * m4/file-type.m4: New file.
57960
57961         Module fileblocks.
57962         * m4/fileblocks.m4: New file.
57963
57964         Module filemode.
57965         * m4/filemode.m4: New file.
57966
57967         Module isdir.
57968         * m4/isdir.m4: New file.
57969
57970         Module lchown.
57971         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
57972         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
57973
57974         Module makepath.
57975         * m4/makepath.m4: New file.
57976
57977         Module modechange.
57978         * m4/modechange.m4: New file.
57979
57980         Module mountlist.
57981         * m4/mountlist.m4: New file.
57982         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
57983         Indentation.
57984
57985         Module path-concat.
57986         * m4/path-concat.m4: New file.
57987
57988         Module pathmax.
57989         * m4/pathmax.m4: New file.
57990
57991         Module same.
57992         * m4/same.m4: New file.
57993
57994         Module save-cwd.
57995         * m4/save-cwd.m4: New file.
57996
57997         Module savedir.
57998         * m4/savedir.m4: New file.
57999
58000         Module xgetcwd.
58001         * m4/xgetcwd.m4: New file.
58002         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58003
58004         Module xreadlink.
58005         * m4/xreadlink.m4: New file.
58006
58007         Module safe-read.
58008         * m4/safe-read.m4: New file.
58009
58010         Module safe-write.
58011         * m4/safe-write.m4: New file.
58012
58013         Module closeout.
58014         * m4/closeout.m4: New file.
58015
58016         Module stdio-safer.
58017         * m4/stdio-safer.m4: New file.
58018
58019         Module getpass.
58020         * m4/getpass.m4: New file.
58021
58022         Module getugroups.
58023         * m4/getugroups.m4: New file.
58024
58025         Module group-member.
58026         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58027         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58028
58029         Module idcache.
58030         * m4/idcache.m4: New file.
58031
58032         Module userspec.
58033         * m4/userspec.m4: New file.
58034
58035         Module gettime.
58036         * m4/clock_time.m4: New file.
58037         * m4/gettime.m4: New file.
58038
58039         Module settime.
58040         * m4/settime.m4: New file.
58041
58042         Module posixtm.
58043         * m4/posixtm.m4: New file.
58044
58045         Module gethostname.
58046         * m4/gethostname.m4: New file.
58047
58048         Module canon-host.
58049         * m4/canon-host.m4: New file.
58050
58051         Module gettext.
58052         * m4/codeset.m4: New file, from gettext-0.11.5.
58053         * m4/gettext.m4: New file, from gettext-0.11.5.
58054         * m4/glibc21.m4: New file, from gettext-0.11.5.
58055         * m4/iconv.m4: New file, from gettext-0.11.5.
58056         * m4/intdiv0.m4: New file, from gettext-0.11.5.
58057         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58058         * m4/inttypes.m4: New file, from gettext-0.11.5.
58059         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58060         * m4/isc-posix.m4: New file, from gettext-0.11.5.
58061         * m4/lcmessage.m4: New file, from gettext-0.11.5.
58062         * m4/lib-ld.m4: New file, from gettext-0.11.5.
58063         * m4/lib-link.m4: New file, from gettext-0.11.5.
58064         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58065         * m4/progtest.m4: New file, from gettext-0.11.5.
58066         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58067         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58068         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58069
58070         Module localcharset.
58071         * m4/localcharset.m4: New file.
58072
58073         Module hard-locale.
58074         * m4/hard-locale.m4: New file.
58075
58076         Module mbswidth.
58077         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58078         onceonly macros.
58079         * m4/mbrtowc.m4: Add comment.
58080
58081         Module memcasecmp.
58082         * m4/memcasecmp.m4: New file.
58083
58084         Module memcoll.
58085         * m4/memcoll.m4: New file.
58086
58087         Module unicodeio.
58088         * m4/unicodeio.m4: New file.
58089
58090         Module rpmatch.
58091         * m4/rpmatch.m4: New file.
58092
58093         Module yesno.
58094         * m4/yesno.m4: New file.
58095
58096         Module exitfail.
58097         * m4/exitfail.m4: New file.
58098
58099         Module c-stack.
58100         * m4/c-stack.m4 (gl_C_STACK): New macro.
58101         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58102
58103         Module error.
58104         * m4/error.m4 (gl_ERROR): New macro.
58105         (jm_PREREQ_ERROR): Use onceonly macros.
58106
58107         Module fatal.
58108         * m4/fatal.m4: New file.
58109
58110         Module getloadavg.
58111         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58112         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58113
58114         Module getpagesize.
58115         * m4/getpagesize.m4: New file.
58116
58117         Module getusershell.
58118         * m4/getusershell.m4: New file.
58119
58120         Module physmem.
58121         * m4/physmem.m4: New file.
58122
58123         Module posixver.
58124         * m4/posixver.m4: New file.
58125
58126         Module quotearg.
58127         * m4/quotearg.m4: New file.
58128
58129         Module quote.
58130         * m4/quote.m4: New file.
58131
58132         Module readutmp.
58133         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58134
58135         Module sig2str.
58136         * m4/sig2str.m4: New file.
58137
58138         Other.
58139         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58140         ulonglong.m4.
58141         * m4/intmax_t.m4: New file.
58142         * m4/d-type.m4: Indentation.
58143         * m4/jm-macros.m4: Update.
58144         * m4/prereq.m4 (jm_PREREQ): Update.
58145         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58146         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58147         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58148         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58149         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58150         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58151         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58152         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58153         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58154         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58155         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58156         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58157         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58158         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58159         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58160         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58161         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58162         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58163         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58164
58165 2002-12-24  Bruno Haible  <bruno@clisp.org>
58166
58167         * MODULES.txt: Update according to m4/ changes.
58168
58169         Module gettext.
58170         * config.rpath: New file, from gettext-0.11.5.
58171
58172         * modules/*: New module descriptions.
58173         * gnulib-tool: New file.
58174         * MODULES.html.sh: New file.
58175
58176 2002-12-21  Karl Berry  <karl@gnu.org>
58177
58178         * doc/fdl.texi: update to version 1.2.
58179
58180 2002-12-19  Karl Berry  <karl@gnu.org>
58181
58182         * config/config.guess: update from prep.
58183
58184 2002-12-18  Bruno Haible  <bruno@clisp.org>
58185
58186         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58187         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58188
58189 2002-12-17  Bruno Haible  <bruno@clisp.org>
58190
58191         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58192         stdlib.h, string.h.
58193
58194 2002-12-17  Bruno Haible  <bruno@clisp.org>
58195
58196         * lib/canon-host.c (strdup): Remove unused declaration.
58197
58198         * lib/fsusage.c: Include full_read.h.
58199         (get_fs_usage): Use full_read instead of safe_read.
58200
58201         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58202
58203 2002-12-12  Karl Berry  <karl@gnu.org>
58204
58205         * config/config.guess: update from prep.
58206
58207 2002-12-11  Bruno Haible  <bruno@clisp.org>
58208
58209         * m4/setenv.m4: New file, from gettext-0.11.5.
58210
58211 2002-12-11  Bruno Haible  <bruno@clisp.org>
58212
58213         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58214         not unsetenv().
58215         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58216         modifications:
58217
58218         2002-12-11  Bruno Haible  <bruno@clisp.org>
58219
58220                 * setenv.c (alloca): Fall back to malloc.
58221                 (freea): New macro.
58222                 (setenv): Use freea() to free memory allocated with alloca().
58223
58224         2002-11-13  Bruno Haible  <bruno@clisp.org>
58225
58226                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58227                 function declarations.
58228                 * unsetenv.c (unsetenv): Likewise.
58229
58230         2002-03-04  Bruno Haible  <bruno@clisp.org>
58231
58232                 Portability to AIX 4.3.3.
58233                 * unsetenv.c: New file, extracted from setenv.c.
58234                 * setenv.c: Move the unsetenv() function to unsetenv.c.
58235
58236         2001-12-20  Bruno Haible  <bruno@clisp.org>
58237
58238                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58239                 use malloc instead. For SunOS 4.
58240
58241         2001-12-11  Bruno Haible  <bruno@clisp.org>
58242
58243                 * setenv.c: Declare alloca.
58244                 (compar_fn_t): New typedef.
58245                 (KNOWN_VALUE, STORE_VALUE): Use it.
58246
58247         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58248         setenv.h.
58249
58250 2002-12-10  Paul Eggert  <eggert@twinsun.com>
58251
58252         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58253         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58254         Choose values that are less likely to collide with system fnmatch
58255         options.
58256         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58257         defined (e.g., a pure POSIX system).
58258         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58259         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58260
58261 2002-12-06  Paul Eggert  <eggert@twinsun.com>
58262
58263         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58264         a pain in practice to deal with generated m4 files.  This change
58265         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58266
58267         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58268         and jm-glibc-io.m4, as they are no longer a special case.
58269         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58270         kludge and the auto-generation stuff.  Check only whether the
58271         functions are declared, not whether they exist, since older hosts
58272         that don't declare the functions can't use the optimization anyway.
58273
58274 2002-12-06  Jim Meyering  <jim@meyering.net>
58275
58276         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58277
58278         Merge in changes from libc's misc/error.c, in preparation
58279         for the merge of gnulib's changes back into libc.
58280
58281         * lib/error.c (_): Define only if not already defined.
58282         Move definition to follow all #include directives.
58283         Include unlocked-io.h only if !_LIBC.
58284         [_LIBC]: Include <libio/libioP.h>.
58285         [USE_IN_LIBIO]: Include <libio/iolibio.h>
58286         (fflush): Tweak definition to use INTUSE.
58287         (putc): Define.
58288
58289 2002-12-05  Paul Eggert  <eggert@twinsun.com>
58290
58291         * lib/alloca.c [defined emacs]: Include "lisp.h".
58292         (xalloc_die) [defined emacs]: New macro.
58293         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
58294         [! defined emacs]: Include <xalloc.h>.
58295         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
58296         (pointer): Typedef to POINTER_TYPE *.
58297         (malloc): Remove decl; we now always use xmalloc.
58298         (alloca): Use old-style definition, since Emacs needs this.
58299         Check for arithmetic overflow when computing combined size.
58300
58301 2002-12-04  Paul Eggert  <eggert@twinsun.com>
58302
58303         Do not generate unlocked-io.h automatically, since it's easier to
58304         maintain it by hand.
58305
58306         * lib/unlocked-io.h: New file, from GNU diffutils,
58307         but with proper copyright notice and attribution.
58308         * lib/gen-uio: Remove.
58309         * lib/Makefile.am: Add copyright notice.
58310         (libfetish_a_SOURCES): Add unlocked-io.h.
58311         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
58312         (DISTCLEANFILES, io_functions): Remove macros.
58313         (EXTRA_DIST): Remove gen_uio.
58314         (unlocked-io.h): Remove rule.
58315
58316 2002-12-04  Jim Meyering  <jim@meyering.net>
58317
58318         Reflect the fact that stat.c and lstat.c are no longer generated.
58319         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
58320         (DISTCLEANFILES): Likewise.
58321         (EXTRA_DIST): Likewise.
58322         (all_local): Don't depend on stat.c or lstat.c.
58323         (stat.c, lstat.c): Remove rules.
58324         (EXTRA_DIST): Remove xstat.in.
58325
58326         * lib/xstat.in: Remove file.  Contents moved into stat.c.
58327         * lib/stat.c: New file.  Contents mostly from xstat.in.
58328         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
58329         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
58330
58331         * lib/safe-read.c: Rework so that it may serve to define safe_write,
58332         too.
58333         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
58334
58335 2002-12-03  Jim Meyering  <jim@meyering.net>
58336
58337         * lib/safe-read.c, safe-write.c: Change variable names and comments,
58338         but not semantics, to minimize the differences between these two files.
58339         (safe_read): Change comment to mention SAFE_READ_ERROR.
58340
58341         * lib/safe-read.c (IS_EINTR): Define.
58342         (safe_read): Use IS_EINTR in place of in-function cpp directives.
58343
58344 2002-12-02  Jim Meyering  <jim@meyering.net>
58345
58346         * lib/safe-read.c (EINTR): Define.
58347         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58348         (INT_MAX): Provide fallback.
58349         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
58350
58351         * lib/safe-read.h (SAFE_READ_ERROR): Define.
58352
58353 2002-12-02  Bruno Haible  <bruno@clisp.org>
58354
58355         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
58356         Define, taken from safe-read.c.
58357         (INT_MAX): Provide fallback.
58358         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
58359         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
58360
58361         * lib/safe-read.c (EINTR): Remove definition.
58362         (safe_read): Don't use EINTR if it is absent.
58363
58364 2002-12-01  Jim Meyering  <jim@meyering.net>
58365
58366         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
58367         zero.
58368         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
58369
58370 2002-11-27  Paul Eggert  <eggert@twinsun.com>
58371
58372         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
58373         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
58374         with `if (! (value < limit)) abort ();', for readability.
58375
58376 2002-11-26  Karl Berry  <karl@gnu.org>
58377
58378         * lib/strdup.c: copy from libc again, with jim's ok.
58379         * lib/.cppi-disable: re-add strdup.c
58380
58381 2002-11-25  Karl Berry  <karl@gnu.org>
58382
58383         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
58384         instead of "strtol.c".
58385
58386 2002-11-25  Karl Berry  <karl@gnu.org>
58387
58388         * config/install-sh: update from automake for variable quoting, $0 in
58389         error msgs, etc.
58390
58391         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
58392         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
58393         entry.
58394
58395 2002-11-25  Jim Meyering  <jim@meyering.net>
58396
58397         * lib/mktime.c: Sync from libc, now that it has the latest fix.
58398
58399 2002-11-24  Karl Berry  <karl@gnu.org>
58400
58401         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
58402         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
58403
58404 2002-11-24  Jim Meyering  <jim@meyering.net>
58405
58406         Update from coreutils:
58407
58408         * lib/mktime.c: Merge in changes from libc.
58409
58410         Avoid a link-time failure on some Linux systems.
58411         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
58412         (otherwise).
58413         (__mon_yday): Declare with the STATIC attribute.
58414         (__mktime_internal): Likewise.
58415         Based on a report from Greg Schafer.
58416
58417 2002-11-23  Jim Meyering  <jim@meyering.net>
58418
58419         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
58420         Use `unsigned', not `int', as type of index.
58421
58422         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
58423
58424         * lib/fsusage.c: Remove unneeded parentheses around operands of
58425         `defined'.
58426
58427 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58428
58429         * lib/quotearg.h: Allow multiple inclusion by surrounding with
58430         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
58431         so that we can be included first.
58432         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
58433         * lib/quotearg.c: Include quotearg.h immediately after config.h.
58434         No need to include stddef.h or sys/types.h any more.
58435         Surround local include files with "", not "<>".
58436         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
58437         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
58438         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
58439         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
58440         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
58441         (ISPRINT): Remove; no longer needed now that we assume C89.
58442
58443         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
58444         Preserve errno.
58445
58446         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
58447         quotearg_char): Use SIZE_MAX rather than
58448         (size_t) -1 when we are talking about "infinity".
58449
58450         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
58451
58452 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58453
58454         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
58455         hint that one should use `if (! x) abort ();' rather than `assert
58456         (x);', and anyway it's one less thing to worry about configuring.
58457         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
58458         hash_rehash, hash_insert): Use abort rather than assert.
58459
58460 2002-11-22  Bruno Haible  <bruno@clisp.org>
58461
58462         * lib/safe-read.h: Assume C89. Add comments.
58463         (safe_read): Change return type to size_t.
58464         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
58465         byte counts > SSIZE_MAX correctly.
58466         * lib/safe-write.h: New file.
58467         * lib/safe-write.c: New file.
58468         * lib/full-read.h: New file.
58469         * lib/full-read.c: New file.
58470         * lib/full-write.h: Assume C89. Add comments.
58471         * lib/full-write.c: Include safe-write.h.
58472         (full_write): Rewritten to use safe_write.
58473         Suggested by Jim Meyering and Paul Eggert.
58474
58475 2002-11-21  Jim Meyering  <jim@meyering.net>
58476
58477         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
58478
58479         Merge in changes from the coreutils.
58480
58481         2002-09-25  Paul Eggert  <eggert@twinsun.com>
58482         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
58483         <stdint.h>.
58484         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
58485         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
58486         int.  Work more efficiently if X is the same width as uintmax_t.
58487         Do not compare X to -1, to avoid bogus compiler warning.
58488         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
58489         Don't assume that f_frsize and f_bsize are the same type.
58490
58491         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
58492         warning on FreeBSD.
58493
58494         * lib/makepath.c (make_path): Restore umask *before* creating the final
58495         component.
58496         (make_path): Minor reformatting.
58497
58498         * lib/xmalloc.c: Adjust to work with new autoconf macros,
58499         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
58500         HAVE_MALLOC/HAVE_REALLOC.
58501
58502         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
58503         dummy ones.  At least on GNU/Linux systems, `auto' means something
58504         else.
58505         From Michael Stone.
58506
58507 2002-11-21  Bruno Haible  <bruno@clisp.org>
58508
58509         Remove case insensitive option matching.
58510         * lib/argmatch.h (argcasematch): Remove declaration.
58511         (ARGCASEMATCH): Remove macro.
58512         (__xargmatch_internal): Remove case_sensitive argument.
58513         (XARGMATCH): Update.
58514         (XARGCASEMATCH): Remove macro.
58515         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
58516         case_sensitive argument.
58517         (argcasematch): Remove function.
58518         (__xargmatch_internal): Remove case_sensitive argument.
58519         (main): Use XARGMATCH instead of XARGCASEMATCH.
58520
58521         * lib/xmalloc.c: Change compile-time error message. Add comment about
58522         required autoconf version.
58523
58524 2002-11-20  Paul Eggert  <eggert@twinsun.com>
58525
58526         Merge argmatch cleanups from Bison.  Assume C89.
58527
58528         * lib/argmatch.c: Include config.h here, not in argmatch.h.
58529         Include stdlib.h, for EXIT_FAILURE.
58530         Always include <string.h>, since we assume C89.
58531         (EXIT_FAILURE): Remove pre-C89 bug workaround.
58532         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
58533         Include <stddef.h> instead, since it's all we need for size_t.
58534         (PARAMS): Remove.  All uses removed.
58535         (ARRAY_CARDINALITY): Do not bother to #undef.
58536         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
58537         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58538         Remove unnecessary parentheses.
58539         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58540         Insert necessary parentheses.
58541         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
58542         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
58543
58544 2002-11-19  Bruno Haible  <bruno@clisp.org>
58545
58546         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
58547         * lib/mbswidth.h: Include <stddef.h>, for size_t.
58548
58549         * lib/mbswidth.h (PARAMS): Remove macro.
58550         (mbswidth, mbsnwidth): Use ANSI C function declarations.
58551         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
58552
58553         * lib/gcd.h (PARAMS): Remove macro.
58554         (gcd): Use ANSI C function declarations.
58555         * lib/gcd.c (gcd): Likewise.
58556
58557 2002-11-15  Bruno Haible  <bruno@clisp.org>
58558
58559         * lib/strcspn.c: Include <stddef.h>.
58560         (strcspn): Use ANSI C function declaration. Change return type to
58561         size_t. Use NULL.
58562         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
58563         (strpbrk): Use NULL.
58564         * lib/strpbrk.h (PARAMS): Remove macro.
58565         (strpbrk): Use ANSI C function declaration.
58566         * lib/strstr.c: Don't include <sys/types.h>.
58567         * lib/strstr.h (PARAMS): Remove macro.
58568         (strstr): Use ANSI C function declarations.
58569
58570 2002-11-14  Karl Berry  <karl@gnu.org>
58571
58572         * config/mkinstalldirs: `do' on separate line, instead of
58573         `for var; do'.
58574
58575 2002-11-06  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
58578         * lib/gcd.c (gcd): Likewise.
58579
58580 2002-11-05  Bruno Haible  <bruno@clisp.org>
58581
58582         * lib/gcd.h: New file, from gettext-0.11.5.
58583         * lib/gcd.c: New file, from gettext-0.11.5.
58584
58585 2002-11-05  Bruno Haible  <bruno@clisp.org>
58586
58587         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58588         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58589         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58590         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58591
58592         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
58593         <libintl.h>.
58594         * lib/makepath.c: Include gettext.h instead of <locale.h> and
58595         <libintl.h>.
58596
58597         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
58598         * lib/human.c: Include gettext.h instead of <libintl.h>.
58599         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
58600         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
58601         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
58602         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
58603         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
58604         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
58605         (textdomain): Remove definition.
58606         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
58607
58608         * lib/long-options.c: Remove include of <libintl.h> and definition of
58609         _.
58610         * lib/same.c: Remove include of <libintl.h> and definition of _.
58611
58612 2002-11-04  Owen Taylor  <otaylor@redhat.com>
58613
58614         * lib/config.charset: A few additions for Solaris.
58615
58616 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58617
58618         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
58619         * lib/localcharset.c (locale_charset): Declare as extern "C".
58620
58621 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58622
58623         * lib/config.charset: msdos in uk_UA uses CP1125.
58624
58625 2002-11-04  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
58628         * lib/strcase.h: New file, from GNU gettext-0.11.5.
58629         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
58630         * lib/strstr.h: New file, from GNU gettext-0.11.5.
58631         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
58632
58633 2002-11-04  Bruno Haible  <bruno@clisp.org>
58634
58635         * lib/localcharset.c (locale_charset): Don't return an empty string.
58636
58637 2002-11-04  Bruno Haible  <bruno@clisp.org>
58638
58639         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
58640         aliases.
58641
58642 2002-11-04  Bruno Haible  <bruno@clisp.org>
58643
58644         * lib/config.charset: Update for newest glibc. Add canonical names
58645         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
58646
58647 2002-11-04  Bruno Haible  <bruno@clisp.org>
58648
58649         * lib/config.charset: Add support for NetBSD.
58650
58651 2002-11-04  Bruno Haible  <bruno@clisp.org>
58652
58653         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
58654
58655 2002-11-01  Bruno Haible  <bruno@clisp.org>
58656
58657         * configure.in: Add AC_CONFIG_AUX_DIR call.
58658         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
58659         test/Makefile.
58660         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
58661
58662 2002-09-28  Karl Berry  <karl@gnu.org>
58663
58664         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
58665         installed automake until the next release, since changes have been
58666         made.
58667
58668 2002-09-25  Karl Berry  <karl@gnu.org>
58669
58670         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
58671         * lib/getopt*: copy from libc/posix.
58672         * lib/gettext.h: copy from gettext.
58673         * lib/.cppi-disable: add strdup.c, gettext.h.
58674
58675 2002-09-25  Karl Berry  <karl@gnu.org>
58676
58677         * config/srclist.txt: enable gettext.h check.
58678         * config/config.{guess,sub}: update from prep.
58679         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
58680                 from automake 1.6.3.
58681         See srclist*.
58682
58683 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
58684
58685         * regex.c (PATFETCH): Remove the translating fetch.
58686         (PATFETCH_RAW): Rename to PATFETCH.
58687         (set_image_of_range): New fun.
58688         (SET_RANGE_TABLE_WORK_AREA): Use it.
58689         (regex_compile): Don't translate the pattern chars so eagerly.
58690         Only do it when inserting an `exactn' bytecode or when handling
58691         a char-range.
58692         (mutually_exclusive_p): Avoid empty statement.
58693
58694 2002-07-06  Jim Meyering  <meyering@lucent.com>
58695
58696         * m4/README: Don't mention Makefile.am.in.
58697         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
58698
58699 2002-07-01  Jim Meyering  <meyering@lucent.com>
58700
58701         * lib/c-stack.c: Include sys/time.h.
58702         From Volker Borchert.
58703
58704 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58705
58706         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
58707
58708 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58709
58710         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
58711         New macro.  Use it uniformly instead of
58712         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
58713         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
58714         reported by Vin Shelton.
58715
58716 2002-06-22  Paul Eggert  <eggert@twinsun.com>
58717
58718         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
58719         Do not assume SA_SIGINFO behavior.
58720         Bug reported by Jim Meyering on NetBSD 1.5.2.
58721
58722 2002-06-22  Jim Meyering  <meyering@lucent.com>
58723
58724         * m4/c-stack.m4: New file, from diffutils-2.8.2.
58725         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
58726
58727         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
58728         now that configure.ac uses AC_GNU_SOURCE.
58729         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
58730         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
58731
58732         Update to latest tools.  Suggestions from Paul Eggert.
58733         * m4/stdbool.m4: New file, from diffutils-2.8.2.
58734         * m4/gnu-source.m4: Update from diffutils-2.8.2.
58735         * m4/fnmatch.m4: Likewise.
58736         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
58737         to AC_HEADER_STDBOOL
58738
58739 2002-06-22  Jim Meyering  <meyering@lucent.com>
58740
58741         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
58742         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
58743
58744 2002-06-22  Jim Meyering  <meyering@lucent.com>
58745
58746         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
58747
58748         * lib/exitfail.c, exitfail.h: Likewise.
58749         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
58750
58751         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
58752         of fnmatch.h.
58753         (EXTRA_DIST): Add fnmatch_loop.c.
58754         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
58755
58756         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
58757         * lib/fnmatch.c: Update from diffutils-2.8.2.
58758         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
58759         * lib/fnmatch.h: Remove file.
58760
58761 2002-06-21  Jim Meyering  <meyering@lucent.com>
58762
58763         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
58764         * m4/mbrtowc.m4: Likewise.
58765
58766         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
58767         * m4/mbswidth.m4: Reflect name change:
58768         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
58769         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58770
58771         * m4/lib-link.m4: Update from gettext-0.11.2.
58772         * m4/gettext.m4: Likewise.
58773
58774         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
58775         From Alfred M. Szmidt.
58776
58777 2002-06-18  Paul Eggert  <eggert@twinsun.com>
58778
58779         * lib/file-type.h: Report an error if neither S_ISREG nor
58780         S_IFREG is defined, instead of using a test specific to glibc
58781         2.2.  This should be safe, since POSIX requires S_ISREG and
58782         Unix Version 7 had S_IFREG.  We don't need to check for
58783         <sys/types.h> since we don't use any symbols that it defines.
58784
58785 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
58786
58787         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
58788         $@-t, so that each temporary file name is unique and valid in the first
58789         8 characters, for operation under DOS.
58790
58791 2002-06-15  Paul Eggert  <eggert@twinsun.com>
58792
58793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
58794
58795 2002-06-15  Jim Meyering  <meyering@lucent.com>
58796
58797         Work even with DJGPP 2.03, which lacks support for symlinks.
58798         From Richard Dawe.
58799         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
58800         is defined.
58801         * lib/lchown.c (S_ISLNK): Likewise.
58802
58803 2002-06-15  Jim Meyering  <meyering@lucent.com>
58804
58805         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
58806         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
58807         have been included before this file.
58808
58809 2002-06-14  Jim Meyering  <meyering@lucent.com>
58810
58811         * lib/file-type.h: Use the version from diffutils-2.8.2.
58812         * lib/file-type.c: Likewise.
58813
58814 2002-06-07  Jim Meyering  <meyering@lucent.com>
58815
58816         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
58817         They're needed at least for NetBSD 1.5.2.
58818         ($statxfs_includes): Include those same headers.
58819         ($statxfs_includes): Include sys/vfs.h if available.
58820         ($statxfs_includes): Likewise for sys/statvfs.h.
58821         Check for the following members in both structs statfs and statvfs:
58822         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
58823
58824 2002-06-01  Jim Meyering  <meyering@lucent.com>
58825
58826         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
58827         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
58828
58829 2002-05-28  Jim Meyering  <meyering@lucent.com>
58830
58831         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
58832         Reported by Volker Borchert.
58833
58834 2002-05-27  Jim Meyering  <meyering@lucent.com>
58835
58836         Fix a problem seen only on nonconforming systems whereby ls.c's
58837         use of localtime, and then of gettimeofday would cause trouble:
58838         the localtime call used to initialize rpl_gettimeofday's save
58839         mechanism would clobber ls's current local time information so
58840         that in any long listing the first file would always be listed
58841         with date 1970-01-01.  Analysis by Volker Borchert.
58842
58843         * lib/gettimeofday.c (localtime): Undefine.
58844         (rpl_localtime): New function.
58845
58846 2002-05-27  Jim Meyering  <meyering@lucent.com>
58847
58848         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
58849         localtime.
58850
58851         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
58852         use the replacement function; it wouldn't resolve at link time.
58853         Reported by Volker Borchert.
58854
58855 2002-05-22  Jim Meyering  <meyering@lucent.com>
58856
58857         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
58858         file-type.h.
58859         * lib/file-type.h: New file.
58860         * lib/file-type.c (file_type): New file/function.  Extracted from
58861         diffutils.
58862
58863 2002-04-30  Jim Meyering  <meyering@lucent.com>
58864
58865         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
58866
58867 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58868
58869         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
58870
58871 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58872
58873         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
58874         Do not check for alloca.h (no longer used) or stdbool.h (was never
58875         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
58876
58877 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58878
58879         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
58880
58881 2002-04-29  Jim Meyering  <meyering@lucent.com>
58882
58883         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
58884         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
58885         Use AC_FUNC_STRNLEN here instead.
58886
58887         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
58888         With autoconf-2.53a, it's part of AC_PROG_CC.
58889
58890 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58891
58892         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
58893         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
58894
58895 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58896
58897         * lib/sig2str.h, lib/sig2str.c: New files.
58898         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
58899
58900 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58901
58902         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
58903         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
58904         of 127, since 64 is the largest conceivable number for ancient
58905         nonstandard hosts.
58906         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
58907
58908 2002-04-28  Jim Meyering  <meyering@lucent.com>
58909
58910         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
58911
58912 2002-04-24  Jim Meyering  <meyering@lucent.com>
58913
58914         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
58915         (jm_PREREQ): Use it.
58916
58917         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
58918         mach/mach.h fcntl.h.
58919         Check for this function: setlocale.
58920
58921 2002-04-24  Jim Meyering  <meyering@lucent.com>
58922
58923         * lib/gettext.h: New file, from Gettext.
58924         * lib/Makefile.am (INCLUDES): Remove -I../intl.
58925         (libfetish_a_SOURCES): Add gettext.h.
58926
58927 2002-04-16  Jim Meyering  <meyering@lucent.com>
58928
58929         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
58930         ut_pid, ut_id, ut_exit.
58931
58932 2002-04-16  Jim Meyering  <meyering@lucent.com>
58933
58934         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
58935         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
58936         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
58937
58938 2002-04-12  Jim Meyering  <meyering@lucent.com>
58939
58940         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
58941         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
58942         existence of the getmntinfo function.  Needed for Darwin 5.3.
58943
58944         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
58945         This is necessary at least on Darwin 5.3.
58946
58947         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
58948         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
58949         strnlen.o in the library, and that makes some versions of ranlib
58950         object.
58951
58952 2002-04-12  Jim Meyering  <meyering@lucent.com>
58953
58954         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
58955
58956 2002-04-09  Jim Meyering  <meyering@lucent.com>
58957
58958         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
58959         to be more precise.  Rather than saying we're checking whether the
58960         function `works', say what we're testing.
58961         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
58962         Reported by Bruno Haible.
58963
58964 2002-03-10  Jim Meyering  <meyering@lucent.com>
58965
58966         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
58967         Suggestion from Santiago Vila.
58968
58969 2002-03-08  Jim Meyering  <meyering@lucent.com>
58970
58971         * lib/rename.c: Mention that this wrapper is needed also on
58972         mips-dec-ultrix4.4 systems.
58973
58974 2002-03-02  Jim Meyering  <meyering@lucent.com>
58975
58976         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
58977         not HAVE_CLOCK_SETTIME.
58978
58979 2002-02-27  Paul Eggert  <eggert@twinsun.com>
58980
58981         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
58982         Check for clock_settime.
58983
58984 2002-02-27  Paul Eggert  <eggert@twinsun.com>
58985
58986         * lib/nanosleep.h: Rename to....
58987         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
58988
58989         * lib/gettime.c: New file.
58990         * lib/settime.c: New file.
58991         * lib/stime.c: Remove.
58992
58993         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
58994         timespec.h.  Remove nanosleep.h.
58995
58996 2002-02-25  Paul Eggert  <eggert@twinsun.com>
58997
58998         * m4/acl.m4: New file.
58999         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59000         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59001
59002 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59003
59004         * lib/acl.c, lib/acl.h: New files.
59005         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59006
59007 2002-02-24  Jim Meyering  <meyering@lucent.com>
59008
59009         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59010         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59011         cause trouble.  Reported by Nelson Beebe.
59012
59013 2002-02-23  Paul Eggert  <eggert@twinsun.com>
59014
59015         * lib/path-concat.c (xpath_concat): Reorder code to pacify
59016         compilers that don't know that xalloc_die never returns.
59017
59018 2002-02-20  Jim Meyering  <meyering@lucent.com>
59019
59020         * lib/getdate.c: Regenerate using bison-1.33.
59021
59022 2002-02-17  Jim Meyering  <meyering@lucent.com>
59023
59024         * config/config.guess (main): Don't use `head -1'; it's no longer
59025         portable. Use `sed 1q' instead.
59026
59027 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
59028
59029         * m4/codeset.m4: Upgrade to gettext-0.11.
59030         * m4/gettext.m4: Upgrade to gettext-0.11.
59031         * m4/glibc21.m4: Upgrade to gettext-0.11.
59032         * m4/iconv.m4: Upgrade to gettext-0.11.
59033         * m4/isc-posix.m4: Upgrade to gettext-0.11.
59034         * m4/lcmessage.m4: Upgrade to gettext-0.11.
59035         * m4/lib-ld.m4: New file, from gettext-0.11.
59036         * m4/lib-link.m4: New file, from gettext-0.11.
59037         * m4/lib-prefix.m4: New file, from gettext-0.11.
59038         * m4/progtest.m4: Upgrade to gettext-0.11.
59039
59040 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59041
59042         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59043         (jm_PREREQ): Use it.
59044
59045 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59046
59047         * lib/posixver.c, lib/posixver.h: New files.
59048         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59049
59050 2002-02-02  Paul Eggert  <eggert@twinsun.com>
59051             Bruno Haible  <bruno@clisp.org>
59052
59053         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59054         (fwrite_success_callback): New declaration.
59055         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59056         print_unicode_char. Call failure callback instead of error.
59057         (fwrite_success_callback): New function.
59058         (exit_failure_callback): New function.
59059         (fallback_failure_callback): New function.
59060         (print_unicode_char): Call unicode_to_mb.
59061
59062 2002-01-26  Jim Meyering  <meyering@lucent.com>
59063
59064         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59065         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59066
59067 2002-01-26  Jim Meyering  <meyering@lucent.com>
59068
59069         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59070
59071 2002-01-22  Paul Eggert  <eggert@twinsun.com>
59072
59073         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59074
59075 2002-01-22  Jim Meyering  <meyering@lucent.com>
59076
59077         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59078         Otherwise, some versions of automake would omit the rule that makes
59079         Makefile from Makefile.in.
59080
59081 2002-01-21  Paul Eggert  <eggert@twinsun.com>
59082
59083         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59084         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59085         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59086         (memcoll): Set errno to zero if there is no error.
59087
59088         * lib/quotearg.c (quotearg_buffer_restyled):
59089         Fix bug with quoting buffers containing NUL when backslashing escapes.
59090         This bug was exposed by the other changes in this patch.
59091         (quotearg_n_options): New arg ARGSIZE.
59092         All callers changed.
59093         (quoting_options_from_style): New function.
59094         (quotearg_n_style): Use it.
59095         (quotearg_n_style_mem): New function.
59096
59097         * lib/quotearg.h (quotearg_n_style_mem): New function.
59098
59099 2002-01-19  Jim Meyering  <meyering@lucent.com>
59100
59101         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59102         Remove useless quotes: DF_PROG="df".
59103         * m4/strnlen.m4: New file.
59104
59105 2002-01-16  Paul Eggert  <eggert@twinsun.com>
59106
59107         * lib/backupfile.c (ISDIGIT): Comment fix.
59108         * lib/getdate.y (ISDIGIT): Likewise.
59109         * lib/posixtm.c (ISDIGIT, year): Likewise.
59110         * lib/strverscmp.c (ISDIGIT): Likewise.
59111         * lib/userspec.c (ISDIGIT): Likewise.
59112
59113 2002-01-16  Jim Meyering  <meyering@lucent.com>
59114
59115         * lib/getdate.y: Add three semicolons, each just before a closing
59116         brace. Bison (as of version 1.31) no longer papers over that mistake.
59117
59118 2002-01-05  Jim Meyering  <meyering@lucent.com>
59119
59120         * lib/version-etc.c (version_etc_copyright): Update copyright year.
59121
59122 2001-12-19  Paul Eggert  <eggert@twinsun.com>
59123
59124         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59125         not silently exit merely because the output buffer happens to
59126         have nothing pending.
59127
59128 2001-12-18  Paul Eggert  <eggert@twinsun.com>
59129
59130         See the big note in ../ChangeLog.
59131         * lib/human.c (suffixes): Prefer K to k for 1024.
59132         (generate_suffix_backwards): New function.
59133         (human_readable_inexact): Use it.
59134         * lib/xstrtol.c (__xstrtol): If there is no number but there
59135         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
59136         Accept 'K' as well as 'k'.
59137
59138 2001-12-15  Jim Meyering  <meyering@lucent.com>
59139
59140         * lib/regex.h (__restrict_arr): Update from libc.
59141
59142         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59143         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
59144         (STREQ): Define.
59145
59146 2001-12-14  Jim Meyering  <meyering@lucent.com>
59147
59148         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59149         Suggestion from Bruno Haible.
59150
59151 2001-12-10  Jim Meyering  <meyering@lucent.com>
59152
59153         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59154         xrealloc, Instead, include "xalloc.h".
59155         (initbuffer): Don't cast xmalloc return value to char*.
59156         (readline): Reword comment.
59157         Don't cast xrealloc return value to char*
59158         Return NULL, not 0.
59159
59160 2001-12-09  Jim Meyering  <meyering@lucent.com>
59161
59162         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59163         about `signed and unsigned type in conditional expression'.
59164         * lib/posixtm.c (posix_time_parse): Likewise.
59165
59166         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59167
59168         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59169         to avoid a pedantic warning.
59170
59171         * lib/getstr.c: Don't include assert.h.
59172         (getstr): Remove warning-evoking assertions.
59173         Return -1 if offset parameter is out of bounds.
59174         Change the type of a local from int to size_t.
59175
59176         * lib/strftime.c (my_strftime_localtime_r): Include this function
59177         definition in the `#if ! HAVE_TM_GMTOFF' block.
59178
59179         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59180         Include xalloc.h instead.
59181
59182 2001-12-02  Jim Meyering  <meyering@lucent.com>
59183
59184         * lib/tempname.c: Don't declare getenv, thus reverting the change of
59185         2001-11-18.  It's no longer necessary, now that stdlib.h is always
59186         included.
59187
59188         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59189         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
59190
59191 2001-11-30  Akim Demaille  <akim@epita.fr>
59192
59193         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59194         before being defined.
59195
59196 2001-11-27  Paul Eggert  <eggert@twinsun.com>
59197
59198         * lib/quotearg.h (quotearg_n, quotearg_n_style):
59199         First arg is int, not unsigned.
59200         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59201         (SIZE_MAX, UINT_MAX): New macros.
59202         (quotearg_n_options): Abort if N is negative.
59203         Avoid overflow check on hosts where size_t is 64 bits and int
59204         is 32 bits, as overflow is impossible there.
59205         Fix off-by-one typo that caused unnecessary reallocation.
59206
59207 2001-11-27  Jim Meyering  <meyering@lucent.com>
59208
59209         * lib/tempname.c: Merge with version from libc.
59210         * lib/regex.c: Likewise.
59211
59212         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
59213         systems for which STDC_HEADERS is 0, it was not included, resulting in
59214         a warning about an integer-to-pointer conversion problem with getenv.
59215         Reported by Volker Borchert.
59216
59217 2001-11-26  Jim Meyering  <meyering@lucent.com>
59218
59219         * lib/gtod.h: Remove file.
59220         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59221         * lib/gettimeofday.c: Don't include gtod.h.
59222         (GTOD_init): Remove function.
59223         (rpl_gettimeofday): Do its job here instead, rather than aborting.
59224         Suggestion from Volker Borchert.
59225
59226 2001-11-23  Jim Meyering  <meyering@lucent.com>
59227
59228         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
59229         it.
59230         * lib/hash.c (struct hash_table): Define it here instead.
59231
59232 2001-11-22  Jim Meyering  <meyering@lucent.com>
59233
59234         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59235
59236 2001-11-20  Jim Meyering  <meyering@lucent.com>
59237
59238         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59239         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59240
59241 2001-11-19  Jim Meyering  <meyering@lucent.com>
59242
59243         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59244         directory.  Use "conftestXXXXXX" as the template.
59245         Suggestion from Paul Eggert.
59246
59247         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59248         immediately, so the test doesn't mistakenly hit the max-open-files
59249         limit.
59250
59251 2001-11-18  Paul Eggert  <eggert@twinsun.com>
59252
59253         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59254         (TEMPORARIES): New macro.
59255         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
59256         removes an artificial limitation (e.g. HP-UX 10.20, where
59257         TMP_MAX is 17576).
59258
59259 2001-11-18  Jim Meyering  <meyering@lucent.com>
59260
59261         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59262
59263 2001-11-18  Jim Meyering  <meyering@lucent.com>
59264
59265         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59266         on SunOS 4.
59267
59268         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59269         files will be created before anything else.
59270
59271 2001-11-17  Paul Eggert  <eggert@twinsun.com>
59272
59273         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59274         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59275
59276 2001-11-17  Jim Meyering  <meyering@lucent.com>
59277
59278         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59279         Prompted by a report from Bob Proulx.
59280
59281         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59282         Instead, require UTILS_FUNC_MKSTEMP.
59283
59284 2001-11-17  Jim Meyering  <meyering@lucent.com>
59285
59286         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59287         Now, that's done as part of AC_FUNC_STRTOD.
59288
59289 2001-11-17  Jim Meyering  <meyering@lucent.com>
59290
59291         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
59292         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
59293         rather than group writable.  Patch by Juan F. Codagnone.
59294
59295         * lib/readtokens.c: Remove explicit declarations of xmalloc and
59296         xrealloc, Instead, include "xalloc.h".
59297
59298         * lib/mountlist.c: Include unlocked-io.h after all system headers.
59299         Remove explicit declarations of xmalloc, xrealloc,
59300         and xstrdup.  Instead, include "xalloc.h".
59301
59302         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
59303         unlocked-io.h.
59304         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
59305         Likewise.
59306         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
59307
59308         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
59309         Reported by Padraig Brady.
59310
59311         * lib/mkstemp.c: #undef mkstemp.
59312         Include config.h.
59313         (rpl_mkstemp): Rename from mkstemp.
59314         Protoize.
59315
59316 2001-11-16  Jim Meyering  <meyering@lucent.com>
59317
59318         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
59319         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
59320         determine the amount of total physical memory, use pstat_getstatic.
59321         HPUX-11 doesn't define _SC_PHYS_PAGES.
59322         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
59323         If sysconf couldn't be used to determine the amount of available
59324         physical memory, use both pstat_getstatic and pstat_getdynamic.
59325         Based on a patch from Bob Proulx.
59326
59327 2001-11-10  Jim Meyering  <meyering@lucent.com>
59328
59329         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
59330         (jm_PREREQ): Use it.
59331
59332 2001-11-09  Jim Meyering  <meyering@lucent.com>
59333
59334         * m4/jm-macros.m4: Require autoconf-2.52f.
59335         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
59336         Use these AC_-prefixed names, not the AM_-prefixed ones.
59337
59338         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
59339
59340 2001-11-05  Jim Meyering  <meyering@lucent.com>
59341
59342         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
59343
59344 2001-11-04  Jim Meyering  <meyering@lucent.com>
59345
59346         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
59347         $DEFS.
59348
59349 2001-11-03  Jim Meyering  <meyering@lucent.com>
59350
59351         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
59352         of AC_DEFUN.
59353
59354         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
59355         know the name of the variable in the macro definition.
59356
59357 2001-11-03  Jim Meyering  <meyering@lucent.com>
59358
59359         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
59360         in argmatch_to_argument call.
59361
59362         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
59363         argument.
59364
59365         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
59366         e.g., a fault due to an attempt to free a NULL pointer.
59367
59368 2001-11-01  Jim Meyering  <meyering@lucent.com>
59369
59370         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
59371         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
59372
59373 2001-11-01  Jim Meyering  <meyering@lucent.com>
59374
59375         * lib/dirfd.c, lib/dirfd.h: New files.
59376         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
59377
59378         * lib/hash.c (hash_print) [TESTING]: Clean up.
59379
59380 2001-10-22  Paul Eggert  <eggert@twinsun.com>
59381
59382         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
59383         to avoid a warning if -Wall.
59384
59385 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
59386
59387         * README: New file
59388         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
59389         (per RMS's instructions, this is now the canonical source)
59390         * lgpl/, gpl/: New directories.
59391
59392 2001-10-21  Paul Eggert  <eggert@twinsun.com>
59393
59394         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
59395
59396 2001-10-21  Jim Meyering  <meyering@lucent.com>
59397
59398         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
59399         this code would end up calling gettext even in packages built
59400         with --disable-nls.
59401         * lib/getopt.c (_): Likewise.
59402         * lib/regex.c (_): Likewise.
59403
59404 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59405
59406         * m4/error.m4 (jm_PREREQ_ERROR):
59407         Do not invoke AC_CHECK_FUNCS with strerror_r, as
59408         AC_FUNC_STRERROR_R does that.
59409         Check for strerror declaration.
59410
59411         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
59412         are supposed to have them these days.
59413         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
59414         Merge changes from latest Autoconf CVS.
59415         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
59416         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
59417         POSIX decided to standardize on the int flavor of strerror_r.
59418
59419 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59420
59421         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
59422         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
59423         Use strerror_r that is only a macro, even if it is not a function.
59424         (strerror): Check for HAVE_DECL_STRERROR before declaring.
59425         (private_strerror): Use prototypes, not old-style function definition.
59426         (print_errno_message): New function.
59427         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
59428         char*-flavored one.
59429         (error_tail, error, error_at_line): Use it.
59430
59431 2001-10-11  Jim Meyering  <meyering@lucent.com>
59432
59433         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
59434         and quote_n (1, ... to avoid clobbering a buffer.
59435
59436 2001-10-05  Jim Meyering  <meyering@lucent.com>
59437
59438         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
59439         hash-pjw.h.
59440         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
59441         * lib/hash-pjw.h: New file.
59442
59443 2001-09-30  Jim Meyering  <meyering@lucent.com>
59444
59445         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
59446         `struct fsstat' has the `f_fstypename' member.
59447         Use that to define FS_TYPE, which is now used to make
59448         the getfsstat link test tighter.
59449
59450 2001-09-30  Jim Meyering  <meyering@lucent.com>
59451
59452         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
59453         Include <sys/ucred.h>, for Apple Darwin.
59454         Include sys/mount.h and sys/fs_types.h only if available.
59455         (FS_TYPE): Define.
59456         (read_filesystem_list): Use FS_TYPE.
59457
59458 2001-09-29  Paul Eggert  <eggert@twinsun.com>
59459
59460         * lib/exclude.c (excluded_filename): 0 -> false, since it's
59461         a boolean context.
59462
59463 2001-09-29  Jim Meyering  <meyering@lucent.com>
59464
59465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59466         [one-argument getmntent function]): Include stdio.h before mntent.h.
59467         SunOS 4.1.x needs it for the declaration of `FILE'.
59468         Patch by Volker Borchert.
59469
59470         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59471         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
59472         sys/fs_types.h, and make the link-test for getfsstat guard #include
59473         directives with appropriate #if HAVE_*_H tests so that we can
59474         detect getfsstat on Apple Darwin1.3.7 systems.
59475         Reported by Nelson Beebe.
59476         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
59477
59478 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59479
59480         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59481         #defines strtoimax.  Also treat the other strto* functions
59482         like strtoimax.
59483
59484         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59485         Check for strtoul and strtoumax,
59486         as those declarations are made even in the signed case.
59487         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
59488         Likewise, for strtol and strtoimax.
59489
59490 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59491
59492         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59493         #defines strtoimax.  Also treat the other strto* functions
59494         like strtoimax.
59495
59496         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
59497         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
59498         (strtoimax, strtoumax): Do not declare if already defined as a macro.
59499
59500 2001-09-26  Jim Meyering  <meyering@lucent.com>
59501
59502         Most macros in unlocked-io.h had the wrong number of arguments.
59503         * lib/gen-uio: New script.
59504         (USE_UNLOCKED_IO): Define to 1 if not already defined.
59505         * lib/unlocked-io.hin: Remove file.
59506         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
59507         rather than trying to embed it here.
59508         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
59509         Reported by Padraig Brady.
59510
59511 2001-09-25  Volker Borchert  <bt@teknon.de>
59512
59513         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
59514         `result'.
59515
59516 2001-09-24  Jim Meyering  <meyering@lucent.com>
59517
59518         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
59519
59520 2001-09-23  Jim Meyering  <meyering@lucent.com>
59521
59522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
59523         instead of the mere test for existence of mntent.h.  The latter
59524         would get a false-positive on AIX 3.4 systems.
59525         In the outer getmntent if-block, don't die if neither of the getmntent
59526         tests succeeds.  Instead, just fall through and continue with the
59527         remaining tests.
59528
59529 2001-09-23  Jim Meyering  <meyering@lucent.com>
59530
59531         * lib/mountlist.c: Remove useless parentheses in #if directives.
59532         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
59533         the deprecated MOUNTED symbol is no longer defined in mntent.h.
59534
59535 2001-09-22  Jim Meyering  <meyering@lucent.com>
59536
59537         * m4/gettext.m4: New file.  From gettext.
59538         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
59539         * m4/progtest.m4: Likewise
59540         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
59541         * m4/glibc21.m4: Likewise.
59542
59543         * m4/libintl.m4: Remove.  No longer used.
59544
59545 2001-09-22  Jim Meyering  <meyering@lucent.com>
59546
59547         * lib/localcharset.c: Update from latest gettext.
59548         * lib/config.charset: Likewise.
59549
59550 2001-09-20  Jim Meyering  <meyering@lucent.com>
59551
59552         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
59553         strtoimax.
59554         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
59555         strtoumax.
59556
59557 2001-09-20  Jim Meyering  <meyering@lucent.com>
59558
59559         * lib/xstrtol.c (strtoimax): Guard declaration with
59560         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
59561         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
59562         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
59563         (strtoumax): Likewise, for completeness (it wasn't necessary).
59564
59565 2001-09-17  Paul Eggert  <eggert@twinsun.com>
59566
59567         * lib/strtoimax.c (HAVE_LONG_LONG):
59568         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
59569         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
59570         to work around bug in IBM C compiler.
59571
59572 2001-09-17  Jim Meyering  <meyering@lucent.com>
59573
59574         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
59575         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
59576         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
59577         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
59578         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
59579         whenever the right hand side need not be expanded by the shell.
59580
59581 2001-09-16  Paul Eggert  <eggert@twinsun.com>
59582
59583         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
59584         library.  It's not correct, as some older glibcs are buggy.
59585         fnmatch wasn't fixed until glibc 2.2.
59586
59587         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
59588         special shell magic here.
59589
59590 2001-09-16  Jim Meyering  <meyering@lucent.com>
59591
59592         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
59593         * m4/jm-macros.m4: Require it.
59594
59595 2001-09-16  Jim Meyering  <meyering@lucent.com>
59596
59597         * lib/mkdir.c: New file.
59598
59599 2001-09-15  Jim Meyering  <meyering@lucent.com>
59600
59601         * m4/jm-macros.m4: Check for help2man.
59602
59603 2001-09-11  Jim Meyering  <meyering@lucent.com>
59604
59605         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
59606         The body, by Paul Eggert, was moved here from configure.in.
59607         * m4/jm-macros.m4: Require UTILS_HOST_OS.
59608
59609 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59610
59611         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
59612         (jm_PREREQ): Use it.
59613
59614 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59615
59616         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
59617         Use ssize_t, not int, to store result of readlink.
59618         Check for ssize_t overflow as well as size_t overflow,
59619         as POSIX says the result of readlink is implementation-defined
59620         when ssize_t overflows.
59621         Remove unnecessary cast to char*.
59622         Use free+malloc instead of realloc, as the storage doesn't need
59623         to be preserved and it's clearer and can be more efficient that way.
59624         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
59625         * lib/xreadlink.h (xreadlink): Update prototype.
59626
59627 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59628
59629         * lib/xgetcwd.c: Revert some of the previous change; intead,
59630         fix the HAVE_GETCWD_NULL code to behave more like the
59631         !HAVE_GETCWD_NULL code used to.
59632
59633         Include "xalloc.h".
59634         (xgetcwd): Do not return NULL when memory is exhausted; instead,
59635         invoke xalloc_die.
59636
59637 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59638
59639         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
59640         sys/param.h, as pathmax.h includes them.
59641
59642 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59643
59644         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
59645         (jm_PREREQ_XGETCWD): New macro.
59646
59647         * m4/getcwd.m4: New file.
59648
59649 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59650
59651         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
59652         like the HAVE_GETCWD_NULL code.
59653         Include pathmax.h if not HAVE_GETCWD.
59654         Do not include xalloc.h.
59655         (INITIAL_BUFFER_SIZE): New symbol.
59656         Do not use xmalloc / xrealloc, since the caller is responsible for
59657         handling errors.  Preserve errno around `free' during failure.
59658         Do not overrun buffer when using getwd.
59659
59660 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59661
59662         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
59663         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
59664         getcwd (NULL, 0).
59665
59666 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59667
59668         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
59669         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
59670         spotted by Jim Meyering.
59671
59672 2001-09-03  Jim Meyering  <meyering@lucent.com>
59673
59674         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
59675         failure.
59676
59677 2001-09-02  Jim Meyering  <meyering@lucent.com>
59678
59679         * lib/error.c: Update from GNU libc.
59680
59681 2001-09-01  Jim Meyering  <meyering@lucent.com>
59682
59683         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
59684         Used by df.
59685
59686 2001-09-01  Jim Meyering  <meyering@lucent.com>
59687
59688         * lib/xreadlink.c: New file.
59689         * lib/xreadlink.h: New file.
59690         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
59691         xreadlink.h.
59692
59693         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
59694         doesn't conflict with sparc Solaris 7's definition in
59695         /usr/include/sys/int_types.h.
59696
59697         * lib/exclude.c: Use `""', not `<>' to #include non-system header
59698         files.
59699         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
59700         and strncasecmp as r-values.  Unixware didn't have declarations.
59701
59702 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59703
59704         * lib/xstrtol.h: Add copyright notice.
59705         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
59706         LONGINT_INVALID_SUFFIX_CHAR.
59707
59708 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59709
59710         * lib/xstrtol.c (strtoimax): New decl.
59711
59712 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59713
59714         * lib/xgetcwd.c: Don't include pathmax.h.
59715         Include stdlib.h and unistd.h if available.
59716         Include xalloc.h.
59717         (xmalloc, xstrdup, free): Remove decls.
59718         (xgetcwd): Don't assume sizes fit in unsigned.
59719         Check for overflow when computing sizes.
59720         Simplify reallocation code.
59721
59722 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59723
59724         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
59725         a directory's st_size can have an arbitrary value, so the old
59726         usage could waste an arbitrary amount of memory.  All uses
59727         changed.
59728         * lib/savedir.h: Update prototype.
59729
59730 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59731
59732         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
59733
59734         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
59735         old strtoimax.c.
59736
59737         Also, make the following further changes to make this file's
59738         configuration more similar to that of strtol.c:
59739         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
59740         (strtoumax, uintmax_t, strtoull, strtol): Remove.
59741         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
59742         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
59743         changed to signed values.
59744
59745         And make the following changes as well:
59746         Fix copyright notice, as 1999 was missing.
59747         (verify): New macro.
59748         (strtoimax): Check sizes at compile-time, not run-time.
59749         Prefer strtol to strtoll if both work.
59750         (main): Remove; it was not that useful and was a pain to maintain.
59751
59752         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
59753
59754 2001-08-31  Jim Meyering  <meyering@lucent.com>
59755
59756         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
59757         Use an initial, malloc'd, buffer of length 128 rather than
59758         a statically allocated one of length 1024.
59759
59760 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59761
59762         Simplify code, partly by assuming autoconf 2.52 semantics.
59763
59764         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
59765
59766         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
59767         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
59768         All uses removed.
59769         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
59770         Move AC_REQUIRE to next-to-top level, to avoid confusion.
59771         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
59772         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
59773         jm_AC_HEADER_INTTYPES_H.
59774         * m4/jm-macros.m4 (jm_MACROS): Likewise.
59775
59776         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
59777
59778         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59779         Quote first arg of AC_DEFUN.
59780         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
59781         since they are needed to parse the include file even if we need
59782         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
59783         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
59784         but with opposite signedness.
59785
59786 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59787
59788         Merge 'exclude' changes from tar 1.13.22.
59789         This fixes one or two unlikely storage allocation overflow bugs,
59790         but doesn't change user-visible behavior otherwise.
59791
59792 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59793
59794         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
59795         (jm_PREREQ_EXCLUDE): New macro.
59796
59797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59798
59799         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
59800         tm to be declared.
59801
59802 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59803
59804         * lib/hash.c: Remove '2001' from copyright notice.
59805
59806 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59807
59808         * lib/full-write.h: New file.
59809         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
59810         * lib/full-write.c: Correct credits, as cccp.c no longer
59811         exists and anyway it was so heavily changed from the old cccp
59812         code as to be unrecognizable.  Include full-write.h.
59813         (full_write) Return size_t, with short writes meaning failure.
59814         All callers changed.  This fixes a bug with large buffers
59815         on 64-bit hosts.
59816         * lib/utime.c: Include full-write.h.
59817
59818 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59819
59820         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
59821         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
59822         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
59823         Include if available.
59824         (<xalloc.h>): Include
59825         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
59826         (verify): New macro.  Use it to verify that EXCLUDE macros do not
59827         collide with FNM macros.
59828         (struct patopts): New struct.
59829         (struct exclude): Use it, as exclude patterns now come with options.
59830         (new_exclude): Support above changes.
59831         (new_exclude, add_exclude_file):
59832         Initial size must now be a power of two to simplify overflow checking.
59833         (free_exclude, fnmatch_no_wildcards): New function.
59834         (excluded_filename): No longer requires options arg, as the options
59835         are determined by add_exclude.  Now returns bool, not int.
59836         (excluded_filename, add_exclude):
59837         Add support for the fancy new exclusion options.
59838         (add_exclude, add_exclude_file): Now takes int options arg.
59839         Check for arithmetic overflow when computing sizes.
59840         (add_exclude_file): xrealloc might modify errno, so don't
59841         realloc until after errno might be used.
59842
59843         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
59844         New macros.
59845         (free_exclude): New decl.
59846         (add_exclude, add_exclude_file): Now takes int options arg.
59847         (excluded_filename): No longer requires options arg, as the options
59848         are determined by add_exclude.  Now returns bool, not int.
59849
59850 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59851
59852         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
59853
59854 2001-08-27  Jim Meyering  <meyering@lucent.com>
59855
59856         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
59857
59858         * lib/version-etc.c (N_): Remove definition.
59859         Revert most of last change.
59860         Instead, simply don't mark the `Copyright...' string for translation.
59861         Based on advice from Paul Eggert.
59862
59863         * lib/strtoxmax.c: Tweak comment.
59864
59865 2001-08-26  Jim Meyering  <meyering@lucent.com>
59866
59867         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
59868
59869         * m4/xstrtoimax.m4: New file.
59870         * m4/xstrtoumax.m4: Add comments explaining why we
59871         AC_REPLACE_FUNCS(strtol).
59872
59873 2001-08-26  Jim Meyering  <meyering@lucent.com>
59874
59875         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
59876         of copyright with `%s' so translators don't get an untranslated
59877         message in 2002.
59878         (COPYRIGHT_YEAR): Define.
59879         (version_etc): Use fprintf rather than fputs.
59880         Suggestion from Ulrich Drepper.
59881
59882         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
59883
59884         * lib/strtoll.c: New file, from GNU libc.
59885         * lib/xstrtoimax.c: New file.
59886
59887         * lib/xstrtol.h: Add xstrtoimax.
59888         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
59889         * lib/strtoimax.c: New file.  Likewise, but first define
59890         STRTOUXMAX_SIGNED.
59891
59892         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
59893         ...
59894         * lib/strtoxmax.c: ... then renamed to this.
59895
59896 2001-08-18  Paul Eggert  <eggert@twinsun.com>
59897
59898         * m4/inttypes.m4: Add AC_PREREQ(2.13).
59899         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
59900         (jm_AC_TYPE_INTMAX_T): New macro.
59901         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
59902
59903         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
59904
59905         * m4/longlong.m4: Renamed from ulonglong.m4.
59906         * m4/inttypes.m4: Renamed from inttypes_h.m4.
59907         * m4/uintmax_t.m4: Removed.
59908
59909 2001-08-13  Paul Eggert  <eggert@twinsun.com>
59910
59911         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
59912         Port to Solaris 8, where 'sed' requires a space after the 'r'
59913         command, and where sh dislikes "$/".  Clean up the spacing a bit.
59914         Redirect output to $tmp just once.
59915
59916 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
59917
59918         * lib/addext.c (<errno.h>): Include.
59919         (errno): Declare if not defined.
59920         (addext): Work correctly when pathconf returns -1 and leaves
59921         errno alone because there is no limit.  Also, work even if
59922         pathconf returns a value greater than SIZE_MAX.
59923
59924 2001-08-12  Jim Meyering  <meyering@lucent.com>
59925
59926         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
59927         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
59928         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
59929         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
59930         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
59931         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
59932         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
59933         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
59934         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
59935         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
59936         utime.m4, utimes.m4, xstrtoumax.m4:
59937         Quote the first argument in each use of AC_DEFUN.
59938
59939 2001-08-12  Jim Meyering  <meyering@lucent.com>
59940
59941         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
59942         Simply `return getcwd (NULL, 0);'.
59943         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
59944         Use 1300 as initial value for length, not PATH_MAX.
59945
59946         * lib/pathmax.h: Clean up cpp syntax.
59947
59948 2001-08-12  Jim Meyering  <meyering@lucent.com>
59949
59950         * lib/gettimeofday.c: New file.
59951         * lib/gtod.h: New file.
59952         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
59953
59954 2001-08-05  Jim Meyering  <meyering@lucent.com>
59955
59956         * m4/jm-macros.m4: Require autoconf-2.52.
59957
59958 2001-08-04  Jim Meyering  <meyering@lucent.com>
59959
59960         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
59961         stmt, to get in sync with glibc.
59962
59963 2001-08-03  Paul Eggert  <eggert@twinsun.com>
59964
59965         The following changes are from gettext 0.10.39 as maintained by
59966         Bruno Haible.
59967
59968         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
59969         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
59970         with inverted sense.  All uses changed.
59971
59972         * lib/mbswidth.c: Don't include <limits.h>.
59973         Include <stdlib.h> and <string.h> unconditionally.
59974         (iswcntrl, mbsinit, ISCNTRL): New macros.
59975         (mbsnwidth): Use K&R style function declarations.
59976         Don't bother checking for MB_LEN_MAX == 1, since the compiler
59977         can optimize it when MB_CUR_MAX == 1.
59978         The width of control characters is zero, not 1.
59979
59980 2001-08-03  Paul Eggert  <eggert@twinsun.com>
59981
59982         The following changes are from gettext 0.10.39 as maintained by
59983         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
59984
59985         * m4/codeset.m4: Upgrade to serial AM1.
59986         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
59987         all uses changed.  Quote first arg of AC_DEFUN.
59988         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
59989
59990         * m4/iconv.m4: Upgrade to serial AM2.
59991         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
59992         Add --with-libconv-prefix.
59993         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
59994         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
59995         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
59996         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
59997         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
59998
59999         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60000         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60001         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60002         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60003         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60004         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60005         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60006         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60007         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60008
60009         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60010         string.h any more.
60011
60012         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60013         not the default value.
60014
60015         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
60016         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60017         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
60018         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60019         Also check for iswcntrl, used for wcwidth fallback.
60020         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60021         to Autoconf 2.13.
60022
60023 2001-08-03  Jim Meyering  <meyering@lucent.com>
60024
60025         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60026         as it was in the original.  Reported by Paul Eggert.
60027
60028 2001-07-16  Jim Meyering  <meyering@lucent.com>
60029
60030         * m4/gettimeofday.m4: New file.
60031         Prompted by a report from Bernhard Baehr.
60032
60033 2001-07-15  Jim Meyering  <meyering@lucent.com>
60034
60035         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60036         stuff. Now it's in ../Makefile.cfg.
60037
60038 2001-07-15  Jim Meyering  <meyering@lucent.com>
60039
60040         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60041         (BUILT_SOURCES): Add unlocked-io.h.
60042         (io_functions): Define.
60043         (unlocked-io.h): New rule.
60044         (DISTCLEANFILES): Add unlocked-io.h.
60045         (all-local): Depend on unlocked-io.h, to ensure it is created.
60046
60047         * lib/unlocked-io.hin: New file
60048
60049         * lib/regex.c: Update from glibc.
60050
60051 2001-07-05  Jim Meyering  <meyering@lucent.com>
60052
60053         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60054         recommendation.
60055         (libfetish_a_SOURCES): Put all .h files here instead.
60056         Remove a thus-exposed (better checks in automake) duplicate and
60057         two unnecessary .h files.
60058
60059 2001-07-04  Jim Meyering  <meyering@lucent.com>
60060
60061         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
60062         that generates jm-glibc-io.m4 so that it doesn't trigger any make
60063         distcheck failure.
60064
60065 2001-07-02  Jim Meyering  <meyering@lucent.com>
60066
60067         The following changes were prompted by suggestions from Bruno Haible.
60068
60069         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60070         is now generated.
60071         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60072         definition of EXTRA_DIST.
60073         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60074         ensure that the generated file is created/updated whenever the list
60075         of $(unlocked_functions) is changed.
60076         (jm-glibc-io.m4): New rule.
60077         (unlocked-io.h): New rule -- currently unused.
60078
60079 2001-06-24  Jim Meyering  <meyering@lucent.com>
60080
60081         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60082         unmatched right bracket, rather than kludging it with an extra,
60083         falsely-matching quote in a comment.  Patch by Akim Demaille.
60084
60085 2001-06-11  Jim Meyering  <meyering@lucent.com>
60086
60087         * lib/regex.c: Update from GNU libc.
60088
60089 2001-05-27  Jim Meyering  <meyering@lucent.com>
60090
60091         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60092         Check for ut_type in struct utmp.
60093
60094 2001-05-27  Jim Meyering  <meyering@lucent.com>
60095
60096         * lib/readutmp.h (UT_TYPE): Define.
60097
60098 2001-05-24  Jim Meyering  <meyering@lucent.com>
60099
60100         * lib/argmatch.c: Include "quote.h".
60101         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
60102         quote function.  Reported by Göran Uddeborg.
60103
60104 2001-05-22  Jim Meyering  <meyering@lucent.com>
60105
60106         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60107         now that we use the package-supplied version unconditionally.
60108         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60109
60110 2001-05-21  Jim Meyering  <meyering@lucent.com>
60111
60112         * m4/regex.m4: Change a couple backticks to single quotes to avoid
60113         shell syntax errors.
60114
60115 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60116
60117         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60118
60119 2001-05-20  Paul Eggert  <eggert@twinsun.com>
60120
60121         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60122         Don't bother to check library strftime, since
60123         we'll be using our own my_strftime function anyway.
60124         Define my_strftime instead of strftime.
60125
60126 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
60127
60128         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60129         which is not yet declared.
60130
60131 2001-05-15  Jim Meyering  <meyering@lucent.com>
60132
60133         * m4/regex.m4: Use proper quoting so brackets appear in the test
60134         program.
60135         Reported by, and with help from, Bruno Haible.
60136
60137 2001-05-13  Jim Meyering  <meyering@lucent.com>
60138
60139         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60140         undefined.
60141
60142 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60143
60144         dirname code cleanup.  base_name now behaves more compatibly
60145         with POSIX basename when given file names that have trailing
60146         slashes, and similarly for dir_name.  Add new primitives
60147         base_len and dir_len.  Put the directory-name-related decls
60148         into dirname.h.
60149
60150         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60151         * lib/backupfile.c (base_name): Likewise.
60152         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60153         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60154         * lib/makepath.c (strip_trailing_slashes): Likewise.
60155         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60156         ISSLASH): Likewise.
60157         * lib/rename.c (strip_trailing_slashes): Likewise.
60158         * lib/same.c (base_name): Likewise.
60159         * lib/stripslash.c (ISSLASH): Likewise.
60160
60161         * lib/addext.c: Include <dirname.h> after size_t is defined.
60162         * lib/backupfile.c: Likewise.
60163
60164         * lib/addext.c (addext): Use base_len to trim redundant
60165         trailing slashes instead of doing it ourselves.
60166         But do not trim the last slash if it is not redundant.
60167
60168         * lib/backupfile.c (find_backup_file_name,
60169         max_backup_version): Use base_len instead of rolling it ourselves.
60170         Handle the case of "" and (on DOS) "C:" correctly.
60171
60172         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60173         needed. Include <string.h>, <dirname.h>.
60174         (base_name): Allow file names ending in slashes, other than names
60175         that are all slashes.  In this case, return the basename followed
60176         by the slashes.  This is more general, and can be used in places
60177         where the original base_name purposely had an assertion failure.
60178         (base_len): New function.
60179
60180         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60181         Do not include <assert.h>; no longer needed.
60182         Include xalloc.h.
60183         (memrchr): Remove decl.
60184         (dir_name_r): Remove.
60185         (dir_len): Renamed from dirlen.  All callers changed.
60186         Rewrite in terms of base_name, for simplicity and consistency.
60187         (dir_name): Never return NULL.  All callers changed.
60188         Do not include <stdlib.h> in test program; no longer needed.
60189         return 0; is fine for test program.
60190
60191         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60192         New macros.
60193         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60194
60195         * lib/path-concat.c (path_concat): Use base_len to compute
60196         base length, not strlen; this means we cannot rely on memcpy
60197         to null-terminate.
60198
60199         * lib/same.c (STREQ): Remove.
60200         (same_name): Handle the case where the basename ends in trailing '/'.
60201
60202         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60203         a slash was stripped.  Do not strip the last slash after a
60204         file system prefix.
60205
60206 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60207
60208         * lib/Makefile.am (libfetish_a_SOURCES):
60209         Add strftime.c, since we now compile it on all hosts.
60210
60211         * lib/strftime.c (my_strftime):
60212         Define to nstrftime if emacs, but only if my_strftime is not defined.
60213         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60214         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60215         Add one more extra argument: a nanoseconds value.
60216         All uses changed.
60217         (ns): New macro.
60218         (my_strftime function): Add %N format.
60219         (emacs_strftimeu): Renamed from emacs_strftime,
60220         with extra ut argument.
60221
60222 2001-05-09  Paul Eggert  <eggert@twinsun.com>
60223
60224         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60225
60226 2001-04-21  Jim Meyering  <meyering@lucent.com>
60227
60228         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60229         doesn't interfere.
60230
60231 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60232
60233         * m4/ftruncate.m4: Check for chsize.
60234         Link with ftruncate.o unconditionally if ftruncate is missing.
60235         This was required when cross-compiling to i586-mingw32msvc.
60236
60237 2001-04-08  Jim Meyering  <meyering@lucent.com>
60238
60239         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60240         recomputed; that's necessary when the offset spans a DST transition.
60241         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
60242
60243 2001-04-02  Jim Meyering  <meyering@lucent.com>
60244
60245         * lib/regex.h, regex.c: Update from GNU libc.
60246
60247 2001-03-24  Jim Meyering  <meyering@lucent.com>
60248
60249         * m4/jm-macros.m4: Require autoconf-2.49d.
60250
60251 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
60252
60253         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60254
60255 2001-03-19  Paul Eggert  <eggert@twinsun.com>
60256
60257         * lib/version-etc.c (version_etc_copyright): Update to 2001.
60258
60259 2001-03-17  Jim Meyering  <meyering@lucent.com>
60260
60261         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60262         now that the version in autoconf is equivalent.
60263         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60264
60265         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60266         Suggestion from Akim Demaille.
60267
60268         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60269         (jm_PREREQ_TEMPNAME): New function.
60270
60271 2001-03-16  Paul Eggert  <eggert@twinsun.com>
60272
60273         * lib/tempname.c (uint64_t): Define to uintmax_t if
60274         not defined, and if UINT64_MAX is not defined.
60275         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60276         Reported by John David Anglin.
60277
60278 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
60279
60280         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60281         resolve alias if codeset is empty.
60282         * lib/config.charset (BeOS): Use wildcard syntax.
60283
60284 2001-03-13  Jim Meyering  <meyering@lucent.com>
60285
60286         * lib/path-concat.c (path_concat)
60287         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
60288         concatenating e.g., `C:' and `foo'.
60289         From Bruno Haible.
60290
60291 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60292
60293         * lib/localcharset.c (locale_charset): Don't use
60294         setlocale(LC_CTYPE,NULL). Don't return NULL.
60295         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
60296
60297 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60298
60299         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
60300         support for DOS/DJGPP.
60301
60302 2001-03-01  Paul Eggert  <eggert@twinsun.com>
60303
60304         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
60305         lacks mkstemp.  Compile our own tempname.c if we compile our own
60306         mkstemp.c, as mkstemp relies on tempname.
60307
60308 2001-03-01  Jim Meyering  <meyering@lucent.com>
60309
60310         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
60311         AH_VERBATIM really does output its argument verbatim.
60312
60313 2001-02-28  Paul Eggert  <eggert@twinsun.com>
60314
60315         * lib/Makefile.am (libfetish_a_SOURCES):
60316         Add dup-safer.c, fopen-safer.c.
60317         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
60318
60319         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
60320         * lib/unistd-safer.h: New files.
60321
60322 2001-02-25  Paul Eggert  <eggert@twinsun.com>
60323
60324         The mkstemp replacement is taken from glibc 2.2.2, with some
60325         portability fixes for use outside glibc, as follows:
60326
60327         * lib/tempname.c (struct_stat64): New macro.
60328         (direxists, __gen_tempname): Use it.
60329         This avoids a portability problem with Solaris 8.
60330
60331         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
60332         (<stddef.h>, <stdint.h>, <string.h>):
60333         Include only if STDC_HEADERS || _LIBC.
60334         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
60335         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
60336         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
60337         (__set_errno): Define this macro if <errno.h> doesn't.
60338         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
60339         Define these macros if <stdio.h> doesn't.
60340         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
60341         Define these macros if <sys/stat.h>
60342         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
60343         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
60344         __xstat64): Define if not _LIBC.
60345         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
60346         (__gen_tempname): Invoke gettimeofday only if
60347         HAVE_GETTIMEOFDAY || _LIBC;
60348         otherwise, fall back on plain "time".
60349         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
60350
60351         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
60352
60353         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
60354
60355 2001-02-18  Paul Eggert  <eggert@twinsun.com>
60356
60357         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
60358
60359 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60360
60361         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
60362         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
60363         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
60364         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60365
60366 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60367
60368         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
60369         Remove workaround macros for hosts that have mbrtowc but not
60370         mbstate_t, as we now insist on proper declarations for both
60371         before using mbrtowc.
60372
60373 2001-02-17  Jim Meyering  <meyering@lucent.com>
60374
60375         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
60376         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
60377         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
60378         UnixWare 7.1.1.
60379
60380         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
60381         rather than AC_CACHE_VAL.
60382
60383 2001-02-17  Jim Meyering  <meyering@lucent.com>
60384
60385         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
60386         around included file name.
60387
60388         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
60389
60390         * lib/strftime.c: Update from GNU libc (the only changes were to
60391         comments).
60392
60393 2001-02-17  Jim Meyering  <meyering@lucent.com>
60394
60395         * lib/regex.c: Update from libc.
60396
60397 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
60398
60399         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
60400         clash.
60401
60402 2001-02-16  Paul Eggert  <eggert@twinsun.com>
60403
60404         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
60405         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
60406         Reported by Mark Hounschell via Paul Eggert.
60407
60408 2001-02-07  Jim Meyering  <meyering@lucent.com>
60409
60410         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
60411
60412 2001-02-05  Jim Meyering  <meyering@lucent.com>
60413
60414         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
60415         it includes the patch required for `large file' support with at least
60416         HP-UX's 10.20 /bin/cc.
60417
60418 2001-02-03  Jim Meyering  <meyering@lucent.com>
60419
60420         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
60421         AS_IF, now that it works once again (mysteriously).
60422         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60423
60424 2001-01-30  Jim Meyering  <meyering@lucent.com>
60425
60426         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
60427         * m4/chown.m4: Rename conftestchown to conftest.chown.
60428         * m4/rename.m4: s/conftestdir/conftest.d1/ and
60429         s/conftestdir2/conftest.d2/.
60430         * m4/utimes.m4: s/conftestdata/conftest.data/
60431         Inspired by Pavel Roskin's change in autoconf.
60432
60433 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
60434
60435         * lib/config.charset: Update for FreeBSD 4.2.
60436
60437 2001-01-27  Jim Meyering  <meyering@lucent.com>
60438
60439         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
60440         a use of AS_IF.
60441         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60442
60443 2001-01-26  Jim Meyering  <meyering@lucent.com>
60444
60445         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
60446         quotearg.c includes it.
60447
60448 2001-01-26  Jim Meyering  <meyering@lucent.com>
60449
60450         * lib/quotearg.c: Include stddef.h.
60451         * lib/quote.c: Include stddef.h.
60452         Reported by Axel Kittenberger.
60453
60454         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
60455         line in double quotes so that it evokes a better diagnostic.
60456         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
60457         Reported by Axel Kittenberger.
60458
60459 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
60460
60461         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
60462         as if it was a `charset'.
60463
60464 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60465
60466         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
60467         has const.
60468
60469 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60470
60471         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
60472         to avoid a warning.  Add back 'const' to inptr.
60473
60474 2001-01-20  Jim Meyering  <meyering@lucent.com>
60475
60476         Be sure that headers are checked before used in code compiled
60477         for the type checks.
60478         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
60479         In place of that, invoke jm_CHECK_ALL_TYPES.
60480         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
60481         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
60482         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
60483         The check for ssize_t was mistakenly run before the test for unistd.h.
60484
60485         The configure-time check for stdbool.h was missing.
60486         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
60487         (jm_PREREQ_HASH): New function.
60488
60489 2001-01-17  Jim Meyering  <meyering@lucent.com>
60490
60491         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
60492         for autoconf-2.49c.
60493         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
60494
60495 2001-01-16  Jim Meyering  <meyering@lucent.com>
60496
60497         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
60498         From Bruno Haible.
60499
60500 2001-01-14  Jim Meyering  <meyering@lucent.com>
60501
60502         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
60503         foo and bar.  Create conftestdir/ in the script, not in the C code.
60504         Remove directories in the script, not in the C code.
60505         Remove conftestdir{,2} before trying to create the directory.
60506         Make the entire configure script fail if the mkdir fails.
60507
60508 2001-01-14  Jim Meyering  <meyering@lucent.com>
60509
60510         * lib/rename.c: New file.  From Volker Borchert.
60511         Include stdlib.h, string.h or strings.h, and xalloc.h.
60512         Use strip_trailing_slashes rather than open-coding it.
60513
60514 2001-01-03  Paul Eggert  <eggert@twinsun.com>
60515
60516         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
60517
60518 2001-01-03  Jim Meyering  <meyering@lucent.com>
60519
60520         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
60521         of local `inptr' to avoid warning with some system declarations of
60522         iconv.
60523
60524 2001-01-02  Volker Borchert  <bt@teknon.de>
60525
60526         * m4/rename.m4: New file.
60527         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
60528
60529 2001-01-01  Jim Meyering  <meyering@lucent.com>
60530
60531         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
60532         even on systems with utmpx.h.  It's necessary for the declaration of
60533         utmp's ut_user member.  Reported by Andreas Jaeger.
60534
60535         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
60536         available. They are required for the declarations of getgrgid and
60537         getpwuid resp.
60538         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
60539         Reported by Andreas Jaeger.
60540
60541 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
60542
60543         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
60544         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
60545         so `make install' also works in VPATH builds.
60546
60547 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
60548
60549         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
60550         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
60551         can be used in subdirectories.
60552
60553 2000-12-29  Paul Eggert  <eggert@twinsun.com>
60554
60555         * lib/modechange.c: Do not assume that mode_t uses the
60556         traditional octal encoding.  E.g. "chmod 1 FOO" should set
60557         the other-execute bit of FOO even if S_IXOTH != 1.
60558
60559         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
60560         WOTH, XOTH, ALLM): New macros.
60561         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
60562          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
60563         Use them.
60564         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
60565         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
60566         (mode_compile):
60567         No need to use uintmax_t; unsigned long is long enough.
60568         Don't bother to get suffix since we don't use it.
60569
60570 2000-12-26  Jim Meyering  <meyering@lucent.com>
60571
60572         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
60573         better with autoheader.
60574
60575 2000-12-24  Jim Meyering  <meyering@lucent.com>
60576
60577         * lib/hash.c (is_prime): Return explicit boolean values.
60578         (hash_get_first): Return NULL to appease Irix5.6's 89.
60579         Reported by Nelson Beebe.
60580
60581 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
60582
60583         * lib/localcharset.c (locale_charset): Add support for Win32.
60584
60585 2000-12-18  Paul Eggert  <eggert@twinsun.com>
60586
60587         * lib/physmem.h, lib/physmem.c: New files.
60588
60589         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
60590         (noinst_HEADERS): Add physmem.h.
60591
60592         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
60593         't' for compatibility with Solaris 8 sort.
60594
60595 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
60596
60597         * lib/config.charset: Add support for BeOS.
60598
60599 2000-12-17  Jim Meyering  <meyering@lucent.com>
60600
60601         * m4/dos.m4 (jm_AC_DOS): New file and macro.
60602         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
60603
60604 2000-12-16  Jim Meyering  <meyering@lucent.com>
60605
60606         This bug had a serious impact on chown: `chown N:M FILE' (for integer
60607         N and M) would have treated it like `chown N:N FILE'.
60608
60609         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
60610
60611 2000-12-16  Jim Meyering  <meyering@lucent.com>
60612
60613         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
60614         SHELLS_FILE to a file name that's useful on djgpp systems.
60615         Include stdlib.h.
60616         (ADDITIONAL_DEFAULT_SHELLS): Define.
60617         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
60618         Based mostly on a patch from Prashant TR.
60619
60620 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
60621
60622         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
60623         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
60624         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
60625
60626 2000-12-08  Andreas Schwab  <schwab@suse.de>
60627
60628         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
60629         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
60630
60631 2000-12-07  Jim Meyering  <meyering@lucent.com>
60632
60633         * lib/stripslash.c (ISSLASH): Define.
60634         (strip_trailing_slashes): Use ISSLASH rather than comparing against
60635         `/'.
60636         From Prashant TR.
60637
60638         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
60639         (dir_name_r): Declare this function as static.
60640         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
60641         manifest itself on a name containing a mix of slashes and
60642         backslashes.
60643         Make this function work with names starting with a DOS-style
60644         drive letter and colon prefix.
60645         (dir_name): Append `.' if necessary.
60646         Based mostly on patches from Prashant TR and Eli Zaretskii.
60647
60648         * lib/dirname.h (dir_name_r): Remove prototype.
60649
60650 2000-12-06  Paul Eggert  <eggert@twinsun.com>
60651
60652         * m4/off_t-format.m4: Remove this file.
60653         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
60654
60655 2000-12-06  Jim Meyering  <meyering@lucent.com>
60656
60657         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
60658         replacement strtoull, we may well need the replacement strtoul, too.
60659         Check for declarations of strtoul and strtoull.
60660         Check for strtol.  Mainly as a cue to cause automake to include
60661         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
60662         Check for limits.h -- strtol.c needs it.
60663
60664 2000-12-05  Jim Meyering  <meyering@lucent.com>
60665
60666         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
60667
60668 2000-12-04  Jim Meyering  <meyering@lucent.com>
60669
60670         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
60671         Also include memory.h, stdlib.h, unistd.h if appropriate.
60672         Reported by Andreas Jaeger (conflicting declaration of malloc).
60673
60674 2000-12-02  Jim Meyering  <meyering@lucent.com>
60675
60676         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
60677         * m4/jm-macros.m4 (jm_MACROS): require it.
60678
60679 2000-12-02  Jim Meyering  <meyering@lucent.com>
60680
60681         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
60682
60683 2000-12-01  Paul Eggert  <eggert@twinsun.com>
60684
60685         * lib/memrchr.c: Include <config.h> before any system include file.
60686
60687 2000-11-30  Jim Meyering  <meyering@lucent.com>
60688
60689         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
60690
60691 2000-11-30  Jim Meyering  <meyering@lucent.com>
60692
60693         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
60694
60695 2000-11-29  Paul Eggert  <eggert@twinsun.com>
60696
60697         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
60698
60699 2000-11-26  Jim Meyering  <meyering@lucent.com>
60700
60701         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
60702
60703 2000-11-22  Paul Eggert  <eggert@twinsun.com>
60704
60705         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
60706         size of (size_t) -1; it's not portable.
60707
60708 2000-11-17  Jim Meyering  <meyering@lucent.com>
60709
60710         * lib/strstr.c: Update from GNU libc.
60711
60712 2000-11-17  Akim Demaille  <akim@epita.fr>
60713
60714         * lib/obstack.h: Formatting changes.
60715         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
60716         prevent type checking.
60717         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
60718         cast the value to (void *): assigning a `foo *' to a `void *'
60719         variable is valid.
60720         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
60721
60722 2000-11-16  Jim Meyering  <meyering@lucent.com>
60723
60724         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
60725
60726 2000-11-11  Jim Meyering  <meyering@lucent.com>
60727
60728         * lib/error.c: Add a couple #includes, merging from GNU libc version.
60729
60730 2000-11-10  Jim Meyering  <meyering@lucent.com>
60731
60732         * lib/obstack.h: Update from GNU libc.
60733         * lib/obstack.c: Likewise.
60734
60735 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
60736
60737         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
60738
60739 2000-11-06  Paul Eggert  <eggert@twinsun.com>
60740
60741         * lib/getusershell.c (setusershell): Use rewind rather than
60742         fseek/fseeko, to avoid configuration hassles with fseeko.
60743         Don't bother opening SHELLS_FILE if shellstream is NULL;
60744         it's not necessary.
60745
60746 2000-11-05  Jim Meyering  <meyering@lucent.com>
60747
60748         * lib/makepath.h (make_dir): Declare.
60749         * lib/makepath.c (make_dir): Remove `static' attribute.
60750         Tweak a comment.
60751
60752 2000-11-04  Jim Meyering  <meyering@lucent.com>
60753
60754         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
60755
60756 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
60757
60758         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
60759         last one in a bucket, advance to the next bucket.
60760
60761 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
60762
60763         * lib/fnmatch.c: Do not comment out all the code if we are using
60764         the GNU C library, because in some cases we are replacing buggy
60765         code in the GNU C library itself.
60766
60767 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
60768
60769         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
60770         (regex_compile): Catch bogus \(\1\).
60771
60772 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60773
60774         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
60775         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
60776         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
60777
60778 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60779
60780         * lib/error.h, getline.h, modechange.h:
60781         Remove "2000" from Copyright line, as the file hasn't been
60782         changed this year other than in the copyright notice.
60783
60784         * lib/xalloc.h: Add "2000" to Copyright line, as this file
60785         was changed this year.
60786
60787 2000-10-29  Jim Meyering  <meyering@lucent.com>
60788
60789         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
60790         renaming.
60791         * m4/ls-mntd-fs.m4: Likewise
60792
60793 2000-10-29  Jim Meyering  <meyering@lucent.com>
60794
60795         * lib/xstat.in: Fix grammar in comment.
60796
60797 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
60798
60799         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
60800         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
60801         doesn't define __restrict_arr.
60802
60803 2000-10-28  Jim Meyering  <meyering@lucent.com>
60804
60805         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
60806         (jm_PREREQ_MEMCHR): New function.
60807
60808 2000-10-28  Jim Meyering  <meyering@lucent.com>
60809
60810         * lib/memchr.c: Update from libc.
60811         Adjust for portability:
60812         [HAVE_STDLIB_H]: Include stdlib.h.
60813         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
60814         Undef __memchr, too.
60815         [!weak_alias]: Define __memchr to memchr.
60816
60817         * lib/regex.c: Update from libc.
60818         * lib/regex.h: Likewise.
60819         * lib/getopt1.c: Likewise.
60820         * lib/memcmp.c: Likewise.
60821
60822         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
60823         Avoid using fseek, when possible -- it's broken by design.
60824         Patch by Ulrich Drepper.
60825
60826 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
60827
60828         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
60829         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
60830         Giving in to popular pressure to shut up the compiler with casts.
60831
60832 2000-10-26  Jim Meyering  <meyering@lucent.com>
60833
60834         * lib/strftime.c: Update from libc.
60835
60836 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
60837
60838         * regex.c: More `unsigned char' -> `re_char' changes.
60839         Also change several `int' into `re_wchar_t'.
60840         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
60841         (PUSH_FAILURE_POINTER): Don't cast any more.
60842         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
60843         We want GCC to complain, since this piece of code makes
60844         re_match non-reentrant, which *should* be fixed.
60845         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
60846         (EXTEND_BUFFER): Use RETALLOC.
60847         (SET_LIST_BIT): Don't cast.
60848         (re_wchar_t): New type.
60849         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
60850         that those two functions will always properly return.
60851         (IMMEDIATE_QUIT_CHECK): Cast to void.
60852         (analyse_first): Use recursion rather than an explicit stack.
60853         (re_compile_fastmap): Can't fail anymore.
60854         (re_search_2): Don't check re_compile_fastmap for failure.
60855         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
60856         Now also sets the new value (passed in a new argument).
60857         (re_match_2_internal): Use it.
60858         Also, use a new var `reg' of type size_t when looping through regs
60859         rather than reuse the inappropriate `mcnt'.
60860
60861 2000-10-25  Jim Meyering  <meyering@lucent.com>
60862
60863         * lib/obstack.c: Update from libc.
60864
60865 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
60866
60867         * regex.c (regex_compile): Change the way of handling a range from
60868         a char less than 256 to a char not less than 256.
60869
60870 2000-10-24  Andrew Innes  <andrewi@gnu.org>
60871
60872         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
60873         NT-Emacs only.
60874         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
60875         so that re_search functions only quit when callers expect them to.
60876
60877 2000-10-23  Jim Meyering  <meyering@lucent.com>
60878
60879         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
60880         wrong.  That set_locale call must not have any side effects.
60881         From Paul Eggert.
60882
60883 2000-10-22  Jim Meyering  <meyering@lucent.com>
60884
60885         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
60886         [CYCLIC]: Remove now-unused definition.
60887
60888         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
60889         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
60890         Suggestion from Ulrich Drepper.
60891
60892 2000-10-21  Jim Meyering  <meyering@lucent.com>
60893
60894         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
60895         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
60896         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
60897
60898 2000-10-21  Jim Meyering  <meyering@lucent.com>
60899
60900         * lib/dirname.c (memrchr): Declare if necessary.
60901         (dir_name): Remove the restriction that there be no
60902         trailing slashes.  Now, this code skips past them, effectively
60903         ignoring them.
60904         [TEST_DIRNAME] (main): New unit tests.
60905
60906         * lib/memrchr.c: New file from GNU libc.
60907         Undef __memrchr, too.
60908         [!weak_alias]: Define __memrchr to memrchr.
60909         Guard weak_alias use with `#ifdef weak_alias'.
60910
60911 2000-10-21  Jim Meyering  <meyering@lucent.com>
60912
60913         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
60914         (dir_name): Use dir_name_r.
60915         * lib/dirname.h (dir_name_r): Declare it.
60916
60917 2000-10-17  Jim Meyering  <meyering@lucent.com>
60918
60919         * lib/quote.h (PARAMS): Define and use.
60920         Reported by Akim Demaille.
60921
60922         * lib/getopt.c: Update from libc.
60923
60924 2000-10-16  Jim Meyering  <meyering@lucent.com>
60925
60926         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
60927         setlocale.
60928         From Jan Fedak.
60929
60930 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
60931
60932         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
60933
60934 2000-09-25  Jim Meyering  <meyering@lucent.com>
60935
60936         * lib/md5.h (rol): Define (from GnuPG).
60937
60938         * lib/sha.c: Give credit (GnuPG) where due.
60939         (M): Use rol rather than open-coding it.
60940         Add a FIXME comment.
60941
60942 2000-09-21  Jim Meyering  <meyering@lucent.com>
60943
60944         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
60945         Reported by Michael Stone.
60946
60947 2000-09-20  Jim Meyering  <meyering@lucent.com>
60948
60949         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
60950         (noinst_HEADERS): Add sha.h.
60951         Based on code from Scott G. Miller and from GnuPG.
60952
60953 2000-09-18  Jim Meyering  <meyering@lucent.com>
60954
60955         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
60956         LIBS. Otherwise, everyone ends up linking with -lelf for some
60957         configurations.
60958         Reported by Mike Stone.
60959
60960 2000-09-15  Jim Meyering  <meyering@lucent.com>
60961
60962         * lib/regex.c: Update from libc.
60963
60964 2000-09-10  Jim Meyering  <meyering@lucent.com>
60965
60966         * lib/getopt.c (_getopt_internal): Update from glibc.
60967
60968 2000-09-09  Jim Meyering  <meyering@lucent.com>
60969
60970         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
60971         think it should be used as a general replacement for isascii.
60972         * lib/fnmatch.c: Likewise.
60973         * lib/mbswidth.c: Likewise
60974         * lib/regex.c: Likewise.
60975
60976         Don't use atoi.
60977         * lib/userspec.c: Include sys/param.h and limits.h.
60978         Include xstrtol.h.
60979         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60980         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
60981         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
60982         UID, GID.  Check range.
60983
60984 2000-09-06  Jim Meyering  <meyering@lucent.com>
60985
60986         * lib/getopt.c (_getopt_internal): Update from glibc.
60987
60988 2000-08-30  Jim Meyering  <meyering@lucent.com>
60989
60990         * lib/strftime.c: Merge in changes from GNU libc.
60991
60992 2000-08-26  Jim Meyering  <meyering@lucent.com>
60993
60994         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
60995         * m4/fpending.m4: New file.
60996
60997 2000-08-26  Jim Meyering  <meyering@lucent.com>
60998
60999         * lib/closeout.c: Include "__fpending.h".
61000         (close_stdout_status): Return right away if there's nothing to flush.
61001
61002         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61003         * lib/__fpending.c: New file.
61004         * lib/__fpending.h: New file.
61005
61006 2000-08-20  Jim Meyering  <meyering@lucent.com>
61007
61008         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61009         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
61010         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
61011
61012 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
61013
61014         Improve fileutils installation on systems where running
61015         programs (like install) can't be unlinked.
61016         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61017         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61018
61019 2000-08-07  Paul Eggert  <eggert@twinsun.com>
61020
61021         Standardize on "memory exhausted" instead of "Memory exhausted"
61022         or "virtual memory exhausted".
61023         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61024         "virtual memory exhausted".
61025         * lib/same.c (same_name): Invoke xalloc_die instead of printing
61026         our own message.
61027         * lib/userspec.c (parse_user_spec): Likewise.
61028         * lib/bumpalloc.h: comment fix
61029         * lib/same.c, userspec.c: Include xalloc.h.
61030
61031         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61032         not char *const and pointing to a constant array.
61033         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61034         (xrealloc): Comment fix.
61035
61036         * lib/userspec.c (parse_user_spec):
61037         Don't translate a message until just before returning,
61038         to avoid unnecessary translation.
61039
61040 2000-08-07  Jim Meyering  <meyering@lucent.com>
61041
61042         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61043         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61044         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61045         getgroups.c, gethostname.c, getopt.h, group-member.c,
61046         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61047         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61048         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61049         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61050         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61051         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61052         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61053         yesno.c: Back out Copyright date changes for each file with no change
61054         this year.  This eases coordination with other programs using the same
61055         source code modules.  From Paul Eggert.
61056
61057 2000-08-06  Paul Eggert  <eggert@twinsun.com>
61058
61059         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61060         not char, for compatibility with glibc 2.1.3 strftime.c.
61061
61062 2000-08-03  Greg McGary  <greg@mcgary.org>
61063
61064         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61065         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61066         (EXTEND_BUFFER): Use them.
61067
61068 2000-08-01  Jim Meyering  <meyering@lucent.com>
61069
61070         * lib/dirname.c (ISSLASH): Define.
61071         (BACKSLASH_IS_PATH_SEPARATOR): Define.
61072         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61073         both `\' and `/' may be use as path separators.
61074         Based on a patch from Prashant TR.
61075
61076 2000-07-31  Paul Eggert  <eggert@twinsun.com>
61077
61078         * lib/quotearg.c (quotearg_n_options): Don't make the initial
61079         slot vector a constant, since it might get modified.
61080
61081 2000-07-31  Jim Meyering  <meyering@lucent.com>
61082
61083         * lib/xmalloc.c: Use `virtual memory exhausted', not
61084         `Memory exhausted'.
61085         * lib/obstack.c (print_and_abort): Likewise.
61086
61087 2000-07-30  Paul Eggert  <eggert@twinsun.com>
61088
61089         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61090         buffer, so that the caller can always quote one small
61091         component of a "memory exhausted" message in slot 0.
61092         From a suggestion by Jim Meyering.
61093
61094 2000-07-30  Jim Meyering  <meyering@lucent.com>
61095
61096         * lib/makepath.c (make_path): Quote the other instance, too.
61097
61098         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61099         (STATIC_BUF_SIZE): Define.
61100         (quotearg_n_options): Use only statically allocated storage when
61101         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61102         than STATIC_BUF_SIZE.
61103
61104 2000-07-29  Jim Meyering  <meyering@lucent.com>
61105
61106         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61107         * lib/dirname.c (dir_name): Likewise.
61108
61109         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61110         `/'.
61111
61112         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61113         (dir_name): Assert that there are no trailing slashes.
61114
61115 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
61116
61117         * lib/mbswidth.h (mbswidth): Add a flags argument.
61118         (mbswidth): New declaration.
61119         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61120         * lib/mbswidth.c (mbswidth): Add a flags argument.
61121         (mbsnwidth): New function.
61122
61123 2000-07-24  Jim Meyering  <meyering@lucent.com>
61124
61125         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
61126
61127 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61128
61129         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61130
61131 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61132
61133         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61134         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61135         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61136         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61137         invoke multibyte primitives.
61138
61139 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61140
61141         * lib/quotearg.c:
61142         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61143         so that mbstate_t is always defined.
61144
61145         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61146         be 1 in at least one GCC installation, and this configuration
61147         error is likely to be common.  Ignoring MB_LEN_MAX hurts
61148         performance on hosts that have mbrtowc but have only unibyte
61149         locales, but I assume these hosts are rare.
61150
61151 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61152
61153         * lib/mbswidth.c (_XOPEN_SOURCE):
61154         Don't define; this causes problems on Solaris 7.
61155         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61156
61157 2000-07-23  Jim Meyering  <meyering@lucent.com>
61158
61159         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61160         too: getgrgid, getpwuid, getuid.
61161
61162 2000-07-23  Jim Meyering  <meyering@lucent.com>
61163
61164         * lib/basename.c (base_name): Add an assertion.
61165
61166 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
61167
61168         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61169         shadow its mbsinit function.
61170
61171 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61172
61173         * lib/mbswidth.h: New file.
61174         * lib/mbswidth.c: New file.
61175         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61176         (noinst_HEADERS): Add mbswidth.h.
61177
61178 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61179
61180         * lib/config.charset: Add support for FreeBSD. Improve support for
61181         HP-UX and IRIX 6.
61182
61183 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
61184
61185         * m4/mbswidth.m4: New file.
61186         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61187
61188 2000-07-15  Jim Meyering  <meyering@lucent.com>
61189
61190         * lib/makepath.c: Include quote.h.
61191         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61192         corresponding argument in a `quote (...)' call.
61193         Give better diagnostics.
61194
61195         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61196         (noinst_HEADERS): Add quote.h.
61197
61198         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
61199         from tar's src/misc.c.
61200         * lib/quote.h: New file.  Prototypes for same.
61201
61202 2000-07-14  Paul Eggert  <eggert@twinsun.com>
61203
61204         From a suggestion by Bruno Haible.
61205         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61206         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61207         to decide whether to define the BeOS workaround macro;
61208         this adjusts to the change to AC_MBSTATE_T.
61209
61210 2000-07-14  Jim Meyering  <meyering@lucent.com>
61211
61212         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61213         jm_AC_TYPE_UINTMAX_T.
61214
61215 2000-07-13  Paul Eggert  <eggert@twinsun.com>
61216
61217         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61218
61219         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61220         quotearg_buffer_restyled): Add support for
61221         clocale_quoting_style.  Undo previous change to
61222         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61223         and "{RIGHT QUOTATION MARK}" msgids.
61224
61225 2000-07-10  Paul Eggert  <eggert@twinsun.com>
61226
61227         From a suggestion by Bruno Haible.
61228         * m4/mbstate_t.m4 (AC_MBSTATE_T):
61229         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
61230         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61231         and mbstate_t, to a single-part test that simply defines mbstate_t.
61232         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61233         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61234
61235 2000-07-10  Jim Meyering  <meyering@lucent.com>
61236
61237         * m4/strerror_r.m4: Mirror the correction made in autoconf.
61238
61239         * m4/gnu-source.m4: Output to confdefs.h directly.
61240         Suggestion from Akim Demaille.
61241
61242 2000-07-09  Paul Eggert  <eggert@twinsun.com>
61243
61244         The old behavior of quoting `like this' doesn't look good with
61245         newer, ISO-style fonts.  See:
61246         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61247
61248         Instead, quote "like this" by default.  Let the translator
61249         tailor the locale-specific quoting behavior by providing
61250         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61251
61252         * lib/quotearg.c (N_): New macro.
61253         (gettext_default): New function.
61254         (quotearg_buffer_restyled): Use
61255         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61256         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61257
61258 2000-07-09  Jim Meyering  <meyering@lucent.com>
61259
61260         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61261         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
61262
61263         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61264         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61265
61266 2000-07-09  Jim Meyering  <meyering@lucent.com>
61267
61268         * lib/Most files: Update copyright dates to include 2000.
61269
61270 2000-07-08  Jim Meyering  <meyering@lucent.com>
61271
61272         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61273         if not defined.
61274         (xgethostname): Remove now-unnecessary #ifdef.
61275         Move declaration of `err' into loop where it's used.
61276
61277 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61278         and Bruno Haible  <haible@clisp.cons.org>
61279
61280         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61281         only if the test for an object-type mbstate_t fails.  This
61282         prevents us from mistakenly reporting that mbstate_t is a
61283         system object type after we "#define mbstate_t int" to work
61284         around its lack.
61285
61286 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61287         and Bruno Haible  <haible@clisp.cons.org>
61288
61289         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
61290
61291 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61292
61293         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
61294         to strerror_r.
61295         Include <ctype.h> for use of isalpha.
61296
61297 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61298
61299         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
61300         by allocating a larger buffer. Test the gethostname return value for
61301         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
61302         returns an error and ENAMETOOLONG isn't defined.
61303
61304 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61305
61306         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
61307         dimension.
61308
61309 2000-07-04  Jim Meyering  <meyering@lucent.com>
61310
61311         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
61312         of the deprecated AC_CHECKING.
61313
61314 2000-07-04  Jim Meyering  <meyering@lucent.com>
61315
61316         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
61317         Reported by Bruno Haible.
61318
61319 2000-07-04  Jim Meyering  <meyering@lucent.com>
61320
61321         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
61322         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
61323         lacks mbrtowc.
61324
61325 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61326
61327         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
61328         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
61329
61330 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61331         and Bruno Haible  <haible@clisp.cons.org>
61332
61333         * lib/quotearg.c (mbrtowc):
61334         Assign to *pwc, and return 1 only if result is nonzero.
61335         (iswprint): Use ISPRINT when substituting our own mbrtowc.
61336
61337 2000-07-03  Jim Meyering  <meyering@lucent.com>
61338
61339         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
61340
61341 2000-07-03  Jim Meyering  <meyering@lucent.com>
61342
61343         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
61344         This is necessary to get a definition of e.g., UTMP_FILE on
61345         HP-UX 10.20.
61346         From Bob Proulx.
61347
61348 2000-07-02  Jim Meyering  <meyering@lucent.com>
61349
61350         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
61351
61352         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
61353         AC_LIBOBJ(function_name).
61354         * m4/chown.m4: Likewise.
61355         * m4/fnmatch.m4: Likewise.
61356         * m4/ftruncate.m4: Likewise.
61357         * m4/getgroups.m4: Likewise.
61358         * m4/getline.m4: Likewise.
61359         * m4/group-member.m4: Likewise.
61360         * m4/jm-macros.m4: Likewise.
61361         * m4/lstat.m4: Likewise.
61362         * m4/malloc.m4: Likewise.
61363         * m4/memcmp.m4: Likewise.
61364         * m4/nanosleep.m4: Likewise.
61365         * m4/putenv.m4: Likewise.
61366         * m4/realloc.m4: Likewise.
61367         * m4/regex.m4: Likewise.
61368         * m4/stat.m4: Likewise.
61369         * m4/strftime.m4: Likewise.
61370
61371 2000-07-02  Jim Meyering  <meyering@lucent.com>
61372
61373         * lib/quotearg.c (mbstate_t): Don't define here.
61374
61375 2000-07-02  Jim Meyering  <meyering@lucent.com>
61376
61377         * lib/nanosleep.c (SIGCONT): Define if not already defined.
61378
61379 2000-07-01  Jim Meyering  <meyering@lucent.com>
61380
61381         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
61382
61383 2000-07-01  Jim Meyering  <meyering@lucent.com>
61384
61385         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
61386         problem.
61387
61388 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61389
61390         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
61391         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
61392
61393 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61394
61395         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
61396         per change in ../m4/ls-mntd-fs.m4.
61397         (read_filesystem_list): Ignore symbolic links.
61398
61399 2000-06-29  Jim Meyering  <meyering@lucent.com>
61400
61401         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
61402         for declaration of strcmp.
61403
61404         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
61405
61406         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
61407         Avoid warning by casting result to `char *' to remove `const'.
61408
61409 2000-06-28  Jim Meyering  <meyering@lucent.com>
61410
61411         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
61412         included by quotearg.c, for which we perform this test.  From
61413         Bruno Haible.
61414
61415 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61416
61417         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
61418         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
61419         <utmpx.h> exists, put readutmp.o into LIBOBJS.
61420
61421 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61422
61423         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
61424
61425 2000-06-26  Paul Eggert  <eggert@twinsun.com>
61426
61427         savedir now sets errno on failure and invokes xmalloc to get memory.
61428         Fix a couple of other minor bugs while we're at it.
61429
61430         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
61431         (NAMLEN): Remove macro.
61432         (malloc, realloc): Remove decls.
61433         (stpcpy): Likewise.
61434         ("xalloc.h"): Include.
61435         (NAME_SIZE_DEFAULT): New macro.
61436         (savedir): Use xmalloc / xrealloc to allocate memory.
61437         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
61438         Skip "" directory entries.
61439         Use strlen to calculate directory entry length, since the old method
61440         is rarely used these days and isn't worth supporting.
61441         Don't use a pointer after freeing it.
61442         Check for integer overflow when calculating allocation size.
61443         Use memcpy to copy entries, instead of stpcpy.
61444         Set errno properly when returning NULL.
61445         Check for readdir error.
61446
61447 2000-06-26  Jim Meyering  <meyering@lucent.com>
61448
61449         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
61450
61451 2000-06-25  Jim Meyering  <meyering@lucent.com>
61452
61453         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
61454         Linux header bug when _XOPEN_SOURCE is defined to 500.
61455
61456 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61457
61458         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
61459         deficiency.
61460
61461 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61462
61463         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
61464         Include xalloc.h.
61465         Don't include <stdlib.h>.  Don't declare malloc, realloc.
61466
61467 2000-06-24  Jim Meyering  <meyering@lucent.com>
61468
61469         * m4/strerror_r.m4: Revive this file -- to try out an experimental
61470         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
61471         for which strerror does return char*, but which lacks a conveniently
61472         accessible declaration of the function.  If the compile-test says
61473         strerror_r doesn't work, then resort to a `run'-test that works on
61474         BeOS and segfaults on DEC Unix.
61475
61476 2000-06-24  Jim Meyering  <meyering@lucent.com>
61477
61478         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
61479
61480 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61481
61482         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
61483         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
61484
61485 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61486
61487         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
61488         (mbrtowc, mbstate_t): Define substitutes if
61489         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
61490         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
61491         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
61492
61493 2000-06-23  Jim Meyering  <meyering@lucent.com>
61494
61495         * m4/afs.m4: Add missing AC_MSG_RESULT.
61496         Reported by Bruno Haible.
61497
61498         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
61499         Suggestion from Bruno Haible.
61500
61501 2000-06-23  Jim Meyering  <meyering@lucent.com>
61502
61503         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
61504
61505 2000-06-21  Jim Meyering  <meyering@lucent.com>
61506
61507         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
61508
61509 2000-06-21  Jim Meyering  <meyering@lucent.com>
61510
61511         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
61512         (noinst_HEADERS): Add getstr.h.
61513
61514         * lib/getline.c (getstr): Move into a separate file.
61515         * lib/getstr.c (getstr): New file, extracted from getline.c, with
61516         the following changes: new parameter, delim2; both delim[12]
61517         parameters have type `int', not `char'.  The latter would lose
61518         with 8-bit delimiters.
61519         * lib/getstr.h: New file.
61520
61521 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61522
61523         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
61524         than 1024, return a memory chunk of least possible size, instead
61525         of size PATH_MAX + 2. In the loop, increment the size proportionally.
61526         Use free/xmalloc instead of xrealloc to avoid copying for very long
61527         paths.
61528
61529 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61530
61531         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
61532         the empty string.
61533
61534 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61535
61536         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
61537         address, not strdup.  Include <stdlib.h> and don't declare free().
61538
61539 2000-06-19  Jim Meyering  <meyering@lucent.com>
61540
61541         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
61542
61543 2000-06-18  Jim Meyering  <meyering@lucent.com>
61544
61545         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
61546
61547         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
61548         `checking whether...' message to be consistent with that of the
61549         lstat test.
61550
61551 2000-06-18  Jim Meyering  <meyering@lucent.com>
61552
61553         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
61554         Besides, these days every porting target provides a mkdir function.
61555
61556         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
61557         needed. (this snippet comes from src/system.h).
61558
61559 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
61560
61561         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
61562
61563 2000-06-15  Paul Eggert  <eggert@twinsun.com>
61564
61565         * lib/human.c (adjust_value): New function.
61566         (human_readable_inexact): Apply rounding style even when
61567         printing approximate values.
61568
61569 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61570
61571         * lib/human.c (human_readable_inexact): Allow an input block
61572         size that is not a multiple of the output block size, and vice versa.
61573         Reported by Piergiorgio Sartor.
61574
61575 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61576
61577         * lib/getdate.y (get_date): Apply relative times after time
61578         zone indicator, not before.  Reported by Todd A. Jacobs.
61579
61580 2000-06-13  Jim Meyering  <meyering@lucent.com>
61581
61582         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
61583
61584         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
61585
61586 2000-06-12  Paul Eggert  <eggert@twinsun.com>
61587
61588         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
61589
61590 2000-06-12  Jim Meyering  <meyering@lucent.com>
61591
61592         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
61593         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
61594         optional argument.
61595         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
61596         the optional argument, `lib'.
61597
61598 2000-06-08  Jim Meyering  <meyering@lucent.com>
61599
61600         * m4/largefile.m4: Remove file (now that it's part of autoconf).
61601
61602 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61603
61604         Rewrite largefile configuration so that we don't need to run
61605         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
61606         AC_CANONICAL_HOST in configure.in -- jmm]
61607
61608         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
61609         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
61610         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
61611         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
61612         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
61613         All uses changed.
61614         Instead of inspecting the output of getconf, try to compile the
61615         test program without and with the macro definition.
61616         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
61617         for getconf.  Instead, check for the needed flags by compiling
61618         test programs.
61619
61620 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61621
61622         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
61623
61624 2000-06-04  Jim Meyering  <meyering@lucent.com>
61625
61626         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
61627         SunOS 4.1.4 for which gid_t is an unsigned type.
61628
61629 2000-06-03  Jim Meyering  <meyering@lucent.com>
61630
61631         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
61632         now that autoconf requires that.
61633
61634         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
61635         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
61636         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
61637
61638 2000-06-03  Jim Meyering  <meyering@lucent.com>
61639
61640         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
61641
61642 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61643
61644         * m4/glibc21.m4: New file.
61645         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
61646
61647 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61648
61649         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
61650         newer, don't install charset.alias.
61651         * lib/config.charset: Change the Linux/glibc rules so they become empty
61652         on glibc-2.1 or newer.
61653
61654 2000-06-02  Jim Meyering  <meyering@lucent.com>
61655
61656         * lib/mountlist.c: Back out last change.  Instead, do this...
61657         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
61658         me_dummy member using the same `ignore'-testing code.
61659         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
61660         fs_type strings.
61661         From Mark D. Roth.
61662
61663 2000-05-29  Jim Meyering  <meyering@lucent.com>
61664
61665         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
61666         mounts with the `ignore' attribute.  Based on a patch from
61667         Mark D. Roth.
61668
61669 2000-05-28  Jim Meyering  <meyering@lucent.com>
61670
61671         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
61672         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61673         * m4/stat.m4: Likewise.
61674         * m4/lstat.m4: Likewise.
61675         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
61676
61677         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
61678         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
61679
61680 2000-05-26  Jim Meyering  <meyering@lucent.com>
61681
61682         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
61683
61684 2000-05-24  Jim Meyering  <meyering@lucent.com>
61685
61686         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
61687         autoconf requires that.
61688         * m4/lib-check.m4: Likewise.
61689         * m4/jm-macros.m4: Likewise.
61690         * m4/strftime.m4: Likewise.
61691
61692         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
61693         AC_CHECK_DECLS, now that autoconf requires that.
61694
61695 2000-05-22  Jim Meyering  <meyering@lucent.com>
61696
61697         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61698         * m4/lstat.m4: Likewise.
61699
61700 2000-05-22  Jim Meyering  <meyering@lucent.com>
61701
61702         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
61703
61704 2000-05-20  Jim Meyering  <meyering@lucent.com>
61705
61706         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
61707         (jm_PREREQ): Use it.
61708
61709 2000-05-18  Jim Meyering  <meyering@lucent.com>
61710
61711         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
61712         back, too, since it may have been modified by allocate_entry.
61713         (hash_delete): Rewrite to use neither the assignment operator
61714         nor the comma operator in an if-expression.
61715
61716 2000-05-15  Paul Eggert  <eggert@twinsun.com>
61717
61718         * lib/closeout.c:
61719         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
61720         Remove; no longer needed.
61721         "quotearg.h": Add include.
61722         (file_name): Do not bother to explicitly initialize to NULL; it's less
61723         efficient on some hosts.
61724         (close_stdout_status): Remove test as to whether stdout was already
61725         closed; it breaks for the case "echo x | sort >&-".
61726         Quote file name colons.
61727         Do not assume that _("write error") lacks format strings.
61728
61729 2000-05-15  Jim Meyering  <meyering@lucent.com>
61730
61731         * lib/version-etc.c (version_etc_copyright): Update the copyright
61732         string used in all --version output.
61733
61734 2000-05-14  Jim Meyering  <meyering@lucent.com>
61735
61736         * lib/closeout.c (close_stdout_set_file_name): New function.
61737         (close_stdout_status): Use new file-scoped global.
61738         Return right away if fstat says the stdout file descriptor is invalid.
61739         * lib/closeout.h (close_stdout_set_file_name): Declare.
61740
61741 2000-05-10  Jim Meyering  <meyering@lucent.com>
61742
61743         * lib/closeout.c [default_exit_status]: New file-scoped variable.
61744         (close_stdout_set_status): New function.
61745         * lib/closeout.h (close_stdout_set_status): Declare.
61746
61747 2000-05-09  Jim Meyering  <meyering@lucent.com>
61748
61749         * m4/gettext.m4: Rename this...
61750         * m4/libintl.m4: ...to this.
61751
61752 2000-05-08  Jim Meyering  <meyering@lucent.com>
61753
61754         * lib/long-options.c: Don't include closeout.h.
61755         (parse_long_options): Don't call close_stdout for --version.
61756
61757 2000-05-06  Paul Eggert  <eggert@twinsun.com>
61758
61759         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
61760         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
61761         2.1.3 bug.  This avoids a clash when files like regex.c define
61762         _GNU_SOURCE.
61763
61764 2000-05-06  Jim Meyering  <meyering@lucent.com>
61765
61766         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
61767         (AC_REPLACE_FUNCS): Add strnlen.
61768
61769         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
61770         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
61771
61772         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
61773         AC_SEARCH_LIBS call for nanosleep.
61774         (LIB_NANOSLEEP): Set and AC_SUBST.
61775
61776 2000-05-06  Jim Meyering  <meyering@lucent.com>
61777
61778         * lib/strnlen.c: Undefine __strnlen and strnlen.
61779         [!weak_alias]: Define __strnlen to strnlen.
61780
61781         * lib/atexit.c: New file, from libiberty.
61782
61783 2000-05-06  Jim Meyering  <meyering@lucent.com>
61784
61785         * lib/closeout.c (close_stdout_status): Also check for errors on the
61786         stderr stream.
61787
61788 2000-05-05  Jim Meyering  <meyering@lucent.com>
61789
61790         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
61791         AC_SEARCH_LIBS call for clock_gettime.
61792         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
61793
61794         * m4/search-libs.m4: Update from autoconf.
61795
61796         su doesn't work on Solaris 2.6.
61797         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
61798         <shadow.h>.  Reported by Dragos Harabor.
61799
61800 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
61801
61802         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
61803         memcpy instead of xmalloc, xrealloc, path_concat.
61804         (locale_charset): Treat empty environment variables as absent.
61805         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
61806
61807 2000-05-04  Jim Meyering  <meyering@lucent.com>
61808
61809         * lib/getopt.c: Update from glibc.
61810         * lib/obstack.c: Likewise.
61811         * lib/obstack.h: Likewise.
61812         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
61813         file
61814
61815         * lib/regex.h: Likewise.
61816         * lib/strndup.c: Likewise.
61817         * lib/strnlen.c: New file, from glibc.
61818
61819 2000-05-03  Jim Meyering  <meyering@lucent.com>
61820
61821         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
61822
61823 2000-05-02  Paul Eggert  <eggert@twinsun.com>
61824
61825         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
61826         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
61827         compile-time test, rather than inspecting host and OS, to
61828         decide whether to define _LARGEFILE_SOURCE.
61829
61830 2000-05-01  Jim Meyering  <meyering@lucent.com>
61831
61832         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
61833
61834         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
61835         Based on a patch from Bruno Haible.
61836
61837 2000-05-01  Jim Meyering  <meyering@lucent.com>
61838
61839         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
61840
61841 2000-04-29  Jim Meyering  <meyering@lucent.com>
61842
61843         * lib/path-concat.c: Declare strdup only if it's not defined.
61844         * lib/canon-host.c: Likewise.
61845
61846 2000-04-28  Jim Meyering  <meyering@lucent.com>
61847
61848         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
61849         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
61850         is included first, then limits.h is included by locale.h by libintl.h.
61851         From John David Anglin.
61852
61853 2000-04-25  Jim Meyering  <meyering@lucent.com>
61854
61855         * lib/makepath.c (S_IRWXUGO): Define.
61856         (make_path): Always perform explicit chmod if MODE specifies any
61857         of the `special' permission bits.  Prompted by a bug report against
61858         install from Mate Wierdl and Joost van Baal.
61859
61860 2000-04-18  Jim Meyering  <meyering@lucent.com>
61861
61862         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
61863         (jm_PREREQ): Use it.
61864
61865 2000-04-18  Jim Meyering  <meyering@lucent.com>
61866
61867         * lib/README: New file.
61868
61869         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
61870         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
61871
61872 2000-04-17  Jim Meyering  <meyering@lucent.com>
61873
61874         Get it right :-)
61875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
61876         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
61877         Suggestion from Akim Demaille.
61878
61879 2000-04-17  Jim Meyering  <meyering@lucent.com>
61880
61881         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
61882         the definition of it to rpl_strftime also defined-away the system's
61883         declaration.
61884
61885 2000-04-15  Jim Meyering  <meyering@lucent.com>
61886
61887         Use `C' to denote so-called `contiguous' files, the same way
61888         that tar does.
61889         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
61890         (ftypelet): Use S_ISCTG.
61891         From Michael Deutschmann.
61892
61893 2000-04-14  Jim Meyering  <meyering@lucent.com>
61894
61895         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
61896         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
61897         clobbered.
61898
61899 2000-04-14  Jim Meyering  <meyering@lucent.com>
61900
61901         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
61902
61903 2000-04-13  Jim Meyering  <meyering@lucent.com>
61904
61905         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
61906         AH_VERBATIM to insert required #ifndef into config.h.in.
61907         Suggestion from Akim Demaille.
61908
61909 2000-04-12  Jim Meyering  <meyering@lucent.com>
61910
61911         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
61912         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
61913         Christian Krackowizer.
61914
61915         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
61916         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
61917         (AC_SYS_LARGEFILE): Require.
61918         (AM_C_PROTOTYPES): Require.
61919
61920 2000-04-08  Jim Meyering  <meyering@lucent.com>
61921
61922         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
61923         names don't conflict.  Reported by Eli Zaretskii.
61924
61925 2000-04-07  Jim Meyering  <meyering@lucent.com>
61926
61927         * lib/putenv.c: Move inclusion of errno.h so it follows that of
61928         sys/types.h, to work around system header problems on AIX 3.2.5.
61929         From Bruno Haible.
61930
61931 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
61932
61933         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
61934         bug.  Deal with the different error behavior of Irix iconv.
61935
61936 2000-04-05  Paul Eggert  <eggert@twinsun.com>
61937
61938         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
61939         IRIX if the installer said otherwise.
61940
61941 2000-04-05  Jim Meyering  <meyering@lucent.com>
61942
61943         Portability tweaks required for ultrix4.3.
61944         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
61945         (jm_CHECK_DECLS): Add getutent to the list of functions.
61946         (_jm_DECL_HEADERS): Add utmpx.h.
61947         From John David Anglin.
61948
61949         * m4/strftime.m4: Back out the 2000-04-02 change.
61950         Instead of that change, simply undefine putenv in the test program.
61951
61952 2000-04-05  Jim Meyering  <meyering@lucent.com>
61953
61954         Portability tweaks required for ultrix4.3.
61955         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
61956         getutent.
61957         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
61958         * lib/canon-host.c: Declare strdup.
61959         * lib/path-concat.c: Likewise.
61960         From John David Anglin.
61961
61962 2000-04-04  Jim Meyering  <meyering@lucent.com>
61963
61964         Be more DOS 8.3-friendly.
61965         * lib/ref-add.sin: Renamed from ref-add.sed.in.
61966         * lib/ref-del.sin: Renamed from ref-del.sed.in.
61967         * lib/Makefile.am: Reflect renaming.
61968         Reported by Eli Zaretskii.
61969
61970         Use a temporary file name that won't clash with `charset.alias'
61971         in the DOS 8.3 name space.
61972         * lib/Makefile.am (charset_tmp): Define.
61973         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
61974         (uninstall-local): Likewise.
61975         Reported by Eli Zaretskii.
61976
61977 2000-04-03  Jim Meyering  <meyering@lucent.com>
61978
61979         * m4/gettext.m4: Fix typo in comment.
61980
61981         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
61982         textutils/configure.in).  Suggestion from Paul Eggert.
61983         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
61984
61985 2000-04-02  Paul Eggert  <eggert@twinsun.com>
61986
61987         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
61988         variable in the shell rather than using putenv, which isn't
61989         portable.  This avoids the configure-time inter-test dependency
61990         on the potentially-renamed putenv function.
61991
61992 2000-03-30  Paul Eggert  <eggert@twinsun.com>
61993
61994         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
61995         before checking struct stat.st_blksize, so that
61996         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
61997
61998 2000-03-29  Paul Eggert  <eggert@twinsun.com>
61999
62000         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62001         since strftime.c uses HAVE_STRFTIME to decide whether to use
62002         the underlying strftime.
62003
62004 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62005
62006         * lib/time/strftime.c (my_strftime): Make sure we call the system
62007         strftime, not ourselves, when invoking the underlying strftime.
62008
62009 2000-03-24  Jim Meyering  <meyering@lucent.com>
62010
62011         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62012         (charset_alias): Define.
62013         (install-exec-local): Factor out common code.
62014         (uninstall-local): Split lines longer than 80.
62015         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62016         (SUFFIXES): Define.
62017         (.sed.in.sed): New rule.  Don't redirect directly to $@.
62018         (CLEANFILES): Add ref-add.sed and ref-del.sed.
62019
62020 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
62021
62022         * lib/config.charset: Output a line containing "Packages using this
62023         file".
62024         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62025         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62026         ref-del.sed): New rules.
62027
62028 2000-03-17  Jim Meyering  <meyering@lucent.com>
62029
62030         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62031         Otherwise, include <strings.h>
62032
62033 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
62034
62035         * lib/unicodeio.c (utf8_wctomb): New function.
62036         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62037         format instead of in UCS-4 with platform dependent endianness.
62038
62039 2000-03-10  Jim Meyering  <meyering@lucent.com>
62040
62041         * m4/lib-check.m4: Look for getspnam in -lgen, too.
62042         From Marco Franzen.
62043
62044 2000-03-07  Paul Eggert  <eggert@twinsun.com>
62045
62046         * lib/savedir.c (savedir): Work even if directory size is
62047         negative; this can happen with some screwy NFS configurations.
62048
62049 2000-03-06  Jim Meyering  <meyering@lucent.com>
62050
62051         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62052         if it's NULL (because we ran out of memory).  From Bruno Haible.
62053
62054 2000-03-05  Jim Meyering  <meyering@lucent.com>
62055
62056         * lib/localcharset.c ("path-concat.h"): Include.
62057         (get_charset_aliases): Use path_concat instead of ANSI string
62058         concatenation.
62059
62060         * lib/unicodeio.h (PARAMS): Define.
62061         Use it to guard prototype.
62062
62063 2000-03-04  Jim Meyering  <meyering@lucent.com>
62064
62065         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62066         for lib/localcharset.c.
62067
62068 2000-03-04  Jim Meyering  <meyering@lucent.com>
62069
62070         * lib/Makefile.am (install-exec-local): Create $(libdir) before
62071         installing into it.
62072         (uninstall-local): Uncomment this rule so `make distcheck' works
62073         once again.
62074
62075         * lib/unicodeio.c (<errno.h>): Include it.
62076         (errno): Declare if not defined.
62077
62078         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62079
62080         * lib/config.charset: New version, incorporating remarks from a linux
62081         i18n mailing list.  From Bruno Haible.
62082
62083 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
62084
62085         * m4/codeset.m4: New file.
62086         * m4/iconv.m4: New file.
62087         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62088
62089 2000-03-03  Jim Meyering  <meyering@lucent.com>
62090
62091         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62092
62093 2000-03-02  Jim Meyering  <meyering@lucent.com>
62094
62095         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62096         the messages come out on separate lines.
62097
62098         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62099         rather than jm_CHECK_DECLARATIONS.
62100         * m4/decl.m4: Remove now-unused file.
62101
62102         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62103         geteuid.
62104
62105 2000-03-02  Jim Meyering  <meyering@lucent.com>
62106
62107         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62108
62109 2000-03-01  Jim Meyering  <meyering@lucent.com>
62110
62111         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62112         * lib/unicodeio.c: Likewise.
62113
62114 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
62115
62116         * lib/config.charset: New file.
62117         * lib/localcharset.c: New file.
62118         * lib/unicodeio.h, lib/unicodeio.c: New files.
62119         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62120         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62121         (noinst_HEADERS): Add unicodeio.h.
62122         (all-local, install-exec-local, charset.alias): New targets.
62123
62124 2000-02-28  Paul Eggert  <eggert@twinsun.com>
62125
62126         * lib/quotearg.c (ALERT_CHAR): New macro.
62127         (quotearg_buffer_restyled): Use it.
62128
62129 2000-02-27  Jim Meyering  <meyering@lucent.com>
62130
62131         * m4/check-decl.m4: Add getenv to the list.
62132
62133 2000-02-27  Jim Meyering  <meyering@lucent.com>
62134
62135         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62136         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62137
62138         * lib/backupfile.c: Guard inclusion of stdlib.h with
62139         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62140         Declare malloc if needed.
62141
62142         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62143         `#ifndef HAVE_DECL..'
62144         now that autoconf always defines the HAVE_DECL_ symbols.
62145         * lib/human.c: Likewise.
62146         * lib/same.c: Likewise.
62147         * lib/strtoumax.c: Likewise.
62148
62149         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62150         declaration check was not run.
62151         * lib/hash.c: Likewise.
62152         * lib/human.c: Likewise.
62153         * lib/same.c: Likewise.
62154         * lib/strtoumax.c: Likewise.
62155
62156         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62157         `.', then first look up the entire `.'-containing string as a login
62158         name.
62159
62160 2000-02-23  Jim Meyering  <meyering@lucent.com>
62161
62162         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62163         in place of my hack.
62164
62165 2000-02-18  Paul Eggert  <eggert@twinsun.com>
62166
62167         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62168         (textint): New typedef.
62169         (parser_control): Member year changed from int to textint.
62170         All uses changed.
62171         (YYSTYPE): Removed; replaced by %union with int and textint members.
62172         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62173         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62174         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62175         (tSNUMBER, tUNUMBER): Now of type <textintval>.
62176         (date, number, to_year): Use width of number in digits, not its value,
62177         to determine whether it's a 2-digit year, or a 2-digit time.
62178         (yylex): Store number of digits of numeric tokens.
62179         Reported by John Kendall.
62180
62181         (parser_control): Changed from struct parser_control to typedef (for
62182         consistency).  All uses changed.
62183
62184         (tID): Removed; not used.
62185         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62186
62187 2000-02-14  Paul Eggert  <eggert@twinsun.com>
62188
62189         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62190         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62191
62192 2000-02-12  Jim Meyering  <meyering@lucent.com>
62193
62194         * lib/userspec.c (ISDIGIT): Define it.
62195         (isdigit): Remove definition.
62196         (is_number): Use ISDIGIT, not isdigit.
62197         <libintl.h>: Include.
62198         (_ and N_): Define.
62199         (parse_user_spec): Mark translatable strings.
62200
62201 2000-02-10  Jim Meyering  <meyering@lucent.com>
62202
62203         With these changes, nanosleep.[ch] are finally enough like the other
62204         lib/* replacement files to compile on a few more losing systems.
62205
62206         * lib/nanosleep.h: Don't include config.h.
62207         Remove prototype from declaration of nanosleep.
62208         (PARAMS): Remove now-unneeded definition.
62209         * lib/nanosleep.c: #undef nanosleep.
62210         (rpl_nanosleep): Rename from nanosleep.
62211
62212 2000-02-10  Jim Meyering  <meyering@lucent.com>
62213
62214         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62215         gnu_nanosleep to rpl_nanosleep.
62216
62217 2000-02-09  Jim Meyering  <meyering@lucent.com>
62218
62219         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62220         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
62221
62222 2000-02-08  Akim Demaille  <akim@epita.fr>
62223
62224         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62225         `[' and `]' and remove uses of `changequote'.
62226         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62227         (AC_SYS_LARGEFILE): Likewise.
62228         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62229         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62230         of changequote.
62231         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62232         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62233         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62234         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62235
62236 2000-02-05  Jim Meyering  <meyering@lucent.com>
62237
62238         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62239         Remove explicit use of AC_HEADER_TIME.  It is required by
62240         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
62241         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62242         in autoconf whereby the expansion of the latter ended up preceding
62243         the expansion of its prerequisite, AC_HEADER_TIME.
62244         Reported by Volker Borchert.
62245
62246 2000-02-03  Jim Meyering  <meyering@lucent.com>
62247
62248         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62249
62250 2000-02-03  Jim Meyering  <meyering@lucent.com>
62251
62252         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62253         rather than with `#if HAVE_UTMPNAME'.
62254
62255 2000-02-02  Jim Meyering  <meyering@lucent.com>
62256
62257         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62258         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62259         Reported by Eli Zaretskii.
62260
62261 2000-02-01  Jim Meyering  <meyering@lucent.com>
62262
62263         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
62264
62265 2000-01-31  Jim Meyering  <meyering@lucent.com>
62266
62267         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62268         functions.  Add the time.h and sys/time.h headers along with the
62269         AC_REQUIRE'ment of AC_HEADER_TIME.
62270
62271 2000-01-31  Jim Meyering  <meyering@lucent.com>
62272
62273         * lib/nanosleep.h (nanosleep): Guard declaration with
62274         `#if ! HAVE_DECL_NANOSLEEP'.
62275         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62276         the declaration in that vendor's sys/timers.h.
62277         Reported by Christian Krackowizer.
62278
62279         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62280         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62281         (ISPRINT): Likewise.
62282         Reported by Tom Tromey.
62283
62284 2000-01-30  Jim Meyering  <meyering@lucent.com>
62285
62286         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62287
62288         * m4/prereq.m4 (utmp_includes): Define.
62289         Check for ut_user and ut_name members in both struct utmpx
62290         and struct utmp.
62291
62292 2000-01-30  Jim Meyering  <meyering@lucent.com>
62293
62294         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
62295         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
62296         header files where only utmpx.ut_user is declared.
62297
62298         * lib/readutmp.h (UT_USER): Define.
62299
62300 2000-01-29  Jim Meyering  <meyering@lucent.com>
62301
62302         * m4/lib-check.m4: New file containing library-related checks from
62303         fileutils and sh-utils (textutils had none).
62304
62305 2000-01-28  Jim Meyering  <meyering@lucent.com>
62306
62307         * m4/perl.m4: Change format of warning message to look more like that
62308         from the missing script.  Suggestion from François Pinard.
62309
62310 2000-01-25  Jim Meyering  <meyering@lucent.com>
62311
62312         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
62313         well as time.h in the compile check.
62314         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
62315         Fix typo in cross-compiling case: s/yes/no/.
62316
62317 2000-01-23  Jim Meyering  <meyering@lucent.com>
62318
62319         * m4/jm-macros.m4: Move df-related tests here from
62320         fileutils/configure.in
62321
62322         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
62323         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
62324
62325         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
62326         s/space/ac_fsusage_space/.
62327         (jm_FILE_SYSTEM_USAGE): Take two parameters.
62328
62329         * m4/ftruncate.m4: New file (derived from part of
62330         fileutils/configure.in).
62331         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
62332         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
62333
62334         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
62335         AC_SUBST these here, rather than just in sh-util/configure.in, so
62336         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
62337         all the same.
62338         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
62339         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
62340         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
62341         (AC_SUBST(POW_LIBM)): Likewise.
62342         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
62343
62344 2000-01-23  Jim Meyering  <meyering@lucent.com>
62345
62346         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
62347         obstack.c.
62348
62349 2000-01-22  Jim Meyering  <meyering@lucent.com>
62350
62351         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
62352
62353         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
62354
62355         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
62356         configure.in
62357         (AC_CHECK_HEADERS): Likewise for sh-utils.
62358         (AC_CHECK_HEADERS): Likewise for textutils.
62359         Merge the three lists of headers.
62360
62361         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
62362         from fileutils' configure.in.
62363
62364         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
62365         code. Moved tests into their own function (_jm_DECL_HEADERS) in
62366         check-decl.m4.
62367
62368         * m4/check-decl.m4: Use #if rather than #ifdef.
62369         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
62370         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
62371         (_jm_DECL_HEADERS): Define new function.
62372         (jm_CHECK_DECLARATIONS): Require it.
62373
62374 2000-01-22  Jim Meyering  <meyering@lucent.com>
62375
62376         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
62377         [! HAVE_DECL_STRTOULL]: Declare strtoull.
62378         Required for some AIX systems.  Reported by Christian Krackowizer.
62379         [TESTING] (main): New function.
62380
62381         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
62382         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
62383         letters.
62384
62385         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
62386         iswprint.
62387
62388         * lib/strverscmp.c (ISDIGIT): Define.
62389         (strverscmp): Use ISDIGIT, not isdigit.
62390
62391 2000-01-19  Jim Meyering  <meyering@lucent.com>
62392
62393         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
62394         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
62395         defines `struct timespec' in <sys/time.h>
62396
62397         * m4/c-bs-a.m4: Remove uses of changequote altogether.
62398         Thanks to Akim for explaining.
62399
62400 2000-01-17  Paul Eggert  <eggert@twinsun.com>
62401
62402         * lib/nanosleep.c (nanosleep):
62403         Don't use SA_INTERRUPT to decide whether to call sigaction, as
62404         POSIX.1 doesn't require SA_INTERRUPT and some systems
62405         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
62406         it's been part of POSIX.1 since day 1 (in 1988).
62407
62408 2000-01-17  Jim Meyering  <meyering@lucent.com>
62409
62410         * lib/interlock: Remove unused file.  Reported by François Pinard.
62411
62412 2000-01-16  Paul Eggert  <eggert@twinsun.com>
62413
62414         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
62415         alert, backslash, formfeed, and vertical tab unnecessarily in
62416         shell quoting style.
62417
62418 2000-01-16  Jim Meyering  <meyering@lucent.com>
62419
62420         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
62421         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
62422         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
62423         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
62424
62425 2000-01-16  Jim Meyering  <meyering@lucent.com>
62426
62427         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
62428         because the latter didn't work.
62429
62430 2000-01-15  Jim Meyering  <meyering@lucent.com>
62431
62432         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
62433         (AC_REPLACE_FUNCS): Add memcpy and memset.
62434         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
62435         Add strpbrk.
62436         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
62437
62438 2000-01-12  Jim Meyering  <meyering@lucent.com>
62439
62440         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
62441         (jm_PREREQ): Use it.
62442         (jm_PREREQ_READUTMP): New macro.
62443         (jm_PREREQ): Use it.
62444
62445 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62446
62447         Quote multibyte characters correctly.
62448         * m4/c-bs-a.m4: New file.
62449         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
62450         (jm_PREREQ): Use it.
62451
62452 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62453
62454         * m4/uintmax_t.m4: Port to autoconf 2.13.
62455
62456 2000-01-08  Jim Meyering  <meyering@ascend.com>
62457
62458         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
62459         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
62460
62461 2000-01-04  Jim Meyering  <meyering@ascend.com>
62462
62463         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
62464         jm_STRUCT_DIRENT_D_TYPE.
62465         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
62466         jm_STRUCT_DIRENT_D_INO.
62467         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
62468         jm_STRUCT_UTIMBUF.
62469         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
62470         renamings.
62471         * m4/utime.m4: Likewise.
62472
62473         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
62474         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
62475
62476 2000-01-03  Paul Eggert  <eggert@twinsun.com>
62477
62478         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
62479         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
62480
62481 2000-01-02  Jim Meyering  <meyering@ascend.com>
62482
62483         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
62484         remember if this is necessary.
62485
62486 1999-12-26  Jim Meyering  <meyering@ascend.com>
62487
62488         * m4/jm-macros.m4: Use it here.
62489         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
62490
62491 1999-12-23  Jim Meyering  <meyering@ascend.com>
62492
62493         * m4/jm-macros.m4: Check for clock_gettime (moved from
62494         fileutils/configure.in)
62495         Check for gettimeofday.
62496
62497 1999-12-20  Jim Meyering  <meyering@ascend.com>
62498
62499         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
62500         autoconf-2.14a-1999-12-20.
62501
62502 1999-12-19  Jim Meyering  <meyering@ascend.com>
62503
62504         * m4/lstat-slash.m4: New file.
62505         * m4/jm-macros.m4: Use the new macro:
62506         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62507
62508 1999-12-07  Jim Meyering  <meyering@ascend.com>
62509
62510         * m4/perl.m4: Require that File::Compare be available, too.
62511         Too many systems seem to lack it.
62512
62513         * m4/strftime.m4: Add checks for most of the cpp macros tested in
62514         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
62515
62516 1999-11-18  Paul Eggert  <eggert@twinsun.com>
62517
62518         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
62519         problem with the QNX 4.25 shell, which doesn't propagate exit
62520         status of failed commands inside shell assignments.
62521
62522 1999-11-17  Jim Meyering  <meyering@ascend.com>
62523
62524         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
62525
62526 1999-11-07  Jim Meyering  <meyering@ascend.com>
62527
62528         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
62529
62530 1999-11-06  Jim Meyering  <meyering@ascend.com>
62531
62532         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
62533         * m4/jm-macros.m4 (jm_MACROS): Use it here.
62534
62535 1999-11-05  Jim Meyering  <meyering@ascend.com>
62536
62537         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
62538         configure.in of textutils, fileutils, and sh-utils into this one
62539         (shared between those packages) file.
62540         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
62541         AC_STRUCT_ST_BLKSIZE.
62542
62543 1999-11-03  Jim Meyering  <meyering@ascend.com>
62544
62545         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
62546         of AC_CHECK_TYPE checks includes unistd.h.
62547         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
62548         Suggestion from Akim Demaille.
62549
62550 1999-10-30  Jim Meyering  <meyering@ascend.com>
62551
62552         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
62553         m4-quoted string.
62554         * m4/ls-mntd-fs.m4: Likewise.
62555         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
62556         * m4/jm-winsz1.m4: Likewise.
62557
62558         * m4/const.m4: Remove file, since the fix made it into the experimental
62559         version of autoconf.
62560         * m4/mktime.m4: Likewise.
62561
62562         * m4/check-type.m4: Remove file, now that the latest version of
62563         AC_CHECK_TYPE takes a third arg to specify additional #includes.
62564
62565         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
62566         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
62567         AC_CHECK_TYPE.
62568
62569 1999-10-04  Jim Meyering  <meyering@ascend.com>
62570
62571         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
62572
62573 1999-09-22  Paul Eggert  <eggert@twinsun.com>
62574
62575         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
62576         2.95.1 bug with HP-UX 10.20.
62577
62578 1999-09-17  Jim Meyering  <meyering@ascend.com>
62579
62580         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
62581         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
62582         due to missing strdup (against sh-utils-2.0).
62583
62584 1999-08-29  Jim Meyering  <meyering@ascend.com>
62585
62586         * m4/jm-macros.m4: Require jm_BISON.
62587         * m4/bison.m4: New file.
62588
62589 1999-08-17  Paul Eggert  <eggert@twinsun.com>
62590
62591         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
62592         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
62593
62594 1999-08-05  Jim Meyering  <meyering@ascend.com>
62595
62596         * m4/getline.m4: Rename test file from conftestdata to conftest.data
62597         to avoid conflicts with `conftest' on 8+3 filesystems.
62598         Suggestion from Eli Zaretskii.
62599
62600 1999-08-04  Jim Meyering  <meyering@ascend.com>
62601
62602         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
62603         fileutils and sh-utils (textutils's getline test was inadequate).
62604         (AM_FUNC_GETLINE): Run this test.
62605         (AC_CHECK_FUNCS): Check for getdelim.
62606         Reported by Bob Proulx.
62607
62608 1999-08-02  Jim Meyering  <meyering@ascend.com>
62609
62610         * m4/jm-macros.m4: Add a comment.
62611
62612 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62613
62614         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
62615         <inttypes.h> defines strtoumax as a macro (and not as a
62616         function).
62617
62618 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62619
62620         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
62621         that we can shift, multiply and divide unsigned long long
62622         values; Ultrix cc can't do it.
62623
62624 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62625
62626         * m4/mktime.m4: New file, which is a preview of what should appear
62627         in the next public autoconf release.
62628
62629 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62630
62631         * m4/lfs.m4: Remove this file.
62632         * m4/largefile.m4: New file.  It contains the old contents of
62633         lfs.m4, except that all names with prefix AC_LFS have been
62634         changed to use the prefix AC_SYS_LARGEFILE instead, to be
62635         compatible with future autoconf versions.  Also, some minor m4
62636         quoting problems have been fixed.
62637
62638 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62639
62640         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
62641         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
62642         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
62643         and simplify the shell code.
62644
62645 1999-08-01  Jim Meyering  <meyering@ascend.com>
62646
62647         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
62648         m4.
62649
62650 1999-07-20  Jim Meyering  <meyering@ascend.com>
62651
62652         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
62653
62654 1999-07-15  Jim Meyering  <meyering@ascend.com>
62655
62656         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
62657
62658 1999-05-22  Jim Meyering  <meyering@ascend.com>
62659
62660         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
62661
62662 1999-05-20  Jim Meyering  <meyering@ascend.com>
62663
62664         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
62665         Add a colon after each `then' in case $4 is empty.
62666
62667 1999-05-16  Jim Meyering  <meyering@ascend.com>
62668
62669         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
62670
62671 1999-05-10  Jim Meyering  <meyering@ascend.com>
62672
62673         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
62674
62675         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
62676         AC_FUNC_MKTIME.
62677
62678 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
62679
62680         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
62681
62682 1999-05-04  Paul Eggert  <eggert@twinsun.com>
62683
62684         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
62685         not CPPFLAGS, so that linking works correctly in IRIX.
62686
62687 1999-04-30  Paul Eggert  <eggert@twinsun.com>
62688
62689         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
62690
62691 1999-04-20  Paul Eggert  <eggert@twinsun.com>
62692
62693         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
62694         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
62695         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
62696         jm_AC_TYPE_UNSIGNED_LONG_LONG.
62697         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
62698
62699         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
62700
62701 1999-04-20  Jim Meyering  <meyering@ascend.com>
62702
62703         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
62704         AC_REPLACE xstroull if necessary.  From Paul Eggert.
62705         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
62706
62707 1999-04-18  Jim Meyering  <meyering@ascend.com>
62708
62709         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
62710         * m4/jm-macros.m4: Use it.
62711
62712 1999-04-06  Jim Meyering  <meyering@ascend.com>
62713
62714         * m4/strftime.m4: Remove test for %f.
62715
62716 1999-03-29  Jim Meyering  <meyering@ascend.com>
62717
62718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
62719         superset of the AC_TYPE_* checks in the textutils, fileutils,
62720         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
62721         AC_TYPE_PID_T.
62722
62723 1999-03-28  Jim Meyering  <meyering@ascend.com>
62724
62725         * m4/jm-macros.m4: Define GNU_PACKAGE here.
62726         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
62727         replaced e.g., in the *.sh files of the sh-utils.
62728
62729 1999-03-20  Jim Meyering  <meyering@ascend.com>
62730
62731         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
62732         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
62733         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
62734
62735 1999-03-19  Jim Meyering  <meyering@ascend.com>
62736
62737         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
62738
62739 1999-03-12  Jim Meyering  <meyering@ascend.com>
62740
62741         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
62742
62743 1999-03-07  Jim Meyering  <meyering@ascend.com>
62744
62745         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
62746         declared.
62747
62748 1999-02-17  Jim Meyering  <meyering@ascend.com>
62749
62750         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
62751         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
62752
62753 1999-02-07  Jim Meyering  <meyering@ascend.com>
62754
62755         * m4/group-member.m4: New file -- extracted from sh-utils'
62756         configure.in.
62757
62758         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
62759         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
62760
62761 1999-02-06  Jim Meyering  <meyering@ascend.com>
62762
62763         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
62764         * m4/fnmatch.m4: Likewise.
62765         * m4/getgroups.m4: Likewise.
62766         * m4/lstat.m4: Likewise.
62767         * m4/malloc.m4: Likewise.
62768         * m4/putenv.m4: Likewise.
62769         * m4/realloc.m4: Likewise.
62770         * m4/regex.m4: Likewise.
62771         * m4/stat.m4: Likewise.
62772         * m4/strftime.m4: Likewise.
62773         Suggestion from Alain Magloire.
62774
62775         * m4/chown.m4: Use `.$ac_objext', not `.o'.
62776         * m4/fnmatch.m4: Likewise.
62777         * m4/getgroups.m4: Likewise.
62778         * m4/getline.m4: Likewise.
62779         * m4/lstat.m4: Likewise.
62780         * m4/malloc.m4: Likewise.
62781         * m4/memcmp.m4: Likewise.
62782         * m4/putenv.m4: Likewise.
62783         * m4/realloc.m4: Likewise.
62784         * m4/regex.m4: Likewise.
62785         * m4/stat.m4: Likewise.
62786         * m4/strftime.m4: Likewise.
62787         Suggestion from Alain Magloire.
62788
62789         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
62790         an argument.
62791
62792         * m4/regex.m4: Add a run-time Test for proper operation of
62793         re_compile_pattern.
62794
62795 1999-01-31  Jim Meyering  <meyering@ascend.com>
62796
62797         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
62798
62799 1999-01-30  Jim Meyering  <meyering@ascend.com>
62800
62801         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
62802
62803         * m4/jm-mktime.m4: Make this a wrapper around the official
62804         AM_FUNC_MKTIME rather than my private copy, now that the official one
62805         is up to date.
62806         * m4/mktime.m4: Remove file.
62807
62808         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
62809         * m4/uptime.m4: Likewise.
62810         * m4/uintmax_t.m4: Likewise.
62811
62812 1999-01-28  Jim Meyering  <meyering@ascend.com>
62813
62814         * m4/jm-macros.m4: Use jm_AFS.
62815         * m4/afs.m4: New file (from fileutils' configure.in).
62816
62817         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
62818         * m4/chown.m4: Likewise.
62819         * m4/d-ino.m4: Likewise.
62820         * m4/d-type.m4: Likewise.
62821         * m4/fnmatch.m4: Likewise.
62822         * m4/getgroups.m4: Likewise.
62823         * m4/gettext.m4: Likewise.
62824         * m4/jm-mktime.m4: Likewise.
62825         * m4/jm-winsz2.m4: Likewise.
62826         * m4/lcmessage.m4: Likewise.
62827         * m4/ls-mntd-fs.m4: Likewise.
62828         * m4/malloc.m4: Likewise.
62829         * m4/memcmp.m4: Likewise.
62830         * m4/putenv.m4: Likewise.
62831         * m4/realloc.m4: Likewise.
62832         * m4/st_mtim.m4: Likewise.
62833         * m4/strftime.m4: Likewise.
62834
62835 1999-01-16  Jim Meyering  <meyering@ascend.com>
62836
62837         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
62838         (ARGMATCH_DIE_DECL): Define.
62839
62840 1999-01-12  Jim Meyering  <meyering@ascend.com>
62841
62842         * m4/Makefile.am.in: Rewrite to avoid using fmt.
62843         Reported by Lars Hecking.
62844
62845 1999-01-10  Jim Meyering  <meyering@ascend.com>
62846
62847         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
62848         gross kludge.
62849         * m4/inttypes_h.m4: Likewise.
62850         * m4/lstat.m4: Likewise.
62851         * m4/malloc.m4: Likewise.
62852         * m4/readdir.m4: Likewise.
62853         * m4/realloc.m4: Likewise.
62854         * m4/st_dm_mode.m4: Likewise.
62855         * m4/stat.m4: Likewise.
62856         * m4/utimbuf.m4: Likewise.
62857         * m4/utimes.m4: Likewise.
62858
62859         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
62860         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
62861         comments in config.h.in are meaningful.
62862
62863         * m4/jm-macros.m4: Require autoconf-2.13 here.
62864
62865         * m4/regex.m4: By default, don't use the included regex.c on systems
62866         with glibc 2.  Suggestion from Uli Drepper.
62867
62868 1999-01-02  Jim Meyering  <meyering@ascend.com>
62869
62870         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
62871
62872 1998-12-18  Jim Meyering  <meyering@ascend.com>
62873
62874         * m4/Makefile.am.in (Makefile.am): Simplify rule.
62875         Based on a suggestion from Lars Hecking.
62876
62877 1998-11-16  Paul Eggert  <eggert@twinsun.com>
62878
62879         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
62880
62881 1998-11-16  Jim Meyering  <meyering@ascend.com>
62882
62883         * m4/lfs.m4: Double-quote the `uname...` expression.
62884
62885 1998-11-14  Jim Meyering  <meyering@ascend.com>
62886
62887         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
62888         * m4/stat.m4: Likewise.
62889
62890 1998-11-03  Jim Meyering  <meyering@ascend.com>
62891
62892         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
62893         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
62894
62895 1998-10-18  Jim Meyering  <meyering@ascend.com>
62896
62897         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
62898
62899 1998-10-17  Jim Meyering  <meyering@ascend.com>
62900
62901         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
62902         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
62903         calls for those previously hard-coded headers.  Instead, take a new
62904         parameter.
62905         (jm_CHECK_DECLARATIONS): Reflect interface change.
62906         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
62907         (jm_CHECK_DECL_LOCALTIME_R): New macro.
62908
62909         * m4/mktime.m4: Test for spring-forward gap before long-running test.
62910
62911 1998-10-14  Jim Meyering  <meyering@ascend.com>
62912
62913         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
62914         instead of "TZ=America/Vancouver".  From Paul Eggert.
62915
62916 1998-10-11  Jim Meyering  <meyering@ascend.com>
62917
62918         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
62919         This adds a test for a recently added compatibility fix for mktime.c.
62920         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
62921
62922 1998-09-27  Jim Meyering  <meyering@ascend.com>
62923
62924         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
62925
62926         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
62927         ../configure.in, including a change from Gordon Matzigkeit to allow
62928         cross-compiling for the Hurd.
62929
62930         * m4/glibc.m4: New file/macro to test for the GNU C Library
62931         versions 1 and 2.  From Gordon Matzigkeit.
62932         Indent.
62933
62934 1998-09-21  Jim Meyering  <meyering@ascend.com>
62935
62936         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
62937
62938 1998-08-18  Paul Eggert  <eggert@twinsun.com>
62939
62940         Port nanosecond-resolution times to UnixWare 2.1.2 and
62941         pedantic Solaris 2.6.
62942
62943         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
62944         AC_STRUCT_ST_MTIM.
62945         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
62946         Generate name of ns member, instead of just 1 or undef.
62947         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
62948
62949 1998-08-15  Jim Meyering  <meyering@ascend.com>
62950
62951         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
62952         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
62953         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
62954         instead of jm_TYPE_SSIZE_T.
62955
62956 1998-08-12  Jim Meyering  <meyering@ascend.com>
62957
62958         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
62959
62960 1998-08-02  Jim Meyering  <meyering@ascend.com>
62961
62962         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
62963         in acconfig.h manually.
62964
62965 1998-07-31  Paul Eggert  <eggert@twinsun.com>
62966
62967         * m4/st_mtim.m4: New file.
62968
62969 1998-07-28  Jim Meyering  <meyering@ascend.com>
62970
62971         * m4/utimes.m4: Undef stat.
62972
62973 1998-07-25  Jim Meyering  <meyering@ascend.com>
62974
62975         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
62976         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
62977
62978 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
62979
62980         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
62981         uid and gid actually remain unchanged.
62982
62983 1998-07-07  Jim Meyering  <meyering@ascend.com>
62984
62985         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
62986
62987 1998-07-04  Jim Meyering  <meyering@ascend.com>
62988
62989         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
62990         to prove that this macro can be used in packages without regex.c.
62991
62992 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
62993
62994         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
62995         is to be used.
62996
62997 1998-07-03  Jim Meyering  <meyering@ascend.com>
62998
62999         * m4/gettext.m4: Add -lintl if it's found to be necessary.
63000
63001         * m4/gettext.m4: New file -- from gettext-0.10.35.
63002         * m4/lcmessage.m4: Likewise.
63003         * m4/progtest.m4: Likewise.
63004
63005         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63006         * m4/jm-macros.m4: Require the new macro.
63007
63008 1998-06-29  Jim Meyering  <meyering@ascend.com>
63009
63010         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
63011         for the definition of NGROUPS (used in a system header included
63012         by sys/mount.h).
63013
63014 1998-06-28  Jim Meyering  <meyering@ascend.com>
63015
63016         * m4/ls-mntd-fs.m4: New file.
63017         * m4/fstypename.m4: New file.
63018
63019         * m4/jm-macros.m4: Require the new macro.
63020         * m4/jm-glibc-io.m4: New file.
63021
63022 1998-05-19  Jim Meyering  <meyering@ascend.com>
63023
63024         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63025         * m4/lchown.m4: New file.
63026
63027         * m4/Makefile.am.in: New file.
63028         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63029
63030 1998-05-14  Jim Meyering  <meyering@ascend.com>
63031
63032         * m4/Makefile.am (EXTRA_DIST): Add them.
63033         * m4/jm-macros.m4: New file.
63034         * m4/utimbuf.m4: New file.
63035
63036 1998-05-12  Jim Meyering  <meyering@ascend.com>
63037
63038         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63039
63040 1998-05-11  Jim Meyering  <meyering@ascend.com>
63041
63042         * m4/isc-posix.m4: New file.
63043
63044 1998-05-10  Jim Meyering  <meyering@ascend.com>
63045
63046         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63047
63048 1998-05-09  Jim Meyering  <meyering@ascend.com>
63049
63050         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63051         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63052         with automake.
63053
63054         * m4/ssize_t.m4: New file.
63055         * m4/mktime.m4: Remove file -- the new automake has this now.
63056
63057 1998-04-26  Jim Meyering  <meyering@ascend.com>
63058
63059         * m4/assert.m4: New file.
63060         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63061
63062 1998-04-05  Jim Meyering  <meyering@ascend.com>
63063
63064         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63065         (jm_PREREQ): Use it here.
63066
63067 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
63068
63069         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63070         in acconfig.h.
63071
63072 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
63073
63074         * m4/prereq.m4: New file.
63075         * m4/error.m4: New file.
63076         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63077
63078 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
63079
63080         * m4/getline.m4: Don't set am_cv_func_working_getline before the
63081         cache-check for the same variable -- that defeated the purpose of
63082         the test; the test program was never run.  This was a problem only
63083         on systems with losing getline functions -- HP-UX 10.20 is one.
63084         Reported by Bjorn Helgaas.
63085
63086 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
63087
63088         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63089
63090 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
63091
63092         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63093
63094         * m4/const.m4: New file.  Use an initializer in this declaration
63095         typedef int charset[2]; const charset x;
63096         Reported by Bob Glickstein.
63097
63098 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
63099
63100         * m4/chown.m4: Fix reversed types on -1 args to chown.
63101         From Kaveh Ghazi.
63102
63103 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
63104
63105         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63106         Add lseek and memchr.
63107
63108         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63109         T.E.Dickey <dickey@clark.net> said that some older preprocessors
63110         have a 20-character limit on names.
63111
63112 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
63113
63114         * m4/inttypes_h.m4: New file.
63115         * m4/uintmax_t.m4: New file.
63116         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63117
63118
63119         -----
63120
63121         Local Variables:
63122         coding: utf-8
63123         End:
63124
63125         Copyright (C) 1997-2010 Free Software Foundation, Inc.
63126
63127         Copying and distribution of this file, with or without
63128         modification, are permitted provided the copyright notice
63129         and this notice are preserved.